manywarnings: remove -Wmudflap
[gnulib.git] / ChangeLog
1 2014-01-02  Jim Meyering  <meyering@fb.com>
2
3         manywarnings: remove -Wmudflap
4         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since
5         it is no longer supported in gcc-4.9-to-be.
6
7 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
8
9         relocatable-script: remove unused code
10         Problem reported by Reuben Thomas in:
11         http://lists.gnu.org/archive/html/bug-gnulib/2013-12/msg00117.html
12         * build-aux/relocatable.sh.in (func_tmpdir): Remove unused function.
13
14 2014-01-01  Jim Meyering  <meyering@fb.com>
15
16         maint: fix public-submodule-commit to work with newer git
17         * top/maint.mk (public-submodule-commit): Remove excess quoting.
18         We were over-quoting the test arguments, and somewhere prior to
19         version 1.8.5.2.229, git stopped removing those excess quotes,
20         which made the test fail, since the unexpanded strings would
21         always differ; using GIT_TRACE=1 confirmed that the git merge-base
22         command wasn't even being run.
23
24 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
25
26         doc: update main copyright year
27         * doc/gnulib.texi: Update copyright date.
28
29 2014-01-01  Eric Blake  <eblake@redhat.com>
30
31         version-etc: new year
32         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
33         * all files: run 'make update-copyright'
34
35 2013-12-24  Eric Blake  <eblake@redhat.com>
36
37         passfd: give nicer error for recvfd at eof
38         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
39         * tests/test-passfd.c (main): Enhance test to cover this.
40
41 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
42
43         gettimeofday: port recent C++ fix to Emacs
44         Without this further patch, Emacs won't build due to
45         the portcheck failing.  Also, this simplifies the patch a bit.
46         * lib/time.in.h (localtime, gmtime): Don't replace unless
47         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
48         * lib/time.in.h (localtime, gmtime):
49         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
50         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
51         * modules/time (time.h):
52         Don't worry about about the possibility of localtime and gmtime
53         being absent; they're present in all C libraries we know about.
54         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
55         Don't assume sys_time is present and has been initialized.
56         Instead, use a hack that should work even if it hasn't been.
57         Don't use a portcheck for gmtime or localtime; this supports
58         the hack.
59         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
60
61 2013-12-17  John W. Eaton  <jwe@gnu.org>
62
63         gettimeofday: fix C++ crosscompilation
64
65         Never replace gmtime and localtime by macros when compiling with
66         C++, this prevents <ctime> from being included.
67
68         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
69         define gmtime and localtime as preprocessor macros.  Instead
70         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
71         REPLACE_LOCALTIME substitutions.
72         * lib/time.in.h: Declare gmtime and localtime when needed.
73         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
74         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
75         * modules/time: Depend on gettimeofday, and substitute the above
76         variables in time.h.
77
78 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
79
80         qacl: port to Windows better
81         See Eli Zaretskii in
82         <http://lists.gnu.org/archive/html/emacs-devel/2013-12/msg00593.html>.
83         * lib/file-has-acl.c (acl_access_nontrivial):
84         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
85         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
86
87 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
88
89         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
90         * lib/gl_openssl.h: Cast void pointers to a specific type.
91
92 2013-12-07  Pádraig Brady <P@draigBrady.com>
93
94         open-tests: fix build failure with -Werror=old-style-declaration
95         * tests/test-open.h: Reorder the inline to avoid the issue.
96
97 2013-12-07  Pádraig Brady <P@draigBrady.com>
98
99         md5, sha1, sha256, sha512: fix link error with partial libcrypto
100         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
101         init time, so that if early checks find crypto routines,
102         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
103         avoiding link failures.
104
105 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
106
107         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
108         This provides a new way to specify the default for
109         gl_CRYPTO_CHECK, one that is reflected in the --help message.
110         Emacs uses this, as well as the old way.
111         This attempts to implement a suggestion by Pádraig Brady in
112         <http://lists.gnu.org/archive/html/coreutils/2013-12/msg00080.html>.
113         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
114         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
115
116         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
117         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
118         Add support for a new option, --with-openssl=auto, which causes
119         the library to be used if available and silently ignored if not.
120         Add support to allow allow configure.ac to specify its own
121         default, by setting with_openssl_default before invoking gl_INIT.
122
123 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
124
125         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
126         Problem reported by Daiki Ueno in:
127         http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00052.html
128         * tests/test-open.h (__always_inline):
129         New macro, if not already defined.
130         (test_open): Use it.
131
132 2013-12-04  Eric Blake  <eblake@redhat.com>
133
134         include_next: minimize code duplication
135         * modules/include_next (Depends-on): Add absolute-header.
136         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
137         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
138
139 2013-12-04  Pádraig Brady <P@draigBrady.com>
140
141         getcwd: fix compile error in configure check
142         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
143
144 2013-12-04  Pádraig Brady <P@draigBrady.com>
145
146         regex: suppress core dumps from detection code
147         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
148         to suppress core dumps that may well occur on glibc systems.
149         These core dumps might not be cleaned up automatically, or could
150         trigger some system core dump handling logic.
151
152 2013-12-03  Pádraig Brady <P@draigBrady.com>
153
154         md5, sha1, sha256, sha512: support mandating use of openssl
155         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
156         description, to list the now 3 separate options.  also don't
157         mention the default=no, since this is implicit given the option
158         is described as --with-openssl rather than --without-openssl.
159         If projects change the default they're free to document that.
160         with --with-openssl[=yes] we now error out when the specified
161         hash algorithm is not available in libcrypto.
162
163 2013-12-03  Ivailo  <xakepa10@gmail.com>
164
165         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
166         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
167         -Wformat-nonliteral checks, as these edge cases are part of the test.
168
169 2013-12-03  Eric Blake  <eblake@redhat.com>
170
171         regex: avoid glibc deadlock during configure
172         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
173         glibc bug 15078 in turn triggers bug 16159.
174         Reported by Michal Privoznik.
175
176 2013-12-02  Pádraig Brady <P@draigBrady.com>
177
178         md5, sha1, sha256, sha512: use openssl routines if available.
179         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
180         routines will be used if available, requiring apps to link @LIB_CRYPTO@
181         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
182         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
183         in the standard system location.
184         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
185         * m4/sha256.m4: Likewise with SHA256.
186         * m4/sha512.m4: Likewise with SHA512.
187         * m4/md5.m4: Likewise with MD5.
188         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
189         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
190         * lib/sha256.h: Likewise with SHA256.
191         * lib/sha512.h: Likewise with SHA512.
192         * lib/md5.h: Likewise with MD5.
193         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
194         * lib/sha256.c: Likewise with SHA256.
195         * lib/sha512.c: Likewise with SHA512.
196         * lib/md5.c: Likewise with MD5.
197         * modules/crypto/sha1 (Link:): Add the new optional lib.
198         (Depends-on:): Add dependency on extern-inline.
199         * modules/crypto/sha256: Likewise.
200         * modules/crypto/sha512: Likewise.
201         * modules/crypto/md5: Likewise.
202         * modules/crypto/sha1-tests: Reference the lib here too.
203         * modules/crypto/md5-tests: Likewise.
204         * modules/crypto/gc-des-tests: Likewise.
205         * modules/crypto/gc-hmac-md5-tests: Likewise.
206         * modules/crypto/gc-hmac-sha1-tests: Likewise.
207         * modules/crypto/gc-hmac-sha256-tests: Likewise.
208         * modules/crypto/gc-hmac-sha512-tests: Likewise.
209         * modules/crypto/gc-md5-tests: Likewise.
210         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
211         * modules/crypto/gc-sha1-tests: Likewise.
212         * modules/crypto/gc-tests: Likewise.
213         * modules/crypto/hmac-md5-tests: Likewise.
214         * modules/crypto/hmac-sha1-tests: Likewise.
215         * modules/crypto/hmac-sha256-tests: Likewise.
216         * modules/crypto/hmac-sha512-tests: Likewise.
217
218 2013-11-29  RV1971  <rv1971@web.de>
219
220         base64: (trivial) fix compilation regression on some compilers
221         * lib/base64.c: Don't return the void function,
222         instead split to a separate return statement.
223
224 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
225
226         ignore-value: revert previous code change
227         * lib/ignore-value.h (ignore_value): Use __extension__ and
228         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
229         <http://lists.gnu.org/archive/html/bug-gnulib/2013-11/msg00102.html>.
230         Change the comment to try to explain this better.
231
232 2013-11-27  Pádraig Brady <P@draigBrady.com>
233
234         selinux-h: improve stub types and add more stub functions
235
236         * lib/se-selinux.in.h: Change security_context_t to a typedef
237         rather than a define, as it's a pointer type and so is better
238         as a typedef to avoid issues declaring multiple variables
239         with the comma operator.  Also add stub for string_to_security_class().
240         * lib/se-context.in.h: Add stub functions for
241         context_{type,range,role,user}_get().
242
243 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
244
245         ignore-value: prefer GCC version back through 2.0
246         The code didn't match the comments, so I did a bit of software
247         archaeology.  GCC 2.0 seems to support __extension__ and
248         __typeof__, so fix both code and comments to use 2.0.
249         * lib/ignore-value.h (ignore_value): Use __extension__ and
250         __typeof__ for GCC 2.0 through 3.3, too.
251
252 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
253
254         pty: Activate the signature wrapper of forkpty.
255         The intended preprocessor macro HAVE_FORKPTY is
256         never defined, yet `lib/forkpty.c' depends on it.
257
258         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
259         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
260         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
261
262 2013-11-18  Jim Meyering  <meyering@fb.com>
263         and Paul Eggert  <eggert@cs.ucla.edu>
264
265         quotearg: don't attempt to store 1 << 31 into an "int"
266         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
267         gcc's new -fsanitize=undefined and running its tests triggered some
268         new test failures due to undefined behavior, all with this diagnostic:
269           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
270             cannot be represented in type int
271         Rather than shifting "1" left to form a mask, shift the bits right and
272         simply use "1" as the mask.
273
274 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
275
276         error: depend on stdio
277         Problem reported by Nikos Mavrogiannopoulos in
278         <http://lists.gnu.org/archive/html/bug-gnulib/2013-11/msg00084.html>
279         * modules/error (Depends-on): Add stdio.
280
281 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
282
283         * doc/relocatable-maint.texi (Supporting Relocation): Improve
284         wording.
285         Reported by Reuben Thomas <rrt@sc3d.org>.
286
287 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
288
289         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
290         New function and macro, to work around _DARWIN_C_SOURCE problem.
291         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
292
293 2013-11-11  Pádraig Brady <P@draigBrady.com>
294
295         base64: provide a fast path for encoding well sized buffers
296         Avoid conditionals in the base64 encoding loop,
297         which was seen to give 60% better throughput.
298         * lib/base64.c (base64_encode_fast): A new function to be called
299         when we don't want to NUL terminate, and we have enough space
300         in the output to encode the given input.
301         (base64_encode): Call the _fast() version when appropriate.
302         Also remove a redundant mask with 0x3F on the first encoded byte.
303
304 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
305
306         extern-inline: port better to OS X 10.9
307         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
308         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
309         OS X 10.9, except for g++ where the bug is still present.
310         See <http://trac.macports.org/ticket/41033>.
311
312 2013-11-08  Eric Blake  <eblake@redhat.com>
313
314         fpending: fix regression on DragonFly BSD
315         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
316         * lib/fpending.h (__fpending): Don't declare twice.
317         Reported by GW in
318         <https://lists.gnu.org/archive/html/bug-m4/2013-11/msg00000.html>
319
320 2013-11-05  Jim Meyering  <meyering@fb.com>
321
322         hash: relax license to LGPLv2+, for libguestfs
323         * modules/hash (License): Change from GPL to LGPLv2+.
324
325 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
326
327         intprops: port to Oracle Studio c99
328         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
329         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
330
331 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
332
333         obstack: pacify HP C
334         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
335         warning "conversion from pointer to smaller integer" from HP
336         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
337         C89 or later nowadays, so cast to void instead of int.  Privately
338         reported by H.Merijn Brand.  Also, change header to match glibc's,
339         to make checking against glibc easier.
340
341 2013-10-29  Jim Meyering  <meyering@fb.com>
342
343         maint.mk: prefer gpgv2 over gpgv
344         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
345         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
346         Reported by Gary Vaughan.
347
348 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
349
350         isnan: port to VAX
351         Reported by John Klos for NetBSD-5/VAX in
352         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00133.html>.
353         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
354         (FUNC): Use it.
355
356 2013-10-28  Jim Meyering  <meyering@fb.com>
357
358         gnulib-tool: protect against CDPATH
359         * gnulib-tool: Many "cd" built-in functions print a directory name
360         to stdout when CDPATH is set, e.g.,
361           $ bash -c 'CDPATH=/; cd tmp'
362           /tmp
363         Unset it, when possible.  Prompted by a comment from Bruce Korb.
364
365         maint.mk: restore functionality removed by recent change...
366         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
367         the context of a shallow-cloned gnulib repository: "git describe"
368         would fail in such a directory.  However, that change made it so
369         the reported gnulib revision no longer includes the version number
370         or a commit count, even when run from a full clone.
371         * top/maint.mk (gnulib-version): Use the full "git describe"
372         output when possible, e.g., the form above, rather than the
373         abbreviated, no-tag, no-commit-count string, and fall back to
374         using a 10-byte hash, rather than the default minimal-length
375         hash prefix, since while the minimal-length one may be fine today,
376         it is likely not to be unique for very long.
377
378 2013-10-26  Jim Meyering  <meyering@fb.com>
379
380         maint.mk: fix "release" target to build _version
381         This fixes a bug in README-release whereby following the outlined
382         steps, one would publish a tarball whose programs would report
383         --version output not consistent with the package version number.
384         This bug caused grep-2.15 to produce a grep program whose
385         --version option made it print 2.14.56-1e3d rather than 2.15.
386         * top/maint.mk (release): Making this target build "_version"
387         ensures that the new version number is reflected in configure.
388
389 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
390
391         install-reloc: Support multi-binary installation.
392         * build-aux/install-reloc: Support installing multiple programs in
393         one invocation, as done by Automake starting with commit
394         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
395         Haible <bruno@clisp.org>, archived at
396         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
397         Reported by Sylvain <beuc@gnu.org>.
398
399 2013-10-21  Michael Haubenwallner <michael.haubenwallner@salomon.at>
400
401         selinux-h: Really build without selinux when library is missing.
402         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
403         continue without selinux, as already told in the warning message.
404
405 2013-10-21  Jim Meyering  <meyering@fb.com>
406
407         regex: also remove dependency on HAVE_WCSCOLL
408         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
409
410 2013-10-21  Reuben Thomas <rrt@sc3d.org>
411
412         xfreopen: Fix typo. s/frepoen/freopen/
413         * lib/xfreopen.c: Fix description.
414         * modules/xfreopen: Likewise.
415
416 2013-10-21  Jim Meyering  <meyering@fb.com>
417
418         regex: don't depend on wcscoll
419         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
420         It is no longer used.
421
422 2013-10-20  Jim Meyering  <meyering@fb.com>
423
424         error: add the printf attribute to a static function
425         * lib/error.c (error_tail): Add the printf attribute, to placate
426         gcc's -Werror=suggest-attribute=format option.
427
428 2013-09-30  Jim Meyering  <meyering@fb.com>
429
430         fpending, obstack, strerror-override: use pure+const function attrs
431         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
432         * lib/obstack.c (_obstack_allocated_p): Likewise.
433         * lib/obstack.h (_obstack_memory_used): Likewise.
434         (_obstack_memory_used): Likewise.
435         * lib/strerror-override.h (strerror_override): Declare with
436         the "const" attribute.
437
438 2013-10-18  Eric Blake  <eblake@redhat.com>
439
440         extern-inline: make safe for -Wundef usage
441         Reported by Vladimir 'phcoder' Serbinenko in
442         https://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00078.html
443         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
444
445 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
446
447         mkfifo-tests, etc.: allow HP-UX 11.11 bug
448         Problem reported by Daniel Richard G. in
449         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00068.html>.
450         * doc/posix-functions/mkfifo.texi (mkfifo):
451         * doc/posix-functions/mkfifoat.texi (mkfifoat):
452         * doc/posix-functions/mknod.texi (mknod):
453         * doc/posix-functions/mknodat.texi (mknodat):
454         Document the HP-UX 11.11 bug.
455         * tests/test-mkfifo.h (test_mkfifo):
456         Allow the HP-UX 11.11 bug.
457
458 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
459
460         acl: allow cross-compilation to Gentoo
461         Problem reported by Gabriel Marcano in
462         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00058.html>.
463         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
464         test only whether it links.
465
466 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
467
468         mgetgroups: remove dependency on realloc-gnu
469         The dependency violates the comment in realloc-gnu, which
470         says that tests can't depend on realloc-gnu; some tests depend
471         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
472         Problem reported by Daniel Richard G. in
473         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00056.html>.
474         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
475         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
476         not realloc-gnu.
477
478 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
479
480         regex-tests: port to HP-UX 11.11
481         Problem reported by Daniel Richard G. in
482         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00052.html>.
483         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
484
485 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
486
487         verify: document some 'assume' pitfalls
488         * doc/verify.texi (Compile-time Assertions):
489         Mention that 'assume (E)' can sometimes slow things down.
490         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
491
492 2013-10-10  Eric Blake  <eblake@redhat.com>
493
494         strtoumax: fix typo in previous commit.
495         * modules/strtoumax (Depends-on): Fix typo.
496         * modules/strtoimax (Depends-on): Likewise.
497
498 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
499
500         strtoumax: port to Solaris 8
501         This problem was introduced in the recent HP-UX patch.
502         Reported by Tom G. Christensen in
503         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00037.html>.
504         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
505         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
506
507 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
508
509         strtoimax, strtoumax: port to HP-UX 11.11
510         Problem reported by Daniel Richard G. in
511         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00023.html>.
512         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
513         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
514         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
515         REPLACE_STRTOUMAX.
516         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
517         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
518         Replace the function if defined as a macro but not as a function.
519         * modules/inttypes-incomplete (inttypes.h): Substitute
520         REPLACE_STRTOUMAX.
521         * modules/strtoumax (configure.ac): Replace strtoumax if
522         REPLACE_STRTOUMAX.
523
524 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
525
526         strtoimax: port to HP-UX 11.11
527         Problem reported by Daniel Richard G.
528         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
529         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
530         they might clash with inttypes.h.
531
532 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
533
534         New module 'count-trailing-zeros'.
535         * MODULES.html.sh: Mention it.
536         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
537         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
538         * modules/count-trailing-zeros-tests:
539         * tests/test-count-trailing-zeros.c:
540         New files.
541
542         count-leading-zeros: port to MSC; support types wider than 64 bits
543         The ideas behind the MSC port are stolen from Emacs.
544         * lib/count-leading-zeros.h:
545         Don't include verify.h: it's no longer needed, as types wider than
546         64 bits are now supported.
547         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
548         performance with MSC.  All uses changed.  Do not assume that TYPE
549         has at most 64 bits.
550         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
551         All uses changed.  Fold the subtraction from 31 into the table.
552
553         count-one-bits: port to MSC; support types wider than 64 bits
554         The ideas behind the MSC port are stolen from Emacs.
555         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
556         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
557         Don't include verify.h: it's no longer needed, as types wider than
558         64 bits are now supported.
559         (COUNT_ONE_BITS_GENERIC): New macro.
560         (popcount_supported) [_MSC_VER]: New inline function.
561         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
562         performance with MSC.  All uses changed.  Do not assume that TYPE
563         has at most 64 bits.
564         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
565
566 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
567
568         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
569         * lib/mountlist.c (read_file_system_list): fix leak of directory
570         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
571
572 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
573
574         tests: improve diagnostic when an assertion fails
575         * tests/macros.h (ASSERT): Report the assertion that failed.
576
577 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
578
579         verify: new macro 'assume'
580         This is taken from Emacs, and should be generally useful.
581         * doc/verify.texi (assume): Document it.
582         * lib/verify.h (assume): New macro.
583         (__has_builtin): Expand to 0 if not defined.
584
585 2013-09-26  Eric Blake  <eblake@redhat.com>
586
587         dup2, dup3: work around another cygwin crasher
588         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
589         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
590         * tests/test-dup2.c (main): Likewise.
591         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
592         * lib/dup3.c (dup3): Likewise.
593         * doc/posix-functions/dup2.texi (dup2): Document it.
594         * doc/glibc-functions/dup3.texi (dup3): Likewise.
595
596         getdtablesize: work around cygwin issue
597         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
598         * modules/getdtablesize (configure.ac): Build replacement.
599         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
600         * modules/unistd (Makefile.am): Expose the witness.
601         * lib/unistd.in.h (getdtablesize): Declare replacement.
602         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
603         * tests/test-getdtablesize.c (main): Test it.
604         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
605
606 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
607
608         pmccabe2html: escaping of special characters
609         Escape all '<', '>', and '&' in HTML output.
610         * build-aux/pmccabe2html (html_fnc): Call gsub()
611         instead of sub() to capture all '<', '>', and '&'.
612         Neither of '<' and '>' is special in a regexp,
613         so first arguments to gsub() are corrected. Also,
614         in replacement strings, ampersand must be escaped.
615         Finally, '&' must be handled first, then '<' and '>'.
616
617 2013-09-24  Eric Blake  <eblake@redhat.com>
618
619         manywarnings: enable nicer gcc warning messages
620         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
621         some -f options for optimal warnings.
622
623 2013-09-21  Jim Meyering  <meyering@fb.com>
624
625         timespec: use the new TIMESPEC_RESOLUTION in a few more places
626         * lib/timespec-add.c (timespec_add): Also replace 999999999
627         with TIMESPEC_RESOLUTION - 1.
628         * lib/timespec-sub.c (timespec_sub): Likewise.
629
630 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
631
632         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
633         Problem reported by Dagobert Michelsen via Eric Blake in
634         <http://lists.gnu.org/archive/html/bug-gnulib/2013-09/msg00052.html>.
635         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
636         not AC_COMPILE_IFELSE.
637
638 2013-09-23  Eric Blake  <eblake@redhat.com>
639
640         configmake: support new --runstatedir option
641         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
642         even if autoconf was too old to provide the command line option.
643         * modules/configmake (Makefile.am): Propagate it to .h file.
644
645 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
646
647         ctype, string: depend on extern-inline
648         This is needed to complete the recent OS X fixes.
649         Also, fix related documentation as suggested by Eric Blake.
650         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
651         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
652         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
653         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
654         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
655         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
656         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
657         * doc/posix-functions/toupper.texi:
658         List the 'ctype' gnulib module.
659         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
660         * doc/posix-functions/strncpy.texi:
661         List the 'string' gnulib module.
662         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
663         Add string.
664         * modules/ctype, modules/string (Depends-on): Add extern-inline.
665
666 2013-09-19  Pádraig Brady  <P@draigBrady.com>
667
668         userspec: support optional parameters to parse_user_spec()
669         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
670         then avoid group processing and treat the full spec as a user.
671         (parse_with_separator): Allow the USERNAME and GROUPNAME to
672         be optional params (NULL), in which case they're ignored.
673
674 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
675
676         timespec: new function make_timespec, and new constants
677         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
678         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
679         (make_timespec): New function.
680         * lib/dtotimespec.c (dtotimespec):
681         * lib/timespec-add.c (timespec_add):
682         * lib/timespec-sub.c (timespec_sub):
683         * lib/utimens.c (validate_timespec):
684         * lib/utimensat.c (rpl_utimensat):
685         Use these new constants and functions.
686
687         stdio: OS X port of putc_unlocked + extern inline
688         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
689         * doc/posix-functions/putc_unlocked.texi:
690         * doc/posix-functions/putchar_unlocked.texi:
691         Document this portability problem.
692
693         signal: OS X port of sigaddset etc. + extern inline
694         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
695         (sigismember): #undef on problematic Apple platforms.
696         * doc/posix-functions/sigaddset.texi:
697         * doc/posix-functions/sigdelset.texi:
698         * doc/posix-functions/sigemptyset.texi:
699         * doc/posix-functions/sigfillset.texi:
700         * doc/posix-functions/sigismember.texi:
701         Document this portability problem.
702
703         extern-inline: do not always suppress extern inline on OS X
704         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
705         extern inline on Apple only if the particular compile-time
706         configuration is known to have the problem.
707         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
708         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
709         other Gnulib modules.
710
711         extern-inline: document fixes for ctype and wctype macros
712         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
713         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
714         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
715         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
716         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
717         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
718         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
719         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
720         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
721         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
722         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
723         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
724         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
725         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
726         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
727         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
728         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
729         * doc/posix-functions/strncpy.texi:
730         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
731         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
732         Document that Gnulib fixes portability problems with these
733         functions on OS X 10.8 and earlier when called from plain inline
734         or extern inline functions.
735
736 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
737
738         fflush, freadahead, fseeko: Fix for Android
739         Suggested by Bruno Haible in:
740         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00306.html>
741         * lib/stdio-impl.h: Use local __sfileext definition.
742
743 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
744
745         pmccabe2html: Portability to other awk versions.
746         The functions systime() and strftime() are available
747         in Gawk only.  Properly close two HTML-tags 'style'
748         and 'span'.
749         * build-aux/pmccabe2html (BEGIN): Store timing
750         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
751         systime() in HTML_COMMENT.
752         (html_header): Correctly close tag 'style'.
753         (END): Replace strftime() by CHRONOS_TIME.  Close
754         tag 'span' correctly, not as 'div'.
755
756 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
757
758         getgroups: statement without effect
759         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
760         Change equality conditional to expected assignment.
761
762 2013-09-09  Eric Blake  <eblake@redhat.com>
763
764         glob: fix compilation
765         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
766
767 2013-09-07  Eric Blake  <eblake@redhat.com>
768
769         glob: fix build for platforms without __THROW
770         * lib/glob.in.h (__THROW): Add definition again.
771
772 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
773
774         regex-quote: fix buffer access out of bounds
775         http://lists.gnu.org/archive/html/bug-gnulib/2013-09/msg00001.html
776         * lib/regex-quote.c (regex_quote_spec_pcre):
777         Fix typo that resulted in an out-of-bounds read.
778
779 2013-09-04  Eric Blake  <eblake@redhat.com>
780
781         glob: avoid -Wattribute warnings on glibc
782         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
783         __THROWNL, not __THROW, on static functions.
784         * lib/glob.in.h (__THROW): Adjust...
785         (__THROWNL): ...accordingly.
786
787 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
788
789         headers: check that _GL_INLINE_HEADER_BEGIN is defined
790         Suggested by Bruce Korb in:
791         http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00070.html
792         * doc/extern-inline.texi (extern inline):
793         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
794         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
795         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
796         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
797         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
798         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
799         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
800         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
801         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
802         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
803         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
804         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
805         * lib/xtime.h:
806         Check that _GL_INLINE_HEADER_BEGIN is defined.
807
808 2013-08-29  Pádraig Brady  <P@draigBrady.com>
809
810         bootstrap: remove the --version requirement from ancillary tools
811         * build-aux/bootstrap (check_exists): A new refactored function to
812         determine if a command exists.
813         (find_tool): Use the new function which does not require the
814         --version option to be supported.
815         (check_versions): Use the new function.
816
817 2013-08-26  Simon Josefsson  <simon@josefsson.org>
818
819         gc: support HMAC-SHA256 and HMAC-SHA512.
820         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
821         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
822         functions.
823         (gc_hmac_md5): Use symbolic constant.
824         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
825         (gc_hmac_sha256, gc_hmac_sha512): New functions.
826         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
827         * m4/sha256.m4: Protect against empty expansion.
828         * m4/sha512.m4: Likewise.
829         * lib/hmac-sha256.c: New file.
830         * lib/hmac-sha512.c: Likewise.
831         * m4/gc-hmac-sha256.m4: Likewise.
832         * m4/gc-hmac-sha512.m4: Likewise.
833         * m4/gc-sha256.m4: Likewise.
834         * m4/gc-sha512.m4: Likewise.
835         * modules/crypto/gc-hmac-sha256: Likewise.
836         * modules/crypto/gc-hmac-sha256-tests: Likewise.
837         * modules/crypto/gc-hmac-sha512: Likewise.
838         * modules/crypto/gc-hmac-sha512-tests: Likewise.
839         * modules/crypto/hmac-sha256: Likewise.
840         * modules/crypto/hmac-sha256-tests: Likewise.
841         * modules/crypto/hmac-sha512: Likewise.
842         * modules/crypto/hmac-sha512-tests: Likewise.
843         * tests/test-gc-hmac-sha256.c: Likewise.
844         * tests/test-gc-hmac-sha512.c: Likewise
845         * tests/test-hmac-sha256.c: Likewise.
846         * tests/test-hmac-sha512.c: Likewise
847
848 2013-08-24  Daiki Ueno  <ueno@gnu.org>
849
850         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
851         of AC_CHECK_DECLS.
852
853 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
854
855         selinux-at: omit unnecessary include
856         * lib/selinux-at.c: Don't include dosname.h; not needed, since
857         this source file doesn't use its macros, and subsidiary files that
858         use the macros already include it.
859
860 2013-08-21  Eric Blake  <eblake@redhat.com>
861
862         d-ino: avoid false negative on symlink
863         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
864         Reported by Stephane Chazelas.
865
866 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
867
868         bootstrap: port to OpenBSD sed
869         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
870         does not interpret `-' as a file argument to mean stdin.
871
872 2013-08-15  Eric Blake  <eblake@redhat.com>
873
874         warnings: minor optimization
875         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
876
877         warnings: check -Wfoo rather than -Wno-foo
878         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
879         -Wno-, test if the compiler recognizes the positive form instead.
880
881 2013-08-15  Karl Berry  <karl@gnu.org>
882
883         * config/srclist-update: add option "doclicense" to placate
884         pulling *.texi files from Emacs.  Write terse usage
885         documentation at the top.
886
887 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
888
889         xvasprintf-tests: port to GCC with hardening flags
890         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
891         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
892         http://lists.gnu.org/archive/html/bug-diffutils/2013-08/msg00002.html
893
894 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
895
896         fpending: port to recent Cygwin change to stdio_ext.h
897         Reported by LRN in
898         <http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00028.html>.
899         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
900         just declare __fpending unless it's a macro.
901         A duplicate decl shouldn't hurt.
902         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
903         call compiles and links, instead of separately checking for
904         decl and lib function.
905         * modules/fpending (configure-ac):
906         Adjust to fpending.m4's renaming of shell variable.
907
908 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
909
910         sys_time: port to OpenBSD
911         * lib/sys_time.in.h: Simply delegate to the system's header
912         in the BSDish cases as well.  Problem reported by Mike Miller in
913         <http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00016.html>.
914         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
915         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
916         wider than time_t.
917
918 2013-08-09  Pádraig Brady <P@draigBrady.com>
919
920         bootstrap: support checksum utils having -c but not --status
921         * build-aux/bootstrap: Only look for sha1sum if updating po files.
922         Add sha1 to the list of supported checksum utils since it's now
923         supported through adjustments below.
924         (update_po_files): Remove the use of --status
925         in a way that will suppress all error messages, but since this is
926         only used to minimize updates, it shouldn't cause an issue.
927         Exit early if there is a problem updating the po file checksums.
928         (find_tool): Remove the check for --version support as this
929         is optional as per commit 86186b17.  Don't even check for the
930         presence of the command as if that is needed, it's supported
931         through configuring prerequisites in bootstrap.conf.
932         Prompt that when a tool isn't found, one can define an environment
933         variable to add to the hardcoded search list.
934
935 2013-08-05  Jim Meyering  <meyering@fb.com>
936
937         regex: port to non-glibc/lock-using systems
938         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
939         system with GNULIB_LOCK would fail due to absence of the
940         included "glthread/lock.h".  This would affect any package
941         for which the "lock" module is used only by the regex module,
942         and not explicitly used.
943         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
944         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
945         Add a dependency on the "lock" module.
946
947 2013-07-20  Daiki Ueno  <ueno@gnu.org>
948
949         localecharset: make locale_charset thread-safe on Mac OS X
950         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
951         instead of MB_CUR_MAX.
952
953 2013-07-20  Daiki Ueno  <ueno@gnu.org>
954
955         gettext: update to version 0.18.3
956         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
957         require AC_PROG_SED to allow user to specify custom sed command when
958         generating en@quot PO file.
959
960 2013-07-18  Werner Lemberg <wl@gnu.org>  (tiny change)
961
962         bootstrap: use correct source when copying build-aux files
963         * build-aux/bootstrap (gnulib_extra_files): This variable is
964         relative to upstream gnulib layout, not downstream.
965
966 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
967
968         tmpdir: fix bug in VMS port
969         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
970         See Steven M. Schweda in
971         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00026.html>.
972
973 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
974
975         tmpdir: port to VMS, to // != /, and to long dirs
976         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
977         __secure_getenv, so that we're more like the glibc version.
978         All uses changed.
979         (path_search): Don't put slash after directory if __VMS.
980         Problem reported by Steven M. Schweda in
981         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00019.html>.
982         Simplify code to add slash; no need for a loop.
983         Do not remove trailing slash from "//".
984         Do not assume dlen <= INT_MAX.
985
986 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
987
988         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
989         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
990         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
991         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00015.html>.
992
993         accept4, dup3, pipe2: port to Cygwin
994         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
995         * lib/accept4.c (accept4) [O_BINARY]:
996         * lib/dup3.c (dup3) [O_BINARY]:
997         * lib/pipe2.c (pipe2) [O_BINARY]:
998         Use set_binary_mode, not setmode.
999         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
1000         * modules/binary-io (Depends-on): Remove module indicator.
1001         These last two bits undo the previous change to pipe2 and binary-io.
1002
1003 2013-07-09  Pádraig Brady  <P@draigBrady.com>
1004
1005         mountlist: add support for deallocating returned list entries
1006         * lib/mountlist.c (free_mount_entry): A new exported function
1007         to deallocate a mount list entry.
1008         (read_file_system_list): Refactor to use the new deallocation function.
1009         Suggested by Anton Ovchinnikov.
1010
1011 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
1012
1013         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
1014         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
1015         * lib/stdalign.in.h (_Alignas, _Alignof):
1016         Port to FreeBSD 9.1, and to C11 and C++11.
1017         (_Alignas): Also support ICC.
1018         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
1019         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
1020
1021 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
1022
1023         fnmatch: don't goto over declaration
1024         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
1025         undefined behavior for goto over a declaration.
1026         Problem reported by Charlie Brown in
1027         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00009.html>.
1028
1029         pipe2: decouple from binary-io a bit
1030         This is for Emacs, which needs pipe2 but not binary-io.
1031         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
1032         * modules/binary-io (Depends-on): Add module indicator.
1033
1034 2013-07-03  Eric Blake  <eblake@redhat.com>
1035
1036         mgetgroups: relax license to LGPLv2+
1037         * modules/getugroups (License): Change from GPLv3+.
1038         * modules/mgetgroups (License): Likewise.
1039         * modules/getgroups (License): Change from LGPLv3+.
1040
1041         xalloc-oversized: relax license to LGPLv2+
1042         * modules/xalloc-oversized (License): Change from GPLv3+.
1043
1044         nproc: relax license to LGPLv2+
1045         * modules/nproc (License): Change from LGPLv3+.
1046
1047         bootstrap: honor --no-git
1048         * build-aux/bootstrap: Don't even try to use git when user is
1049         pointing to a static checkout.
1050
1051 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
1052
1053         ignore-value: port to gcc -pedantic
1054         * lib/ignore-value.h (ignore_value):
1055         Port to gcc -pedantic, by using __extension__.
1056         Reindent as per usual gnulib style nowadays.
1057         Simplify GCC version check.
1058
1059 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
1060
1061         extern-inline: port to gcc -std=c89
1062         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
1063         Do not use __gnu_inline__ if pedantic and pre-C99.
1064
1065 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
1066
1067         doc: document extern-inline
1068         * doc/extern-inline.texi: New file.
1069         * doc/gnulib.texi (alloca-opt): Include it.
1070         * m4/extern-inline.m4: Move some comments to documentation,
1071         and others closer to what they describe.
1072
1073         doc: chatter less
1074         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
1075         (updated-stamp): Use it.  This causes 'make' to output just
1076         one file name rather than zillions.
1077
1078         fflush, fseeko: port to musl cross-compiles
1079         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
1080         on some implementation that (1) is not known to be buggy,
1081         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
1082         cross-compiled to so we can't easily check for lack of
1083         conformance.  This is for cross-compiling to musl.
1084         Reported by Rich Felker in
1085         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00043.html>.
1086         * m4/fclose.m4 (gl_FUNC_FCLOSE):
1087         * m4/fflush.m4 (gl_FUNC_FFLUSH):
1088         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
1089         Adjust to above change.
1090         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
1091         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
1092         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
1093         known not to work, or unknown.
1094
1095 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
1096
1097         msvc-inval: port to mingw-w64
1098         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
1099         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
1100         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00039.html>.
1101
1102 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
1103
1104         getcwd-lgpl: port to Tru64
1105         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
1106         Problem reported by Steven M. Schweda in
1107         <http://lists.gnu.org/archive/html/bug-gzip/2013-06/msg00010.html>.
1108
1109         tests: port large-fd POSIX spawn tests to OS X
1110         Problem reported by Daiki Ueno in
1111         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00031.html>.
1112         * tests/test-posix_spawn_file_actions_addclose.c:
1113         * tests/test-posix_spawn_file_actions_adddup2.c:
1114         * tests/test-posix_spawn_file_actions_addopen.c:
1115         Include <limits.h>, for OPEN_MAX, if available.
1116         (big_fd): New static function.
1117         (main): Use it.
1118
1119 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
1120
1121         tests/nap.h: use an adaptive delay to avoid ctime update issues
1122         The recent change in nap.h (5191133e) decreased the probability of lost
1123         races to about a third, however such problems could still be observed
1124         in virtual machines and openSUSE's OBS.
1125         Before, nap() detected the needed time once empirically and then used
1126         that delay (together with a small correction multiplier) in further
1127         calls.  This problem has been reported and discussed several times,
1128         including guesses about possible kernel issues:
1129         https://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00071.html
1130         http://lists.gnu.org/archive/html/coreutils/2012-03/msg00088.html
1131         https://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00226.html
1132         http://bugs.gnu.org/12820
1133         https://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html
1134         https://lists.gnu.org/archive/html/bug-gnulib/2009-11/msg00007.html
1135         Now, nap() avoids the race alltogether by verifying on a reference
1136         file whether a timestamp difference has happened.
1137         * tests/nap.h (nap_fd): Define file descriptor variable for the
1138         witness file.
1139         (nap_works): Change return value to bool.  Change passing
1140         the old file's status by value instead of by reference as this function
1141         does no longer update that timestamp; rename the function argument from
1142         st to old_st.  Remove the local variables cdiff and mdiff because that
1143         function now returns true/false instead of the precise delay.
1144         (guess_delay): Remove function.
1145         (clear_tmp_file): Add new function to close and unlink the witness file.
1146         (nap): Instead of re-using the delay which has been calculated during
1147         the first call, avoid the race by actually verifying that a timestamp
1148         difference can be observed on the current file system.  Use an adaptive
1149         approach for the delay to minimize execution time.  Assert that the
1150         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
1151         = 2^31 - 1 = 2.1s.
1152         Use atexit to call clear_tmp_file when the process terminates.
1153
1154 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
1155
1156         sig2str: port to C++
1157         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
1158         Reported by Daniel J Sebald in
1159         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00000.html>.
1160
1161 2013-05-30  Eric Blake  <eblake@redhat.com>
1162
1163         docs: mention cygwin shortcoming in <sys/un.h>
1164         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
1165
1166         vasnprintf: silence mingw compiler warning
1167         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
1168
1169 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
1170
1171         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
1172         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
1173         This fixes a porting bug I recently reintroduced in regex, and
1174         some other instances that I discovered while testing the fix.
1175         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
1176         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
1177         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
1178         with an empty argument if this is a pedantic pre-C99 GCC.
1179         * lib/verify.h: Do not use _Static_assert if this is a pedantic
1180         pre-C11 GCC.
1181
1182         regex: adapt to locking regime instead of depending on pthread
1183         Instead of depending on pthread, adapt to whatever thread
1184         modules are in use.  Problem reported by Ludovic Courtès in
1185         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00082.html>
1186         and by Mats Erik Andersson in
1187         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00100.html>.
1188         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
1189         Support either the 'lock' module, or the 'pthread' module, or
1190         no module.
1191         (lock_lock, lock_unlock): New macros.
1192         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
1193         * modules/lock, modules/pthread (configure.ac): Add module indicator.
1194         * modules/regex (Depends-on): Remove pthread.
1195
1196 2013-05-22  Eric Blake  <eblake@redhat.com>
1197
1198         getgroups: document portability issues
1199         * doc/glibc-functions/initgroups.texi (initgroups): Mention
1200         multithread safety.
1201         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
1202         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
1203         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
1204         getugroups.
1205         * doc/posix-functions/getgroups.texi (getgroups): Mention
1206         multithread safety and mgetgroups.
1207
1208 2013-05-22  Bernhard Voelker <mail@bernhard-voelker.de>
1209
1210         test-lchown, test-chown: also skip test if chown fails with EPERM
1211         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
1212         skip this test, to handle FAT file systems.
1213         * tests/test-chown.h (test_chown): Likewise.
1214
1215 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
1216
1217         regex: fix dfa race in multithreaded uses
1218         Problem reported by Ludovic Courtès in
1219         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00058.html>.
1220         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
1221         New macros.  All uses of __libc_lock_define, __libc_lock_init
1222         changed to use the first two of these.
1223         (__libc_lock_lock, __libc_lock_unlock): New macros, for
1224         non-glibc platforms.
1225         (struct re_dfa_t): Define the lock unconditionally.
1226         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
1227         '#ifdef _LIBC"s.
1228         * modules/regex (Depends-on): Add pthread, if we use the
1229         included regex.
1230
1231         * lib/regcomp.c: Do actions that are not needed for glibc,
1232         but may be needed elsewhere.
1233         (regfree, re_compile_internal): Destroy the lock.
1234         (re_compile_internal): Check for lock-initialization failure.
1235
1236         malloca: port to compilers that reject size-zero arrays
1237         This fixes a bug introduced in my previous patch.
1238         * lib/malloca.c (struct preliminary_header): Use an int
1239         rather than a character array of size int; that's simpler.
1240         (struct header): Remove, replacing with ...
1241         (union header): New type.  This avoids the need for declaring a
1242         character array of size zero, which is not allowed on some platforms.
1243         All uses changed.
1244
1245 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
1246
1247         parse-datetime, tests: don't use "string" + int
1248         Recent versions of 'clang' complain about C source code that
1249         uses expressions of the form '"string literal" + integer',
1250         I guess on the theory that it's confusing for readers who are
1251         used to C++.  On those grounds I suppose it's OK to make this
1252         minor style change.
1253         * lib/parse-datetime.y (parse_datetime):
1254         * tests/test-fchdir.c (main):
1255         * tests/test-snprintf-posix.h (test_function):
1256         * tests/test-snprintf.c (main):
1257         * tests/test-vasnprintf-posix.c (test_function):
1258         * tests/test-vasnprintf.c (test_function):
1259         * tests/test-vsnprintf.c (main):
1260         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
1261         Rewrite '"str" + E' to '&"str"[E]'.
1262
1263 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
1264
1265         argmatch: port to C++
1266         * lib/argmatch.h [__cplusplus]: Add extern "C".
1267
1268         argp: typo fix
1269         * lib/argp-help.c: Typo in comment.
1270
1271 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
1272
1273         manywarnings: update for GCC 4.8.0
1274         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
1275         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
1276         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
1277         -Wmissing-noreturn, as they are duplicates of other warnings.
1278         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
1279         was documented to be flaky in earlier versions of GCC.
1280
1281         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
1282         * tests/test-spawn.c (main):
1283         * tests/test-sys_socket.c (main):
1284         * tests/test-sys_wait.c (main):
1285         Don't have a switch value that isn't covered by a case.
1286
1287         getaddrinfo-tests: port --enable-gcc-warnings to clang
1288         * tests/test-getaddrinfo.c (simple):
1289         Avoid casts from looser to stricter-aligned pointers.
1290
1291         thread: port --enable-gcc-warnings to clang
1292         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
1293         Include <signal.h>, to pacify a warning about pthread_sigmask.
1294
1295         stdio: use __REDIRECT for fwrite, fwrite_unlocked
1296         * lib/stdio.in.h (fwrite):
1297         When working around bug 11959, use __REDIRECT rather than '#define
1298         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
1299         fix the -Wunused-value issue with clang, and it works with GCC too.
1300         Problem with targeting reported by Eric Blake in
1301         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00067.html>.
1302         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
1303         debugging the fwrite issue.
1304
1305         stdio: port --enable-gcc-warnings to clang
1306         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
1307         since the GCC workaround for fwrite does not pacify clang.
1308
1309         sig2str: port --enable-gcc-warnings to clang
1310         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
1311
1312         obstack: port --enable-gcc-warnings to clang
1313         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
1314         Avoid casts from looser to stricter-aligned pointers.
1315
1316         memchr2: port --enable-gcc-warnings to clang
1317         * lib/memchr2.c (memchr2):
1318         Avoid casts from looser to stricter-aligned pointers.
1319
1320         mbsstr: port --enable-gcc-warnings to clang
1321         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
1322         Avoid casts from looser to stricter-aligned pointers.
1323
1324         malloca: port --enable-gcc-warnings to clang
1325         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
1326         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
1327
1328         inttostr: port --enable-gcc-warnings to clang
1329         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
1330
1331         warnings: port to clang
1332         Problem reported by Daniel P. Berrange via Eric Blake in
1333         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00055.html>.
1334         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
1335         (gl_WARN_ADD): Use it.
1336
1337 2013-05-11  Jim Meyering  <meyering@fb.com>
1338
1339         quotearg: do not read beyond end of buffer
1340         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
1341         end of an ARG for which no length was specified.  With an N-byte
1342         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
1343         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
1344         via coreutils' misc/sort-debug-keys.sh test and detected by running
1345         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
1346         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
1347         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
1348         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
1349         characters correctly."
1350
1351 2013-05-11  Daiki Ueno  <ueno@gnu.org>
1352
1353         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
1354         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
1355         compilation target is Mac OS X 10.6.
1356         Problem reported by parafin and Andoni Morales in
1357         <http://savannah.gnu.org/bugs/?37844> and
1358         <http://lists.gnu.org/archive/html/bug-gettext/2013-05/msg00007.html>.
1359
1360 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
1361
1362         mkdir-p: remove assumptions about umask and mode
1363         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
1364         umask is 0, or that MODE is a subset of MODE_BITS.
1365
1366 2013-05-10  Eric Blake  <eblake@redhat.com>
1367
1368         maint.mk: catch more abuse of HAVE_DECL in syntax-check
1369         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
1370
1371 2012-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
1372
1373         deps: require Automake >= 1.9.6 in generated Makefile fragments
1374
1375         That is the same minimal version required in the DEPENDENCIES file.
1376         Moreover, the old code generated a requirement of Automake >= 1.5,
1377         and that is an insanely outdated version.
1378
1379         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
1380         * tests/havelib/rpathlx/Makefile.am: Likewise.
1381         * tests/havelib/rpathly/Makefile.am: Likewise.
1382         * tests/havelib/rpathlyx/Makefile.am: Likewise.
1383         * tests/havelib/rpathlz/Makefile.am: Likewise.
1384         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
1385         * tests/havelib/rpathx/Makefile.am: Likewise.
1386         * tests/havelib/rpathy/Makefile.am: Likewise.
1387         * tests/havelib/rpathz/Makefile.am: Likewise.
1388
1389 2013-05-08  Eric Blake  <eblake@redhat.com>
1390
1391         bootstrap: AC_INIT may have more than four parameters
1392         * build-aux/bootstrap (extract_package_name): Correctly extract
1393         non-empty tarname field.  Avoid range in regex.
1394         Based on a report by Sami Kerola <kerolasa@iki.fi>.
1395
1396 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
1397
1398         qacl: port to MS-Windows port of GNU Emacs
1399         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
1400         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
1401         port of GNU Emacs.  Problem reported by Eli Zaretskii in
1402         <http://bugs.gnu.org/14295#14>.
1403
1404 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
1405
1406         acl: include quote.h
1407         * lib/copy-acl.c: Include quote.h.
1408         * lib/set-acl.c: Likewise.
1409
1410 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
1411
1412         fchownat, renameat, unlinkat: update statat dependencies
1413         These modules use statat and lstatat, not fstatat; so depend on
1414         the statat module, which was split out recently from fstatat.
1415         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
1416         * modules/renameat: Likewise.  Also delete fstat.
1417         URL: http://bugs.gentoo.org/468790
1418
1419 2012-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
1420
1421         Assume gnulib is checked out from Git, not CVS
1422
1423         In fact, access to the gnulib repository through CVS has been
1424         disabled, or more precisely, got broken and was never restored; see:
1425         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00008.html>
1426
1427         Note that support for CVS is not removed completely and unthinkingly
1428         by this change: only support for CVS checkouts of gnulib itself is
1429         removed.  For example, the 'bootstrap' script still cater to .cvsingore
1430         files and CVS directories, for the benefit of those poor gnulib clients
1431         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
1432
1433         * gnulib-tool: Simplify accordingly.
1434         * posix-modules: Likewise.
1435         * MODULES.html.sh: Likewise.
1436         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
1437         repository.
1438         * doc/gnulib-intro.texi: Likewise.
1439         * doc/gnulib-readme.texi: Likewise.
1440         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
1441         sample '.gitignore' file rather than a sample '.cvsignore'.
1442         * NEWS: Update.
1443         * m4/extensions.m4: While at it, remove a comment mistakenly referring
1444         to "CVS Autoconf" rather than "git Autoconf".
1445
1446 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
1447
1448         utimensat-tests, etc.: try to fix some races
1449         Problem reported by Bernhard Voelker in
1450         <http://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00071.html>.
1451         I don't know whether this patch fixes that race condition, but it
1452         fixes *some* race conditions, so it should be a win.
1453         * modules/chown-tests (Depends-on):
1454         * modules/fchownat-tests (Depends-on):
1455         * modules/fdutimensat-tests (Depends-on):
1456         * modules/futimens-tests (Depends-on):
1457         * modules/lchown-tests (Depends-on):
1458         * modules/stat-time-tests (Depends-on):
1459         * modules/utimens-tests (Depends-on):
1460         * modules/utimensat-tests (Depends-on):
1461         Depend on nanosleep, not usleep.
1462         * modules/chown-tests (test_chown_LDADD):
1463         * modules/lchown-tests (test_lchown_LDADD):
1464         * modules/stat-time-tests (test_stat_time_LDADD):
1465         New macro.
1466         * modules/fchownat-tests (test_fchownat_LDADD):
1467         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
1468         * modules/futimens-tests (test_futimens_LDADD):
1469         * modules/utimens-tests (test_utimens_LDADD):
1470         * modules/utimensat-tests (test_utimensat_LDADD):
1471         Add $(LIB_NANOSLEEP).
1472         * modules/stat-time-tests (Files): Add tests/nap.h.
1473         * tests/nap.h: Include <limits.h>, for INT_MAX.
1474         (lt_mtime): Remove.
1475         (diff_timespec): New function.
1476         (get_stat): Rename from get_mtime.  All callers changed.
1477         (nap_works): Determine the needed delay by inspecting the
1478         file system's timestamp jumps; this should be more reliable.
1479         Look at both mtime and ctime, and take the maximum of the two jumps.
1480         (nap_works, guess_delay):
1481         Return a nanosecond cound, not a microsecond count.
1482         All callers changed.
1483         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
1484         failure.
1485         (nap): Multiply the guess by 1.125, to accommodate the case where
1486         the file system's clock is a bit slower than nanosleep's clock.
1487         * tests/test-stat-time.c (BASE): New macro.
1488         Include nap.h.
1489         (nap): Remove; nap.h now defines this.  This removes a duplicate
1490         implementation of 'nap'.
1491
1492         utimens, utimensat: work around Solaris UTIME_OMIT bug
1493         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
1494         Linux kernel 2.6.32 does.  Work around it in the same way.
1495         * doc/posix-functions/futimens.texi (futimens):
1496         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
1497         * lib/utimens.c (fdutimens, lutimens):
1498         * lib/utimensat.c (rpl_utimensat): Work around the bug.
1499
1500         gettext: now it's your responsibility to add -I$(top_builddir)/intl
1501         Formerly, it was your responsibility to do this for all Makefile.ams
1502         other than Gnulib's.  Now it's your responsibility to do it for
1503         Gnulib's Makefile.am, too.
1504         * NEWS: Document this.
1505         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
1506
1507         acl: include errno.h to get errno
1508         Reported by Daiki Ueno in
1509         <http://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00073.html>.
1510         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
1511
1512 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
1513
1514         tests: don't assume getdtablesize () <= 10000000
1515         * modules/cloexec-tests:
1516         * modules/dup2-tests:
1517         * modules/dup3-tests:
1518         * modules/nonblocking-tests:
1519         * modules/posix_spawn_file_actions_addclose-tests:
1520         * modules/posix_spawn_file_actions_adddup2-tests:
1521         * modules/posix_spawn_file_actions_addopen-tests:
1522         * modules/unistd-safer-tests:
1523         Depend on the getdtablesize module.
1524         * tests/test-cloexec.c:
1525         * tests/test-dup-safer.c:
1526         * tests/test-dup2.c:
1527         * tests/test-dup3.c:
1528         * tests/test-fcntl.c:
1529         * tests/test-nonblocking.c:
1530         * tests/test-posix_spawn_file_actions_addclose.c:
1531         * tests/test-posix_spawn_file_actions_adddup2.c:
1532         * tests/test-posix_spawn_file_actions_addopen.c:
1533         Don't assume getdtablesize () <= 10000000.
1534
1535 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
1536
1537         extern-inline: work around bug in Sun c99
1538         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
1539         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
1540
1541 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
1542
1543         qacl: new module, broken out from the acl module
1544         This is for GNU Emacs, which wants the acl functions but does
1545         not want 'error' invoked when they fail.
1546         * lib/acl-internal.h: Do not include error.h, quote.h.
1547         (ENOSYS, ENOTSUP): Remove; no longer needed.
1548         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
1549         * lib/acl.h: Include <stdbool.h>.
1550         (acl_errno_valid): New function.
1551         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
1552         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
1553         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
1554         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
1555         (ACL_INTERNAL_INLINE): Remove; no longer needed.
1556         * lib/file-has-acl.c (file_has_acl):
1557         * lib/qcopy-acl.c (qcopy_acl):
1558         * lib/qset-acl.c (qset_acl):
1559         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
1560         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
1561         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
1562         lib/file-has-acl.c, m4/acl.m4 to qacl module.
1563         Add lib/set-acl.c.
1564         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
1565         Add qacl.
1566         (configure.ac): Move gl_FUNC_ACL to qacl module.
1567         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
1568         Rename set-mode-acl.c to set-acl.c.
1569         * lib/acl-errno-valid.c: New file.
1570         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
1571         copy_acl function remains in copy-acl.c.
1572         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
1573         (_): Remove; not needed.
1574         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
1575         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
1576         * modules/qacl: New file, moved from the old modules/acl.
1577         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
1578         Remove set-mode-acl.c, copy-acl.c.
1579         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
1580
1581         alignof, intprops, malloca: port better to IBM's C compiler
1582         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
1583         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
1584         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
1585
1586 2013-04-25  Daiki Ueno  <ueno@gnu.org>
1587
1588         wctype-h: fix gettext link error on mingw
1589         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
1590         <https://lists.gnu.org/archive/html/bug-gettext/2013-03/msg00086.html>.
1591         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
1592         rpl_towupper and rpl_towupper.
1593
1594 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
1595
1596         regex-tests, regex: allow glibc re_search behavior
1597         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
1598         re_search input data to make the multi-character collating element
1599         in it clearly visible, and treat re_search return code 0 as valid.
1600         * m4/regex.m4 (gl_REGEX): Likewise.
1601
1602 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
1603
1604         stdalign: doc fix
1605         * doc/posix-headers/stdalign.texi (stdalign.h):
1606         Gnulib doesn't support '_Alignof expr'.
1607
1608 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
1609
1610         stdalign: port to stricter ISO C11
1611         ISO C11 says that _Alignof's operand must be a parenthesized type.
1612         Problem reported by Eli Zaretskii in
1613         <http://lists.gnu.org/archive/html/emacs-devel/2013-03/msg00960.html>.
1614         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
1615         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
1616
1617 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
1618
1619         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
1620         Problem reported by Marco Atzeri in
1621         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00000.html>.
1622         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
1623         Simply delegate to the system <sys/select.h> in this case too.
1624         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
1625         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
1626         be needed on Solaris either.
1627         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
1628         Simply delegate to the system <sys/time.h> in this case.
1629
1630 2013-03-19  Karl Berry  <karl@gnu.org>
1631
1632         * build-aux/gnupload: check for erroneous (with gnupload) use of
1633         ftp-upload.gnu.org, tweak help.
1634
1635 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
1636
1637         copy-file, rpmatch: fix problems found by cppcheck
1638         Reported by Arno Onken in
1639         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00069.html>.
1640         * lib/rpmatch.c (try): Fix memory leak.
1641         * lib/copy-file.c: Include "ignore-value.h".
1642         (qcopy_file_preserving): Ignore chown value.
1643         * modules/copy-file (Depends-on): Add ignore-value.
1644
1645 2013-01-27  Jim Meyering  <jim@meyering.net>
1646
1647         prefix-gnulib-mk: give better diagnostics
1648         * build-aux/prefix-gnulib-mk: Don't just "die".
1649         Give better diagnostics upon failure.
1650
1651 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
1652
1653         putenv: port to Solaris 10
1654         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
1655         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
1656         is not what is wanted here.
1657         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
1658         declaration, not for its existence.
1659
1660 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
1661
1662         mktime: fix configure typo
1663         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
1664
1665 2013-03-12  Eric Blake  <eblake@redhat.com>
1666
1667         regex-tests: skip UTF-8 test on mingw
1668         * modules/regex-tests (Depends-on): Add localcharset.
1669         * tests/test-regex.c (main): Use it to skip test on mingw.
1670
1671 2013-03-11  Eric Blake  <eblake@redhat.com>
1672
1673         tests: make it easier to bypass alarm time in debugger
1674         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
1675         * tests/test-memmem.c (main): Likewise.
1676         * tests/test-passfd.c (main): Likewise.
1677         * tests/test-ptsname.c (main): Likewise.
1678         * tests/test-ptsname_r.c (main): Likewise.
1679         * tests/test-strcasestr.c (main): Likewise.
1680         * tests/test-strstr.c (main): Likewise.
1681
1682         regex: port to mingw's recent addition of undeclared alarm
1683         * doc/posix-functions/alarm.texi (alarm): Document that alarm
1684         exists but still doesn't work in newer mingw.
1685         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
1686         not existence.  Ensure SIGALRM is not trapped.
1687         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
1688         * m4/regex.m4 (gl_REGEX): Likewise.
1689         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
1690         * tests/test-regex.c (main): Use correct probe for alarm.
1691
1692         putenv: avoid compilation warning on mingw
1693         * lib/putenv.c (_unsetenv): Protect variable declaration.
1694         (putenv): Fix indentation.
1695
1696 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
1697
1698         unistd: don't prevent Tru64 Unix from using gnulib strtod.
1699         * lib/unistd.in.h: be careful not to include un-needed system
1700         stdlib.h from here, because that prevents gnulib stdlib.h from
1701         defining rpl_strtod correctly.
1702
1703 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
1704
1705         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
1706         changesets, but for the 'precision 0' test.
1707         * tests/test-vasprintf-posix.c (test_function): Don't insist on
1708         round-to-even, since POSIX says rounding is implementation-defined
1709         and OS X 10.8.2 rounds 1.51 to 1 here.
1710
1711         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
1712         changeset.
1713         * tests/test-vasprintf-posix.c (test_function): Don't insist on
1714         round-to-even, since POSIX says rounding is implementation-defined
1715         and OS X 10.8.2 rounds 1.5 to 1 here.
1716
1717 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1718
1719         vasnprintf-posix-tests: allow rounding 1.5 to 1
1720         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
1721         round-to-even, since POSIX says rounding is implementation-defined
1722         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
1723         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00019.html>.
1724
1725         bootstrap: port to FreeBSD
1726         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
1727         that treat '--' differently.  Reported by Mats Erik Andersson in
1728         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00012.html>.
1729
1730 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
1731
1732         regex: rename remaining __attribute calls to __attribute__.
1733         2012-02-25 changed definition of __attribute, but left some uses
1734         unchanged, preventing compilation of regex module on most non-gcc
1735         environments.
1736         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
1737         (lookup_collation_sequence_value, build_range_exp)
1738         (build_collating_symbol): Set attributes with newly renamed
1739         __attribute__ decorator.
1740         * lib/regex_internal.c (re_string_peek_byte_case)
1741         (re_node_set_compare, re_node_set_contains): Likewise.
1742         * lib/regexec.c (acquire_init_state_context): Likewise.
1743
1744 2013-03-06  Bruno Haible  <bruno@clisp.org>
1745
1746         execute: Revert last change, but use a different condition.
1747         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
1748         on Windows.
1749
1750 2013-03-05  Eric Blake  <eblake@redhat.com>
1751
1752         execute: drop dead code
1753         * lib/execute.c (nonintr_close, nonintr_open): Delete.
1754
1755 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
1756
1757         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
1758         * m4/non-recursive-gnulib-prefix-hack.m4
1759         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
1760         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
1761         <http://bugs.gnu.org/10305#237>.
1762
1763 2013-03-04  Eric Blake  <eblake@redhat.com>
1764
1765         test-getsockopt: avoid compiler warning
1766         * tests/test-getsockopt.c (includes): Ensure close is declared.
1767
1768 2013-03-02  Bruno Haible  <bruno@clisp.org>
1769
1770         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
1771         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
1772
1773 2013-03-02  Bruno Haible  <bruno@clisp.org>
1774
1775         gettext: Update to version 0.18.2.
1776         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
1777         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
1778                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
1779
1780 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
1781
1782         regex: merge patches from libc
1783
1784         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
1785         * lib/regex_internal.h (__attribute__): Rename from __attribute.
1786         All uses changed.
1787         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
1788         (re_string_wchar_at, re_string_elem_size_at):
1789         Mark function as possibly unused.
1790
1791         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
1792         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
1793         elements compare against the byte sequence of it, not its name.
1794
1795 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
1796
1797         putenv: port better to native Windows
1798         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
1799         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
1800         (_unsetenv): Use _putenv if available.
1801         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
1802         a bit less likely to cause damage.
1803         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
1804         Fix the wrong value with SetEnvironmentVariable.
1805         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
1806         code better.
1807
1808 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
1809
1810         regex: ignore old-style-definition warnings
1811         * lib/regex.c: Add pragma to ignore these warnings.
1812         Problem reported for GNU tar by Pavel Raiskup.
1813
1814 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
1815
1816         getcwd: support coreutils better
1817         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
1818         but this might not be correct in coreutils, which disables
1819         the raw decl checks.  Problem reported by Nagendra in
1820         <http://bugs.gnu.org/10305#192>.
1821         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
1822         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
1823         Test the getcwd function, not any macro, since getcwd.c wants the
1824         function.
1825         * m4/getcwd.m4 (gl_FUNC_GETCWD):
1826         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
1827         compile, as might happen if there's a macro but no function.
1828
1829         strtod: support coreutils better
1830         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
1831         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
1832         disables the raw decl checks.  This assumes there is an underlying
1833         strtod, but that's a safe assumption these days.
1834         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
1835
1836         mountlist: port to HP NonStop
1837         Reported by Joachim Schmitz in
1838         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00084.html>.
1839         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
1840         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
1841
1842 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
1843
1844         extern-inline: avoid compilation error with HP-UX cc
1845         Reported by Richard Lloyd in
1846         <http://lists.gnu.org/archive/html/bug-texinfo/2013-02/msg00030.html>.
1847         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
1848         Suppress extern inline with HP-UX cc.  This should be safe,
1849         though it may hurt performance.  Perhaps someone with some HP-UX
1850         experience can come up with a higher-performance fix.
1851
1852 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
1853
1854         putenv: fix heap corruption with mixed putenv/_putenv
1855         Problem reported by Michael Goffioul in
1856         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00061.html>.
1857         * lib/putenv.c (putenv) [HAVE__PUTENV]:
1858         Rely on _putenv to allocate the new environment.
1859         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
1860         * modules/putenv (configure.ac): Use it.
1861
1862 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
1863
1864         unsetenv etc.: port to Solaris 11 + GNU Emacs
1865         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
1866         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
1867         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
1868         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
1869         idea but is too painful to fix right now), and without this gnulib
1870         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
1871         compiling unsetenv.c on Solaris 11.  Fix the problem for
1872         unsetenv.c, and fix other similar occurrences.
1873
1874 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
1875
1876         secure_getenv: fix C++ declaration typo
1877         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
1878         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
1879         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00057.html>.
1880
1881 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
1882
1883         careadlinkat: stop exporting careadlinkatcwd
1884         Only Emacs used it directly, and Emacs no longer needs it.
1885         * NEWS: Document this simplification.
1886         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
1887         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
1888         for readlink.
1889         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
1890         Don't include stdlib.h; no longer needed.
1891         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
1892         * lib/relocwrapper.c: Adjust comment to match new dependencies.
1893         * modules/areadlink (Depends-on): Add readlink.
1894         (Maintainer): Add self.
1895         * modules/careadlinkat (Depends-on): Remove readlink.
1896
1897         extensions: port better to HP-UX
1898         This is merged from git Autoconf.
1899         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
1900         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
1901         so that it's compatible with the value used when compiling.
1902
1903         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
1904         Problem reported by Mats Erik Andersson in
1905         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00051.html>.
1906         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
1907         openpty function exists, not merely when we intend to replace it.
1908         This corrects the 2013-01-31 patch, which mistakenly defined
1909         HAVE_OPENPTY even on hosts that lacked it.
1910
1911 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
1912
1913         secure_getenv: fix include typo
1914         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
1915
1916         secure_getenv: port better to FreeBSD and Solaris
1917         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
1918         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
1919         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
1920         This works better on BSDish platforms.
1921         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
1922         Test for issetugid if __secure_getenv is missing.
1923
1924 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
1925
1926         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
1927         Some of these changes are merged in from git Autoconf.
1928         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
1929         When deciding whether to define _XOPEN_SOURCE, inspect the
1930         preprocessor macro __hpux instead of the more-heavyweight
1931         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
1932         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
1933         as the key for __EXTENSIONS__.
1934
1935         unistd: avoid namespace pollution on non-glibc systems
1936         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
1937         This avoids namespace pollution on non-glibc systems, by causing
1938         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
1939         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
1940         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00027.html>.
1941
1942 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
1943
1944         tmpdir: use secure_getenv
1945         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
1946         Define to secure_getenv, not getenv.
1947         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
1948         as that's now secure_getenv's job.
1949         * modules/tmpdir (Depends-on): Add secure_getenv.
1950
1951         tempname: use secure_getenv
1952         * lib/tempname.c (__secure_getenv) [!_LIBC]:
1953         Define to secure_getenv, not getenv.
1954         * modules/tempname (Depends-on):
1955         Add secure_getenv.
1956
1957         secure_getenv: new module
1958         * MODULES.html.sh (Extra functions based on ANSI C 89):
1959         Add secure_getenv.
1960         * doc/glibc-functions/secure_getenv.texi: New file.
1961         * doc/gnulib.texi: Include it.
1962         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
1963         New files.
1964         * lib/stdlib.in.h (secure_getenv): New decl.
1965         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
1966         * modules/stdlib (stdlib.h):
1967         Add secure_getenv checks.
1968
1969 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
1970
1971         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
1972         Reported for OS X 10.8.2 by Assaf Gordon in
1973         <http://bugs.gnu.org/13516>.
1974         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
1975         !HAVE_OPENAT && !HAVE_FDOPENDIR.
1976         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
1977         so that they can be kept in sync more easily.  Avoid PATH_MAX
1978         test on the Hurd.  Sync from test-getcwd.c for errno tests after
1979         mkdir or chdir failure.
1980         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
1981         lib/getcwd.c.
1982         (test_abort_bug): Do not test for the deep directory bug unless we
1983         have openat support.  Avoid PATH_MAX test on the Hurd.
1984
1985         regex-tests, regex: fix bug: memset undeclared
1986         * tests/test-regex.c: Don't include regex.h twice.  Include
1987         string.h, to declare memset.  Christensen's report also mentioned
1988         this issue.
1989         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
1990         test-regex.c, to avoid future problems like this.  Remove
1991         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
1992         twice.
1993
1994         regex-tests: fix link errors on older Solaris
1995         These need to link with @LIBINTL@ to get libintl_gettext.
1996         Problem reported by Tom G. Christensen in
1997         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00003.html>.
1998         * modules/regex-tests (test_regex_LDADD): New macro.
1999
2000 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
2001
2002         regex-tests: new module
2003         * modules/regex-tests, tests/test-regex.c: New files.
2004
2005         regex: fix off-by-one error in configure test
2006         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
2007
2008 2013-01-31  Eric Blake  <eblake@redhat.com>
2009
2010         regex: avoid infinite configure test
2011         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
2012
2013 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
2014
2015         openpty: fix bug where HAVE_OPENPTY wasn't defined
2016         See the thread starting at:
2017         http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00185.html
2018         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
2019         openpty function exists, not merely when we intend to replace it.
2020
2021 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
2022
2023         sys_time: port to Solaris 2.6
2024         There is a circularity problem on Solaris 2.6, where <time.h> includes
2025         <sys/time.h> for struct timespec.  The include nesting is gnulib
2026         <time.h>, system <time.h>, gnulib <sys/time.h>, system
2027         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
2028         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
2029         <sys/siginfo.h>; the last, innermost file needs struct
2030         timestruc_t, which is defined in <sys/time.h>, which has not been
2031         fully parsed.  Problem reported by Tom G. Christensen in
2032         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00113.html>.
2033         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
2034         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
2035         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
2036         uses split double-inclusion guards.
2037
2038 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
2039
2040         regex: test for buffer overrun
2041         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
2042         for the just-fixed regex bug.
2043
2044 2013-01-29  Andreas Schwab  <schwab@suse.de>
2045
2046         regex: fix buffer overrun in regexp matcher [BZ #15078]
2047         * lib/regexec.c (extend_buffers): Add parameter min_len.
2048         (check_matching): Pass minimum needed length.
2049         (clean_state_log_if_needed): Likewise.
2050         (get_subexp): Likewise.
2051
2052 2013-01-28  Pádraig Brady  <P@draigBrady.com>
2053
2054         mountlist: don't consider "devtmpfs" as dummy
2055         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
2056         as there is storage associcated with it.
2057
2058 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
2059
2060         futimens-tests, utimens-tests: Depend on gettext.
2061         This works around a problem introduced in my 2013-01-12 patch,
2062         which added @LIBINTL@ to these modules.
2063         * modules/futimens-tests (Depends-on):
2064         * modules/utimens-tests (Depends-on): Add gettext.
2065
2066 2013-01-26  Eric Blake  <eblake@redhat.com>
2067
2068         test-getpeername: fix typo
2069         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
2070
2071 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
2072
2073         bootstrap: remove the need for a sorted .gitignore file
2074         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
2075         rename to insert_if_absent(), so that we don't need or generate
2076         a sorted .gitignore file.  We do require a .gitignore with no
2077         existing duplicate entries and enforce that.
2078         (sort_patterns): Remove this function as we now use the simpler
2079         technigue of inserting blacklist entries at the top of the file,
2080         assuming gnulib won't be inserting !whitelist entries.
2081
2082 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
2083
2084         readlinkat: don't depend on gl_FUNC_OPENAT
2085         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
2086         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
2087         renameat.m4, symlinkat.m4; but one thing at a time.
2088
2089         statat: new module, split out from fstatat
2090         GNU Emacs needs the POSIX-specified fstatat, but not the
2091         gnulib-specified statat and lstat.  Split the latter two into a
2092         new module 'statat'.
2093         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
2094         * lib/openat.h, lib/statat.c (STATAT_INLINE):
2095         Rename from FSTATAT_INLINE. All uses changed.
2096         * modules/fstatat (Files): Remove lib/statat.c.
2097         (gl_MODULE_INDICATOR([fstatat])): Remove.
2098         (lib_SOURCES): Remove.
2099         (Maintainer): Add self.
2100         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
2101         * tests/test-fstatat.c (BASE): Don't define if already defined.
2102         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
2103
2104 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
2105
2106         tests: don't assume fd 99 is closed
2107         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
2108         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
2109         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
2110         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
2111         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
2112         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
2113         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
2114         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
2115         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
2116         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
2117         * tests/test-fwrite.c, tests/test-getpeername.c:
2118         * tests/test-getsockname.c, tests/test-getsockopt.c:
2119         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
2120         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
2121         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
2122         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
2123         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
2124         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
2125         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
2126         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
2127         * tests/test-unlinkat.c, tests/test-unlockpt.c:
2128         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
2129         Close file descriptor 99, instead of assuming it's already closed.
2130
2131 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
2132
2133         stpncpy: port to OS X 10.8
2134         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
2135         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
2136
2137 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
2138
2139         unistd: port to recent mingw
2140         * lib/unistd.in.h: Remove special invocation convention for mingw,
2141         which breaks for the latest mingw version.  See John W. Eaton in
2142         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00100.html>.
2143
2144         largefile: port better to Mac OS X 10.5
2145         This patch is backported from Autoconf git.
2146         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
2147         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
2148         with ino_t size being different for configuration time versus
2149         build/run time.  Problem reported by PHO in
2150         <http://lists.gnu.org/archive/html/bug-autoconf/2013-01/msg00040.html>.
2151
2152 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
2153
2154         doc: clarify -Werror
2155         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
2156         clarify that it's intended for developers, not for ordinary builds,
2157         and mention --enable-gcc-warnings as one possible use.
2158
2159 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
2160
2161         stdint: fix build with Android's Bionic fox x86
2162         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
2163         was already included as _SSIZE_T_DEFINED_ might also be defined
2164         in include/machine/_types.h, which is included by stdio.h
2165
2166 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
2167
2168         net_if-tests: port to Solaris 7 + GCC 3.4.6
2169         Problem reported by Tom G. Christensen in
2170         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00091.html>.
2171         * tests/test-net_if.c (ni): Move to next the code that uses it,
2172         so that it's declared only if needed.
2173
2174 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
2175
2176         net_if-tests: port to older Solaris
2177         Problem reported by Tom G. Christensen in
2178         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
2179         * modules/net_if-tests (NET_IF_LIB): New substitution.
2180         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
2181         (HAVE_IF_NAMEINDEX): New C macro.
2182         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
2183
2184         system-quote-tests: port to older Solaris
2185         Problem reported by Tom G. Christensen in
2186         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
2187         * tests/test-system-quote-child.c (fopen, fread): Undef.
2188
2189         c-xvasprintf etc.: fix link errors on older Solaris
2190         These need to link with @LIBINTL@ to get libintl_gettext.
2191         Problem reported by Tom G. Christensen in
2192         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
2193         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
2194         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
2195         * modules/futimens-tests (test_futimens_LDADD):
2196         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
2197
2198 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
2199
2200         locale: port to Solaris 2.6 and 7 + GNU gettext
2201         * lib/locale.in.h: Just include_next <locale.h> when
2202         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
2203         when combining the localename module with GNU gettext 0.18.2.
2204         Problem reported by Tom G. Christensen in
2205         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00084.html>.
2206
2207 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
2208
2209         stdlib: port to Solaris 2.6
2210         Also, the code worked on Solaris 7 through 9 only by accident.
2211         Problem reported by Tom G. Christensen in
2212         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00059.html>.
2213         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
2214         simply include the system stdlib.h.
2215         * lib/getopt.in.h (__need_system_stdlib_h):
2216         * lib/pthread.in.h (__need_system_stdlib_h):
2217         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
2218         Define when including <stdlib.h>, to avoid problems at least for
2219         the pthread case on Solaris 2.6 and 7.  These .h files can get by
2220         with the system stdlib.h.
2221
2222 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
2223
2224         doc: update main copyright year
2225         * doc/gnulib.texi: Update copyright date.
2226
2227         doc: improve ISO 8601 discussion
2228         * doc/parse-datetime.texi (Combined date and time of day items):
2229         Specify more carefully what formats are supported and what is
2230         done with excess precision.
2231
2232 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
2233
2234         doc: avoid small caps
2235         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
2236         they're more trouble than they're worth.  Suggested by Karl Berry
2237         in <http://bugs.gnu.org/13360>.
2238
2239         regex: conform to strict C
2240         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
2241         From Aharon Robbins.
2242
2243         gnulib-tool: fix incompatibility with autopoint 0.18.2
2244         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
2245         Problem reported by Tom G. Christensen in
2246         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00053.html>.
2247
2248 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
2249
2250         fprintftime: bring back and reword fwrite comment
2251         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
2252
2253         stdio: remove now-unnecessary stdio.c
2254         Since stdio.in.h no longer uses inline functions, we no longer
2255         need to compile the extern versions.
2256         * lib/stdio.c: Remove.
2257         * modules/stdio (Files): Remove lib/stdio.c.
2258         (lib_SOURCES): Remove.
2259
2260         unicodeio: depend on stdio, not ignore-value
2261         * lib/unicodeio.c: Do not include ignore-value.h.
2262         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
2263         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
2264
2265         fprintftime: depend on stdio, not ignore-value
2266         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
2267         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
2268         since the stdio module arranges to silence that warning now.
2269         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
2270
2271 2012-10-04  Simon Josefsson  <simon@josefsson.org>
2272
2273         stdint-tests: Fix expanded-before-required-warning.
2274         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
2275
2276 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
2277
2278         fwrite: silence __wur only for older glibc versions
2279         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
2280         This will help us remove this workaround some time in the far future.
2281
2282 2013-01-03  Eric Blake  <eblake@redhat.com>
2283
2284         fwrite: silence __wur without using inline
2285         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
2286         just gcc, and in a way that avoids inline issues.
2287         * modules/stdio (Depends-on): Drop extern-inline.
2288
2289 2013-01-03  Jim Meyering  <jim@meyering.net>
2290
2291         update-copyright: avoid copyright notice date corruption
2292         Given a sequence of copyright year numbers in which the final
2293         one was a two-digit number that happened to be a substring of
2294         a preceding four-digit year number, we would mistakenly update
2295         the substring (from two- to four-digit) rather than the two-digit
2296         number at the end, which, combined with the addition of the current
2297         4-digit year number would yield two 5-digit year numbers, e.g.,
2298         here, it would convert the first "99" to "1999, 2013" rather than
2299         the final one:
2300           1991, 99
2301           11999, 20131, 1999
2302         * build-aux/update-copyright: Tighten a regexp.
2303         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
2304         Reported by Joseph Myers in
2305         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
2306
2307 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
2308
2309         regex: omit needless signed-pointer casts
2310         * lib/regcomp.c (build_charclass, build_charclass_op):
2311         Use char *, not unsigned char *, for class name and extra.
2312         The char values are always nonnegative so there's no need to
2313         insist on unsigned char * here, and using char * removes the need
2314         for casts.  Reported by Aharon Robbins in
2315         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2316
2317         regex: support Gawk, which never uses alloca
2318         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
2319         Do not include in this case.  Gawk doesn't supply a substitute
2320         alloca.h and doesn't need one.
2321
2322         regex: port __libc_lock_define usage to C89
2323         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
2324         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
2325         does not conform to C89, as it has an empty macro argument.
2326         Reported by Aharon Robbins in
2327         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2328
2329 2013-01-01  Eric Blake  <eblake@redhat.com>
2330
2331         maint: update all copyright year number ranges
2332         Run "make update-copyright".
2333
2334         version-etc: bump copyright year reported in --version
2335         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
2336
2337 2012-12-31  Eric Blake  <eblake@redhat.com>
2338
2339         sigprocmask-tests: skip test if pid is unexpectedly large
2340         * tests/test-sigprocmask.c (main): Add range check.
2341
2342         git-version-gen: avoid test -z portability glitch
2343         * build-aux/git-version-gen: Prefer portable test spelling, since
2344         git-version-gen is run on more than just developer machines.
2345
2346 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
2347
2348         git-version-gen: add --fallback option to use if git is not present
2349         * build-aux/git-version-gen: Add support for the new option --fallback,
2350         which comes into play when there is no $tarball_version_file and
2351         git is not working.
2352         (scriptversion): Update.
2353
2354         maint.mk: handle missing git with more grace
2355         * top/maint.mk (no-submodule-changes, public-submodule-commit):
2356         Quietly proceed if git is not present.
2357
2358 2012-12-31  Eric Blake  <eblake@redhat.com>
2359
2360         dup2: work around cygwin bug
2361         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
2362         * lib/dup2.c (rpl_dup2): Work around it.
2363         * doc/posix-functions/dup2.texi (dup2): Document it.
2364
2365 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
2366
2367         regex: remove unnecessary dependency on localcharset.h
2368         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
2369         hasn't been needed for years.
2370         * modules/regex (Depends-on): Remove localcharset.
2371
2372         regex: revert single-byte change
2373         * lib/regexec.c (check_node_accept_bytes): Revert previous change
2374         to this function.  This was alredy fixed in a different way, at
2375         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
2376         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
2377         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
2378
2379         regex: simplify based on Gawk version
2380         * lib/regex_internal.c (re_dfa_add_node): Simplify.
2381         Reported by Aharon Robbins in
2382         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2383
2384 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
2385
2386         regex: check that pattern char is single-byte
2387         Reported by Aharon Robbins in
2388         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2389         * lib/regexec.c (check_node_accept_bytes):
2390         Return 0 if the pattern string has a multibyte character here.
2391
2392         regex: implement rational ranges
2393         Reported by Aharon Robbins in
2394         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2395         * lib/regcomp.c (build_range_exp) [!_LIBC]:
2396         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
2397         Implement rational ranges.
2398
2399         regex: avoid redefining __wctype
2400         Reported by Aharon Robbins in
2401         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2402         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
2403         #undef before defining.
2404
2405         regex: port to hosts where malloc (0) == NULL
2406         Reported by Aharon Robbins in
2407         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2408         * lib/regex_internal.c (re_node_set_alloc):
2409         Don't assume that malloc (0) yields nonnull.
2410         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
2411         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
2412         * modules/regex (Files): Add m4/eealloc.m4.
2413
2414         regex: port to C89
2415         Reported by Aharon Robbins in
2416         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2417         * lib/regcomp.c (init_word_char): Declaration before statement.
2418
2419         regex: merge glibc changes
2420         Also, copy the license wording from glibc.  This simplifies
2421         merging changes.  gnulib-tool will change the wording to GPL as
2422         appropriate, when importing it to other packages.  The only
2423         glibc change made since the last merge, which needs merging, is:
2424         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
2425         * lib/regex_internal.h (gettext): Remove use of INTUSE.
2426
2427         * users.txt: Add Emacs.
2428
2429         doc: omit mention of version when not needed
2430         * doc/gnulib-intro.texi (Portability and Application Code):
2431         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
2432         Don't mention particular dates or versions when not necessary, so
2433         that the documentation won't go out of date so quickly.
2434
2435         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
2436
2437 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
2438
2439         bootstrap: pass --force to autoreconf.
2440         * build-aux/bootstrap (AUTORECONFFLAGS): New.
2441         Add "--force" so that Automake's ylwrap and other such tools
2442         be updated at each bootstrap invocation.
2443         Use it.
2444
2445 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
2446
2447         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
2448         The earlier patch forgot to update one of the #if conditions, causing
2449         a problem on Debian testing i386 reported by Mats Erik Andersson
2450         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00124.html>.
2451         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
2452         (__argp_fmtstream_puts, argp_fmtstream_puts)
2453         (__argp_fmtstream_write, argp_fmtstream_write)
2454         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
2455
2456         * doc/gnulib-readme.texi: Minor fixups.
2457         (Portability guidelines): Modernize URLs.  Remove some repetition.
2458         (Indent with spaces not TABs): Reword to avoid too-long lines.
2459         Remove some '@ifset standalone' stuff that isn't used.
2460
2461         * doc/gnulib-readme.texi (Portability guidelines):
2462         ctype.h, not ctime.h.
2463
2464         Correct name of POSIX.1-2001.
2465         * doc/posix-functions/fgetc.texi (fgetc):
2466         * doc/posix-functions/fgets.texi (fgets):
2467         * doc/posix-functions/fread.texi (fread):
2468         * doc/posix-functions/fscanf.texi (fscanf):
2469         * doc/posix-functions/getc.texi (getc):
2470         * doc/posix-functions/getchar.texi (getchar):
2471         * doc/posix-functions/scanf.texi (scanf):
2472         POSIX.1-2001, not POSIX-2001.
2473
2474         doc: move README into manual
2475         * README: Move contents to new file doc/gnulib-readme.texi.
2476         Replace with a one-line summary.
2477         * doc/gnulib.texi (Brief Overview): New section,
2478         with old intro preface.  Include gnulib-readme.texi for contents.
2479         (Philosophy): Rename from "Introduction", since this
2480         section no longer introduces the rest.  Write a new preface.
2481         * doc/gnulib-readme.texi: New file, with the old contents of
2482         README texinfo-ized.  This way, the README info appears
2483         in the online and printed manual.
2484
2485 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
2486
2487         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
2488         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
2489         c_vasprintf() prototype.
2490
2491 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
2492
2493         c-vasprintf: Fix "empty declaration" warning reported by GCC.
2494         * lib/c-vasprintf.h: Remove stray semicolon.
2495
2496 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
2497
2498         gettext: avoid obsolete macro AM_PROG_MKDIR_P
2499         It is obsolete and is planned to be removed from Automake 1.14; see
2500         <http://lists.gnu.org/archive/html/automake/2012-12/msg00029.html>.
2501         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
2502         (installdirs-data, installdirs-data-yes):
2503         Use $(MKDIR_P), not $(mkdir_p).
2504         * m4/intl.m4 (AM_INTL_SUBDIR):
2505         * m4/po.m4 (AM_PO_SUBDIRS):
2506         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
2507
2508 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
2509
2510         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
2511         On this platform, we are not optimizing but we are using
2512         the substitute for extern inlines, so compile as if
2513         C99-style extern inline, or a substitute, is available.
2514         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
2515         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
2516         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
2517         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
2518         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
2519         Declare as ARGP_FS_EI, not as extern.
2520         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
2521         (__option_is_short, _option_is_end, __option_is_end)
2522         [!_LIBC && __USE_EXTERN_INLINES]:
2523         Declare as ARGP_EI, not as extern.
2524
2525 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
2526
2527         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
2528         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
2529         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
2530         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
2531         ...), as the latter is fatal with older Autoconfs.
2532         Problem reported and fix suggested by Eric Blake in thread starting at
2533         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00097.html>.
2534
2535 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
2536
2537         AC_PROG_MKDIR_P: don't workaround if not buggy
2538         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
2539         Define only for Autoconf versions before 2.62.
2540         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
2541         undocumented m4_PACKAGE_VERSION, for consistency with the
2542         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
2543         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
2544         was introduced in 2.62.
2545
2546 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
2547
2548         New 'c-*printf' modules for formatted output in C locale.
2549
2550         New module 'c-vasnprintf'.
2551         * modules/c-vasnprintf: New file.
2552         * lib/c-vasnprintf.c: New file.
2553         * lib/c-vasnprintf.h: New file.
2554
2555         New module 'c-snprintf'.
2556         * modules/c-snprintf: New file.
2557         * modules/c-snprintf-tests: New file.
2558         * lib/c-snprintf.c: New file.
2559         * lib/c-snprintf.h: New file.
2560         * tests/test-c-snprintf.c: New file.
2561         * tests/test-c-snprintf.sh: New file.
2562
2563         New module 'c-vsnprintf'.
2564         * modules/c-vsnprintf: New file.
2565         * modules/c-vsnprintf-tests: New file.
2566         * lib/c-vsnprintf.c: New file.
2567         * lib/c-vsnprintf.h: New file.
2568         * tests/test-c-vsnprintf.c: New file.
2569         * tests/test-c-vsnprintf.sh: New file.
2570
2571         New module 'c-vasprintf'.
2572         * modules/c-vasprintf: New file.
2573         * modules/c-vasprintf-tests: New file.
2574         * lib/c-asprintf.c: New file.
2575         * lib/c-vasprintf.c: New file.
2576         * lib/c-vasprintf.h: New file.
2577         * tests/test-c-vasprintf.c  +: New file.
2578         * tests/test-c-vasprintf.sh: New file.
2579
2580         New module 'c-xvasprintf'.
2581         * modules/c-xvasprintf: New file.
2582         * modules/c-xvasprintf-tests: New file.
2583         * lib/c-xasprintf.c: New file.
2584         * lib/c-xvasprintf.c: New file.
2585         * lib/c-xvasprintf.h: New file.
2586         * tests/test-c-xvasprintf.c: New file.
2587         * tests/test-c-xvasprintf.sh: New file.
2588
2589 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
2590
2591         argp: better 'inline'
2592         Use extern-inline module to declare extern inline functions.
2593         This avoids some bogus warning diagnostics.  Problem discovered
2594         when modifying GNU tar to use the manywarnings module.
2595         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
2596         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
2597         Define based on extern-inline.
2598         * modules/argp (Depends-on): Add extern-inline.
2599
2600 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
2601
2602         filemode, sys_stat: Handle MPX files a la AIX.
2603         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
2604         * lib/sys_stat.in.h (S_ISMPX): New macro.
2605         * tests/test-sys_stat.c: Add tests for MPX files.
2606
2607 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
2608
2609         x-to-1: honor $PERL
2610         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
2611         a chance to use his preferred version of Perl.  This is typically
2612         required by Darwin users whose default /usr/bin/perl does not have all
2613         the libraries required by help2man, and who need to use their MacPorts
2614         installation of Perl instead.
2615
2616 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
2617
2618         gnu-web-doc-update: add all the new files, even in new directories
2619         See http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00057.html
2620         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
2621         Use it.
2622         (main): Don't use cvsutils to get the list of unknown files,
2623         just add all the existing files and directories.
2624
2625 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
2626
2627         gnu-web-doc-update: improve --help
2628         * build-aux/gnu-web-doc-update: Move comments into --help.
2629
2630 2012-12-07  Eric Wong  <normalperson@yhbt.net>
2631
2632         mountlist: recognize more "dummy" file systems
2633         * lib/mountlist.c (ME_DUMMY_0):
2634         Add these dummy FS names to the list:
2635         - "debugfs" virtual filesystem for kernel debugging
2636         - "devpts" PTY slave filesystem
2637         - "devtmpfs" device filesystem on top of tmpfs/ramfs
2638         - "fusectl" control filesystem for FUSE
2639         - "mqueue" enumerates POSIX message queues
2640         - "rpc_pipefs" kernel <-> userspace bridge for NFS
2641         - "sysfs" is for exporting kernel objects
2642         - "devfs" device filesystem for Linux 2.4 and FreeBSD
2643
2644 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
2645
2646         extern-inline: avoid incompatibility with Darwin Libc
2647         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
2648         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
2649         Problem reported by Akim Demaille in
2650         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html>.
2651
2652 2012-12-11  Simon Josefsson  <simon@josefsson.org>
2653
2654         gnupload: Work with GnuPG using gpg-agent (for smartcards).
2655         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
2656         let it handle password prompting.
2657
2658 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
2659
2660         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
2661         * lib/canonicalize.c (canonicalize_filename_mode):
2662         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
2663         fetching the current directory.  Don't overrun the beginning of
2664         rpath if there's no slashes after the MS-Windows drive letter.
2665
2666 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
2667
2668         maint.mk: avoid extra forks
2669         * top/maint.mk (_cfg_mk): The GNU make manual documents that
2670         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
2671         So use that instead of "$(shell test -f FILE && echo FILE)".
2672
2673 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
2674
2675         vasnprintf: fix ASCII_ONLY typo
2676         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
2677         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
2678         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
2679         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
2680         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00021.html>.
2681
2682 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
2683
2684         list, oset, xlist, xoset: fix extern inline issue with C99
2685         This was introduced by my recent changes for 'inline'.
2686         Problem reported for gettext by Daiki Ueno in
2687         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00000.html>.
2688         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
2689         (gl_list_nx_create, gl_list_size, gl_list_node_value)
2690         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
2691         (gl_list_previous_node, gl_list_get_at)
2692         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
2693         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
2694         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
2695         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
2696         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
2697         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
2698         (gl_list_iterator_free, gl_sortedlist_search)
2699         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
2700         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
2701         (gl_sortedlist_remove):
2702         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
2703         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
2704         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
2705         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
2706         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
2707         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
2708         (gl_list_add_at, gl_sortedlist_add):
2709         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
2710         Wrap these extern decls inside "#if 0", because they are implemented
2711         as inline functions, and extern inline is not what's wanted here.
2712         It would simplify these .h files to remove the extern decls entirely,
2713         although a downside would be less-clear separation between
2714         specification and implementation.
2715
2716 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
2717
2718         sys_stat: no 'static inline'
2719         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
2720         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
2721
2722         extern-inline: no 'static inline'
2723         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
2724         Do not require AC_C_INLINE.
2725         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
2726         'static inline', for older compilers.
2727
2728         snippet/warn-on-use: no 'static inline'
2729         * build-aux/snippet/warn-on-use.h:
2730         Remove unnecessary 'inline' in comment.
2731
2732         rbtree-list, rbtreehash-list: no 'static inline'
2733         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
2734         * lib/gl_anytree_list2.h (node_at):
2735         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
2736         (gl_oset_first, add_nodes_to_buckets):
2737         Now static, not static inline.
2738
2739         regex: no 'static inline'
2740         * lib/regex_internal.c (calc_state_hash):
2741         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
2742         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
2743         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
2744         Now static, not static inline.
2745         (inline) [__GNUC__ < 3 && _LIBC]:
2746         Remove macro; no longer needed.
2747
2748         xvasprintf: no 'static inline'
2749         * lib/xvasprintf.c (xstrcat):
2750         Now static, not static inline.
2751         * m4/xvasprintf.m4 (gl_XVASPRINTF):
2752         Do not require AC_C_INLINE.
2753
2754         parse-datetime, parse-duration: no 'static inline'
2755         * lib/parse-datetime.y (to_uchar):
2756         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
2757         (scale_n_add):
2758         Now static, not static inline.
2759         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
2760         * modules/parse-duration (configure.ac):
2761         Do not require AC_C_INLINE.
2762
2763         getaddrinfo: no 'static inline'
2764         * lib/getaddrinfo.c (validate_family):
2765         Now static, not static inline.
2766         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
2767         Do not require AC_C_INLINE.
2768
2769         ftruncate, fts, lstat, openat, raise: no 'static inline'
2770         * lib/ftruncate.c (chsize_nothrow):
2771         * lib/fts.c (opendirat, diropen):
2772         * lib/lstat.c (orig_lstat):
2773         * lib/openat.c (orig_openat):
2774         * lib/raise.c (raise_nothrow):
2775         Now static, not static inline.
2776         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
2777         * m4/fts.m4 (gl_FUNC_FTS_CORE):
2778         * m4/lstat.m4 (gl_PREREQ_LSTAT):
2779         * m4/openat.m4 (gl_PREREQ_OPENAT):
2780         * m4/raise.m4 (gl_PREREQ_RAISE):
2781         Do not require AC_C_INLINE.
2782
2783         fflush, stat: no 'static inline'
2784         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
2785         (clear_ungetc_buffer, disable_seek_optimization)
2786         (restore_seek_optimization, update_fpos_cache):
2787         * lib/stat.c (orig_stat):
2788         Now static, not static inline.
2789         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
2790         (update_fpos_cache):
2791         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
2792         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
2793         * m4/stat.m4 (gl_PREREQ_STAT):
2794         Do not require AC_C_INLINE.
2795
2796         error, filevercmp: no 'static inline'
2797         * lib/error.c (is_open, flush_stdout):
2798         * lib/filevercmp.c (order):
2799         Now static, not static inline.
2800         * m4/error.m4 (gl_PREREQ_ERROR):
2801         * modules/filevercmp (configure.ac):
2802         Do not require AC_C_INLINE.
2803
2804         dup, execute, fatal-signal, etc.: no 'static inline'
2805         * lib/dup.c (dup_nothrow):
2806         * lib/execute.c (nonintr_close, nonintr_open):
2807         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
2808         * lib/fopen.c (orig_fopen):
2809         * lib/freadseek.c (freadptrinc):
2810         * lib/freopen.c (orig_freopen):
2811         * lib/fstat.c (orig_fstat, fstat_nothrow):
2812         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
2813         (get_rusage_as_via_iterator):
2814         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
2815         * lib/getdtablesize.c (_setmaxstdio_nothrow):
2816         * lib/isatty.c (_isatty_nothrow):
2817         * lib/open.c (orig_open):
2818         * lib/read.c (read_nothrow):
2819         * lib/sigprocmask.c (signal_nothrow):
2820         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
2821         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
2822         * lib/wait-process.c (unregister_slave_subprocess):
2823         * lib/write.c (write_nothrow):
2824         Now static, not static inline.
2825         * lib/spawn-pipe.c (nonintr_open): Define only if
2826         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
2827         * m4/dup.m4 (gl_PREREQ_DUP):
2828         * m4/execute.m4 (gl_EXECUTE):
2829         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
2830         * m4/fopen.m4 (gl_PREREQ_FOPEN):
2831         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
2832         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
2833         * m4/fstat.m4 (gl_PREREQ_FSTAT):
2834         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
2835         * m4/isatty.m4 (gl_PREREQ_ISATTY):
2836         * m4/open.m4 (gl_PREREQ_OPEN):
2837         * m4/read.m4 (gl_PREREQ_READ):
2838         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
2839         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
2840         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
2841         * m4/wait-process.m4 (gl_WAIT_PROCESS):
2842         * m4/write.m4 (gl_PREREQ_WRITE):
2843         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
2844         Do not require AC_C_INLINE.
2845
2846         c-strtod, memcoll, readutmp: no 'static inline'
2847         * lib/c-strtod.c (c_locale):
2848         * lib/memcoll.c (strcoll_loop):
2849         * lib/readutmp.c (desirable_utmp_entry):
2850         Now static, not static inline.
2851         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
2852         * m4/memcoll.m4 (gl_MEMCOLL):
2853         * m4/readutmp.m4 (gl_READUTMP):
2854         Do not require AC_C_INLINE.
2855
2856         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
2857         * lib/arctwo.c (to_uchar):
2858         * lib/md4.c (set_uint32):
2859         * lib/md5.c (set_uint32):
2860         * lib/sha1.c (set_uint32):
2861         * lib/sha256.c (set_uint32):
2862         * lib/sha512.c (set_uint64):
2863         Now static, not static inline.  This is a bit simpler, and doesn't
2864         affect performance with GCC and default optimization.
2865         * m4/arctwo.m4 (gl_ARCTWO):
2866         * m4/md4.m4 (gl_MD4):
2867         * m4/md5.m4 (gl_MD5):
2868         * m4/sha1.m4 (gl_SHA1):
2869         * m4/sha256.m4 (gl_SHA256):
2870         * m4/sha512.m4 (gl_SHA512):
2871         Do not require AC_C_INLINE.
2872
2873         cond, lock, thread: better 'inline'
2874         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
2875         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
2876         New macros.  Use them instead of static inline, for header functions.
2877         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
2878         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
2879         * lib/glthread/lock.c (gl_waitqueue_init)
2880         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
2881         * lib/glthread/thread.c (get_current_thread_handle):
2882         Change 'static inline' to 'inline'.
2883         * lib/glthread/cond.h, lib/glthread/thread.h:
2884         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2885         * m4/cond.m4 (gl_COND):
2886         * m4/lock.m4 (gl_PREREQ_LOCK):
2887         * m4/thread.m4 (gl_THREAD):
2888         Do not require AC_C_INLINE.
2889         * modules/cond, modules/thread (Depends-on): Add extern-inline.
2890
2891         chdir-long, cycle-check, savewd: better 'inline'
2892         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
2893         (find_non_slash):
2894         * lib/cycle-check.c (is_zero_or_power_of_two):
2895         * lib/savewd.c (savewd_delegating):
2896         Change 'static inline' to 'inline'.
2897         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
2898         Replace all remaining uses of 'static inline' with it.
2899         * lib/savewd.h:
2900         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2901         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
2902         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
2903         * m4/savewd.m4 (gl_SAVEWD):
2904         Do not require AC_C_INLINE.
2905         * modules/savewd (Depends-on): Add extern-inline.
2906
2907         base32, base64: no need for 'inline'
2908         * lib/base32.c (to_uchar, get_8, decode_8):
2909         * lib/base64.c (to_uchar, get_4, decode_4):
2910         Change 'static inline' to 'inline'.
2911         * m4/base32.m4 (gl_PREREQ_BASE32):
2912         * m4/base64.m4 (gl_PREREQ_BASE64):
2913         Do not require AC_C_INLINE.
2914
2915         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
2916         * lib/gl_array_oset.c (gl_array_nx_add_at):
2917         (gl_array_remove_at):
2918         * lib/gl_linkedhash_list.c (hash_resize_after_add)
2919         (add_to_bucket, remove_from_bucket):
2920         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
2921         Change 'static inline' to 'static', as it's simpler to omit
2922         'inline' unless there's a significant performance advantage.
2923
2924         list, oset, xlist, xoset, xsublist: simplify via extern inline
2925         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
2926         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
2927         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
2928         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
2929         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
2930         New macro.  Replace all uses of 'static inline' with it.
2931         [HAVE_INLINE]: Implement functions as *_INLINE functions,
2932         instead of as macros FOO that are defined to static inline
2933         functions FOO_inline.
2934         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
2935         * lib/gl_xsublist.c:
2936         Reimplement from scratch, by defining the corresponding *_INLINE
2937         macro and including the corresponding .h file.  This is simpler.
2938         * modules/list, modules/oset, modules/xlist, modules/xoset:
2939         (Files): Remove m4/gl_list.m4.
2940         (configure.ac): Remove gl_LIST.
2941         * m4/gl_list.m4: Remove.
2942         * modules/list, modules/oset, modules/xlist, modules/xoset:
2943         * modules/xsublist:
2944         (Depends-on): Depend on extern-inline, not inline.
2945
2946         xalloc: better 'inline'
2947         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
2948         New macro.  Replace all uses of 'static inline' with it.
2949         (static_inline): Remove.
2950         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
2951         Let 'extern inline' do the work automatically, instead of doing
2952         it by hand.
2953         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
2954         Remove.  All uses removed.
2955         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
2956
2957         gethrxtime: better 'inline'
2958         * lib/xtime.c: New file.
2959         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
2960         * lib/xtime.h (XTIME_INCLUDE):
2961         New macros.  Replace all uses of 'static inline' with them.
2962         * lib/gethrxtime.c (gethrxtime): Define only if
2963         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
2964         this source file is now always compiled, because of the extern inline.
2965         * lib/gethrxtime.h, lib/xtime.h:
2966         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2967         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
2968         if gethrtime works, as they're not needed in that case.
2969         (gl_XTIME): Do not require AC_C_INLINE.
2970         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
2971         compiled now.  Move the check into gl_GETHRXTIME.
2972         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
2973         (Depends-on): Add extern-inline.
2974         (configure.ac): gethrxtime is always compiled now.
2975         (lib_SOURCES): Add gethrxtime.c.
2976
2977         wctype-h: better 'inline'
2978         * lib/wctype-h.c: New file.
2979         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
2980         New macro.  Replace all uses of 'static inline' with it.
2981         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2982         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
2983         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
2984         (Depends-on): Add extern-inline.
2985
2986         unistd: better 'inline'
2987         * lib/unistd.c: New file.
2988         * lib/unistd.in.h (_GL_UNISTD_INLINE):
2989         New macro.  Replace all uses of 'static inline' with it.
2990         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2991         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
2992         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
2993         (Depends-on): Add extern-inline.
2994
2995         sys_socket: better 'inline'
2996         * lib/sys_socket.c: New file.
2997         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
2998         New macro.  Replace all uses of 'static inline' with it.
2999         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3000         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
3001         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
3002         (Depends-on): Add extern-inline.
3003
3004         stdio: better 'inline'
3005         * lib/stdio.c: New file.
3006         * lib/stdio.in.h (_GL_STDIO_INLINE):
3007         New macro.  Replace all uses of 'static inline' with it.
3008         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3009         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
3010         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
3011         (Depends-on): Add extern-inline.
3012
3013         sigaction: better 'inline'
3014         * lib/sig-handler.c: New file.
3015         * lib/sig-handler.h (SIG_HANDLER_INLINE):
3016         New macro.  Replace all uses of 'static inline' with it.
3017         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3018         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
3019         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
3020         (Depends-on): Add extern-inline.
3021
3022         selinux-h: better 'inline'
3023         * lib/se-context.c, lib/se-selinux.c: New files.
3024         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
3025         * lib/se-context.in.h (SE_CONTEXT_INLINE):
3026         New macro.  Replace all uses of 'static inline' with it.
3027         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3028         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
3029         New macro.  Replace all uses of 'static inline' with it.
3030         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3031         * modules/selinux-h (Files, lib_SOURCES):
3032         Add lib/se-context.c, lib/se-selinux.c.
3033         (Depends-on): Add extern-inline.
3034         (configure.ac): Do not require AC_C_INLINE.
3035
3036         pthread: better 'inline'
3037         * lib/pthread.c: New file.
3038         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
3039         New macro.  Replace all uses of 'static inline' with it.
3040         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3041         * m4/pthread.m4 (gl_PTHREAD_CHECK):
3042         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
3043         * modules/pthread (Files): Add lib/pthread.c.
3044         (Depends-on): Add extern-inline.
3045
3046         math: better 'inline'
3047         * lib/math.c: New file.
3048         * lib/math.in.h (_GL_MATH_INLINE):
3049         New macro.  Replace all uses of 'static inline' with it.
3050         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3051         * m4/math_h.m4 (gl_MATH_H):
3052         Do not require AC_C_INLINE.
3053         * modules/math (Files, lib_SOURCES):
3054         Add lib/math.c.
3055         (Depends-on): Add extern-inline.
3056
3057         count-one-bits: better 'inline'
3058         * lib/count-one-bits.c: New file.
3059         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
3060         New macro.  Replace all uses of 'static inline' with it.
3061         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3062         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
3063         Do not require AC_C_INLINE.
3064         * modules/count-one-bits (Files, lib_SOURCES):
3065         Add lib/count-one-bits.c.
3066         (Depends-on): Add extern-inline.
3067
3068         count-leading-zeros: better 'inline'
3069         * lib/count-leading-zeros.c: New file.
3070         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
3071         New macro.  Replace all uses of 'static inline' with it.
3072         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3073         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
3074         Do not require AC_C_INLINE.
3075         * modules/count-leading-zeros (Files, lib_SOURCES):
3076         Add lib/count-leading-zeros.c.
3077         (Depends-on): Add extern-inline.
3078
3079         bitrotate: better 'inline'
3080         * lib/bitrotate.c: New file.
3081         * lib/bitrotate.h (BITROTATE_INLINE):
3082         New macros.
3083         Replace all uses of 'static inline' with them.
3084         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3085         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
3086         (Depends-on): Add extern-inline.
3087         (configure.ac): Do not require AC_C_INLINE.
3088
3089 2012-11-20  Theophile Ranquet <ranquet@lrde.epita.fr>
3090
3091         maint.mk: avoid gratuitous failure
3092         Reported by Stefano Lattarini in
3093         <http://lists.gnu.org/archive/html/bug-bison/2012-11/msg00022.html>
3094         * top/maint.mk (public-submodule-commit): Quote more safely.
3095
3096 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
3097
3098         canonicalize, canonicalize-lgpl: support MS-Windows file names
3099         See <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00074.html>
3100         for test cases, which it'd be nice to add at some point.
3101         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
3102         * lib/canonicalize.c (canonicalize_filename_mode):
3103         * lib/canonicalize-lgpl.c (__realpath):
3104         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
3105         slash is at the beginning of the file name.  Use ISSLASH, instead
3106         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
3107         the first character with '/'.  Test for
3108         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
3109         with a drive letter.
3110         * lib/canonicalize.c (SLASHES): New macro.
3111         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
3112
3113 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
3114
3115         fts: introduce FTS_VERBATIM
3116         * lib/fts_.h (FTS_VERBATIM): New bit flag.
3117         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
3118         * lib/fts.c (fts_open): Honor it.
3119
3120 2012-11-09  Pádraig Brady  <P@draigBrady.com>
3121
3122         getlogin-tests: allow errno == ENXIO
3123         * tests/test-getlogin.c (main): Skip tests if getlogin fails
3124         with errno == ENXIO (No controlling tty).
3125         getlogin_r-tests: Likewise. Also allow errno == ENOENT
3126         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
3127         with errno == ENOENT.  This was reported to happen in various
3128         situations on GNU/Linux.
3129
3130 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
3131
3132         getlogin-tests: allow errno == ENOENT
3133         * tests/test-getlogin.c (main): Skip tests if getlogin fails
3134         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
3135         when running a test in an Emacs shell buffer.
3136
3137 2012-11-08  Jim Meyering  <jim@meyering.net>
3138
3139         tests/nap.h: avoid warning about unused variable
3140         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
3141
3142         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
3143         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
3144         white space before each of the special-cased file names, to avoid
3145         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
3146         in http://bugs.gnu.org/12830.
3147
3148 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
3149
3150         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
3151         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
3152         fails with errno == EBADF when fd is opened with O_PATH.
3153         Reported by Jim Meyering in
3154         <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00026.html>.
3155         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
3156         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
3157
3158 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
3159
3160         test-utimens: speed up by taking shorter naps
3161         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
3162         New functions.
3163         (nap): Use them, to do a better job of guessing the delay.
3164         On Fedora 17 with ext4 atop md atop hard disks, this made
3165         test-utimens run 10x faster, because the test napped for
3166         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
3167         <http://bugs.gnu.org/12820#11>.
3168
3169 2012-11-07  Jim Meyering  <jim@meyering.net>
3170
3171         mountlist.c: fix a compilation failure
3172         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
3173         I introduced while transforming commit v0.0-7683-g613bcb6
3174
3175 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
3176
3177         errno: port to LynxOS 178 2.2.2
3178         Problem reported by Joel Brobecker in
3179         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00088.html>.
3180         * doc/posix-headers/errno.texi (errno.h): Document this.
3181         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
3182         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
3183         Supply a string for EILSEQ.
3184         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
3185
3186 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
3187
3188         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
3189         Linux kernel 2.6.39 introduced O_PATH (see
3190         <http://lwn.net/Articles/433854/>) and this is a better fallback
3191         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
3192         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
3193         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
3194         * lib/fcntl.in.h (O_ACCMODE):
3195         * tests/test-fcntl-h.c (main):
3196         Do not reject O_ACCMODE merely because it has more than the
3197         minimal number of bits, as POSIX allows extensions here.
3198
3199 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
3200
3201         mountlist: do not classify a bind-mounted dir entry as "dummy"
3202         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
3203         the "none"-testing clause.
3204         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
3205         exception for bind-mounted directories.
3206
3207 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
3208
3209         quote: provide a means to escape strings with nul characters
3210         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
3211         (quote, quote_n): Rename formal arguments for consistency with
3212         quotearg.
3213
3214 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
3215
3216         test-raise: don't assume 199 is an invalid signal
3217         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
3218
3219         sh-quote-tests: port to Solaris 9
3220         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
3221         Problem reported by Dagobert Michelsen in
3222         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00114.html>.
3223
3224 2012-10-28  Jim Meyering  <jim@meyering.net>
3225
3226         maint.mk: rename a new configurable variable
3227         * top/maint.mk (_gl_translatable_string_re): Rename from
3228         translation-markers: _gl_ prefix to insulate from user Makefile code,
3229         and the _re suffix to inform that it's a regular expression.
3230
3231 2012-10-26  Eric Blake  <eblake@redhat.com>
3232
3233         maint.mk: let packages tweak sc_po_check pattern
3234         * top/maint.mk (sc_po_check): Add translation-markers, to allow
3235         finding files with other translation markers.
3236
3237 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
3238
3239         euidaccess: speed up 'configure' on GNU hosts
3240         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
3241         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
3242         it's needed only in this case.  Use AC_CHECK_DECLS, not
3243         AC_CHECK_DECLS_ONCE.
3244         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
3245         or AC_REQUIRE for AC_FUNC_GETGROUPS.
3246
3247         * lib/regexec.c (re_search_internal): Fix grammar in comment.
3248
3249 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
3250
3251         fchmodat, fchownat, fstatat: port to non-inlining compilers
3252         Problem reported for FreeBSD 9 by Jim Meyering in
3253         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00070.html>.
3254         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
3255         New files, which define FCHMODAT_INLINE etc.
3256         * lib/fchmodat.c (FCHMODAT_INLINE):
3257         * lib/fchownat.c (FCHOWNAT_INLINE):
3258         * lib/fstatat.c (FSTATAT_INLINE):
3259         Remove, as chmodat.c etc. now do this.
3260         * modules/fchmodat (Files): Add lib/chmodat.c.
3261         * modules/fchownat (Files): Add lib/chownat.c.
3262         * modules/fstatat (Files): Add lib/statat.c.
3263
3264 2012-10-15  Jim Meyering  <jim@meyering.net>
3265
3266         fchmodat.c, fchownat.c: compile-impeding typos
3267         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
3268         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
3269         Introduced in commit v0.0-7636-gd202279.
3270
3271 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
3272
3273         fcntl-h: support GNU flags like O_IGNORE_CTTY
3274         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
3275         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
3276         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
3277         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
3278         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
3279         Define to 0 if not already defined.
3280         * tests/test-fcntl-h.c: Test these new flags.
3281
3282 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
3283
3284         faccessat, etc.: support AT_FDCWD-only use
3285         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
3286         this function only if its first argument is AT_FDCWD.
3287         Emacs wants faccessat for AT_EACCESS but not for any first-arg
3288         values other than AT_FDCWD, so it doesn't want all the openat
3289         machinery with fchdir etc.
3290         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
3291         * modules/fstatat, modules/mkdirat, modules/openat (Files):
3292         * modules/unlinkat (Files):
3293         Remove lib/openat-priv.h, as at-internal supplies this file.
3294         Removing this file here allows us to support programs like Emacs
3295         that avoid at-internal.
3296
3297         faccessat: speed up 'configure' on mainstream hosts
3298         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
3299         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
3300         since it's only on unusual platforms that we need to check for
3301         'access', and it's better not to slow 'configure' down on all
3302         platforms.
3303
3304         faccessat: port to Solaris 10
3305         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
3306         Needed on Solaris 10, which doesn't have AT_EACCESS,
3307         so we need the Gnulib fcntl.h, which defines it.
3308
3309 2012-10-14  Pádraig Brady  <P@draigBrady.com>
3310         canonicalize: fix C89 compilation
3311         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
3312         declarations so C89 is supported.  Also remove the comment
3313         referencing memorty allocation as the suggested feature could
3314         not be implemented as suggested.
3315         Reported by Michael Goffioul.
3316
3317 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
3318
3319         group-member: omit unnecessary dependencies
3320         This is for Emacs, which has its own allocator and where we
3321         don't want to use xalloc.
3322         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
3323         since we no longer use xmalloc.  Do not include stdbool.h, since
3324         the changes below happen to remove the only use of bool.
3325         (GROUPBUF_SIZE): New constant.
3326         (struct group_info): Remove n_groups member.  Add groupbuf member.
3327         This lets us get the groups without using malloc, usually.
3328         (free_group_info, get_group_info): Adjust to this.
3329         (get_group_info): Return the number of groups found, or -1 on error.
3330         Use plain malloc not xmalloc, and treat its failure as if there
3331         are no groups, as the user already loses in case of error.
3332         (group_member): Simplify, based on changes to get_group_info.
3333         * modules/group-member (Depends-on): Remove dependencies on
3334         xalloc and stdbool.  Add dependency on xalloc-oversized.
3335
3336 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
3337
3338         gethrxtime: port to C++
3339         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
3340
3341 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
3342
3343         ptsname: fix macro-name typo
3344         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
3345
3346 2012-10-03  Simon Josefsson  <simon@josefsson.org>
3347
3348         inttostr: Relax license.
3349         * modules/inttostr (License): Change from LGPL to LGPLv2+.
3350
3351 2012-10-03  Eric Blake  <eblake@redhat.com>
3352
3353         ptsname_r: support ptys returned by FreeBSD posix_openpt
3354         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
3355         lives in /dev/pts/.
3356
3357 2012-10-02  Eric Blake  <eblake@redhat.com>
3358
3359         pselect: reject invalid file descriptors
3360         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
3361         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
3362         * modules/pselect (Depends-on): Add dup2.
3363         * doc/posix-functions/pselect.texi (pselect): Document this.
3364
3365         select: reject invalid file descriptors
3366         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
3367         * lib/select.c (rpl_select) [!win32]: Work around it.
3368         * modules/select (Depends-on): Add dup2.
3369         * doc/posix-functions/select.texi (select): Document this.
3370
3371         select: enhance test
3372         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
3373         New functions.
3374         (test_function): Enhance test.
3375         (do_select_bad_fd): Avoid any stale errno values.
3376
3377         ptsname: reject invalid file descriptors
3378         http://www.austingroupbugs.net/view.php?id=503
3379         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
3380         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
3381         * modules/stdlib (Makefile.am): Replace witness.
3382         * lib/stdlib.in.h (ptsname): Allow for replacement.
3383         * modules/ptsname (configure.ac): Trigger replacement.
3384         * doc/posix-functions/ptsname.texi (ptsname): Document this.
3385
3386 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
3387
3388         hash-pjw-bare: new module
3389         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
3390         * lib/hash-pjw-bare.h: Likewise.
3391         * modules/hash-pjw-bare: New file.
3392         * MODULES.html.sh (Misc): Add it.
3393
3394 2012-10-02  Eric Blake  <eblake@redhat.com>
3395
3396         manywarnings: cater to more gcc infelicities
3397         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
3398         -Wuninitialized without -O.
3399
3400 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
3401
3402         select, poll tests: Make setsockopt invocation effective.
3403         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
3404         the bind() call.
3405         * tests/test-select.h (open_server_socket): Likewise.
3406
3407 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
3408
3409         sockets, sys_stat: restore AC_C_INLINE
3410         This undoes the 2012-09-22 patch.
3411         * m4/sockets.m4 (gl_SOCKETS):
3412         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
3413         Restore AC_C_INLINE, since MSVC requires __inline or _inline
3414         and does not support plain 'inline'.  Reported by Bruno Haible in
3415         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00183.html>.
3416
3417 2012-09-30  Bruno Haible  <bruno@clisp.org>
3418
3419         localeconv tests: Avoid test failure on OpenIndiana.
3420         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
3421         skip the 'grouping' and 'mon_grouping' tests.
3422         Reported by Jim Meyering.
3423
3424 2012-09-30  Bruno Haible  <bruno@clisp.org>
3425
3426         havelib: Follow libtool developments.
3427         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
3428         Suggested by Simon Josefsson.
3429
3430 2012-09-29  Jim Meyering  <meyering@redhat.com>
3431
3432         fstatat.c: fix a compile-impeding typo
3433         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
3434         Introduced in commit v0.0-7636-gd202279.
3435         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
3436
3437 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
3438
3439         extern-inline: provide a -Wundef safe config.h
3440         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
3441         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
3442         to produce a -Wundef warning free config.h.
3443
3444 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
3445
3446         hash-pjw: relax license to LGPLv2+
3447         * modules/hash-pjw (License): Relax, with consent of author.
3448
3449 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
3450
3451         maint.mk: fix strict vs. lazy variable issues with RELEASE
3452         * top/maint.mk (_equal): New function.
3453         (member_check): Strip the result to avoid spurious spaces.
3454         (url_dir_list): Do not use ifeq, which is strict, as it will
3455         require RELEASE_TYPE to be defined.
3456         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
3457         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
3458         (announcement_Cc_alpha,announcement_mail_headers_alpha)
3459         (announcement_Cc_beta,announcement_mail_headers_beta)
3460         (announcement_Cc_stable,announcement_mail_headers_stable): these.
3461         (release): Do not depend on $(release-type), as it forces its
3462         evaluation.  Bounce to it.
3463
3464 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
3465
3466         maint.mk: formatting changes
3467         * top/maint.mk: Indent bodies of if's.
3468
3469 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
3470
3471         maint.mk: factor the validation of RELEASE_TYPE
3472         With help from Jim Meyering.
3473         http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00132.html
3474         * top/maint.mk (_empty, _sp): Move their definition earlier.
3475         (member-check, release-type): New.
3476         Use the latter instead of $(RELEASE_TYPE).
3477         Remove now useless local checks.
3478
3479 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
3480
3481         maint.mk: provide "make upload" to ease uploading
3482         See
3483         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00028.html>.
3484         Do not depend simply on the current $(VERSION), as there may have been
3485         new commits since the tarball generation.  Rather, rely on $(RELEASE),
3486         as "make release-commit" already does.
3487
3488         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
3489         "make TYPE".
3490
3491         * top/maint.mk (upload_command, upload, release): New.
3492         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
3493         (VERSION): first word of $(RELEASE) is always right.
3494         (emit_upload_commands): Adjust.
3495         * top/README-release: Update.
3496
3497 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
3498
3499         maint.mk: silent rules
3500         With help from Stefano Lattarini.
3501         * top/maint.mk (writable-files): Use $(AM_V_GEN).
3502         (announcement): Use $(AM_V_at).
3503
3504 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
3505
3506         localename: port gl_locale_name_thread_unsafe to FreeBSD
3507         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
3508         and use the simpler FreeBSD implementation on Mac OS X as well.
3509         Original idea suggested by Ed Maste in
3510         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00094.html>.
3511
3512 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
3513
3514         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
3515         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
3516         * lib/mbuiter.c, lib/xsize.c: New files.
3517         * lib/binary-io.h (BINARY_IO_INLINE):
3518         * lib/eealloc.h (EEALLOC_INLINE):
3519         * lib/mbfile.h (MBFILE_INLINE):
3520         * lib/mbiter.h (MBITER_INLINE):
3521         * lib/mbuiter.h (MBUITER_INLINE):
3522         * lib/xsize.h (XSIZE_INLINE):
3523         New macros.
3524         Replace all uses of 'static inline' with them.
3525         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3526         * m4/eealloc.m4 (gl_EEALLOC):
3527         * m4/mbfile.m4 (gl_MBFILE):
3528         * m4/mbiter.m4 (gl_MBITER):
3529         * m4/xsize.m4 (gl_XSIZE):
3530         Do not require AC_C_INLINE.
3531         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
3532         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
3533         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
3534         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
3535         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
3536         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
3537         * modules/binary-io, modules/eealloc, modules/mbfile:
3538         * modules/mbiter, modules/mbuiter:
3539         (Depends-on): Add extern-inline.
3540
3541         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
3542         * lib/pipe-filter-aux.c: New file.
3543         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
3544         Replace all uses of 'static inline' with it.
3545         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3546         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
3547         (filter_retcode): No real need for inline here.
3548         * modules/pipe-filter-gi, modules/pipe-filter-ii:
3549         (Files): Add lib/pipe-filter-aux.c.
3550         (Depends-on): Add extern-inline.
3551         (configure.ac): Do not require AC_C_INLINE.
3552         (lib_SOURCES): Add pipe-filter-aux.c.
3553
3554         fdutimensat: omit unnecessary AC_C_INLINE
3555         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
3556
3557         fchmodat, fchownat, fstatat: use extern-inline
3558         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
3559         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
3560         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
3561         New macros.
3562         * lib/openat.h:
3563         Replace all uses of 'static inline' with them.
3564         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3565         * modules/fchmodat, modules/fchownat, modules/fstatat:
3566         * modules/openat-h:
3567         (Depends-on):
3568         Add extern-inline.
3569         (configure.ac): Remove AC_C_INLINE.
3570
3571         acl, mbchar, priv-set: use extern-inline
3572         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
3573         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
3574         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
3575         New macros.
3576         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
3577         Replace all uses of 'static inline' with it.
3578         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3579         * m4/acl.m4 (gl_FUNC_ACL):
3580         * m4/mbchar.m4 (gl_MBCHAR):
3581         * m4/priv-set.m4 (gl_PRIV_SET):
3582         Remove AC_C_INLINE, since 'inline' is no longer used directly.
3583         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
3584         Add extern-inline.
3585
3586         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
3587         * m4/sockets.m4 (gl_SOCKETS):
3588         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
3589         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
3590         environments where it's already guaranteed to work, so we needn't
3591         check for it at 'configure'-time.
3592
3593         tls-tests: omit unnecessary 'inline'
3594         * tests/test-tls.c (perhaps_yield): No longer inline.
3595         Simplicity and portability trump efficiency in test cases.
3596
3597         utimens-tests: avoid unnecessary 'inline'
3598         * modules/fdutimensat-tests (configure.ac):
3599         * modules/futimens-tests (configure.ac):
3600         * modules/utimens-tests (configure.ac):
3601         * modules/utimensat-tests (configure.ac):
3602         Remove AC_C_INLINE.
3603         * tests/test-utimens-common.h (ctime_compare):
3604         No longer inline.  Simplicity and portability trump efficiency here.
3605
3606         misc: don't limit commentary to inline functions
3607         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
3608         * lib/xalloc-oversized.h, lib/xsize.h:
3609         Contrast macros to functions in general, not just to inline functions,
3610         when the commentary does not apply only to inline functions.
3611
3612 2012-09-20  Jim Meyering  <meyering@redhat.com>
3613
3614         non-recursive-gnulib-prefix-hack: new module
3615         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
3616         the file that originated in Bison.
3617         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
3618         largely copied from a snippet that resided in bison's configure.ac.
3619         * modules/non-recursive-gnulib-prefix-hack: New file.
3620         * MODULES.html.sh (Support for maintaining and releasing projects):
3621         Add it.
3622
3623 2012-09-18  Jim Meyering  <meyering@redhat.com>
3624
3625         maint.mk: generalize _gl_tight_scope for non-recursive make
3626         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
3627         that *.h would describe additional .h files in the directory
3628         specified by $(_gl_TS_dir).  I.e., add this...
3629         (_gl_TS_other_headers): New variable.
3630
3631         maint.mk: exempt trailing blanks found in "binary" files
3632         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
3633         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
3634         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
3635
3636 2012-09-17  Jim Meyering  <meyering@redhat.com>
3637
3638         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
3639         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
3640         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
3641         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
3642
3643 2012-09-17  Jim Meyering  <meyering@redhat.com>
3644
3645         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
3646         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
3647         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
3648         It is not in the same category as "exit (0)" or "exit (1)", and
3649         besides, I know of no symbolic name for that 77.  Reported by
3650         Richard W.M. Jones in
3651         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
3652
3653 2012-09-17  Jim Meyering  <meyering@redhat.com>
3654
3655         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
3656         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
3657         all uses of #define, not just those that start in column 1.
3658         Richard W.M. Jones reported a false positive in
3659         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
3660
3661 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
3662
3663         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
3664         * lib/localcharset.c (locale_charset) [DARWIN7]:
3665         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
3666         as these two values are incompatible.  Problem reported by Max Horn.
3667         For more discussion, please see
3668         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00061.html>.
3669
3670         doc: document sticky-EOF issue
3671         * doc/posix-functions/fgetc.texi (fgetc):
3672         * doc/posix-functions/fgets.texi (fgets):
3673         * doc/posix-functions/fread.texi (fread):
3674         * doc/posix-functions/fscanf.texi (fscanf):
3675         * doc/posix-functions/getc.texi (getc):
3676         * doc/posix-functions/getchar.texi (getchar):
3677         * doc/posix-functions/scanf.texi (scanf):
3678         Mention that glibc and default Solaris do not conform to
3679         C99 and POSIX-2001 or later, with respect to how getchar
3680         etc. behave when feof reports nonzero.
3681
3682 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
3683
3684         poll: fix poll(0, NULL, msec)
3685         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
3686         but nfd is 0.  In that case poll should behave like select.
3687
3688 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
3689             Paolo Bonzini <bonzini@gnu.org>
3690
3691         poll: fix for systems that can't recv() on a non-socket
3692         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
3693         is readable.  In this case POLLHUP will not be supported.
3694         * doc/posix-functions/poll.texi: Document this.
3695
3696 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
3697
3698         poll/select: document portability problems not fixed by Gnulib.
3699         * doc/posix-functions/poll.texi: poll does not work well on
3700         pipes under Windows.  It has the same limitations as select on
3701         BeOS.
3702         * doc/posix-functions/select.texi: select does not work well
3703         on pipes under Windows.
3704
3705 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
3706
3707         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
3708         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
3709         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
3710         <http://lists.gnu.org/archive/html/bug-tar/2012-07/msg00018.html>.
3711
3712 2012-09-06  Eric Blake  <eblake@redhat.com>
3713
3714         net_if: give more details about the bug being fixed
3715         * doc/posix-headers/net_if.texi: Add clarification.
3716
3717 2012-09-05  Eric Blake  <eblake@redhat.com>
3718
3719         net_if: new module
3720         * modules/net_if: New module, borrowing ideas from netinet_in.
3721         * m4/net_if_h.m4: New file.
3722         * lib/net_if.in.h: Likewise.
3723         * doc/posix-headers/net_if.texi (net/if.h): Document it.
3724         * MODULES.html.sh (lacking POSIX:2008): Likewise.
3725         * tests/test-net_if.c: Make function checks conditional.
3726         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
3727
3728 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
3729
3730         readutmp: fix non-portable UT_PID use
3731         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
3732         Use `UT_PID (u) > 0' as absolute condition.
3733
3734 2012-09-04  Jim Meyering  <meyering@redhat.com>
3735
3736         fts: reduce two or more trailing spaces to just one, usually
3737         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
3738         or more slashes, trim all but the final one.  But if a name consists
3739         solely of two slashes, don't modify it.  If it consists solely of
3740         three or more slashes, strip all but one.
3741
3742         This is part of the solution to a minor problem with rm:
3743         it would print a bogus ELOOP diagnostic when failing to remove
3744         the slash-decorated name of a symlink-to-directory:
3745
3746             $ mkdir d && ln -s d s && env rm -r s/
3747             rm: cannot remove 's': Too many levels of symbolic links
3748
3749         With the change below and a trivial don't-trim-trailing-slashes
3750         adjustment to remove.c, it does this:
3751
3752             $ env rm -r s/
3753             rm: cannot remove 's/': Not a directory
3754
3755         Improved by: Eric Blake
3756
3757         fts: when there is no risk of overlap, use memcpy, not memmove
3758         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
3759
3760 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
3761
3762         stdbool: be more compatible with mixed C/C++ compiles
3763         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
3764         Define to bool, true, false, respectively, as GCC's builtin
3765         stdbool.h does.  Problem reported by Michael Goffioul in
3766         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00143.html>.
3767
3768 2012-08-28  Jim Meyering  <meyering@redhat.com>
3769
3770         revert last change: it was not needed
3771         * tests/test-vc-list-files-git.sh: There's already a test for
3772         a working git, just below.
3773
3774 2012-08-28  Jim Meyering  <meyering@redhat.com>
3775
3776         tests: test-vc-list-files-git.sh: skip if git is not available
3777         * tests/test-vc-list-files-git.sh: Skip this test when git is
3778         not available.
3779
3780 2012-08-26  Bruno Haible  <bruno@clisp.org>
3781
3782         gnulib-tool: Remove no-op option --no-changelog.
3783         * gnulib-tool (func_usage): Don't mention --no-changelog.
3784         (do_changelog): Remove variable.
3785         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3786
3787 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
3788
3789         doc: remove fdl-1.2.texi
3790         It is no longer used or maintained, and its use of @acronym
3791         is problematic.  See the thread containing
3792         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00134.html>.
3793         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
3794         * doc/old-licenses/fdl-1.2.texi: Remove.
3795
3796         execinfo: port to FreeBSD
3797         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
3798         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
3799         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00113.html>.
3800         * modules/execinfo (Link): Add $(LIB_EXECINFO).
3801
3802 2012-08-23  Jim Meyering  <meyering@redhat.com>
3803
3804         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
3805         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
3806         to placate gcc's -Wold-style-declaration.
3807
3808 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
3809
3810         doc: do not use @acronym
3811         * doc/inet_ntoa.texi (inet_ntoa):
3812         * doc/parse-datetime.texi (Seconds since the Epoch)
3813         (Specifying time zone rules):
3814         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
3815         Don't use @acronym.  Problem reported by John Darlington in
3816         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00124.html>.
3817
3818 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
3819
3820         stdnoreturn: port to newer GCCs
3821         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
3822         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
3823         Problem reported by Jim Meyering in
3824         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00121.html>.
3825         Also, rename the 'test' function to a void a clash with the
3826         already-supplied 'main' function; this fixes a bug that incorrectly
3827         rejected GCC 4.7.1's <stdnoreturn.h>.
3828         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
3829         Document GCC problem.
3830
3831 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
3832
3833         pipe-filter: fix comment typo
3834         * lib/pipe-filter.h: Mention correct function.
3835
3836 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
3837
3838         execinfo: new module
3839         This is for Emacs.  Currently, it provides a no-effect stub
3840         on all platforms where it does not already work.
3841         It already works on glibc-based systems, and on Solaris 11.
3842         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
3843         New files.
3844         * doc/glibc-headers/execinfo.texi (execinfo.h):
3845         * MODULES.html.sh (Misc): Document it.
3846
3847 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
3848
3849         extern-inline: support old GCC 'inline'
3850         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
3851         if available.  This applies to GCC versions 2.7 through 4.2, or
3852         when newer GCC is using -fgnu89-inline.  The goal is to address
3853         some of the performance issues mentioned by Bruno Haible in
3854         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00097.html>.
3855
3856 2012-08-20  Eric Blake  <eblake@redhat.com>
3857
3858         maint.mk: avoid redundant file name in message
3859         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
3860         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
3861         (sc_makefile_path_separator_check): Remove bogus $(ME).
3862
3863 2012-08-20  Mike Frysinger <vapier@gentoo.org>
3864
3865         timer-time: fix link order when static linking on glibc
3866         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
3867         _after_ -lrt so that it's significant.
3868
3869 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
3870
3871         timespec: omit unnecessary AC_C_INLINE
3872         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
3873
3874         stat-time: omit unnecessary AC_C_INLINE
3875         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
3876         Do not require AC_C_INLINE.
3877
3878         ignore-value: omit unnecessary AC_C_INLINE
3879         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
3880
3881         sys_select: avoid 'static inline'
3882         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
3883
3884         mktime: avoid 'static inline'
3885         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
3886         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
3887
3888 2012-08-19  Bruno Haible  <bruno@clisp.org>
3889
3890         gnulib-tool: Improve coding style.
3891         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
3892         func_emit_lib_Makefile_am.
3893         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3894
3895 2012-08-19  Bruno Haible  <bruno@clisp.org>
3896
3897         gnulib-tool: Fix indentation.
3898         * gnulib-tool (func_import): Fix indentation.
3899
3900 2012-08-19  Bruno Haible  <bruno@clisp.org>
3901
3902         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
3903         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
3904         on the list of removed files.
3905
3906 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
3907
3908         test-parse-datetime: avoid glibc leap-second glitch
3909         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
3910         with the 2012 rules.  Problem reported by Bruce Dubbs in
3911         <http://bugs.gnu.org/12206>.
3912
3913 2012-08-14  Bruno Haible  <bruno@clisp.org>
3914
3915         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
3916         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
3917         from argument.
3918         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3919
3920 2012-08-14  Eric Blake  <eblake@redhat.com>
3921
3922         ldexp: relax license
3923         * modules/ldexp (License): Trivial relax, since the module only
3924         provides a permissively licensed m4 file.
3925
3926 2012-08-13  Bruno Haible  <bruno@clisp.org>
3927
3928         gnulib-tool: Fix persistence of --witness-c-macro option.
3929         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
3930         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3931
3932 2012-08-11  Eric Blake  <eblake@redhat.com>
3933
3934         count-leading-zeros: use a lookup table on non-gcc compilers
3935         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
3936         alternate implementation, suggested by Jim Meyering.
3937
3938 2012-08-10  Eric Blake  <eblake@redhat.com>
3939
3940         count-leading-zeros: new module
3941         * modules/count-leading-zeros: New module.
3942         * m4/count-leading-zeros.m4: New file.
3943         * lib/count-leading-zeros.h: Likewise.
3944         * modules/count-leading-zeros-tests: New test.
3945         * tests/test-count-leading-zeros.c: New file.
3946         * MODULES.html.sh (Integer arithmetic functions): Document it.
3947
3948 2012-08-07  Simon Josefsson  <simon@josefsson.org>
3949             Jim Meyering  <meyering@redhat.com>
3950
3951         maintainer-makefile: Fix syntax error with dash.
3952         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
3953         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
3954
3955 2012-08-05  Jim Meyering  <meyering@redhat.com>
3956
3957         extern-inline: also ignore -Wmissing-declarations
3958         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
3959         required with gcc-4.8.0-to-be.
3960
3961         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
3962         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
3963         for /error ?([^,]*)/.  This avoids false-positives for strings like
3964         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
3965
3966 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
3967
3968         gnumakefile: better interaction with Automake-NG
3969         * modules/gnumakefile [Makefile.am]: The makefiles generated by
3970         Automake-NG always contain a definition of VPATH, even in non-VPATH
3971         builds (its value being simply '.' in that case).  So, in the
3972         'clean-GNUmakefile' rule, to determine whether running under a
3973         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
3974         '$(VPATH)' expands to the empty string.
3975
3976 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
3977
3978         base64: Use extern C scope in header file, for C++.
3979         * lib/base64.h: Add C++ namespace protection.
3980
3981 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
3982
3983         stat-time, timespec, u64: support naive out-of-dir builds
3984         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
3985         Use '#include "foo.h"', not '#include <foo.h>', when including
3986         one's own interface.  This works better when configuring with
3987         out-of-directory builds, since packages need not add an
3988         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
3989
3990 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
3991
3992         utimens: use extern-inline
3993         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
3994         * lib/utimens.h: Add copyright notice, since this is now large enough
3995         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3996         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
3997         * modules/utimens (Depends-on): Add extern-inline.
3998
3999         u64: use extern-inline
4000         * lib/u64.c: New file.
4001         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
4002         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
4003         * modules/u64 (Files): Add lib/u64.c.
4004         (Depends-on): Add extern-inline.
4005         (configure.ac): No need to require AC_C_INLINE, since extern-inline
4006         does that now.
4007         (lib_SOURCES): Add u64.c.
4008
4009         timespec: use extern-inline
4010         * lib/timespec.c: New file.
4011         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
4012         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
4013         * modules/timespec (Files): Add lib/timespec.c.
4014         (Depends-on): Add extern-inline.
4015         (lib_SOURCES): Add timespec.c.
4016
4017         stat-time: use extern-inline
4018         * lib/stat-time.c: New file.
4019         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
4020         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
4021         * modules/stat-time (Files): Add lib/stat-time.c.
4022         (Depends-on): Add extern-inline.
4023         (lib_SOURCES): Add stat-time.c.
4024
4025         extern-inline: new module
4026         * modules/extern-inline, m4/extern-inline.m4: New files.
4027         This is for better support of 'extern inline' a la ISO C99,
4028         with a portable alternative on compilers that do not support
4029         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
4030         of the Emacs executable, when compiled with debugging disabled,
4031         which is a typical way that Emacs is built while developing.
4032
4033 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
4034
4035         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
4036         * build-aux/do-release-commit-and-tag: Move variable definitions
4037         together.
4038         ($branch): Instead of defaulting to "master", default to the current
4039         branch (as gnu-web-doc-update does).
4040         (help): Display the current values of the option arguments.
4041         * top/maint.mk (release-commit): New.
4042         * top/README-release: Simplify the corresponding step.
4043
4044 2012-07-30  Eric Blake  <eblake@redhat.com>
4045
4046         passfd: fix comment on recvfd
4047         * lib/passfd.c (recvfd): Fix comment.
4048         Reported by Jann Horn <jannhorn@googlemail.com>.
4049
4050 2012-07-30  Jim Meyering  <meyering@redhat.com>
4051
4052         maint.mk: avoid a sub-shell
4053         * top/maint.mk (release-prep): Remove unneeded sub-shell.
4054
4055 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
4056
4057         maint.mk: use silent-rules support from Automake
4058         * top/maint.mk (news-check, vc-diff-check, announcement)
4059         (no-submodule-changes, alpha beta stable, release-prep)
4060         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
4061
4062 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
4063
4064         maint.mk: provide a web-manual-update target
4065         * top/maint.mk: here.
4066         * top/README-release: Use it to simplify the web manual update step.
4067
4068 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
4069
4070         README-release: shorten the circuit to post a news
4071         * top/README-release: Point directly to the news submission form.
4072
4073 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
4074
4075         gnu-web-doc-update: fix --help
4076         * build-aux/gnu-web-doc-update: The information "top level" was written
4077         twice.
4078
4079 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
4080
4081         maint.mk: absolute VPATH issue
4082         * top/maint.mk (release-prep): Help Git find .git/.
4083         From Jim Meyering.
4084
4085 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
4086
4087         gitlog-to-changelog: fix previous change
4088         * build-aux/gitlog-to-changelog: Fix condition.
4089         Add missing ";".
4090
4091 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
4092
4093         gitlog-to-changelog: don't expect .git to be in $srcdir
4094         Reported by Bruno Haible.
4095         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00265.html>
4096         * build-aux/gitlog-to-changelog (&git_dir_option): New.
4097         Use it.
4098
4099 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
4100
4101         maint.mk: absolute VPATH build fix
4102         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
4103         $(srcdir) is not a parent of $(builddir).
4104
4105 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
4106
4107         clean-temp: Fix memory leak.
4108         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
4109         'files' members of tmpdir.
4110
4111 2012-07-27  Jim Meyering  <meyering@redhat.com>
4112
4113         maint.mk: new rule: refresh-gnulib-patches
4114         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
4115         Use this rule to refresh them.
4116         * top/maint.mk (refresh-gnulib-patches): New rule.
4117
4118 2012-07-24  Bruno Haible  <bruno@clisp.org>
4119
4120         gnulib-tool: Fix handling of inctests variable.
4121         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
4122         Reported by Nick Bowler <nbowler@elliptictech.com>.
4123
4124 2012-07-22  Bruno Haible  <bruno@clisp.org>
4125
4126         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
4127         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
4128         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
4129         Remove exemption for getpass.h.
4130         Suggested by Eric Blake.
4131
4132 2012-07-20  Eric Blake  <eblake@redhat.com>
4133
4134         verify: document conflict with -Wnested-externs
4135         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
4136
4137         maint.mk: forbid exit(-1)
4138         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
4139
4140 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
4141
4142         fsusage: port back to Solaris
4143         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
4144         error (fsd not declared) on Solaris 10.  Reported privately by
4145         Andrew Borodin.
4146
4147 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
4148
4149         gnu-web-doc-update: fix error messages
4150         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
4151
4152         gnu-web-doc-update: check the requirements.
4153         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
4154         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
4155         * build-aux/bootstrap (find_tool): Comment change.
4156
4157 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
4158
4159         maint.mk: minor simplication.
4160         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
4161         for default values.
4162
4163 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
4164
4165         gitlog-to-changelog: VPATH build issues
4166         If builddir is not a subdirectory of srcdir, running git from it will
4167         fail.
4168         * build-aux/gitlog-to-changelog (--srcdir): New option.
4169
4170 2012-07-15  Bruno Haible  <bruno@clisp.org>
4171
4172         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
4173         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
4174         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
4175         Remove exemption for fpending.h.
4176         Suggested by Eric Blake.
4177
4178 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
4179
4180         pthread_sigmask: fix bug on FreeBSD 9
4181         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
4182         Include string.h.
4183         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
4184         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
4185         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
4186         but pthread_sigmask (1729, NULL, NULL) returns zero.
4187         See <http://bugs.gnu.org/11884>.
4188         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
4189         by inspecting whether the main call changed the old mask.
4190
4191 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
4192
4193         README-release: make it more legible
4194         * top/README-release: Improve typography slightly.
4195
4196 2012-07-15  Jim Meyering  <meyering@redhat.com>
4197
4198         maint: require that each sc_... command start with "@"
4199         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
4200         "make sc_maint" helps us avoid this nit.
4201
4202 2012-07-15  Jim Meyering  <meyering@redhat.com>
4203
4204         maint.mk: add leading "@" to quiet new "make syntax-check" rule
4205         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
4206
4207 2012-07-13  Eric Blake  <eblake@redhat.com>
4208
4209         maint.mk: new syntax check for HAVE_DECL checks
4210         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
4211         * cfg.mk
4212         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
4213         Exempt some false positives.
4214         Based on a report by Karel Zak.
4215
4216         argp: make HAVE_DECL usage consistent
4217         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
4218         macros, not whether they are defined.
4219         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
4220         convention with other declaration checks.
4221         Reported by Karel Zak, with suggestions from Paul Eggert.
4222
4223         stat-time: relax license to LGPLv2+
4224         * modules/stat-time (License): Relax, with consent of all authors.
4225
4226         strndup: fix m4 usage error
4227         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
4228         defined, to either 0 or 1.
4229         Reported by Karel Zak.
4230
4231 2012-07-11  Jim Meyering  <meyering@redhat.com>
4232
4233         maint: enable the sc_avoid_if_before_free syntax-check rule
4234         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
4235         (if_before_free_offenders_): Define.
4236         (if_before_free_basename_re_): Define.
4237         Exempt current files with useless if-before-free.
4238
4239 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
4240
4241         gettext: do not assume '#define ... defined ...' behavior
4242         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
4243         Do not use '#define FOO ... defined BAR ...', as the C standard says
4244         it's not portable to expect that this works after macro expansion.
4245         Problem reported for gzip by Steven M. Schweda in
4246         <http://lists.gnu.org/archive/html/bug-gzip/2012-07/msg00000.html>.
4247
4248 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
4249
4250         getloadavg: clean out old Emacs and Autoconf cruft
4251         See Glenn Morris in <http://bugs.gnu.org/11905>.
4252         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
4253         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
4254         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
4255         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
4256
4257 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
4258
4259         bootstrap: let warn be like tests/init.sh's warn_
4260         Reported by Jim Meyering.
4261         * build-aux/bootstrap (warn): Remove, replaced by...
4262         (warnf_, warn_): these.
4263         Adjust callers.
4264         Shorten messages that no longer fit in 80 columns.
4265
4266 2012-07-09  Bruno Haible  <bruno@clisp.org>
4267
4268         getopt: Simplify after Emacs changed.
4269         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
4270         (gl_GETOPT_IFELSE): Remove macro.
4271
4272 2012-07-09  Jim Meyering  <meyering@redhat.com>
4273
4274         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
4275         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
4276
4277         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
4278         Bugs in both of those conspired to make the
4279         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
4280         _sc_search_regexp's handling of non-empty $in_files would filter
4281         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
4282         choice of in_files value meant there would be no match in most
4283         projects, due to the presence of two or more Makefile.in files.
4284         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
4285         Fix a bug in how a non-empty $$in_files was processed:
4286         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
4287         in spite of the name, it's a regexp, not a list of file names.
4288
4289 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
4290
4291         getloadavg, getopt: fix commentary re configure.in
4292         Autoconf is deprecating the name 'configure.in', so change it to
4293         to the new name 'configure.ac' in a couple of places.
4294         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
4295         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
4296         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
4297         Emacs has renamed it to configure.ac, and it no longer refers
4298         to these macros anyway.
4299
4300         timespec: mark functions with const attributes
4301         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
4302         Mark with _GL_ATTRIBUTE_CONST.
4303
4304 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
4305
4306         canonicalize[-lgpl]: handle "guessing" values when cross-building
4307         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
4308         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
4309         matches "*yes" instead of just "yes".  Regression introduced in commit
4310         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
4311
4312 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
4313             Bruno Haible  <bruno@clisp.org>
4314
4315         canonicalize: make the right guess when cross-compiling to GNU
4316         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
4317         determine whether cross-compiling to glibc systems, so as to
4318         include GNU/Hurd.
4319
4320 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
4321
4322         timespec-sub: avoid duplicate include
4323         * lib/timespec-sub.c: Do not include <config.h> twice.
4324         Reported by Juanma Barranquero.
4325
4326 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
4327
4328         bootstrap: use a more consistent error reporting scheme
4329         * build-aux/bootstrap (warn, die): New.
4330         Use them.
4331
4332 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
4333
4334         sys_time: allow too-wide tv_sec
4335         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
4336         timeval even if tv_sec is wider than time_t.  This allows
4337         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
4338         as without this patch gnulib replaces struct timeval
4339         and OpenBSD futimes therefore has a type mismatch.
4340         * doc/posix-headers/sys_time.texi: Mention this.
4341
4342         pthread: check for both pthread_create and pthread_join
4343         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
4344         alter the check so that it tests for both pthread_create and
4345         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
4346         Suggested by Bruno Haible and Richard Yao in
4347         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
4348
4349         parse-datetime: doc tuneup
4350         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
4351         spacing issues.
4352
4353 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
4354
4355         do-release-commit-and-tag: fix the previous commit
4356         * build-aux/do-release-commit-and-tag: Actually the test was right,
4357         but the comment and the error message were misleading.
4358         Fix comment, and improve error message.
4359         Perform check first, so that NEWS is not modified uselessly.
4360
4361         do-release-commit-and-tag: fix typo
4362         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
4363         _not_ start with a stub.
4364
4365 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
4366
4367         pthread: check for pthread_create, not pthread_join
4368         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
4369         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
4370         pthread_join in libc.  I hope this removes the need for all the
4371         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
4372         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
4373
4374 2012-07-04  Jim Meyering  <meyering@redhat.com>
4375
4376         parse-datetime: fix failure to diagnose invalid input
4377         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
4378         rather than diagnosing the invalid input.  Now it reports this:
4379         date: invalid date '\260'
4380         * lib/parse-datetime.y (to_uchar): Define.
4381         (yylex): Don't sign-extend "other" bytes.
4382         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
4383         Thanks to Bruno Haible for the patch to this file.
4384         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
4385         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
4386
4387 2012-07-03  Jim Meyering  <meyering@redhat.com>
4388
4389         bootstrap: do not require now-removed build-aux/missing
4390         Now that build-aux/missing is, er, missing, bootstrap would
4391         silently fail.
4392         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
4393         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
4394         no longer part of gnulib.
4395         Diagnose the failure.
4396
4397 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
4398
4399         alloca: add support for HP NonStop TNS/E native
4400         * lib/alloca.in.h (alloca): Support the new host.
4401         From a suggestion by Joachim Schmitz in
4402         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>.
4403
4404 2012-07-02  Pádraig Brady  <P@draigBrady.com>
4405
4406         fsusage: remove code not needed on non GNU/Linux systems.
4407
4408         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
4409         Don't include headers no longer needed in this case.
4410         * lib/fsusage.c [STAT_STATVFS &&
4411         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
4412         STAT_STATFS2_FRSIZE to exclude code not used in this case.
4413
4414 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
4415
4416         fsusage: include files needed for glibc 2.6 fallback
4417         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
4418         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
4419         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
4420         Problem reported by Ludovic Courtès in
4421         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00005.html>.
4422
4423         fsusage: avoid needless check on GNU/Linux
4424         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
4425         on GNU/Linux systems, since it can't possibly work.
4426
4427 2012-07-01  Bruno Haible  <bruno@clisp.org>
4428
4429         log: Fix an autoconf >= 2.64 warning.
4430         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
4431         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
4432
4433 2012-06-28  Bruno Haible  <bruno@clisp.org>
4434
4435         log10f: Fix possible configuration problem.
4436         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
4437         $LOGF_LIBM.
4438         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
4439
4440 2012-06-28  Bruno Haible  <bruno@clisp.org>
4441
4442         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
4443         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
4444         not gl_cv_func_unlink_works.
4445         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
4446
4447 2012-06-27  Eric Blake  <eblake@redhat.com>
4448
4449         config: drop scripts that automake says are not independent
4450         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
4451         * build-aux/elisp-comp: Delete.
4452         * build-aux/missing: Likewise.
4453         * build-aux/ylwrap: Likewise.
4454         * modules/elisp-comp: Likewise.
4455         * MODULES.html.sh: Drop mention of elisp-comp.
4456         * NEWS: Mention this.
4457
4458 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
4459
4460         root-uid: new module
4461         This is for portability to Tandem's NonStop Kernel.
4462         * lib/root-uid.h, modules/root-uid: New files.
4463         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
4464         * lib/write-any-file.c, tests/test-sethostname2.c:
4465         Include "root-uid.h".
4466         * lib/euidaccess.c (euidaccess):
4467         * lib/pt_chown.c (main):
4468         * lib/unlinkdir.c (cannot_unlink_dir):
4469         * lib/write-any-file.c (can_write_any_file):
4470         * m4/mknod.m4 (gl_FUNC_MKNOD):
4471         * tests/test-sethostname2.c (geteuid, main):
4472         Don't assume ROOT_UID == 0.
4473         * modules/euidaccess (Depends-on):
4474         * modules/pt_chown (Depends-on):
4475         * modules/sethostname-tests (Depends-on):
4476         * modules/unlinkdir (Depends-on):
4477         * modules/write-any-file (Depends-on):
4478         Add root-uid.
4479
4480         regex: use locale-independent comparison for codeset name
4481         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
4482         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
4483         for codeset name.
4484         * lib/regex_internal.h: Do not include <strings.h>, since we
4485         no longer use strcasecmp.
4486         * modules/regex (Depends-on): Remove strcase.
4487
4488 2012-06-23  Bruno Haible  <bruno@clisp.org>
4489
4490         getopt-posix: No longer guarantee that option processing is resettable.
4491         * doc/posix-functions/getopt.texi: Drop description of problem with
4492         internal state. Fix info about mingw and msvc9.
4493         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
4494         option processing by getopt(). Run three test programs instead of one.
4495         Simplify cross-compilation guess.
4496         * NEWS: Mention the change.
4497         Reported by Rich Felker <dalias@aerifal.cx>.
4498
4499 2012-06-26  Bruno Haible  <bruno@clisp.org>
4500
4501         argp, regex: Ensure strcasecmp gets declared.
4502         * lib/argp-help.c: Include <strings.h>.
4503         * lib/regex_internal.h: Likewise.
4504         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
4505
4506 2012-06-24  Bruno Haible  <bruno@clisp.org>
4507
4508         ptsname_r: Make it consistent with ptsname on AIX.
4509         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
4510         implementation as for OSF/1.
4511         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
4512         a pty master.
4513
4514         ptsname_r: Make it consistent with ptsname on OSF/1.
4515         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
4516         OSF/1.
4517
4518 2012-06-24  Bruno Haible  <bruno@clisp.org>
4519
4520         ttyname_r: Fix result on OSF/1, Solaris.
4521         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
4522
4523 2012-06-24  Bruno Haible  <bruno@clisp.org>
4524
4525         ptsname_r: Add support for Solaris.
4526         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
4527         Solaris.
4528
4529         ptsname_r: Fix test failure on native Windows.
4530         * modules/ptsname_r (Depends-on): Add isatty.
4531
4532         ptsname_r: Fix test failures on IRIX, Solaris.
4533         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
4534         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
4535         accordingly.
4536         * lib/ptsname_r.c: Include <fcntl.h>.
4537         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
4538         set errno if fd is invalid.
4539         * tests/test-isatty.c (main): Update comments.
4540
4541 2012-06-24  Bruno Haible  <bruno@clisp.org>
4542
4543         ptsname test: Extend test.
4544         * tests/test-ptsname.c: Include <errno.h>.
4545         (main): Test behaviour with invalid file descriptor.
4546
4547 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
4548
4549         time: fix obsolete comment
4550         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
4551         reference to HAVE_STRUCT_TIMESPEC in comment.
4552
4553 2012-06-23  Bruno Haible  <bruno@clisp.org>
4554
4555         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
4556         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
4557         does not handle abbreviated long options with equivalent
4558         disambiguations, set gl_replace_getopt to yes.
4559         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
4560
4561 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
4562
4563         time_r: fix typo that always overrode localtime_r decl
4564         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
4565         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
4566         not in a standard include.
4567
4568 2012-06-22  Bruno Haible  <bruno@clisp.org>
4569
4570         Write "Mac OS X" instead of "MacOS X".
4571         * README: Write "Mac OS X" instead of "MacOS X".
4572         * build-aux/bootstrap: Likewise.
4573         * build-aux/install-reloc: Likewise.
4574         * lib/acl-internal.h: Likewise.
4575         * lib/acl_entries.c: Likewise.
4576         * lib/argp-ba.c: Likewise.
4577         * lib/argp-pv.c: Likewise.
4578         * lib/config.charset: Likewise.
4579         * lib/copy-acl.c: Likewise.
4580         * lib/csharpexec.c: Likewise.
4581         * lib/euidaccess.c: Likewise.
4582         * lib/fbufmode.c: Likewise.
4583         * lib/fflush.c: Likewise.
4584         * lib/file-has-acl.c: Likewise.
4585         * lib/filemode.h: Likewise.
4586         * lib/fpurge.c: Likewise.
4587         * lib/freadable.c: Likewise.
4588         * lib/freadahead.c: Likewise.
4589         * lib/freading.c: Likewise.
4590         * lib/freadptr.c: Likewise.
4591         * lib/freadseek.c: Likewise.
4592         * lib/fseeko.c: Likewise.
4593         * lib/fseterr.c: Likewise.
4594         * lib/fsusage.c: Likewise.
4595         * lib/fwritable.c: Likewise.
4596         * lib/fwriting.c: Likewise.
4597         * lib/get-rusage-as.c: Likewise.
4598         * lib/get-rusage-data.c: Likewise.
4599         * lib/getdomainname.c: Likewise.
4600         * lib/idpriv-drop.c: Likewise.
4601         * lib/idpriv-droptemp.c: Likewise.
4602         * lib/localcharset.c: Likewise.
4603         * lib/locale.in.h: Likewise.
4604         * lib/localename.c: Likewise.
4605         * lib/mbsrtowcs-state.c: Likewise.
4606         * lib/nproc.c: Likewise.
4607         * lib/passfd.c: Likewise.
4608         * lib/posix_openpt.c: Likewise.
4609         * lib/printf-parse.c: Likewise.
4610         * lib/progreloc.c: Likewise.
4611         * lib/safe-read.h: Likewise.
4612         * lib/safe-write.h: Likewise.
4613         * lib/sched.in.h: Likewise.
4614         * lib/set-mode-acl.c: Likewise.
4615         * lib/signal.in.h: Likewise.
4616         * lib/stdint.in.h: Likewise.
4617         * lib/stdio-impl.h: Likewise.
4618         * lib/stdlib.in.h: Likewise.
4619         * lib/strtod.c: Likewise.
4620         * lib/sys_select.in.h: Likewise.
4621         * lib/tcgetsid.c: Likewise.
4622         * lib/unistd.in.h: Likewise.
4623         * lib/unlockpt.c: Likewise.
4624         * lib/vasnprintf.c: Likewise.
4625         * lib/vma-iter.c: Likewise.
4626         * lib/wcsrtombs-state.c: Likewise.
4627         * m4/acl.m4: Likewise.
4628         * m4/acosl.m4: Likewise.
4629         * m4/asinl.m4: Likewise.
4630         * m4/atanl.m4: Likewise.
4631         * m4/c-stack.m4: Likewise.
4632         * m4/cosl.m4: Likewise.
4633         * m4/expl.m4: Likewise.
4634         * m4/extensions.m4: Likewise.
4635         * m4/fdatasync.m4: Likewise.
4636         * m4/fmal.m4: Likewise.
4637         * m4/frexp.m4: Likewise.
4638         * m4/frexpf.m4: Likewise.
4639         * m4/frexpl.m4: Likewise.
4640         * m4/fsusage.m4: Likewise.
4641         * m4/getdomainname.m4: Likewise.
4642         * m4/getloadavg.m4: Likewise.
4643         * m4/getopt.m4: Likewise.
4644         * m4/gettext.m4: Likewise.
4645         * m4/gnulib-common.m4: Likewise.
4646         * m4/intdiv0.m4: Likewise.
4647         * m4/intlmacosx.m4: Likewise.
4648         * m4/largefile.m4: Likewise.
4649         * m4/ldexpl.m4: Likewise.
4650         * m4/link-follow.m4: Likewise.
4651         * m4/locale-ar.m4: Likewise.
4652         * m4/locale-fr.m4: Likewise.
4653         * m4/locale-ja.m4: Likewise.
4654         * m4/locale-tr.m4: Likewise.
4655         * m4/locale-zh.m4: Likewise.
4656         * m4/locale_h.m4: Likewise.
4657         * m4/lock.m4: Likewise.
4658         * m4/logl.m4: Likewise.
4659         * m4/mathfunc.m4: Likewise.
4660         * m4/minus-zero.m4: Likewise.
4661         * m4/mktime.m4: Likewise.
4662         * m4/mmap-anon.m4: Likewise.
4663         * m4/multiarch.m4: Likewise.
4664         * m4/nanosleep.m4: Likewise.
4665         * m4/nocrash.m4: Likewise.
4666         * m4/poll.m4: Likewise.
4667         * m4/printf-frexpl.m4: Likewise.
4668         * m4/printf.m4: Likewise.
4669         * m4/signbit.m4: Likewise.
4670         * m4/sinl.m4: Likewise.
4671         * m4/sqrtl.m4: Likewise.
4672         * m4/strerror_r.m4: Likewise.
4673         * m4/tanl.m4: Likewise.
4674         * m4/threadlib.m4: Likewise.
4675         * m4/ttyname_r.m4: Likewise.
4676         * m4/unlink.m4: Likewise.
4677         * m4/visibility.m4: Likewise.
4678         * m4/wcwidth.m4: Likewise.
4679         * tests/minus-zero.h: Likewise.
4680         * tests/test-alloca-opt.c: Likewise.
4681         * tests/test-copy-acl.sh: Likewise.
4682         * tests/test-copy-file.sh: Likewise.
4683         * tests/test-fdatasync.c: Likewise.
4684         * tests/test-file-has-acl.sh: Likewise.
4685         * tests/test-flock.c: Likewise.
4686         * tests/test-fsync.c: Likewise.
4687         * tests/test-localename.c: Likewise.
4688         * tests/test-malloca.c: Likewise.
4689         * tests/test-nonblocking-pipe.h: Likewise.
4690         * tests/test-nonblocking-socket.h: Likewise.
4691         * tests/test-openpty.c: Likewise.
4692         * tests/test-posix_openpt.c: Likewise.
4693         * tests/test-ptsname.c: Likewise.
4694         * tests/test-ptsname_r.c: Likewise.
4695         * tests/test-sameacls.c: Likewise.
4696         * tests/test-select.h: Likewise.
4697         * tests/test-set-mode-acl.sh: Likewise.
4698         * tests/test-snprintf-posix.h: Likewise.
4699         * tests/test-sprintf-posix.h: Likewise.
4700         * tests/test-strtod.c: Likewise.
4701         * tests/test-time.c: Likewise.
4702         * tests/test-vasnprintf-posix.c: Likewise.
4703         * tests/test-vasprintf-posix.c: Likewise.
4704         * doc/acl-resources.txt: Likewise.
4705         * doc/**/*.texi: Likewise.
4706         Reported by Max Horn <max@quendi.de>.
4707
4708 2012-06-22  Bruno Haible  <bruno@clisp.org>
4709
4710         grantpt: Relax requirement regarding invalid file descriptors.
4711         * lib/grantpt.c: Don't include <fcntl.h>.
4712         (grantpt): Don't verify the validity of the file descriptor.
4713         * modules/grantpt (Depends-on): Remove fcntl-h.
4714         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
4715         file descriptors.
4716         * doc/posix-functions/grantpt.texi: Document more platforms on which
4717         grantpt succeeds for invalid file descriptors.
4718         Reported by Rich Felker <dalias@aerifal.cx>.
4719
4720 2012-06-22  Bruno Haible  <bruno@clisp.org>
4721
4722         fbufmode test: Don't test unportable behaviour.
4723         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
4724         (main): Invoke it three times.
4725         Reported by Szabolcs Nagy <nsz@port70.net>
4726         and Rich Felker <dalias@aerifal.cx>.
4727
4728 2012-06-21  Bruno Haible  <bruno@clisp.org>
4729
4730         gnulib-tool: Refactor inctests variable.
4731         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
4732         (func_modules_transitive_closure,
4733         func_modules_transitive_closure_separately,
4734         func_import, func_create_testdir): Update.
4735
4736         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
4737         * gnulib-tool: Accept option --without-tests.
4738         (func_usage): Document --without-tests option. Rearrange.
4739         (inctests): Normalize according to the mode.
4740         * NEWS: Mention the change.
4741         Suggested by Simon Josefsson.
4742
4743 2012-06-21  Bruce Korb  <bkorb@gnu.org>
4744
4745         parse-duration test: Avoid spurious output.
4746         * tests/test-parse-duration.sh: Reindent with leading tabs.
4747
4748 2012-06-21  Jim Meyering  <meyering@redhat.com>
4749
4750         maint: disable the strncpy prohibition
4751         * cfg.mk: Do not prohibit strncpy here.
4752
4753 2012-06-21  Bruno Haible  <bruno@clisp.org>
4754
4755         nonblocking: Avoid compilation error on mingw64.
4756         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
4757         fscanf.
4758         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
4759         * modules/vfscanf (configure.ac): Likewise.
4760         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
4761         definition only if stdio.h has prepared it.
4762         Reported by Daniel P. Berrange <berrange@redhat.com>.
4763
4764 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
4765
4766         gnulib-tool: Use readlink if it is available.
4767         * gnulib-tool (func_readlink): Choose function more appropriately.
4768
4769 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
4770
4771         posixtm-tests: port to buggy compiler
4772         Problem reported by Simon Josefsson in
4773         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
4774         * modules/posixtm-tests (Depends-on): Add stdint.
4775         * tests/test-posixtm.c (struct posixtm_test.t_expected):
4776         Now of type int_least64_t, not int64_t, both because that's
4777         what INT64_C returns and because int_least64_t works even
4778         on 72-bit hosts.
4779         (T): Use INT64_C on constants outside the traditional int range,
4780         to work around compiler bug noted by Simon.
4781
4782         mktime: fix integer overflow in 'configure'-time test
4783         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
4784         after integer overflow.  Problem reported by Rich Felker in
4785         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
4786         Also, don't look for further instances of a bug if we've already
4787         found one instance; this helps 'configure' run faster.
4788
4789 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
4790
4791         tmpfile, clean-temp: Fix invocation of GetVersionEx.
4792         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
4793         GetVersionEx correctly.
4794         * lib/clean-temp.c (supports_delete_on_close): Likewise.
4795
4796 2012-06-20  Bruno Haible  <bruno@clisp.org>
4797
4798         fdopen: Allow implementations that don't reject invalid fd arguments.
4799         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
4800         succeeds.
4801         Reported by Rich Felker <dalias@aerifal.cx>.
4802
4803 2012-06-20  Simon Josefsson  <simon@josefsson.org>
4804
4805         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
4806         bring in LIBINTL.
4807
4808 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
4809
4810         init.sh: do not rely on autoupated PWD
4811         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
4812         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
4813         Although Nelson's bug was not necessarily fixed by this patch,
4814         it seems wise to make the change for safety.
4815         * tests/init.sh (path_prepend_): Do not rely on PWD updating
4816         automagically after 'cd'; this is not reliable on older shells.
4817         (setup_): Fail if we cannot cd to temporary directory.
4818
4819 2012-06-19  Bruno Haible  <bruno@clisp.org>
4820
4821         stat, fstat: Avoid warnings on mingw64.
4822         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
4823         redefining.
4824         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
4825         Reported by Daniel P. Berrange <berrange@redhat.com>.
4826
4827 2012-06-19  Bruno Haible  <bruno@clisp.org>
4828
4829         stdioext: Add support for musl libc.
4830
4831         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
4832         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
4833
4834         * m4/fseterr.m4: New file.
4835         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
4836         function exists.
4837         * modules/fseterr (Files): Add m4/fseterr.m4.
4838         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
4839         __fseterr does not exist.
4840         (Makefile.am): Remove fseterr.c from lib_SOURCES.
4841
4842         * lib/freadable.h: Update comment.
4843
4844         * lib/fwritable.h: Update comment.
4845
4846         * lib/freading.h: Update comment.
4847
4848         * lib/fwriting.h: Update comment.
4849
4850         * m4/freadahead.m4: New file.
4851         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
4852         that function exists.
4853         * modules/freadahead (Files): Add m4/freadahead.m4.
4854         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
4855         __freadahead does not exist.
4856         (Makefile.am): Remove freadahead.c from lib_SOURCES.
4857
4858         * m4/freadptr.m4: New file.
4859         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
4860         function exists.
4861         * modules/freadptr (Files): Add m4/freadptr.m4.
4862         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
4863         __freadptr does not exist.
4864         (Makefile.am): Remove freadptr.c from lib_SOURCES.
4865
4866         * m4/freadseek.m4: New file.
4867         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
4868         exists.
4869         * modules/freadseek (Files): Add m4/freadseek.m4.
4870         (configure.ac): Invoke gl_FUNC_FREADSEEK.
4871
4872         * lib/fpurge.c (fpurge): Update comment.
4873
4874         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
4875
4876 2012-06-19  Bruno Haible  <bruno@clisp.org>
4877
4878         *printf-posix: Put more info into config.log.
4879         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
4880         exit code into config.log.
4881
4882 2012-06-19  Bruno Haible  <bruno@clisp.org>
4883
4884         getopt-gnu: Fix exit code overflow in autoconf test.
4885         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
4886         to keep them below < 128.
4887
4888 2012-06-17  Jim Meyering  <meyering@redhat.com>
4889
4890         maint.mk: fix typo in code to derive GPG key at release time
4891         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
4892
4893 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
4894
4895         regex: avoid warning when pointers are not long
4896         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
4897         and uintptr_t, not long, for portability to hosts where pointers and
4898         long have different sizes.  Issue noted by Daniel P. Berrange in
4899         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
4900         and fix suggested by Bruno Haible in
4901         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
4902
4903 2012-06-17  Bruno Haible  <bruno@clisp.org>
4904
4905         dummy: Relicense into the public domain.
4906         * modules/dummy (License): Set to "public domain".
4907         Suggested by Reuben Thomas.
4908
4909 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
4910
4911         announce-gen: VPATH issues
4912         * build-aux/announce-gen (--srcdir): New option, used to trim the
4913         $srcdir part of the path from $builddir to NEWS.
4914         * top/maint.mk (announcement): Adjust.
4915
4916 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
4917
4918         gnu-web-doc-update: VPATH builds
4919         * build-aux/gnu-web-doc-update (--builddir): New option.
4920         Revamp the handling of options.
4921         Prefer $(...) to `...`.
4922         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
4923         the template, and it is GNU mktemp specific.
4924         Prefer set -e to long series of &&.
4925         Restore the initial git branch, not "master".
4926         Properly initialize submodules (don't rely only on bootstrap).
4927         Do not reconfigure blindly, use config.status.
4928         * top/README-release: Update instructions for gnu-web-doc-update.
4929
4930 2012-06-11  Jim Meyering  <meyering@redhat.com>
4931
4932         maint.mk: revert most of the previous change re "all these"
4933         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
4934         For rationale, see the discussion at
4935         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
4936
4937 2012-06-10  Karl Berry  <karl@gnu.org>
4938
4939         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
4940
4941         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
4942
4943 2012-06-10  Bruce Korb  <bkorb@gnu.org>
4944
4945         parse-duration: Relicense under LGPLv2+.
4946         * modules/parse-duration (License): Change to LGPLv2+.
4947
4948 2012-06-10  Jim Meyering  <meyering@redhat.com>
4949
4950         maint.mk: prohibit common grammar error: "all these"
4951         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
4952         the list of prohibited word sequences.  It should be "all of these".
4953         * lib/tempname.c (__gen_tempname): Fix one of them.
4954
4955 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
4956
4957         do-release-commit-and-tag: support VPATH builds
4958         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
4959         (noteworthy): Defined earlier to factor its value.
4960         (noteworthy_stub): New.
4961         Use it to factor.
4962         (help_version): Split into...
4963         (help, version): these.
4964         Adjust the option processing part.
4965         Support "--option=value" in addition to "--option value".
4966         (builddir): New.
4967         (--builddir): New option.
4968         * top/README-release: Document this.
4969         Reword slightly so that the reader cannot understand that he
4970         has to do these steps before calling do-release-commit-and-tag.
4971
4972 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
4973
4974         readme-release: also require announce-gen and maintainer-makefile
4975         * modules/readme-release (Depends-on): here.
4976         * modules/announce-gen, modules/do-release-commit-and-tag,
4977         modules/gnu-web-doc-update, modules/maintainer-makefile
4978         (Description): Point to readme-release.
4979
4980 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
4981
4982         maint.mk: fix VPATH issues.
4983         * top/maint.mk (news-check): GNU Make understand $< very well.
4984         (release-prep): NEWS is in $(srcdir).
4985
4986 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
4987
4988         readme-release: require the promoted modules.
4989         * modules/readme-release (Depends-on): Add
4990         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
4991         in this text.
4992
4993 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
4994             Bruno Haible  <bruno@clisp.org>
4995
4996         error, strerror-override: Support mingw64 from Fedora 17.
4997         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
4998         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
4999         EINPROGRESS.
5000         * lib/strerror-override.h (strerror_override): Test it.
5001         * lib/strerror-override.c (strerror_override): Likewise.
5002         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
5003
5004 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
5005             Bruno Haible  <bruno@clisp.org>
5006
5007         error, strerror-override: Support mingw64 from Fedora 17.
5008         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
5009         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
5010         * lib/strerror-override.h (strerror_override): Test it.
5011         * lib/strerror-override.c (strerror_override): Likewise.
5012
5013 2012-06-03  Bruno Haible  <bruno@clisp.org>
5014
5015         error, strerror-override: Support new errno values from POSIX:2008.
5016         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
5017         ENOTRECOVERABLE.
5018         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
5019         platforms.
5020         * lib/strerror-override.c (strerror_override): Conditionalize the
5021         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
5022         * lib/strerror-override.h (strerror_override): Declare also if
5023         GNULIB_defined_EOWNERDEAD is defined.
5024         * tests/test-errno.c (e130, e131): New variables.
5025         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
5026         ENOTRECOVERABLE.
5027         Reported by Paolo Bonzini.
5028
5029 2012-05-31  Jim Meyering  <meyering@redhat.com>
5030
5031         savewd: add missing dependency on sys_wait module
5032         * modules/savewd (Depends-on): Add sys_wait, needed at least
5033         for MSVC.  Report and suggested change by Michael Goffioul.
5034
5035 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
5036
5037         system-quote-tests: port to CentOS 5
5038         Problem reported by Tom G. Christensen in
5039         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
5040         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
5041
5042 2012-05-29  Jim Meyering  <meyering@redhat.com>
5043
5044         maint: fix typos in comments and ChangeLog
5045         Culprits identified and fixed mostly automatically using these commands:
5046         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
5047         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
5048         using http://github.com/lyda/misspell-check
5049         * ChangeLog: Fix typos.
5050         * doc/solaris-versions: Likewise.
5051         * lib/regexec.c (re_search_stub): Likewise.
5052         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
5053
5054 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
5055
5056         manywarnings: remove duplicate -Wmultichar entry
5057         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
5058         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
5059         so keep the entry marked as documented.
5060
5061 2012-05-27  Karl Berry  <karl@gnu.org>
5062
5063         * config/srclist.txt (mktime.c): remove last libc sync,
5064         perhaps just temporarily.
5065
5066 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
5067
5068         regex: don't assume uint64_t or uint32_t
5069         * lib/regcomp.c (init_word_char): Don't assume that the types
5070         uint64_t and uint32_t exist.  The C standard doesn't guarantee
5071         them, and on some 32-bit compilers there is no uint64_t.
5072         Problem reported by Gianluigi Tiesi in
5073         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
5074
5075 2012-05-25  Jim Meyering  <meyering@redhat.com>
5076
5077         maint.mk: add strncpy-prohibiting syntax-check rule
5078         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
5079
5080 2012-05-24  Jim Meyering  <meyering@redhat.com>
5081
5082         maint.mk: compute $(gpg_key_ID) more portably
5083         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
5084         That use of sed is not portable to some fringe systems.
5085         Reported by Paul Eggert in
5086         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
5087
5088 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
5089
5090         mktime: sync from glibc
5091         * config/srclist.txt: Uncomment mktime.c.
5092         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
5093         First, indent with tabs, since glibc uses tabs and doesn't want to
5094         change and we'd rather be identical to glibc.  Also, two small
5095         coding changes:
5096         (isdst_differ): Use &&, not &, as && is the usual style.
5097         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
5098         for clarity.
5099
5100 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
5101
5102         announce-gen: du -h is more portable than du --human
5103         * build-aux/announce-gen (sizes): Invoke du with -h instead
5104         of --human.  Accept leading white space in its output.
5105
5106 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
5107
5108         announce-gen: Improve diagnostics.
5109         * build-aux/announce-gen: When parsing command line options,
5110         prefer "announce-gen: option --release-type requires an argument"
5111         to "Option release-type requires an argument".
5112
5113 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
5114
5115         maint.mk: gpg_key_ID: use sed more portably
5116         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
5117         the closing brace.
5118         (refresh-po): Fuse two sed invocations into one.
5119
5120 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
5121
5122         gitlog-to-changelog: support the log message format used in Bison.
5123         * build-aux/gitlog-to-changelog: Support --strip-tab and
5124         --strip-cherry-picked.
5125
5126 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
5127
5128         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
5129         the rest of the current time slice to another thread in the current
5130         process. So if the thread that feeds the file decscriptor we're
5131         polling is not in the current process, we get busy-waiting.
5132         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
5133         Patch from Theodore Leblond.
5134         * lib/select.c: Split polling out of the loop that sets the output
5135         fd_sets.  Check for zero result and loop if the wait timeout is
5136         infinite.
5137
5138 2012-05-21  Simon Josefsson  <simon@josefsson.org>
5139
5140         select: Fix build error on IRIX 6.5.
5141         * lib/select.c: Include stddef.h for NULL.
5142
5143 2012-05-21  Simon Josefsson  <simon@josefsson.org>
5144
5145         gc: fix libgcrypt detection on older machines.
5146         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
5147         copyright years because the file has been distributed every year
5148         since it was created.
5149
5150 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
5151
5152         crypto: fix bug in large buffer handling
5153         Problem reported by Serge Belyshev for glibc in
5154         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
5155         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
5156         * lib/md4.c (md4_process_block):
5157         * lib/md5.c (md5_process_block):
5158         * lib/sha1.c (sha1_process_block):
5159         * lib/sha256.c (sha256_process_block):
5160         Don't assume the buffer length is less than 2**32.
5161         * lib/sha512.c (sha512_process_block): Likewise.
5162         Here, the bug is present only in the rare case where the host does
5163         not support uint64_t or where size_t is wider than 64 bits.
5164         Use u64size to work around the problems.
5165         * lib/u64.h (u64size): New macro.
5166
5167 2012-05-15  Pádraig Brady  <P@draigBrady.com>
5168
5169         fsusage: fix block size returned on older Linux 2.6
5170
5171         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
5172         which is available since Linux 2.6.
5173         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
5174         when the member is available so it can be used as a fallback.
5175         * doc/posix-functions/statvfs.texi: Mention the hang issue
5176         on Linux < 2.6.36.
5177
5178 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
5179
5180         bootstrap: suppress stderr chatter
5181         * build-aux/bootstrap (insert_sorted_if_absent, main program):
5182         Omit unnecessary chatter to stderr.  The main program chatter
5183         was there only inadvertantly.
5184
5185         bootstrap: .gitignore files created by autopoint, libtool
5186         I ran into this problem when bootstrapping the latest diffutils.
5187         After './bootstrap', 'git status' reported lots of untracked files
5188         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
5189         autopoint and do not need to be version-controlled.
5190         * build-aux/bootstrap: Put into .gitignore the files that
5191         autopoint and libtool create, by keeping track of files that exist
5192         after but not before these programs are run.
5193         (version_controlled_file): Move up.  2nd arg is now full file
5194         name, not base name; this is more convenient.  Put CVS at the end,
5195         as it's now somewhat deprecated.
5196
5197 2012-05-14  Jim Meyering  <meyering@redhat.com>
5198
5199         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
5200         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
5201         definition.  Reported by Bruno Haible.
5202
5203 2012-05-13  Bruno Haible  <bruno@clisp.org>
5204             Paul Eggert  <eggert@cs.ucla.edu>
5205
5206         binary-io: Define set_binary_mode function.
5207         * lib/binary-io.h (set_binary_mode): New function.
5208         (SET_BINARY): Define in terms of set_binary_mode.
5209         * modules/binary-io (configure.ac): Require AC_C_INLINE.
5210         * tests/test-binary-io.c (main): Accept an argument, and test either
5211         set_binary_mode or SET_BINARY depending on the argument.
5212         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
5213         argument. Clean up also t-bin-out0.tmp.
5214
5215 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
5216
5217         bootstrap: take advantage of POSIX shell features
5218
5219         The 'bootstrap' script offered by Gnulib script already uses POSIX
5220         shell features (like $((...)) arithmetic expansions) that are not
5221         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
5222         means that bootstrap must already be run using a proper POSIX shell,
5223         which will thus provide more features, like ${var#pattern} parameter
5224         expansion or inversion of a command exit status with '!'.  We can
5225         thus use these features to improve the clarity and the performances
5226         of the bootstrap script.
5227
5228         Suggested by Eric Blake.
5229
5230         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
5231         of sed/expr plus command substitutions, to save some forks.  While
5232         we are at it, prefer the POSIX $(...) form of command substitution,
5233         rather than the legacy form `...` (since the former is visually
5234         clearer and interacts better with quoting), and prefer the idiom:
5235           "if ! CMD; then ACTION ..."
5236         over the idiom:
5237           "if CMD; then :; else ACTION ..."
5238         which was required by legacy Bourne shells not supporting '!'.
5239
5240 2012-05-12  Bruno Haible  <bruno@clisp.org>
5241
5242         system-quote: Add more comments.
5243         * lib/system-quote.h: Add more comments about wilcards and limitations.
5244         Suggested by Eli Zaretskii <eliz@gnu.org>.
5245
5246         sh-quote, system-quote: Add comments about wildcards.
5247         * lib/sh-quote.h: Clarify what happens with wildcard characters.
5248         * lib/system-quote.h: Likewise.
5249         Reported by Eli Zaretskii <eliz@gnu.org>.
5250
5251 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
5252
5253         fsusage: check for GNU/Linux statvfs problem dynamically
5254         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
5255         Define STAT_STATFS2_BSIZE too, since in this case the code now
5256         checks dynamically whether statvfs is reliable, falling back on
5257         Linux-style statfs otherwise.
5258         (statvfs_works): New function, for dynamically testing statvfs.
5259         (get_fs_usage) [STAT_STATVFS]: Use it.
5260         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
5261         statvfs on GNU/Linux hosts, since it's now done dynamically.
5262
5263 2012-05-10  Bruno Haible  <bruno@clisp.org>
5264
5265         system-quote, execute, spawn-pipe: Escape '?' on Windows.
5266         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
5267         '?' character.
5268         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
5269         * tests/test-system-quote-main.c (check_all): Check also strings like
5270         "??????????".
5271         Reported by Eli Zaretskii <eliz@gnu.org>.
5272
5273 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
5274
5275         _Noreturn: port config.h to gcc -Wundef
5276         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
5277         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
5278         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
5279
5280 2012-05-10  Bruno Haible  <bruno@clisp.org>
5281
5282         system-quote: Refactor.
5283         * lib/system-quote.h (system_quote_copy): Fix comment.
5284         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
5285         New functions, extracted from system_quote_copy.
5286         (system_quote_length, system_quote_copy): Use these functions.
5287         Reported by Paul Eggert.
5288
5289 2012-05-08  Bruno Haible  <bruno@clisp.org>
5290
5291         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
5292         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
5293
5294 2012-05-08  Bruno Haible  <bruno@clisp.org>
5295
5296         Tests for module 'system-quote'.
5297         * modules/system-quote-tests: New file.
5298         * tests/test-system-quote.sh: New file.
5299         * tests/test-system-quote-main.c: New file.
5300         * tests/test-system-quote-child.c: New file.
5301
5302         New module 'system-quote'.
5303         * lib/system-quote.h: New file.
5304         * lib/system-quote.c: New file.
5305         * modules/system-quote: New file.
5306
5307 2012-05-08  Bruno Haible  <bruno@clisp.org>
5308
5309         sh-quote: Make C++ safe and allow multiple inclusion.
5310         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
5311         declarations in extern "C".
5312
5313 2012-05-08  Bruno Haible  <bruno@clisp.org>
5314
5315         sh-quote tests: Make tests stricter.
5316         * tests/test-sh-quote.c (check_one): Check the return value of
5317         shell_quote_copy.
5318         (main): Check a string with a CR character. Check a string that
5319         contains UCHAR_MAX.
5320
5321 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
5322
5323         warnings.m4: provide a means to specify the program to compile.
5324         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
5325         (gl_WARN_ADD): here.
5326         Use gl_AS_VAR_APPEND.
5327         Support an argument to specify the program to compile.
5328         (gl_WARN_ADD): Accept an argument to specify the program to compile.
5329         AC_SUBST the WARN_CFLAGS when they are used.
5330         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
5331         leave this to gl_WARN_ADD.
5332
5333 2012-05-08  Eric Blake  <eblake@redhat.com>
5334
5335         doc: recommendations on gettext version
5336         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
5337         choice between versions.
5338         * DEPENDENCIES (gettext): Cover both approaches.
5339
5340 2012-05-08  Jim Meyering  <meyering@redhat.com>
5341
5342         init.sh: explain why EXEEXT support uses aliases rather than functions
5343         * tests/init.sh: Add a comment.
5344
5345         init.sh: don't let bash aliases interfere with tests
5346         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
5347         is bash.  This avoids problems for those who alias standard commands to
5348         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
5349         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
5350
5351 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
5352
5353         stdint: be more consistent with glibc, SunOS libc
5354         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
5355         (gl_int_fast16_t, gl_uint_fast16_t)
5356         (gl_int_fast32_t, gl_uint_fast32_t)
5357         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
5358         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
5359         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
5360         Be consistent with glibc by default, and with SunOS 5.10 and later
5361         if __sun is defined.  This lessens the likelihood of clashes if
5362         code compiled for older hosts is combined with code compiled for
5363         newer ones.  Problem reported by Niels Möller in
5364         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
5365
5366 2012-05-07  Eric Blake  <eblake@redhat.com>
5367
5368         isatty: relax license to LGPLv2+
5369         * modules/isatty (License): Relax license.
5370
5371 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
5372
5373         stat-size: comment fix
5374         * lib/stat-size.h: Remove obsolete comment about indenting.
5375
5376 2012-05-06  Bruno Haible  <bruno@clisp.org>
5377
5378         Tests for module 'sh-quote'.
5379         * modules/sh-quote-tests: New file.
5380         * tests/test-sh-quote.c: New file.
5381
5382 2012-05-06  Bruno Haible  <bruno@clisp.org>
5383
5384         sh-quote: Improve shell_quote_argv's signature.
5385         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
5386         * lib/sh-quote.c (shell_quote_argv): Likewise.
5387
5388 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
5389
5390         stdint: document issues with int_fast8_t etc.
5391         * doc/posix-headers/stdint.texi (stdint.h): Say that other
5392         stdint.h substitutes may define these types differently.  See
5393         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
5394
5395 2012-05-05  Bruno Haible  <bruno@clisp.org>
5396
5397         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
5398         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
5399         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
5400         or 'guessing no (mishandles large arguments)'.
5401
5402 2012-05-05  Bruno Haible  <bruno@clisp.org>
5403
5404         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
5405         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
5406         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
5407         set gl_cv_func_link_follows_symlink to "guessing no".
5408
5409 2012-05-05  Bruno Haible  <bruno@clisp.org>
5410
5411         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
5412         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
5413         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
5414         "guessing no".
5415         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
5416
5417 2012-05-05  Bruno Haible  <bruno@clisp.org>
5418
5419         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
5420         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
5421         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
5422         set gl_cv_struct_dirent_d_ino to "guessing yes".
5423
5424 2012-05-05  Bruno Haible  <bruno@clisp.org>
5425
5426         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
5427         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
5428         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
5429         "guessing yes".
5430
5431 2012-05-05  Bruno Haible  <bruno@clisp.org>
5432
5433         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
5434         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
5435         compiling to a glibc system, set gl_cv_func_signbit and
5436         gl_cv_func_signbit_gcc to "guessing yes".
5437
5438 2012-05-05  Bruno Haible  <bruno@clisp.org>
5439
5440         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
5441         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
5442         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
5443         to "guessing yes".
5444         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
5445         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
5446
5447 2012-05-05  Bruno Haible  <bruno@clisp.org>
5448
5449         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
5450         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
5451         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
5452         gl_cv_func_realpath_works to "guessing yes".
5453
5454 2012-05-05  Bruno Haible  <bruno@clisp.org>
5455
5456         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
5457         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
5458         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
5459
5460 2012-05-04  Bruno Haible  <bruno@clisp.org>
5461
5462         Tweak last commit.
5463         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
5464         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
5465
5466 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
5467
5468         unistd_h: make it easier to avoid sys_types_h
5469         This is useful for Emacs, which has its own method of porting to
5470         Windows, and which therefore does not need the sys_types_h module.
5471         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
5472         code moved here from gl_SYS_TYPES_H.
5473         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
5474         using the code directly.
5475         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
5476         gl_SYS_TYPES_H.
5477         * modules/sys_types (Files):
5478         * modules/unistd (Files): Add m4/off_t.m4.
5479
5480 2012-05-03  Bruno Haible  <bruno@clisp.org>
5481
5482         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
5483         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
5484         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
5485         "guessing yes" or "guessing no".
5486         (gl_FUNC_LSTAT): Update.
5487         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
5488         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
5489         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
5490
5491 2012-05-03  Bruno Haible  <bruno@clisp.org>
5492
5493         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
5494         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
5495         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
5496         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
5497         cross-compiling, choose the first alternative on glibc systems.
5498         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
5499
5500 2012-05-03  Bruno Haible  <bruno@clisp.org>
5501
5502         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
5503         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
5504         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
5505
5506 2012-05-03  Bruno Haible  <bruno@clisp.org>
5507
5508         chown: Avoid "guessing no" when cross-compiling to glibc systems.
5509         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
5510
5511 2012-05-03  Bruno Haible  <bruno@clisp.org>
5512
5513         Avoid "guessing no" guesses when cross-compiling to glibc systems.
5514         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
5515         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
5516         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
5517         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
5518         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
5519         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
5520         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
5521         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
5522         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
5523         compiling to glibc systems, set gl_cv_func_chown_slash_works,
5524         gl_cv_func_chown_ctime_works to "guessing yes".
5525         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
5526         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
5527         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
5528         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
5529         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
5530         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
5531         compiling to glibc systems, set gl_cv_func_open_directory_works to
5532         "guessing yes".
5533         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
5534         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
5535         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
5536         "guessing yes".
5537         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
5538         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
5539         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
5540         compiling to glibc systems, set gl_cv_func_floorf_ieee to
5541         "guessing yes".
5542         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
5543         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
5544         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
5545         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
5546         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
5547         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
5548         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
5549         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
5550         "guessing yes".
5551         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
5552         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
5553         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
5554         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
5555         "guessing yes".
5556         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
5557         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
5558         "guessing yes".
5559         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
5560         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
5561         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
5562         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
5563         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
5564         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
5565         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
5566         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
5567         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
5568         compiling to glibc systems, set gl_cv_func_log10f_ieee to
5569         "guessing yes".
5570         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
5571         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
5572         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
5573         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
5574         "guessing yes".
5575         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
5576         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
5577         "guessing yes".
5578         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
5579         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
5580         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
5581         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
5582         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
5583         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
5584         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
5585         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
5586         compiling to glibc systems, set gl_cv_func_mkfifo_works to
5587         "guessing yes".
5588         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
5589         compiling to glibc systems, set gl_cv_func_mknod_works to
5590         "guessing yes".
5591         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
5592         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
5593         "guessing yes".
5594         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
5595         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
5596         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
5597         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
5598         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
5599         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
5600         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
5601         compiling to glibc systems, set gl_cv_func_svid_putenv to
5602         "guessing yes".
5603         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
5604         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
5605         "guessing yes".
5606         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
5607         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
5608         "guessing yes".
5609         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
5610         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
5611         to "guessing yes".
5612         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
5613         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
5614         to "guessing yes".
5615         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
5616         compiling to glibc systems, set gl_cv_func_rmdir_works to
5617         "guessing yes".
5618         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
5619         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
5620         gl_cv_func_unlink_parent_fails to "guessing yes".
5621         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
5622         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
5623         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
5624         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
5625         gl_cv_func_rename_dest_works to "guessing yes".
5626         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
5627         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
5628         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
5629         compiling to glibc systems, set gl_cv_func_roundf_ieee to
5630         "guessing yes".
5631         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
5632         compiling to glibc systems, set gl_cv_func_roundl_ieee to
5633         "guessing yes".
5634         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
5635         compiling to glibc systems, set gl_cv_func_setenv_works to
5636         "guessing yes".
5637         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
5638         compiling to glibc systems, set gl_cv_func_unsetenv_works to
5639         "guessing yes".
5640         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
5641         compiling to glibc systems, set gl_cv_func_sleep_works to
5642         "guessing yes".
5643         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
5644         compiling to glibc systems, set gl_cv_func_stat_file_slash to
5645         "guessing yes".
5646         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
5647         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
5648         "guessing yes".
5649         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
5650         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
5651         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
5652         compiling to glibc systems, set gl_cv_func_truncf_ieee to
5653         "guessing yes".
5654         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
5655         compiling to glibc systems, set gl_cv_func_truncl_ieee to
5656         "guessing yes".
5657         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
5658         compiling to glibc systems, set gl_cv_func_usleep_works to
5659         "guessing yes".
5660         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
5661         compiling to glibc systems, set gl_cv_func_futimesat_works to
5662         "guessing yes".
5663
5664 2012-05-03  Bruno Haible  <bruno@clisp.org>
5665
5666         Say "guessing yes" or "guessing no" when cross-compiling.
5667         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
5668         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
5669         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
5670         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
5671         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
5672         am_cv_func_working_getline to "guessing yes" or "guessing no".
5673         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
5674         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
5675         (gl_FUNC_MEMMEM): When cross-compiling, set
5676         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
5677         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
5678         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
5679         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
5680         set gl_cv_func_strcasestr_works_always to "guessing yes" or
5681         "guessing no".
5682         (gl_FUNC_STRCASESTR): When cross-compiling, set
5683         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
5684         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
5685         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
5686         (gl_FUNC_STRSTR): When cross-compiling, set
5687         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
5688         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
5689         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
5690         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
5691         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
5692
5693 2012-05-01  Bruno Haible  <bruno@clisp.org>
5694
5695         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
5696         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
5697         * build-aux/reloc-ldflags: Likewise.
5698         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
5699
5700 2012-05-01  Bruno Haible  <bruno@clisp.org>
5701
5702         gnulib-tool: Remove transitional code.
5703         * gnulib-tool: Don't warn about --import with 0 arguments any more.
5704         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
5705
5706 2012-05-01  Bruno Haible  <bruno@clisp.org>
5707
5708         getcwd: Fix misindentation.
5709         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
5710
5711 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
5712
5713         exclude: process exclude and include directives in order
5714         This restores the pre-2009 behavior, and is part of a fix of a
5715         grep bug reported by Quentin Arce in
5716         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
5717         * lib/exclude.c (struct exclude): Remove 'tail' member.
5718         (new_exclude_segment): Prepend the new segment instead of appending.
5719         Return void, since that's now more convenient.
5720         (file_pattern_matches): Renamed from excluded_file_pattern_p.
5721         (file_name_matches): Renamed from excluded_file_name_p.
5722         (file_pattern_matches, file_name_matches):
5723         Return true if the pattern matches, not if it excludes.
5724         All callers changed.
5725         (excluded_file_name): Process the list in reverse order;
5726         since the list is now reversed this restores the pre-2009 behavior.
5727         (add_exclude): Adjust to new reversed-order list.  Use local var
5728         rather than macro, for clarity.
5729         * tests/test-exclude7.sh: Adjust to corrected behavior.
5730
5731         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
5732         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
5733         it's not possible here.  Handle the case of \ at end of pattern
5734         without dumping core.
5735         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
5736
5737         _Noreturn: future-proof non-GNU and non-MSVC compilers
5738         * build-aux/snippet/_Noreturn.h (_Noreturn):
5739         * m4/gnulib-common.m4 (gl_COMMON_BODY):
5740         Do not define _Noreturn if __STDC_VERSION__ indicates this is
5741         C11 or later.  This is more likely to work with random future C
5742         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
5743         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
5744
5745         exclude: handle wildcards with FNM_EXTMATCH
5746         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
5747         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
5748         comment that "has wildcards" really means "has or may have
5749         wildcards".  Simplify by avoiding the need to call strcspn.
5750
5751 2012-04-29  Bruno Haible  <bruno@clisp.org>
5752
5753         gnulib-tool: Fix list of authors.
5754         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
5755
5756 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
5757
5758         bootstrap: support Automake-NG in $buildreq
5759         * bootstrap (check_versions): Handle automake and aclocal from
5760         Automake-NG specially.  They can be specified as respectively
5761         the "automake-ng" and "aclocal-ng" requirements.
5762
5763 2012-04-25  Eric Blake  <eblake@redhat.com>
5764
5765         bootstrap: only force latest Makefile.in.in for gettext module
5766         * build-aux/bootstrap (with_gettext): Only install latest
5767         Makefile.in.in for projects requesting bleeding edge gettext.
5768
5769 2012-04-22  Bruno Haible  <bruno@clisp.org>
5770
5771         doc: Mention reason for replacement on glibc/Linux systems.
5772         * doc/posix-functions/dprintf.texi: Mention the problem with special
5773         'long double' values.
5774         * doc/posix-functions/fprintf.texi: Likewise.
5775         * doc/posix-functions/printf.texi: Likewise.
5776         * doc/posix-functions/snprintf.texi: Likewise.
5777         * doc/posix-functions/sprintf.texi: Likewise.
5778         * doc/posix-functions/vdprintf.texi: Likewise.
5779         * doc/posix-functions/vfprintf.texi: Likewise.
5780         * doc/posix-functions/vprintf.texi: Likewise.
5781         * doc/posix-functions/vsnprintf.texi: Likewise.
5782         * doc/posix-functions/vsprintf.texi: Likewise.
5783         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
5784         platforms with F_DUPFD_CLOEXEC problems.
5785         * doc/posix-functions/glob.texi: Mention which platforms are affected
5786         by the problem with symbolic links.
5787         * doc/posix-functions/linkat.texi: Mention the problem with
5788         AT_SYMLINK_FOLLOW on Linux.
5789
5790 2012-04-22  Bruno Haible  <bruno@clisp.org>
5791
5792         pwrite: Don't replace on all platforms.
5793         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
5794
5795 2012-04-22  Bruno Haible  <bruno@clisp.org>
5796
5797         rint* tests: Avoid gcc warnings.
5798         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
5799         * tests/test-rintf.c (INFINITY, NAN): Likewise.
5800         * tests/test-rintl.c (INFINITY, NAN): Likewise.
5801
5802 2012-04-21  Bruno Haible  <bruno@clisp.org>
5803
5804         users.txt: Update.
5805         * users.txt: Add freedink, wdiff. Update URLs for projects that have
5806         switched from CVS to git, bzr, or svn.
5807
5808 2012-04-21  Bruno Haible  <bruno@clisp.org>
5809
5810         Large File Support for native Windows platforms.
5811
5812         * m4/largefile.m4 (gl_LARGEFILE): New macro.
5813         * modules/largefile (configure.ac): Require gl_LARGEFILE.
5814
5815         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
5816         type.
5817         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
5818         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
5819         * doc/posix-headers/sys_types.texi: Mention the effect of the
5820         'largefile' module.
5821
5822         * lib/fcntl.in.h: Add comments about off_t.
5823         * modules/fcntl-h (Depends-on): Add sys_types.
5824
5825         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
5826         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
5827         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
5828         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
5829         * modules/unistd (Depends-on): Add sys_types.
5830         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
5831
5832         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
5833         instead of lseek.
5834         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
5835         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
5836         * modules/lseek (Depends-on): Add sys_types.
5837
5838         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
5839         msvc-nothrow.h.
5840         (SetFileSize): New function.
5841         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
5842         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
5843         if Large File Support is requested.
5844         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
5845         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
5846
5847         * lib/stdio.in.h: Add comments about off_t.
5848         * modules/stdio (Depends-on): Add sys_types.
5849
5850         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
5851         instead of ftello.
5852         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
5853         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
5854         (gl_PREREQ_FTELLO): New macro.
5855         * modules/ftello (Depends-on): Add sys_types.
5856         (configure.ac): Incoke gl_PREREQ_FTELLO.
5857
5858         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
5859         instead of fseeko.
5860         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
5861         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
5862         (gl_PREREQ_FSEEKO): New macro.
5863         * modules/fseeko (Depends-on): Add sys_types.
5864         (configure.ac): Invoke gl_PREREQ_FSEEKO.
5865
5866         * lib/sys_stat.in.h: Add comments about off_t.
5867         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
5868         64-bit integer for st_size in 'struct stat'.
5869         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
5870         Define _GL_WINDOWS_64_BIT_ST_SIZE.
5871         * modules/sys_stat (Depends-on): Add sys_types.
5872         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
5873
5874         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
5875         instead of stat or _stat.
5876
5877         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
5878         'struct _stati64' instead of fstat and 'struct stat'.
5879         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
5880         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
5881
5882         Reported by Ray Satiro <raysatiro@yahoo.com>.
5883
5884 2012-04-19  Eric Blake  <eblake@redhat.com>
5885
5886         bootstrap: accommodate older libtool
5887         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
5888         Reported by Daniel P. Berrange.
5889
5890 2012-04-19  Jim Meyering  <meyering@redhat.com>
5891
5892         announce-gen: avoid failure due to lack of Digest::SHA1
5893         Even with the preferred Digest::SHA available, this script
5894         would fail when the backup module, Digest::SHA1, was not installed.
5895         * build-aux/announce-gen: Quote the conditional use of "use".
5896         Reported by Reuben Thomas in:
5897         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
5898
5899         bootstrap: don't let a user's CDPATH setting affect this script
5900         When CDPATH is set, cd will sometimes generate output.
5901         When "cd" is run in a subshell whose output matters, that
5902         surprising-to-some output can cause malfunction.
5903         Unsetting CDPATH turns off this shell "feature."
5904         * build-aux/bootstrap (CDPATH): Unset.
5905         Reported by Reuben Thomas in:
5906         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
5907         and inspired by his patch here:
5908         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
5909
5910 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
5911         and Jim Meyering  <meyering@redhat.com>
5912
5913         maint.mk: catch "see @xref{}" and similar
5914         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
5915         prohibit "See also @xref{", "Also see @pxref{", and similar.
5916
5917 2012-04-16  Jim Meyering  <meyering@redhat.com>
5918
5919         bootstrap: really use gnulib's po/Makefile.in.in
5920         * build-aux/bootstrap: Correct the source file name in previous change.
5921         Reported by Akim Demaille.
5922
5923         configmake: correct minor inconsistency in Makefile rule
5924         * modules/configmake (Makefile.am): All other rules like this one
5925         run the final "mv -f ..." in the same backslash-continued command
5926         as the one that does everything else.  This one put the mv -f ...
5927         command on a separate, non-backslash-continued line.
5928         Make it like the others.
5929
5930         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
5931         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
5932         the one from gettext.  Reported by Akim Demaille.
5933
5934 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
5935
5936         Fix recursion of install-* into po directories.
5937         Bison's install-pdf bug reported by Hans Aberg at
5938         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
5939         * build-aux/po/Makefile.in.in (install-dvi, install-html)
5940         (install-info, install-pdf, install-ps): New targets.
5941
5942 2012-04-16  Jim Meyering  <meyering@redhat.com>
5943
5944         maint: avoid spurious "make sc_maint" failure
5945         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
5946         exempt all *.class file names, for lib/javaversion.class.
5947
5948 2012-04-15  Bruno Haible  <bruno@clisp.org>
5949
5950         lseek: Make configure test independent of environment.
5951         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
5952         Windows, we know that lseek() on pipes is broken; skip the runtime
5953         test.
5954
5955 2012-04-14  Bruno Haible  <bruno@clisp.org>
5956
5957         stat: Bypass buggy override in mingw64.
5958         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
5959         * lib/stat.c (stat) [mingw64]: Define to _stat.
5960         * doc/posix-functions/stat.texi: Mention mingw64 bug.
5961
5962 2012-04-14  Bruno Haible  <bruno@clisp.org>
5963
5964         pathmax: Fix compilation error on MSVC 9.
5965         * modules/pathmax (Depends-on): Add unistd.
5966
5967 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
5968
5969         README: document pointer comparison assumption
5970         * README (Portability guidelines): Document assumption about
5971         pointer comparisons, in response to a recent bug-gnulib comment by
5972         Jeffrey Kegler.
5973
5974 2012-04-12  Bruno Haible  <bruno@clisp.org>
5975
5976         Tests for module 'getrusage'.
5977         * modules/getrusage-tests: New file.
5978         * tests/test-getrusage.c: New file.
5979
5980         New module 'getrusage'.
5981         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
5982         warn-on-use.h.
5983         (getrusage): New declaration.
5984         * lib/getrusage.c: New file.
5985         * m4/getrusage.m4: New file.
5986         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
5987         is declared.
5988         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
5989         HAVE_GETRUSAGE.
5990         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
5991         snippet/c++defs, snippet/warn-on-use.
5992         (Makefile.am): Update generation of sys/resource.h. Substitute
5993         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
5994         * modules/getrusage: New file.
5995         * doc/posix-functions/getrusage.texi: Mention the new module.
5996
5997 2012-04-12  Bruno Haible  <bruno@clisp.org>
5998
5999         Tests for module 'sys_resource'.
6000         * modules/sys_resource-tests: New file.
6001         * tests/test-sys_resource.c: New file.
6002
6003         New module 'sys_resource'.
6004         * lib/sys_resource.in.h: New file.
6005         * m4/sys_resource_h.m4: New file.
6006         * modules/sys_resource: New file.
6007         * doc/posix-headers/sys_resource.texi: Mention the new module.
6008
6009 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
6010
6011         ioctl: Fix compilation error on mingw.
6012         * lib/ioctl.c: Include <windows.h>.
6013         Also reported by Ray Satiro <raysatiro@yahoo.com>.
6014
6015 2012-04-04  Jim Meyering  <meyering@redhat.com>
6016
6017         regex: correct #pragma guard expression
6018         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
6019         not 4.3.  Correct its cpp guard expression.
6020
6021 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
6022
6023         regex: remove unnecessary type punning
6024         Problem reported by Vladimir Serbinenko in
6025         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
6026         * lib/regex.h (struct re_pattern_buffer): Change the type of
6027         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
6028         Fix comment to match code.
6029         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
6030         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
6031         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
6032         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
6033         (set_regs):
6034         Omit no-longer-necessary casts.
6035
6036 2012-04-03  Bruno Haible  <bruno@clisp.org>
6037
6038         Tests for module 'ilogbl'.
6039         * modules/ilogbl-tests: New file.
6040         * tests/test-ilogbl.c: New file.
6041
6042         New module 'ilogbl'.
6043         * lib/math.in.h (ilogbl): New declaration.
6044         * lib/ilogbl.c: New file.
6045         * m4/ilogbl.m4: New file.
6046         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
6047         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
6048         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
6049         Split sed invocation, to avoid the limit of 100 substitutions of
6050         HP-UX 'sed'.
6051         * modules/ilogbl: New file.
6052         * tests/test-math-c++.cc: Check the declaration of ilogbl.
6053         * doc/posix-functions/ilogbl.texi: Mention the new module.
6054
6055 2012-04-03  Bruno Haible  <bruno@clisp.org>
6056
6057         Tests for module 'ilogbf'.
6058         * modules/ilogbf-tests: New file.
6059         * tests/test-ilogbf.c: New file.
6060
6061         New module 'ilogbf'.
6062         * lib/math.in.h (ilogbf): New declaration.
6063         * lib/ilogbf.c: New file.
6064         * m4/ilogbf.m4: New file.
6065         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
6066         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
6067         REPLACE_ILOGBF.
6068         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
6069         REPLACE_ILOGBF.
6070         * modules/ilogbf: New file.
6071         * tests/test-math-c++.cc: Check the declaration of ilogbf.
6072         * doc/posix-functions/ilogbf.texi: Mention the new module.
6073
6074 2012-04-03  Bruno Haible  <bruno@clisp.org>
6075
6076         Tests for module 'ilogb'.
6077         * modules/ilogb-tests: New file.
6078         * tests/test-ilogb.c: New file.
6079         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
6080         tests/test-logb-ieee.h.
6081
6082         New module 'ilogb'.
6083         * lib/math.in.h (ilogb): New declaration.
6084         * lib/ilogb.c: New file.
6085         * m4/ilogb.m4: New file.
6086         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
6087         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
6088         REPLACE_ILOGB.
6089         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
6090         REPLACE_ILOGB.
6091         * modules/ilogb: New file.
6092         * tests/test-math-c++.cc: Check the declaration of ilogb.
6093         * doc/posix-functions/ilogb.texi: Mention the new module.
6094
6095 2012-04-03  Bruno Haible  <bruno@clisp.org>
6096
6097         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
6098         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
6099         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
6100         (main): Check their values.
6101         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
6102         problem.
6103
6104 2012-04-03  Bruno Haible  <bruno@clisp.org>
6105
6106         Tests for module 'logbl-ieee'.
6107         * modules/logbl-ieee-tests: New file.
6108         * tests/test-logbl-ieee.c: New file.
6109
6110         New module 'logbl-ieee'.
6111         * modules/logbl-ieee: New file.
6112
6113         Tests for module 'logb-ieee'.
6114         * modules/logb-ieee-tests: New file.
6115         * tests/test-logb-ieee.c: New file.
6116
6117         New module 'logb-ieee'.
6118         * modules/logb-ieee: New file.
6119
6120         Tests for module 'logbf-ieee'.
6121         * modules/logbf-ieee-tests: New file.
6122         * tests/test-logbf-ieee.c: New file.
6123         * tests/test-logb-ieee.h: New file.
6124
6125         New module 'logbf-ieee'.
6126         * modules/logbf-ieee: New file.
6127
6128 2012-04-03  Bruno Haible  <bruno@clisp.org>
6129
6130         Tests for module 'logbl'.
6131         * modules/logbl-tests: New file.
6132         * tests/test-logbl.c: New file.
6133
6134         New module 'logbl'.
6135         * lib/math.in.h (logbl): New declaration.
6136         * lib/logbl.c: New file.
6137         * m4/logbl.m4: New file.
6138         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
6139         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
6140         REPLACE_LOGBL.
6141         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
6142         REPLACE_LOGBL.
6143         * modules/logbl: New file.
6144         * tests/test-math-c++.cc: Check the declaration of logbl.
6145         * doc/posix-functions/logbl.texi: Mention the new module.
6146
6147 2012-04-02  Bruno Haible  <bruno@clisp.org>
6148
6149         Tests for module 'logbf'.
6150         * modules/logbf-tests: New file.
6151         * tests/test-logbf.c: New file.
6152
6153         New module 'logbf'.
6154         * lib/math.in.h (logbf): New declaration.
6155         * lib/logbf.c: New file.
6156         * m4/logbf.m4: New file.
6157         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
6158         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
6159         REPLACE_LOGBF.
6160         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
6161         REPLACE_LOGBF.
6162         * modules/logbf: New file.
6163         * tests/test-math-c++.cc: Check the declaration of logbf.
6164         * doc/posix-functions/logbf.texi: Mention the new module.
6165
6166 2012-04-02  Bruno Haible  <bruno@clisp.org>
6167
6168         logb tests: More tests.
6169         * tests/test-logb.h: New file, based on tests/test-logb.c and
6170         tests/test-frexp.h.
6171         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
6172         (main): Just invoke test_function.
6173         * modules/logb-tests (Files): Add tests/test-logb.h,
6174         tests/minus-zero.h, tests/randomd.c.
6175         (Makefile.am): Add randomd.c to test_logb_SOURCES.
6176
6177         logb: Provide replacement and workarounds.
6178         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
6179         is 1.
6180         * lib/logb.c: New file.
6181         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
6182         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
6183         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
6184         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
6185         * modules/logb (Files): Add lib/logb.c.
6186         (Depends-on): Add isfinite, frexp, isnand.
6187         (configure.ac): Compile the replacement code logb.c if needed.
6188         * tests/test-math-c++.cc: Check the declaration of logb.
6189         * doc/posix-functions/logb.texi: Mention the replacement and the bug
6190         with subnormal numbers.
6191
6192 2012-04-02  Bruno Haible  <bruno@clisp.org>
6193
6194         log10* tests: Speed up.
6195         * tests/test-log10.h (test_function): Reduce amount of random numbers
6196         to test.
6197
6198 2012-04-01  Bruno Haible  <bruno@clisp.org>
6199
6200         logf-ieee: Fix test whether logf works.
6201         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
6202
6203 2012-04-01  Bruno Haible  <bruno@clisp.org>
6204
6205         log10l: Work around log10l-ieee test failure on IRIX 6.5.
6206         * lib/log10l.c: Include <float.h>
6207         (log10l): On IRIX, normalize the +Infinity value.
6208         * modules/log10l (Depends-on): Add 'float'.
6209         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
6210         +Infinity.
6211
6212         log10f-ieee: Work around test failure on NetBSD 5.1.
6213         * m4/log10f-ieee.m4: New file.
6214         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
6215         test whether log10f works with a negative argument. Replace it if not.
6216         * lib/log10f.c (log10f): For negative arguments, return NaN.
6217         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
6218         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
6219         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
6220
6221         log10f-ieee: Work around test failure on Solaris 9.
6222         * modules/log10f-ieee (Depends-on): Add log10-ieee.
6223         (configure.ac): Require gl_FUNC_LOG10F.
6224
6225         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
6226         * m4/log10-ieee.m4: New file.
6227         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
6228         whether log10 works with a negative argument. Replace it if not.
6229         * lib/log10.c (log10): For negative arguments, return NaN.
6230         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
6231         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
6232         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
6233
6234         Tests for module 'log10l-ieee'.
6235         * modules/log10l-ieee-tests: New file.
6236         * tests/test-log10l-ieee.c: New file.
6237
6238         New module 'log10l-ieee'.
6239         * modules/log10l-ieee: New file.
6240
6241         Tests for module 'log10-ieee'.
6242         * modules/log10-ieee-tests: New file.
6243         * tests/test-log10-ieee.c: New file.
6244
6245         New module 'log10-ieee'.
6246         * modules/log10-ieee: New file.
6247
6248         Tests for module 'log10f-ieee'.
6249         * modules/log10f-ieee-tests: New file.
6250         * tests/test-log10f-ieee.c: New file.
6251         * tests/test-log10-ieee.h: New file.
6252
6253         New module 'log10f-ieee'.
6254         * modules/log10f-ieee: New file.
6255
6256 2012-04-01  Bruno Haible  <bruno@clisp.org>
6257
6258         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
6259         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
6260         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
6261         workaround.
6262         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
6263         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
6264         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
6265         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
6266         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
6267         (Depends-on): Update conditions.
6268         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
6269         IRIX 6.5, OSF/1 5.1 problems.
6270
6271 2012-04-01  Bruno Haible  <bruno@clisp.org>
6272
6273         log10f: Work around OSF/1 5.1 bug.
6274         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
6275         * lib/log10f.c (log10f): If logf exists, use it and provide just the
6276         workaround.
6277         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
6278         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
6279         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
6280         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
6281         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
6282         (Depends-on): Update conditions.
6283         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
6284
6285 2012-04-01  Bruno Haible  <bruno@clisp.org>
6286
6287         log10: Work around OSF/1 5.1 bug.
6288         * lib/math.in.h (log10): New declaration.
6289         * lib/log10.c: New file.
6290         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
6291         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
6292         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
6293         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
6294         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
6295         * modules/log10 (Files): Add lib/log10.c.
6296         (Depends-on): Add math.
6297         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
6298         * tests/test-math-c++.cc: Check the declaration of log10.
6299         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
6300
6301 2012-03-31  Bruno Haible  <bruno@clisp.org>
6302
6303         log10l tests: More tests.
6304         * modules/log10l-tests (Files): Add tests/test-log10l.h,
6305         tests/minus-zero.h, tests/randoml.c.
6306         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
6307         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
6308         (main): Invoke test_function.
6309
6310         log10f tests: More tests.
6311         * modules/log10f-tests (Files): Add tests/test-log10.h,
6312         tests/minus-zero.h, tests/randomf.c.
6313         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
6314         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
6315         (main): Invoke test_function.
6316
6317         log10 tests: More tests.
6318         * tests/test-log10.h: New file.
6319         * modules/log10-tests (Files): Add tests/test-log10.h,
6320         tests/minus-zero.h, tests/randomd.c.
6321         (Makefile.am): Add randomd.c to test_log10_SOURCES.
6322         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
6323         (main): Invoke test_function.
6324
6325 2012-03-31  Simon Josefsson  <simon@josefsson.org>
6326
6327         fflush: Fix syntax error.
6328         * lib/fflush.c: Include unused-parameter.h, needed for
6329         _GL_UNUSED_PARAMETER.
6330         * modules/fflush (Depends-on): Add snippet/unused-parameter.
6331
6332 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
6333
6334         regex: pacify GCC when compiling GRUB
6335         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
6336         a diagnostic.  Reported by Vladimir Serbinenko in
6337         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
6338
6339 2012-03-29  Eric Blake  <eblake@redhat.com>
6340
6341         stdio: don't assume gets any more
6342         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
6343         support.
6344         * modules/stdio (Makefile.am): Likewise.
6345         * lib/stdio-read.c (gets): Likewise.
6346         * tests/test-stdio-c++.cc: Likewise.
6347         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
6348         * lib/stdio.in.h (gets): Make warning occur in more places.
6349         * doc/posix-functions/gets.texi (gets): Update documentation.
6350         Reported by Christer Solskogen.
6351
6352         maint.mk: fix syntax checks without exclusions
6353         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
6354         Reported by Daniel P. Berrange.
6355
6356         strerror_r: avoid compiler warning
6357         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
6358         level.
6359
6360         fflush: avoid compiler warning
6361         * lib/fflush.c (update_fpos_cache): Mark variables that are
6362         potentially unused.
6363
6364 2012-03-25  Bruno Haible  <bruno@clisp.org>
6365
6366         Tests for module 'localeconv'.
6367         * modules/localeconv-tests: New file.
6368         * tests/test-localeconv.c: New file.
6369
6370         New module 'localeconv'.
6371         * lib/locale.in.h (localeconv): New declaration.
6372         * lib/localeconv.c: New file.
6373         * m4/localeconv.m4: New file.
6374         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
6375         REPLACE_LOCALECONV.
6376         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
6377         REPLACE_LOCALECONV.
6378         * modules/localeconv: New file.
6379         * modules/nl_langinfo (Depends-on): Add localeconv.
6380         * modules/human (Depends-on): Likewise.
6381         * doc/posix-functions/localeconv.texi: Mention the new module.
6382
6383 2012-03-25  Bruno Haible  <bruno@clisp.org>
6384
6385         locale: Provide a complete 'struct lconv'.
6386         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
6387         'struct lconv' does not contain int_p_cs_precedes.
6388         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
6389         * doc/posix-headers/locale.texi: Update.
6390
6391         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
6392         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
6393         * doc/posix-headers/locale.texi: Update.
6394
6395         locale: Provide a working 'struct lconv'.
6396         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
6397         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
6398         'struct lconv' does not even contain decimal_point.
6399         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
6400         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
6401         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
6402         * doc/posix-headers/locale.texi: Mention the problems with
6403         'struct lconv'.
6404         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
6405
6406 2012-03-24  Bruno Haible  <bruno@clisp.org>
6407
6408         Enable common subexpression optimization in GCC.
6409         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
6410         macros.
6411         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
6412         GCC attribute 'const'.
6413         (uc_locale_language): Declare with GCC attribute 'pure'.
6414         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
6415         with GCC attribute 'const'.
6416         * lib/unictype.in.h (uc_is_general_category_withtable,
6417         uc_combining_class, uc_combining_class_name,
6418         uc_combining_class_long_name, uc_bidi_class_name,
6419         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
6420         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
6421         uc_decimal_value, uc_digit_value, uc_numeric_value,
6422         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
6423         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
6424         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
6425         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
6426         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
6427         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
6428         Declare with GCC attribute 'const'.
6429         (uc_general_category_name, uc_general_category_long_name,
6430         uc_general_category_byname, uc_general_category,
6431         uc_is_general_category, uc_combining_class_byname,
6432         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
6433         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
6434         Declare with GCC attribute 'pure'.
6435         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
6436         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
6437         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
6438         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
6439         with GCC attribute 'pure'.
6440         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
6441         'const'.
6442         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
6443         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
6444         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
6445         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
6446         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
6447         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
6448         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
6449         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
6450         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
6451         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
6452         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
6453         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
6454         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
6455         GCC attribute 'pure'.
6456         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
6457         'const'.
6458         * lib/uniwidth.in.h (uc_width): Simplify declaration.
6459         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
6460         u32_strwidth): Declare with GCC attribute 'pure'.
6461
6462         Enable common subexpression optimization in GCC.
6463         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
6464         (alphasort): Declare with GCC attribute 'pure'.
6465         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
6466         (atoll): Declare with GCC attribute 'pure'.
6467         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
6468         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
6469         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
6470         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
6471         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
6472         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
6473         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
6474
6475 2012-03-24  Bruno Haible  <bruno@clisp.org>
6476
6477         gnulib-tool: Avoid unintended error output from 'cmp'.
6478         * gnulib-tool (func_add_file, func_update_file, func_import): Use
6479         "cmp -s", not "cmp > /dev/null".
6480
6481 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
6482
6483         gnulib-tool: fix imprecise comments w.r.t. an automake bug
6484
6485         It's not just Automake versions < 1.9b that creates an empty
6486         pkgdatadir at installation time if pkgdata_DATA is specified
6487         to empty; modern automake versions do this as well, at least
6488         until automake 1.11.4 (not yet released at the moment of writing,
6489         but soon to appear).  That behaviour was generally considered a
6490         feature rather than a bug, at least until this discussion:
6491         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
6492
6493         See also automake bugs #10997 and #11030.
6494
6495         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
6496         reference to relevant automake bug numbers.
6497         (func_emit_tests_Makefile_am): Likewise.
6498
6499 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
6500
6501         announce-gen: use Digest::SHA when possible
6502         * build-aux/announce-gen: Use Digest::SHA when possible, falling
6503         back to Digest::SHA1 if necessary.
6504
6505 2012-03-20  Jim Meyering  <meyering@redhat.com>
6506
6507         tests: avoid gcc warnings about argv vs. const initializers
6508         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
6509         warnings about discarding 'const' qualifier from pointer target type.
6510         * tests/test-posix_spawn2.c (main): Likewise.
6511
6512 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
6513
6514         README-release: simplify slightly
6515         * top/README-release: Run "git checkout master" only once.
6516
6517 2012-03-15  Mark Wielaard  <mark@klomp.org>
6518
6519         git-merge-changelog: add specific example on how to use with hg.
6520         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
6521
6522 2012-03-18  Mark Wielaard  <mark@klomp.org>
6523
6524         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
6525
6526 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
6527
6528         git-version-gen: don't let "prefix" envvar cause trouble
6529         * build-aux/git-version-gen (prefix): Initialize properly,
6530         so as not to use a value specified via the environment.
6531         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
6532
6533 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
6534
6535         regex: diagnose too-large repeat counts in EREs
6536         Previously, the code did not diagnose the too-large repeat count
6537         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
6538         as if it were 'b\{1000000000}', which is unexpected.
6539         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
6540         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
6541         is a reasonable one for this problem.  Another option would be to
6542         create a new REG_OVERFLOW error for repeat counts that are too large.
6543         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
6544         count is too large, so that the caller can distinguish the two cases.
6545         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
6546         "Too large" return code, and that repeat counts are one example of this.
6547
6548 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
6549
6550         doc: some glibc x32 integer width issues
6551         * doc/posix-headers/sys_types.texi (sys/types.h):
6552         * doc/posix-headers/time.texi (time.h):
6553         Mention that glibc x32 does not conform to POSIX in a couple of
6554         areas related to integer widths.
6555
6556 2012-03-15  Bruno Haible  <bruno@clisp.org>
6557
6558         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
6559         * lib/fma.c (VOLATILE): New macro.
6560         (FUNC): Use it to work around a GCC compiler bug.
6561
6562 2012-03-13  Bruno Haible  <bruno@clisp.org>
6563
6564         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
6565         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
6566         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
6567         REPLACE_HYPOTL to 1.
6568         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
6569
6570 2012-03-13  Bruno Haible  <bruno@clisp.org>
6571
6572         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
6573         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
6574         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
6575         REPLACE_REMAINDERL to 1.
6576         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
6577         bug.
6578
6579 2012-03-13  Bruno Haible  <bruno@clisp.org>
6580
6581         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
6582         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
6583         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
6584         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
6585         too big rounding errors.
6586         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
6587         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
6588         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
6589         (Depends-on): Update conditions.
6590         * tests/test-sqrtl.c (my_ldexpl): New function.
6591         (main): Add test of a particular value.
6592         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
6593
6594 2012-03-13  Pádraig Brady  <P@draigBrady.com>
6595
6596         doc: Update timer_* platform portability notes.
6597         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
6598         that always return ENOSYS.
6599         * doc/posix-functions/timer_delete.texi: Likewise.
6600         * doc/posix-functions/timer_gettime.texi: Likewise.
6601         * doc/posix-functions/timer_settime.texi: Likewise.
6602
6603 2012-03-13  Bruno Haible  <bruno@clisp.org>
6604
6605         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
6606         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
6607         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
6608         REPLACE_CBRTL to 1.
6609         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
6610
6611 2012-03-13  Bruno Haible  <bruno@clisp.org>
6612
6613         remainderl: Avoid compilation error on AIX >= 5.2.
6614         * lib/math.in.h (remainderl): Undefine macro from the system header.
6615
6616 2012-03-13  Bruno Haible  <bruno@clisp.org>
6617
6618         Avoid compilation errors with MSVC option -fp:strict.
6619         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
6620         * lib/cbrtf.c: Likewise.
6621         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6622
6623 2012-03-12  Bruno Haible  <bruno@clisp.org>
6624
6625         uninorm: Don't crash in out-of-memory conditions.
6626         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
6627         gracefully.
6628         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
6629         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
6630
6631 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
6632
6633         quote: fix syntax-check
6634         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
6635         also exports quote_quoting_options.
6636
6637 2012-03-12  Simon Josefsson  <simon@josefsson.org>
6638
6639         Collapse list of copyright years to ranges.  See
6640         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
6641         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
6642         build-aux/csharpexec.sh.in, build-aux/gnupload,
6643         build-aux/install-reloc, build-aux/javacomp.sh.in,
6644         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
6645         build-aux/move-if-change, build-aux/reloc-ldflags,
6646         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
6647
6648 2012-03-11  Bruno Haible  <bruno@clisp.org>
6649
6650         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
6651         * m4/log2f-ieee.m4: New file.
6652         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
6653         whether log2f works with a minus zero argument. Replace it if not.
6654         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
6655         (Depends-on): Add log2-ieee.
6656         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
6657         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
6658
6659         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
6660         * m4/log2-ieee.m4: New file.
6661         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
6662         whether log2 works with a minus zero argument. Replace it if not.
6663         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
6664         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
6665         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
6666
6667         Tests for module 'log2l-ieee'.
6668         * modules/log2l-ieee-tests: New file.
6669         * tests/test-log2l-ieee.c: New file.
6670
6671         New module 'log2l-ieee'.
6672         * modules/log2l-ieee: New file.
6673
6674         Tests for module 'log2-ieee'.
6675         * modules/log2-ieee-tests: New file.
6676         * tests/test-log2-ieee.c: New file.
6677
6678         New module 'log2-ieee'.
6679         * modules/log2-ieee: New file.
6680
6681         Tests for module 'log2f-ieee'.
6682         * modules/log2f-ieee-tests: New file.
6683         * tests/test-log2f-ieee.c: New file.
6684         * tests/test-log2-ieee.h: New file.
6685
6686         New module 'log2f-ieee'.
6687         * modules/log2f-ieee: New file.
6688
6689 2012-03-11  Bruno Haible  <bruno@clisp.org>
6690
6691         Tests for module 'log2l'.
6692         * modules/log2l-tests: New file.
6693         * tests/test-log2l.c: New file.
6694
6695         New module 'log2l'.
6696         * lib/math.in.h (log2l): New declaration.
6697         * lib/log2l.c: New file.
6698         * m4/log2l.m4: New file.
6699         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
6700         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
6701         REPLACE_LOG2L.
6702         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
6703         REPLACE_LOG2L.
6704         * modules/log2l: New file.
6705         * tests/test-math-c++.cc: Check the declaration of log2l.
6706         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
6707         and OSF/1 problems.
6708
6709 2012-03-11  Bruno Haible  <bruno@clisp.org>
6710
6711         Tests for module 'log2f'.
6712         * modules/log2f-tests: New file.
6713         * tests/test-log2f.c: New file.
6714
6715         New module 'log2f'.
6716         * lib/math.in.h (log2f): New declaration.
6717         * lib/log2f.c: New file.
6718         * m4/log2f.m4: New file.
6719         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
6720         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
6721         REPLACE_LOG2F.
6722         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
6723         REPLACE_LOG2F.
6724         * modules/log2f: New file.
6725         * tests/test-math-c++.cc: Check the declaration of log2f.
6726         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
6727         and OSF/1 and Cygwin problems.
6728
6729 2012-03-11  Bruno Haible  <bruno@clisp.org>
6730
6731         Tests for module 'log2'.
6732         * modules/log2-tests: New file.
6733         * tests/test-log2.c: New file.
6734         * tests/test-log2.h: New file.
6735
6736         New module 'log2'.
6737         * lib/math.in.h (log2): New declaration.
6738         * lib/log2.c: New file.
6739         * m4/log2.m4: New file.
6740         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
6741         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
6742         REPLACE_LOG2.
6743         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
6744         REPLACE_LOG2.
6745         * modules/log2: New file.
6746         * tests/test-math-c++.cc: Check the declaration of log2.
6747         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
6748         and OSF/1 and Cygwin problems.
6749
6750 2012-03-11  Bruno Haible  <bruno@clisp.org>
6751
6752         exp2* tests: More tests.
6753         * tests/test-exp2.h (test_function): Test all integral arguments that
6754         don't need to overflow or denormalized numbers.
6755         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
6756         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
6757         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
6758
6759 2012-03-10  Bruno Haible  <bruno@clisp.org>
6760
6761         log1pl-ieee: Work around test failure on AIX 7.1.
6762         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
6763
6764         log1pl-ieee: Work around test failure on IRIX 6.5.
6765         * m4/log1pl-ieee.m4: New file.
6766         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
6767         test whether log1pl works with a minus zero argument. Replace it if
6768         not.
6769         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
6770         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
6771         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
6772         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
6773         (Depends-on): Update conditions.
6774         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
6775         m4/signbit.m4.
6776         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
6777         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
6778
6779         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
6780         * m4/log1pf-ieee.m4: New file.
6781         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
6782         test whether log1pf works with a minus zero argument. Replace it if
6783         not.
6784         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
6785         m4/signbit.m4.
6786         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
6787         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
6788
6789         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
6790         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
6791         (configure.ac): Require gl_FUNC_LOG1PF.
6792
6793         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
6794         * m4/log1p-ieee.m4: New file.
6795         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
6796         whether log1p works with a minus zero argument. Replace it if not.
6797         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
6798         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
6799         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
6800         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
6801         (Depends-on): Update conditions.
6802         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
6803         m4/signbit.m4.
6804         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
6805         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
6806
6807         Tests for module 'log1pl-ieee'.
6808         * modules/log1pl-ieee-tests: New file.
6809         * tests/test-log1pl-ieee.c: New file.
6810
6811         New module 'log1pl-ieee'.
6812         * modules/log1pl-ieee: New file.
6813
6814         Tests for module 'log1p-ieee'.
6815         * modules/log1p-ieee-tests: New file.
6816         * tests/test-log1p-ieee.c: New file.
6817
6818         New module 'log1p-ieee'.
6819         * modules/log1p-ieee: New file.
6820
6821         Tests for module 'log1pf-ieee'.
6822         * modules/log1pf-ieee-tests: New file.
6823         * tests/test-log1pf-ieee.c: New file.
6824         * tests/test-log1p-ieee.h: New file.
6825
6826         New module 'log1pf-ieee'.
6827         * modules/log1pf-ieee: New file.
6828
6829 2012-03-10  Bruno Haible  <bruno@clisp.org>
6830
6831         Tests for module 'log1pl'.
6832         * modules/log1pl-tests: New file.
6833         * tests/test-log1pl.c: New file.
6834
6835         New module 'log1pl'.
6836         * lib/math.in.h (log1pl): New declaration.
6837         * lib/log1pl.c: New file.
6838         * m4/log1pl.m4: New file.
6839         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
6840         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
6841         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
6842         * modules/log1pl: New file.
6843         * tests/test-math-c++.cc: Check the declaration of log1pl.
6844         * doc/posix-functions/log1pl.texi: Mention the new module.
6845
6846 2012-03-10  Bruno Haible  <bruno@clisp.org>
6847
6848         Tests for module 'log1pf'.
6849         * modules/log1pf-tests: New file.
6850         * tests/test-log1pf.c: New file.
6851
6852         New module 'log1pf'.
6853         * lib/math.in.h (log1pf): New declaration.
6854         * lib/log1pf.c: New file.
6855         * m4/log1pf.m4: New file.
6856         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
6857         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
6858         REPLACE_LOG1PF.
6859         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
6860         REPLACE_LOG1PF.
6861         * modules/log1pf: New file.
6862         * tests/test-math-c++.cc: Check the declaration of log1pf.
6863         * doc/posix-functions/log1pf.texi: Mention the new module.
6864
6865 2012-03-10  Bruno Haible  <bruno@clisp.org>
6866
6867         log1p tests: More tests.
6868         * tests/test-log1p.h: New file.
6869         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
6870         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
6871         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
6872         (main): Invoke test_function.
6873
6874         log1p: Provide replacement for Minix and MSVC.
6875         * lib/math.in.h (log1p): New declaration.
6876         * lib/log1p.c: New file.
6877         * m4/log1p.m4: New file.
6878         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
6879         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
6880         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
6881         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
6882         (Depends-on): Add math, isnand, log, round.
6883         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
6884         HAVE_LOG1P is 0.
6885         * tests/test-math-c++.cc: Check the declaration of log1p.
6886         * doc/posix-functions/log1p.texi: Mention the replacement.
6887
6888 2012-03-10  Bruno Haible  <bruno@clisp.org>
6889
6890         math tests: Small simplification.
6891         * tests/test-exp.h (test_function): Use the same err_bound for
6892         'double' on platforms with sizeof (long double) == sizeof (double)
6893         than on platforms with sizeof (long double) > sizeof (double).
6894         * tests/test-exp2.h (test_function): Likewise.
6895         * tests/test-expm1.h (test_function): Likewise.
6896         * tests/test-log.h (test_function): Likewise.
6897
6898 2012-03-10  Bruno Haible  <bruno@clisp.org>
6899
6900         Fix some comments.
6901         * lib/expl.c: Fix an ambiguous comment.
6902         * lib/expm1.c: Likewise.
6903         * lib/expm1l.c: Likewise.
6904         * lib/exp2.c: Likewise.
6905         * lib/exp2l.c: Likewise.
6906
6907 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
6908
6909         regex: allow inclusion of <regex.h> before <limits.h>
6910         Without this patch, portable programs had to include <limits.h> before
6911         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
6912         I ran into this problem with a test version of GNU grep on Solaris 8.
6913         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
6914         This is done conditionally so that this change can be merged
6915         back to glibc.
6916         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
6917         using the included regex.
6918
6919         fts: depend on fdopendir
6920         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
6921         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
6922         problem was introduced when fdopendir was split out.
6923
6924 2012-03-10  Bruno Haible  <bruno@clisp.org>
6925
6926         Remove unused variables.
6927         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
6928         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
6929
6930 2012-03-10  Bruno Haible  <bruno@clisp.org>
6931
6932         isnanf-nolibm: Fix last commit.
6933         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
6934
6935         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
6936         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
6937
6938 2012-03-10  Bruno Haible  <bruno@clisp.org>
6939
6940         logf-ieee: Work around test failure on NetBSD 5.1.
6941         * m4/logf-ieee.m4: New file.
6942         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
6943         whether logf works with a negative argument. Replace it if not.
6944         * lib/logf.c (logf): For negative arguments, return NaN.
6945         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
6946         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
6947         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
6948
6949         logf-ieee: Work around test failure on Solaris 9.
6950         * modules/logf-ieee (Depends-on): Add log-ieee.
6951         (configure.ac): Require gl_FUNC_LOGF.
6952
6953         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
6954         * m4/log-ieee.m4: New file.
6955         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
6956         log works with a negative argument. Replace it if not.
6957         * lib/log.c (log): For negative arguments, return NaN.
6958         * modules/log-ieee (Files): Add m4/log-ieee.m4.
6959         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
6960         * doc/posix-functions/log.texi: Mention the log-ieee module.
6961
6962         Tests for module 'logl-ieee'.
6963         * modules/logl-ieee-tests: New file.
6964         * tests/test-logl-ieee.c: New file.
6965
6966         New module 'logl-ieee'.
6967         * modules/logl-ieee: New file.
6968
6969         Tests for module 'log-ieee'.
6970         * modules/log-ieee-tests: New file.
6971         * tests/test-log-ieee.c: New file.
6972
6973         New module 'log-ieee'.
6974         * modules/log-ieee: New file.
6975
6976         Tests for module 'logf-ieee'.
6977         * modules/logf-ieee-tests: New file.
6978         * tests/test-logf-ieee.c: New file.
6979         * tests/test-log-ieee.h: New file.
6980
6981         New module 'logf-ieee'.
6982         * modules/logf-ieee: New file.
6983
6984 2012-03-10  Bruno Haible  <bruno@clisp.org>
6985
6986         log: Fix bug introduced on 2012-03-09.
6987         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
6988
6989 2012-03-10  Pádraig Brady  <P@draigBrady.com>
6990
6991         timer-time: link explicitly with pthreads on glibc
6992         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
6993         to support static linking, when newer glibc is
6994         detected, as that contains pthread emulation of
6995         POSIX timer functions where required.
6996         * modules/timer-time: Depend on threadlib to
6997         pull in the appropriate library to link.
6998
6999 2012-03-10  Bruno Haible  <bruno@clisp.org>
7000
7001         log* tests: More tests.
7002         * tests/test-log.h: New file.
7003         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
7004         (main): Invoke test_function.
7005         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
7006         (main): Invoke test_function.
7007         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
7008         (main): Invoke test_function.
7009         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
7010         tests/randomd.c.
7011         (Makefile.am): Add randomd.c to test_log_SOURCES.
7012         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
7013         tests/randomf.c.
7014         (Makefile.am): Add randomf.c to test_logf_SOURCES.
7015         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
7016         tests/randoml.c.
7017         (Depends-on): Add 'float'.
7018         (Makefile.am): Add randoml.c to test_logl_SOURCES.
7019
7020 2012-03-09  Bruno Haible  <bruno@clisp.org>
7021
7022         logl: Work around OSF/1 5.1 bug.
7023         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
7024         * lib/logl.c (logl): If logl exists, use it and provide just the
7025         workaround.
7026         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
7027         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
7028         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
7029         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
7030         * modules/logl (configure.ac): Consider REPLACE_LOGL.
7031         (Depends-on): Update conditions.
7032         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
7033
7034 2012-03-09  Bruno Haible  <bruno@clisp.org>
7035
7036         logf: Work around OSF/1 5.1 bug.
7037         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
7038         * lib/logf.c (logf): If logf exists, use it and provide just the
7039         workaround.
7040         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
7041         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
7042         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
7043         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
7044         * modules/logf (configure.ac): Consider REPLACE_LOGF.
7045         (Depends-on): Update conditions.
7046         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
7047
7048 2012-03-09  Bruno Haible  <bruno@clisp.org>
7049
7050         log: Work around OSF/1 5.1 bug.
7051         * lib/math.in.h (log): New declaration.
7052         * lib/log.c: New file.
7053         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
7054         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
7055         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
7056         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
7057         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
7058         * modules/log (Files): Add lib/log.c.
7059         (Depends-on): Add math.
7060         (configure.ac): If REPLACE_LOG is 1, compile an override.
7061         * tests/test-math-c++.cc: Check the declaration of log.
7062         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
7063
7064 2012-03-09  Jim Meyering  <meyering@redhat.com>
7065
7066         readtokens.c: adjust wording in a comment
7067         * lib/readtokens.c: Insert omitted "that" in a comment.
7068
7069 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
7070
7071         modechange: add notations +40, 00440, etc.
7072         * lib/modechange.c (mode_compile): Support new notations
7073         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
7074
7075 2012-03-08  Bruno Haible  <bruno@clisp.org>
7076
7077         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
7078         * m4/exp2l-ieee.m4: New file.
7079         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
7080         test whether exp2l works with a NaN argument and with a negative
7081         infinity argument. Replace it if not.
7082         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
7083         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
7084         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
7085         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
7086         (Depends-on): Update conditions.
7087         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
7088         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
7089         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
7090
7091         Tests for module 'exp2l-ieee'.
7092         * modules/exp2l-ieee-tests: New file.
7093         * tests/test-exp2l-ieee.c: New file.
7094
7095         New module 'exp2l-ieee'.
7096         * modules/exp2l-ieee: New file.
7097
7098         Tests for module 'exp2-ieee'.
7099         * modules/exp2-ieee-tests: New file.
7100         * tests/test-exp2-ieee.c: New file.
7101
7102         New module 'exp2-ieee'.
7103         * modules/exp2-ieee: New file.
7104
7105         Tests for module 'exp2f-ieee'.
7106         * modules/exp2f-ieee-tests: New file.
7107         * tests/test-exp2f-ieee.c: New file.
7108         * tests/test-exp2-ieee.h: New file.
7109
7110         New module 'exp2f-ieee'.
7111         * modules/exp2f-ieee: New file.
7112
7113 2012-03-08  Bruno Haible  <bruno@clisp.org>
7114
7115         Tests for module 'exp2l'.
7116         * modules/exp2l-tests: New file.
7117         * tests/test-exp2l.c: New file.
7118
7119         New module 'exp2l'.
7120         * lib/math.in.h (exp2l): New declaration.
7121         * lib/exp2l.c: New file.
7122         * lib/expl-table.c: New file, extracted from lib/expl.c.
7123         * lib/expl.c (gl_expl_table): New declaration.
7124         (expl): Remove expl_table. Update reference.
7125         * m4/exp2l.m4: New file.
7126         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
7127         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
7128         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
7129         * modules/exp2l: New file.
7130         * modules/expl (Files): Add lib/expl-table.c.
7131         (configure.ac): Compile also expl-table.c.
7132         * tests/test-math-c++.cc: Check the declaration of exp2l.
7133         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
7134         problem.
7135
7136 2012-03-08  Bruno Haible  <bruno@clisp.org>
7137
7138         Tests for module 'exp2f'.
7139         * modules/exp2f-tests: New file.
7140         * tests/test-exp2f.c: New file.
7141
7142         New module 'exp2f'.
7143         * lib/math.in.h (exp2f): New declaration.
7144         * lib/exp2f.c: New file.
7145         * m4/exp2f.m4: New file.
7146         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
7147         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
7148         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
7149         * modules/exp2f: New file.
7150         * tests/test-math-c++.cc: Check the declaration of exp2f.
7151         * doc/posix-functions/exp2f.texi: Mention the new module and the
7152         IRIX problem.
7153
7154 2012-03-08  Bruno Haible  <bruno@clisp.org>
7155
7156         Tests for module 'exp2'.
7157         * modules/exp2-tests: New file.
7158         * tests/test-exp2.c: New file.
7159         * tests/test-exp2.h: New file.
7160
7161         New module 'exp2'.
7162         * lib/math.in.h (exp2): New declaration.
7163         * lib/exp2.c: New file.
7164         * m4/exp2.m4: New file.
7165         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
7166         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
7167         REPLACE_EXP2.
7168         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
7169         REPLACE_EXP2.
7170         * modules/exp2: New file.
7171         * tests/test-math-c++.cc: Check the declaration of exp2.
7172         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
7173         and OpenBSD problems.
7174
7175 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
7176
7177         savedir: fix comment typo
7178         * lib/savedir.c (savedirstream): Fix typo in comment.
7179
7180 2012-03-08  Bruno Haible  <bruno@clisp.org>
7181
7182         test-readtokens.c: use const; remove unwarranted cast
7183         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
7184
7185 2012-03-08  Bruno Haible  <bruno@clisp.org>
7186
7187         fmal: Avoid compilation error on AIX.
7188         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
7189         AIX 5.2..7.1.
7190
7191 2012-03-08  Bruno Haible  <bruno@clisp.org>
7192
7193         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
7194         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
7195         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
7196         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
7197         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
7198         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
7199         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
7200
7201 2012-03-08  Bruno Haible  <bruno@clisp.org>
7202
7203         remainderf: Override buggy system function on IRIX 6.5.
7204         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
7205         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
7206         when it exists.
7207         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
7208
7209 2012-03-08  Jim Meyering  <meyering@redhat.com>
7210
7211         test-readtokens.c: avoid const-related compilation warnings
7212         * tests/test-readtokens.c: Avoid const-related compilation warnings.
7213
7214 2012-03-07  Jim Meyering  <meyering@redhat.com>
7215             Bruno Haible  <bruno@clisp.org>
7216
7217         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
7218         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
7219         tests/randomd.c.
7220         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
7221         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
7222         tests/randoml.c.
7223         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
7224
7225 2012-03-07  Bruno Haible  <bruno@clisp.org>
7226
7227         expm1l: Avoid compilation error on AIX.
7228         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
7229         AIX 5.2..7.1.
7230
7231 2012-03-07  Bruno Haible  <bruno@clisp.org>
7232
7233         expm1l: Don't override undeclared system function on IRIX 6.5.
7234         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
7235         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
7236         it exists. Set HAVE_DECL_EXPM1L.
7237         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
7238         HAVE_EXPM1L.
7239         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
7240         HAVE_EXPM1L.
7241         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
7242
7243 2012-03-07  Bruno Haible  <bruno@clisp.org>
7244
7245         remainderl: Don't override undeclared system function on IRIX 6.5.
7246         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
7247         HAVE_REMAINDERL.
7248         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
7249         declared when it exists. Set HAVE_DECL_REMAINDERL.
7250         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
7251         not HAVE_REMAINDERL.
7252         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
7253         HAVE_REMAINDERL.
7254         * doc/posix-functions/remainderl.texi: Mention missing declaration
7255         problem.
7256
7257 2012-03-07  Bruno Haible  <bruno@clisp.org>
7258
7259         rintf: Don't override undeclared system function on IRIX 6.5.
7260         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
7261         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
7262         exists. Set HAVE_DECL_RINTF.
7263         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
7264         HAVE_RINTF.
7265         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
7266         HAVE_RINTF.
7267         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
7268
7269 2012-03-07  Bruno Haible  <bruno@clisp.org>
7270
7271         roundl: Avoid compilation error on AIX.
7272         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
7273         AIX 5.2..7.1.
7274
7275 2012-03-07  Bruno Haible  <bruno@clisp.org>
7276
7277         roundl: Don't override undeclared system function on IRIX 6.5.
7278         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
7279         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
7280         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
7281         * modules/roundl (configure.ac): For replacement code, test
7282         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
7283         (Depends-on): Update conditions.
7284         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
7285
7286 2012-03-07  Bruno Haible  <bruno@clisp.org>
7287
7288         roundf: Don't override undeclared system function on IRIX 6.5.
7289         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
7290         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
7291         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
7292         * modules/roundf (configure.ac): For replacement code, test
7293         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
7294         (Depends-on): Update conditions.
7295         * modules/roundf-ieee (Depends-on): Update conditions.
7296         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
7297
7298 2012-03-07  Bruno Haible  <bruno@clisp.org>
7299
7300         round: Don't override undeclared system function on IRIX 6.5.
7301         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
7302         argument.
7303         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
7304         also when it is not declared. Set HAVE_ROUND. For replacement code,
7305         test HAVE_ROUND, not HAVE_DECL_ROUND.
7306         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
7307         not HAVE_DECL_ROUND.
7308         (Depends-on): Update conditions.
7309         * modules/round-ieee (Depends-on): Update conditions.
7310         * doc/posix-functions/round.texi: Mention the IRIX problem.
7311
7312 2012-03-07  Bruno Haible  <bruno@clisp.org>
7313
7314         copysignf: Don't override undeclared system function on IRIX 6.5.
7315         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
7316         HAVE_COPYSIGNF.
7317         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
7318         declared when it exists. Set HAVE_DECL_COPYSIGNF.
7319         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
7320         not HAVE_COPYSIGNF.
7321         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
7322         HAVE_COPYSIGNF.
7323         * doc/posix-functions/copysignf.texi: Mention missing declaration
7324         problem.
7325
7326 2012-03-07  Jim Meyering  <meyering@redhat.com>
7327
7328         readtokens: add tests
7329         * modules/readtokens-tests: New file.
7330         * tests/test-readtokens.c: New file.
7331
7332 2012-03-07  Jim Meyering  <meyering@redhat.com>
7333
7334         quotearg: the module must now include quote.h
7335         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
7336         So must the module.
7337         * modules/quotearg (Files): Add quote.h.
7338
7339 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
7340
7341         readtokens: avoid core dumps with unusual calling patterns
7342         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
7343         * lib/readtokens.c: Include limits.h.
7344         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
7345         (readtoken): Don't cache the delimiters; the cache code was buggy
7346         if !delim && saved_delim, or if the new n_delim differs from the old.
7347         Also, it wasn't thread-safe.
7348
7349 2012-03-07  Bruno Haible  <bruno@clisp.org>
7350
7351         quote: Adhere to common module description layout.
7352         * modules/quote (Makefile.am): Add back empty section.
7353
7354 2012-03-06  Akim Demaille  <demaille@gostai.com>
7355
7356         quote: fuse into quotearg
7357         This patch is made for the benefit of Bison.
7358         quote does not leave the choice of the quoting style to the user.
7359         quoting_style provides poor customizability, yet quoting_options,
7360         which is very rich, is hidden inside quotearg.c.  So in order to
7361         allow quote customization, move its implementation to quotearg.c.
7362         * lib/quote.c: Remove.
7363         * modules/quote: Adjust.
7364         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
7365         warning: provide all the members of literal structs.
7366         (quote_quoting_options): New.
7367         (quote, quote_n): Import implementation from quote.c.
7368         * lib/quote.h: Import the comments from quote.c.
7369         (quote_quoting_options): New.
7370
7371 2012-03-06  Bruno Haible  <bruno@clisp.org>
7372
7373         Tests for module 'expm1l-ieee'.
7374         * modules/expm1l-ieee-tests: New file.
7375         * tests/test-expm1l-ieee.c: New file.
7376
7377         New module 'expm1l-ieee'.
7378         * modules/expm1l-ieee: New file.
7379
7380         Tests for module 'expm1f-ieee'.
7381         * modules/expm1f-ieee-tests: New file.
7382         * tests/test-expm1f-ieee.c: New file.
7383
7384         New module 'expm1f-ieee'.
7385         * modules/expm1f-ieee: New file.
7386
7387         Tests for module 'expm1-ieee'.
7388         * modules/expm1-ieee-tests: New file.
7389         * tests/test-expm1-ieee.c: New file.
7390         * tests/test-expm1-ieee.h: New file.
7391
7392         New module 'expm1-ieee'.
7393         * modules/expm1-ieee: New file.
7394         * m4/expm1-ieee.m4: New file.
7395         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
7396         whether expm1 works with a minus zero argument. Replace it if not.
7397         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
7398         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
7399         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
7400         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
7401         (Depends-on): Update conditions.
7402         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
7403         AIX problem.
7404
7405 2012-03-06  Bruno Haible  <bruno@clisp.org>
7406
7407         Work around expm1f bug on IRIX 6.5.
7408         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
7409         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
7410         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
7411         not work.
7412         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
7413         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
7414         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
7415         (Depends-on): Update conditions.
7416         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
7417
7418 2012-03-06  Bruno Haible  <bruno@clisp.org>
7419
7420         Tests for module 'expm1l'.
7421         * modules/expm1l-tests: New file.
7422         * tests/test-expm1l.c: New file.
7423
7424         New module 'expm1l'.
7425         * lib/math.in.h (expm1l): New declaration.
7426         * lib/expm1l.c: New file.
7427         * m4/expm1l.m4: New file.
7428         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
7429         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
7430         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
7431         * modules/expm1l: New file.
7432         * tests/test-math-c++.cc: Check the declaration of expm1l.
7433         * doc/posix-functions/expm1l.texi: Mention the new module.
7434
7435 2012-03-06  Bruno Haible  <bruno@clisp.org>
7436
7437         Tests for module 'expm1f'.
7438         * modules/expm1f-tests: New file.
7439         * tests/test-expm1f.c: New file.
7440
7441         New module 'expm1f'.
7442         * lib/math.in.h (expm1f): New declaration.
7443         * lib/expm1f.c: New file.
7444         * m4/expm1f.m4: New file.
7445         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
7446         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
7447         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
7448         * modules/expm1f: New file.
7449         * tests/test-math-c++.cc: Check the declaration of expm1f.
7450         * doc/posix-functions/expm1f.texi: Mention the new module.
7451
7452 2012-03-06  Bruno Haible  <bruno@clisp.org>
7453
7454         Tests for module 'expm1'.
7455         * modules/expm1-tests: New file.
7456         * tests/test-expm1.c: New file.
7457         * tests/test-expm1.h: New file.
7458
7459         New module 'expm1'.
7460         * lib/math.in.h (expm1): New declaration.
7461         * lib/expm1.c: New file.
7462         * m4/expm1.m4: New file.
7463         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
7464         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
7465         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
7466         * modules/expm1: New file.
7467         * tests/test-math-c++.cc: Check the declaration of expm1.
7468         * doc/posix-functions/expm1.texi: Mention the new module.
7469
7470 2012-03-06  Bruno Haible  <bruno@clisp.org>
7471
7472         math: Ensure declarations of math functions.
7473         * modules/acosf (Depends-on): Add 'extensions'.
7474         * modules/asinf (Depends-on): Likewise.
7475         * modules/atan2f (Depends-on): Likewise.
7476         * modules/atanf (Depends-on): Likewise.
7477         * modules/cbrt (Depends-on): Likewise.
7478         * modules/cbrtf (Depends-on): Likewise.
7479         * modules/cbrtl (Depends-on): Likewise.
7480         * modules/copysignf (Depends-on): Likewise.
7481         * modules/copysignl (Depends-on): Likewise.
7482         * modules/cosf (Depends-on): Likewise.
7483         * modules/coshf (Depends-on): Likewise.
7484         * modules/expf (Depends-on): Likewise.
7485         * modules/fabsf (Depends-on): Likewise.
7486         * modules/fabsl (Depends-on): Likewise.
7487         * modules/fmaf (Depends-on): Likewise.
7488         * modules/fmal (Depends-on): Likewise.
7489         * modules/fmodf (Depends-on): Likewise.
7490         * modules/fmodl (Depends-on): Likewise.
7491         * modules/frexpf (Depends-on): Likewise.
7492         * modules/frexpl (Depends-on): Likewise.
7493         * modules/hypot (Depends-on): Likewise.
7494         * modules/hypotf (Depends-on): Likewise.
7495         * modules/hypotl (Depends-on): Likewise.
7496         * modules/ldexpf (Depends-on): Likewise.
7497         * modules/ldexpl (Depends-on): Likewise.
7498         * modules/log10f (Depends-on): Likewise.
7499         * modules/log10l (Depends-on): Likewise.
7500         * modules/log1p (Depends-on): Likewise.
7501         * modules/logb (Depends-on): Likewise.
7502         * modules/logf (Depends-on): Likewise.
7503         * modules/modff (Depends-on): Likewise.
7504         * modules/modfl (Depends-on): Likewise.
7505         * modules/powf (Depends-on): Likewise.
7506         * modules/remainderf (Depends-on): Likewise.
7507         * modules/remainderl (Depends-on): Likewise.
7508         * modules/rintf (Depends-on): Likewise.
7509         * modules/rintl (Depends-on): Likewise.
7510         * modules/sinf (Depends-on): Likewise.
7511         * modules/sinhf (Depends-on): Likewise.
7512         * modules/sqrtf (Depends-on): Likewise.
7513         * modules/tanf (Depends-on): Likewise.
7514         * modules/tanhf (Depends-on): Likewise.
7515         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
7516         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
7517         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
7518         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
7519         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
7520         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
7521         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
7522         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
7523         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
7524         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
7525         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
7526         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
7527         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
7528         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
7529         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
7530         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
7531         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
7532         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
7533         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
7534         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
7535         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
7536         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
7537         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
7538         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
7539         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
7540         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
7541         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
7542         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
7543         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
7544         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
7545         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
7546         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
7547         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
7548         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
7549         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
7550         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
7551         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
7552         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
7553         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
7554         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
7555         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
7556
7557 2012-03-06  Bruno Haible  <bruno@clisp.org>
7558
7559         math: Update module names in warnings.
7560         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
7561         tanl): Use specific module name in warn-on-use warning.
7562
7563 2012-03-06  Bruno Haible  <bruno@clisp.org>
7564
7565         expl: Simplify computation.
7566         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
7567
7568 2012-03-05  Bruno Haible  <bruno@clisp.org>
7569
7570         exp* tests: More tests.
7571         * tests/test-exp.h: New file.
7572         * tests/test-exp.c: Include <float.h> and test-exp.h.
7573         (main): Invoke test_function.
7574         * tests/test-expf.c: Include <float.h> and test-exp.h.
7575         (main): Invoke test_function.
7576         * tests/test-expl.c: Include <float.h> and test-exp.h.
7577         (main): Invoke test_function.
7578         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
7579         (Makefile.am): Add randomd.c to test_exp_SOURCES.
7580         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
7581         (Makefile.am): Add randomf.c to test_expf_SOURCES.
7582         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
7583         (Depends-on): Add 'float'.
7584         (Makefile.am): Add randoml.c to test_expl_SOURCES.
7585
7586         expl: Fix precision of computed result.
7587         * lib/expl.c: Completely rewritten.
7588         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
7589         (Maintainer): Add me.
7590         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
7591
7592 2012-03-05  Bruno Haible  <bruno@clisp.org>
7593
7594         cbrt* tests: More tests.
7595         * tests/test-cbrt.h: New file.
7596         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
7597         (main): Invoke test_function.
7598         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
7599         (main): Invoke test_function.
7600         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
7601         (main): Invoke test_function.
7602         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
7603         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
7604         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
7605         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
7606         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
7607         (Depends-on): Add 'float'.
7608         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
7609
7610 2012-03-05  Bruno Haible  <bruno@clisp.org>
7611
7612         hypot* tests: More tests.
7613         * tests/test-hypot.h: New file, partially extracted from
7614         tests/test-hypotl.c.
7615         * tests/test-hypot.c: Include test-hypot.h.
7616         (main): Invoke test_function.
7617         * tests/test-hypotf.c: Include test-hypot.h.
7618         (main): Invoke test_function.
7619         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
7620         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
7621         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
7622         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
7623         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
7624         tests/randomf.c.
7625         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
7626         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
7627         tests/randoml.c.
7628         (Depends-on): Add 'fpucw', 'float'.
7629         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
7630
7631 2012-03-05  Bruno Haible  <bruno@clisp.org>
7632
7633         fpucw: Doc about FreeBSD.
7634         * lib/fpucw.h: Mention FreeBSD in comments.
7635
7636 2012-03-04  Bruno Haible  <bruno@clisp.org>
7637
7638         sqrt* tests: More tests.
7639         * tests/test-sqrt.h: New file.
7640         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
7641         (main): Invoke test_function.
7642         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
7643         (main): Invoke test_function.
7644         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
7645         (main): Invoke test_function.
7646         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
7647         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
7648         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
7649         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
7650         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
7651         (Depends-on): Add 'float'.
7652         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
7653
7654 2012-03-04  Bruno Haible  <bruno@clisp.org>
7655
7656         remainder* tests: More tests.
7657         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
7658         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
7659         (main): Invoke test_function.
7660         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
7661         (main): Invoke test_function.
7662         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
7663         (main): Invoke test_function.
7664         * modules/remainder-tests (Files): Add tests/test-remainder.h,
7665         tests/randomd.c.
7666         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
7667         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
7668         tests/randomf.c.
7669         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
7670         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
7671         tests/randoml.c.
7672         (Depends-on): Add 'float'.
7673         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
7674
7675 2012-03-04  Bruno Haible  <bruno@clisp.org>
7676
7677         remainder, remainderf, remainderl: Fix computation for large quotients.
7678         * lib/remainder.c: Completely rewritten.
7679         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
7680         USE_FLOAT.
7681         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
7682         USE_LONG_DOUBLE.
7683         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
7684         isnand, isinf. Remove round, fma.
7685         * modules/remainderf (Files): Add lib/remainder.c.
7686         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
7687         Remove roundf, fmaf.
7688         * modules/remainderl (Files): Add lib/remainder.c.
7689         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
7690         isinf. Remove roundl, fmal.
7691         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
7692         REMAINDER_LIBM.
7693         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
7694         REMAINDERF_LIBM.
7695         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
7696         REMAINDERL_LIBM.
7697
7698 2012-03-04  Bruno Haible  <bruno@clisp.org>
7699
7700         fmod* tests: More tests.
7701         * tests/test-fmod.h (my_ldexp): New function.
7702         (test_function): Reduce amount of random numbers to test. Add tests
7703         of very large quotients x / y.
7704         * tests/test-fmod.c (MAX_EXP): New macro.
7705         * tests/test-fmodf.c (MAX_EXP): Likewise.
7706         * tests/test-fmodl.c (MAX_EXP): Likewise.
7707
7708 2012-03-04  Bruno Haible  <bruno@clisp.org>
7709
7710         fmod, fmodl: Fix computation for large quotients x / y.
7711         * lib/fmod.c: Completely rewritten.
7712         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
7713         USE_LONG_DOUBLE.
7714         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
7715         isnand. Remove fma.
7716         * modules/fmodl (Files): Add lib/fmod.c.
7717         (Depends-on): Add float, isfinite, signbit, fabsl,
7718         frexpl, ldexpl, isnanl. Remove fma.
7719         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
7720         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
7721
7722 2012-03-03  Bruno Haible  <bruno@clisp.org>
7723
7724         fmod* tests: More tests.
7725         * tests/test-fmod.h: New file.
7726         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
7727         (main): Invoke test_function.
7728         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
7729         (main): Invoke test_function.
7730         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
7731         (main): Invoke test_function.
7732         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
7733         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
7734         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
7735         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
7736         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
7737         (Depends-on): Add 'float'.
7738         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
7739
7740 2012-03-03  Bruno Haible  <bruno@clisp.org>
7741
7742         rint* tests: More tests.
7743         * tests/test-rint.h: New file, partially extracted from
7744         tests/test-rintl.c.
7745         * tests/test-rint.c: Include test-rint.h.
7746         (main): Invoke test_function.
7747         * tests/test-rintf.c: Include test-rint.h.
7748         (main): Invoke test_function.
7749         * tests/test-rintl.c: Include test-rint.h.
7750         (main): Invoke test_function.
7751         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
7752         (Makefile.am): Add randomd.c to test_rint_SOURCES.
7753         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
7754         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
7755         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
7756         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
7757
7758 2012-03-03  Bruno Haible  <bruno@clisp.org>
7759
7760         modf* tests: More tests.
7761         * tests/test-modf.h: New file.
7762         * tests/test-modf.c: Include <float.h> and test-modf.h.
7763         (main): Invoke test_function.
7764         * tests/test-modff.c: Include <float.h> and test-modf.h.
7765         (main): Invoke test_function.
7766         * tests/test-modfl.c: Include <float.h> and test-modf.h.
7767         (main): Invoke test_function.
7768         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
7769         (Makefile.am): Add randomd.c to test_modf_SOURCES.
7770         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
7771         (Makefile.am): Add randomf.c to test_modff_SOURCES.
7772         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
7773         (Depends-on): Add 'float'.
7774         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
7775
7776 2012-03-03  Bruno Haible  <bruno@clisp.org>
7777
7778         fabs* tests: More tests.
7779         * tests/test-fabs.h: New file, partially extracted from
7780         tests/test-fabsl.c.
7781         * tests/test-fabs.c (RANDOM): New macro.
7782         * tests/test-fabsf.c (RANDOM): New macro.
7783         * tests/test-fabsl.c (RANDOM): New macro.
7784         * modules/fabs-tests (Files): Add tests/randomd.c.
7785         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
7786         * modules/fabsf-tests (Files): Add tests/randomf.c.
7787         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
7788         * modules/fabsl-tests (Files): Add tests/randoml.c.
7789         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
7790
7791 2012-03-03  Bruno Haible  <bruno@clisp.org>
7792
7793         ldexp* tests: More tests.
7794         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
7795         * tests/test-ldexp.c (RANDOM): New macro.
7796         * tests/test-ldexpf.c (RANDOM): New macro.
7797         * tests/test-ldexpl.c (RANDOM): New macro.
7798         * modules/ldexp-tests (Files): Add tests/randomd.c.
7799         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
7800         * modules/ldexpf-tests (Files): Add tests/randomf.c.
7801         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
7802         * modules/ldexpl-tests (Files): Add tests/randoml.c.
7803         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
7804
7805 2012-03-03  Bruno Haible  <bruno@clisp.org>
7806
7807         frexp* tests: More tests.
7808         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
7809         * tests/test-frexp.c (RANDOM): New macro.
7810         * tests/test-frexpf.c (RANDOM): New macro.
7811         * tests/test-frexpl.c (RANDOM): New macro.
7812         * modules/frexp-tests (Files): Add tests/randomd.c.
7813         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
7814         * modules/frexpf-tests (Files): Add tests/randomf.c.
7815         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
7816         * modules/frexpl-tests (Files): Add tests/randoml.c.
7817         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
7818
7819 2012-03-03  Bruno Haible  <bruno@clisp.org>
7820
7821         Support for pseudo-random numbers in tests.
7822         * tests/randomf.c: New file.
7823         * tests/randomd.c: New file.
7824         * tests/randoml.c: New file.
7825         * tests/macros.h (randomf, randomd, randoml): New declarations.
7826
7827 2012-03-03  Bruno Haible  <bruno@clisp.org>
7828
7829         frexp* tests: Refactor.
7830         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
7831         * tests/test-frexp.c: Include and use it.
7832         * tests/test-frexpf.c: Likewise.
7833         * tests/test-frexpl.c: Likewise.
7834         * modules/frexp-tests (Files): Add tests/test-frexp.h.
7835         * modules/frexpf-tests (Files): Likewise.
7836         * modules/frexpl-tests (Files): Likewise.
7837
7838 2012-03-02  Jim Meyering  <meyering@redhat.com>
7839
7840         maint: don't specify XZ_OPT=-9ev in dist-related rule
7841         Using xz's -9 option is warranted only if you have a very large
7842         tarball (see xz's documentation for the sizes vs. presets), and
7843         requires 64MiB of memory at decompression time.
7844         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
7845         Automake's default of just "-e" is fine.  Override on a
7846         per-package basis by setting XZ_OPT e.g., in cfg.mk.
7847
7848 2012-03-01  Eric Blake  <eblake@redhat.com>
7849
7850         maint.mk: allow announcement for non-gnulib project
7851         * maint.mk (announcement): Skip gnulib version if not used.
7852
7853 2012-03-01  Jim Meyering  <meyering@redhat.com>
7854
7855         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
7856         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
7857         envvar settings cannot interfere.  Otherwise, setting envvars like
7858         prohibit=foo require=bar, etc. would cause spurious test failures.
7859
7860 2012-03-01  Eric Blake  <eblake@redhat.com>
7861
7862         maint.mk: add per-line exclusions to prohibitions
7863         * maint.mk (_sc_search_regexp): Add $exclude parameter.
7864         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
7865         (sc_const_long_option): Use it.
7866
7867 2012-03-01  Bruno Haible  <bruno@clisp.org>
7868
7869         Tests for module 'expl-ieee'.
7870         * modules/expl-ieee-tests: New file.
7871         * tests/test-expl-ieee.c: New file.
7872
7873         New module 'expl-ieee'.
7874         * modules/expl-ieee: New file.
7875
7876         Tests for module 'exp-ieee'.
7877         * modules/exp-ieee-tests: New file.
7878         * tests/test-exp-ieee.c: New file.
7879
7880         New module 'exp-ieee'.
7881         * modules/exp-ieee: New file.
7882
7883         Tests for module 'expf-ieee'.
7884         * modules/expf-ieee-tests: New file.
7885         * tests/test-expf-ieee.c: New file.
7886         * tests/test-exp-ieee.h: New file.
7887
7888         New module 'expf-ieee'.
7889         * modules/expf-ieee: New file.
7890
7891 2012-02-29  Bruno Haible  <bruno@clisp.org>
7892
7893         cbrtl-ieee: Work around test failure on IRIX 6.5.
7894         * m4/cbrtl-ieee.m4: New file.
7895         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
7896         test whether cbrtl works with a minus zero argument. Replace it if not.
7897         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
7898         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
7899         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
7900         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
7901         (Depends-on): Update conditions.
7902         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
7903         m4/signbit.m4.
7904         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
7905         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
7906         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
7907
7908         Tests for module 'cbrtl-ieee'.
7909         * modules/cbrtl-ieee-tests: New file.
7910         * tests/test-cbrtl-ieee.c: New file.
7911
7912         New module 'cbrtl-ieee'.
7913         * modules/cbrtl-ieee: New file.
7914
7915         Tests for module 'cbrt-ieee'.
7916         * modules/cbrt-ieee-tests: New file.
7917         * tests/test-cbrt-ieee.c: New file.
7918
7919         New module 'cbrt-ieee'.
7920         * modules/cbrt-ieee: New file.
7921
7922         Tests for module 'cbrtf-ieee'.
7923         * modules/cbrtf-ieee-tests: New file.
7924         * tests/test-cbrtf-ieee.c: New file.
7925         * tests/test-cbrt-ieee.h: New file.
7926
7927         New module 'cbrtf-ieee'.
7928         * modules/cbrtf-ieee: New file.
7929
7930 2012-02-29  Bruno Haible  <bruno@clisp.org>
7931
7932         cbrtf: Work around bug in IRIX 6.5 system function.
7933         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
7934         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
7935         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
7936         work.
7937         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
7938         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
7939         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
7940         (Depends-on): Update conditions.
7941         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
7942
7943 2012-02-29  Bruno Haible  <bruno@clisp.org>
7944
7945         Tests for module 'cbrtl'.
7946         * modules/cbrtl-tests: New file.
7947         * tests/test-cbrtl.c: New file.
7948
7949         New module 'cbrtl'.
7950         * lib/math.in.h (cbrtl): New declaration.
7951         * lib/cbrtl.c: New file.
7952         * m4/cbrtl.m4: New file.
7953         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
7954         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
7955         HAVE_DECL_CBRTL.
7956         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
7957         HAVE_DECL_CBRTL.
7958         * modules/cbrtl: New file.
7959         * tests/test-math-c++.cc: Check the declaration of cbrtl.
7960         * doc/posix-functions/cbrtl.texi: Mention the new module.
7961
7962 2012-02-29  Bruno Haible  <bruno@clisp.org>
7963
7964         Tests for module 'cbrtf'.
7965         * modules/cbrtf-tests: New file.
7966         * tests/test-cbrtf.c: New file.
7967
7968         New module 'cbrtf'.
7969         * lib/math.in.h (cbrtf): New declaration.
7970         * lib/cbrtf.c: New file.
7971         * m4/cbrtf.m4: New file.
7972         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
7973         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
7974         HAVE_DECL_CBRTF.
7975         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
7976         HAVE_DECL_CBRTF.
7977         * modules/cbrtf: New file.
7978         * tests/test-math-c++.cc: Check the declaration of cbrtf.
7979         * doc/posix-functions/cbrtf.texi: Mention the new module.
7980
7981 2012-02-29  Bruno Haible  <bruno@clisp.org>
7982
7983         cbrt: Provide replacement on MSVC and Minix.
7984         * lib/math.in.h (cbrt): New declaration.
7985         * lib/cbrt.c: New file.
7986         * m4/cbrt.m4: New file.
7987         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
7988         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
7989         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
7990         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
7991         (Depends-on): Add dependencies.
7992         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
7993         * tests/test-math-c++.cc: Check the declaration of cbrt.
7994         * doc/posix-functions/cbrt.texi: Mention that the module provides a
7995         replacement.
7996
7997 2012-02-29  Bruno Haible  <bruno@clisp.org>
7998
7999         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
8000         * m4/hypotl-ieee.m4: New file.
8001         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
8002         test whether hypotl works with mixed NaN and Infinity arguments.
8003         Replace it if not.
8004         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
8005         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
8006         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
8007         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
8008         (Depends-on): Update conditions.
8009         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
8010         (Depends-on): Add hypot-ieee.
8011         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
8012         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
8013
8014         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
8015         * m4/hypotf-ieee.m4: New file.
8016         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
8017         test whether hypotf works with mixed NaN and Infinity arguments.
8018         Replace it if not.
8019         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
8020         (Depends-on): Add hypot-ieee.
8021         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
8022         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
8023
8024         hypot-ieee: Work around test failure on OSF/1 and native Windows.
8025         * lib/math.in.h (hypot): New declaration.
8026         * lib/hypot.c: New file.
8027         * m4/hypot-ieee.m4: New file.
8028         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
8029         whether hypot works with mixed NaN and Infinity arguments. Replace it
8030         if not.
8031         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
8032         REPLACE_HYPOT.
8033         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
8034         * modules/hypot (Files): Add lib/hypot.c.
8035         (Depends-on): Add dependencies.
8036         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
8037         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
8038         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
8039         * tests/test-math-c++.cc: Check the declaration of hypot.
8040         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
8041
8042         Tests for module 'hypotl-ieee'.
8043         * modules/hypotl-ieee-tests: New file.
8044         * tests/test-hypotl-ieee.c: New file.
8045
8046         New module 'hypotl-ieee'.
8047         * modules/hypotl-ieee: New file.
8048
8049         Tests for module 'hypot-ieee'.
8050         * modules/hypot-ieee-tests: New file.
8051         * tests/test-hypot-ieee.c: New file.
8052
8053         New module 'hypot-ieee'.
8054         * modules/hypot-ieee: New file.
8055
8056         Tests for module 'hypotf-ieee'.
8057         * modules/hypotf-ieee-tests: New file.
8058         * tests/test-hypotf-ieee.c: New file.
8059         * tests/test-hypot-ieee.h: New file.
8060
8061         New module 'hypotf-ieee'.
8062         * modules/hypotf-ieee: New file.
8063
8064 2012-02-29  Bruno Haible  <bruno@clisp.org>
8065
8066         Remove unused variables.
8067         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
8068         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
8069         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
8070         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
8071
8072 2012-02-29  Eric Blake  <eblake@redhat.com>
8073
8074         termios: fix pid_t always, not just for tcgetsid
8075         * doc/posix-headers/termios.texi (termios.h): Mention problem.
8076         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
8077         just when building tcgetsid.
8078
8079 2012-02-29  Bruno Haible  <bruno@clisp.org>
8080
8081         Tests for module 'hypotl'.
8082         * modules/hypotl-tests: New file.
8083         * tests/test-hypotl.c: New file.
8084
8085         New module 'hypotl'.
8086         * lib/math.in.h (hypotl): New declaration.
8087         * lib/hypotl.c: New file.
8088         * m4/hypotl.m4: New file.
8089         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
8090         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
8091         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
8092         * modules/hypotl: New file.
8093         * tests/test-math-c++.cc: Check the hypotl declaration.
8094         * doc/posix-functions/hypotl.texi: Mention the new module.
8095
8096 2012-02-29  Eric Blake  <eblake@redhat.com>
8097
8098         tcgetsid: fix cygwin header bug
8099         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
8100
8101         docs: update cygwin progress
8102         * doc/posix-functions/llround.texi (llround): Added in cygwin
8103         1.7.8.
8104         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
8105         * doc/glibc-functions/program_invocation_name.texi
8106         (program_invocation_name): Likewise.
8107         * doc/glibc-functions/program_invocation_short_name.texi
8108         (program_invocation_short_name): Likewise.
8109         * doc/glibc-functions/madvise.texi (madvise): Likewise.
8110         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
8111         Likewise.
8112         * doc/posix-functions/pthread_spin_destroy.texi
8113         (pthread_spin_destroy): Added in cygwin 1.7.10.
8114         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
8115         Likewise.
8116         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
8117         Likewise.
8118         * doc/posix-functions/pthread_spin_trylock.texi
8119         (pthread_spin_trylock): Likewise.
8120         * doc/posix-functions/pthread_spin_unlock.texi
8121         (pthread_spin_unlock): Likewise.
8122         * doc/posix-functions/pthread_setschedprio.texi
8123         (pthread_setschedprio): Likewise.
8124         * doc/posix-functions/pthread_attr_getstack.texi
8125         (pthread_attr_getstack): Likewise.
8126         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
8127         (pthread_attr_getstackaddr): Likewise.
8128         * doc/glibc-functions/pthread_getattr_np.texi
8129         (pthread_getattr_np): Likewise.
8130         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
8131         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
8132         * doc/posix-functions/clock_settime.texi (clock_settime):
8133         Likewise.
8134         * doc/posix-functions/pthread_attr_getguardsize.texi
8135         (pthread_attr_getguardsize): Likewise.
8136         * doc/posix-functions/pthread_attr_setguardsize.texi
8137         (pthread_attr_setguardsize): Likewise.
8138         * doc/posix-functions/pthread_attr_setstack.texi
8139         (pthread_attr_setstack): Likewise.
8140         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
8141         (pthread_attr_setstackaddr): Likewise.
8142         * doc/posix-functions/clock_getcpuclockid.texi
8143         (clock_getcpuclockid): Likewise.
8144         * doc/posix-functions/pthread_getcpuclockid.texi
8145         (pthread_getcpuclockid): Likewise.
8146         * doc/glibc-functions/error.texi (error): Likewise.
8147         * doc/glibc-functions/error_at_line.texi (error_at_line):
8148         Likewise.
8149         * doc/glibc-functions/error_message_count.texi
8150         (error_message_count): Likewise.
8151         * doc/glibc-functions/error_one_per_line.texi
8152         (error_one_per_line): Likewise.
8153         * doc/glibc-functions/error_print_progname.texi
8154         (error_print_progname): Likewise.
8155         * doc/posix-functions/pthread_condattr_getclock.texi
8156         (pthread_condattr_getclock): Likewise.
8157         * doc/posix-functions/pthread_condattr_setclock.texi
8158         (pthread_condattr_setclock): Likewise.
8159         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
8160         Likewise.
8161         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
8162         * doc/glibc-functions/getpt.texi (getpt): Likewise.
8163         * doc/glibc-functions/get_current_dir_name.texi
8164         (get_current_dir_name): Likewise.
8165         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
8166         Likewise.
8167         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
8168         wrong return type.
8169         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
8170         1.7.11.
8171
8172 2012-02-29  Bruno Haible  <bruno@clisp.org>
8173
8174         Tests for module 'hypotf'.
8175         * modules/hypotf-tests: New file.
8176         * tests/test-hypotf.c: New file.
8177
8178         New module 'hypotf'.
8179         * lib/math.in.h (hypotf): New declaration.
8180         * lib/hypotf.c: New file.
8181         * m4/hypotf.m4: New file.
8182         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
8183         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
8184         REPLACE_HYPOTF.
8185         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
8186         REPLACE_HYPOTF.
8187         * modules/hypotf: New file.
8188         * tests/test-math-c++.cc: Check the hypotf declaration.
8189         * doc/posix-functions/hypotf.texi: Mention the new module.
8190
8191         hypot: Prepare for hypotf module.
8192         * m4/hypot.m4: New file.
8193         * modules/hypot (Files): Add m4/hypot.m4.
8194         (configure.ac): Invoke gl_FUNC_HYPOT.
8195
8196 2012-02-29  Bruno Haible  <bruno@clisp.org>
8197
8198         hypot tests: More tests.
8199         * tests/test-hypot.c: Include <float.h>.
8200         (main): Add tests about overflow and underflow.
8201
8202 2012-02-29  Bruno Haible  <bruno@clisp.org>
8203
8204         math code: Add comments.
8205         * lib/acosl.c: Add comment about related glibc source files.
8206         * lib/asinl.c: Likewise.
8207         * lib/atanl.c: Likewise.
8208         * lib/expl.c: Likewise.
8209         * lib/logl.c: Likewise.
8210         * lib/sincosl.c: Likewise.
8211         * lib/sinl.c: Likewise.
8212         * lib/tanl.c: Likewise.
8213         * lib/trigl.c: Likewise.
8214         * lib/cosl.c: Likewise. Fix comments.
8215
8216 2012-02-28  Bruno Haible  <bruno@clisp.org>
8217
8218         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
8219         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
8220         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
8221         HUGE_VALL are defined.
8222         (numeric_equald): Renamed from numeric_equal.
8223         (numeric_equalf, numeric_equall): New functions.
8224         (main): Check also HUGE_VALF, HUGE_VALL.
8225         * modules/math-tests (Files): Add tests/macros.h.
8226         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
8227         HUGE_VALL.
8228
8229 2012-02-28  Bruno Haible  <bruno@clisp.org>
8230
8231         doc: Move ISO C11 feature notes into POSIX chapters.
8232         * doc/posix-functions/aligned_alloc.texi: Renamed from
8233         doc/glibc-functions/aligned_alloc.texi.
8234         * doc/posix-functions/quick_exit.texi: Renamed from
8235         doc/glibc-functions/quick_exit.texi.
8236         * doc/posix-headers/uchar.texi: Renamed from
8237         doc/glibc-headers/uchar.texi.
8238         * doc/posix-functions/c16rtomb.texi: Renamed from
8239         doc/glibc-functions/c16rtomb.texi.
8240         * doc/posix-functions/c32rtomb.texi: Renamed from
8241         doc/glibc-functions/c32rtomb.texi.
8242         * doc/posix-functions/mbrtoc16.texi: Renamed from
8243         doc/glibc-functions/mbrtoc16.texi.
8244         * doc/posix-functions/mbrtoc32.texi: Renamed from
8245         doc/glibc-functions/mbrtoc32.texi.
8246         * doc/gnulib.texi: Update.
8247         (Glibc uchar.h): Remove section.
8248         Suggested by Eric Blake.
8249
8250 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
8251
8252         stdnoreturn: port to MSVC better
8253         MSVC standard headers use __declspec(noreturn), so #define noreturn
8254         to empty on that platform.  Reported by Bruno Haible in
8255         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
8256         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
8257         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
8258
8259 2012-02-28  Bruno Haible  <bruno@clisp.org>
8260
8261         doc: Mention new glibc headers and functions.
8262         * doc/glibc-headers/uchar.texi: New file.
8263         * doc/glibc-functions/aligned_alloc.texi: New file.
8264         * doc/glibc-functions/c16rtomb.texi: New file.
8265         * doc/glibc-functions/c32rtomb.texi: New file.
8266         * doc/glibc-functions/clock_adjtime.texi: New file.
8267         * doc/glibc-functions/fanotify_init.texi: New file.
8268         * doc/glibc-functions/fanotify_mark.texi: New file.
8269         * doc/glibc-functions/inet6_opt_append.texi: New file.
8270         * doc/glibc-functions/inet6_opt_find.texi: New file.
8271         * doc/glibc-functions/inet6_opt_finish.texi: New file.
8272         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
8273         * doc/glibc-functions/inet6_opt_init.texi: New file.
8274         * doc/glibc-functions/inet6_opt_next.texi: New file.
8275         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
8276         * doc/glibc-functions/inet6_rth_add.texi: New file.
8277         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
8278         * doc/glibc-functions/inet6_rth_init.texi: New file.
8279         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
8280         * doc/glibc-functions/inet6_rth_segments.texi: New file.
8281         * doc/glibc-functions/inet6_rth_space.texi: New file.
8282         * doc/glibc-functions/login.texi: New file.
8283         * doc/glibc-functions/mbrtoc16.texi: New file.
8284         * doc/glibc-functions/mbrtoc32.texi: New file.
8285         * doc/glibc-functions/name_to_handle_at.texi: New file.
8286         * doc/glibc-functions/ntp_gettimex.texi: New file.
8287         * doc/glibc-functions/open_by_handle_at.texi: New file.
8288         * doc/glibc-functions/prlimit.texi: New file.
8289         * doc/glibc-functions/process_vm_readv.texi: New file.
8290         * doc/glibc-functions/process_vm_writev.texi: New file.
8291         * doc/glibc-functions/recvmmsg.texi: New file.
8292         * doc/glibc-functions/scandirat.texi: New file.
8293         * doc/glibc-functions/sendmmsg.texi: New file.
8294         * doc/glibc-functions/setns.texi: New file.
8295         * doc/glibc-functions/timespec_get.texi: New file.
8296         * doc/gnulib.texi: Include them.
8297         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
8298         sections.
8299         Reported by Eric Blake.
8300
8301 2012-02-28  Bruno Haible  <bruno@clisp.org>
8302
8303         Avoid compilation errors with MSVC option -fp:strict.
8304         * lib/floor.c: Use MSVC specific pragma fenv_access.
8305         * lib/ceil.c: Likewise.
8306         * lib/trunc.c: Likewise.
8307         * lib/round.c: Likewise.
8308         * lib/rint.c: Likewise.
8309         * lib/fma.c: Likewise.
8310         * lib/integer_length.c: Likewise.
8311         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
8312         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
8313         * tests/test-floor2.c: Likewise.
8314         * tests/test-floorf2.c: Likewise.
8315         * tests/test-ceil2.c: Likewise.
8316         * tests/test-ceilf2.c: Likewise.
8317         * tests/test-trunc2.c: Likewise.
8318         * tests/test-truncf2.c: Likewise.
8319         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
8320
8321 2012-02-27  Bruno Haible  <bruno@clisp.org>
8322
8323         Tests for module 'sqrtl-ieee'.
8324         * modules/sqrtl-ieee-tests: New file.
8325         * tests/test-sqrtl-ieee.c: New file.
8326
8327         New module 'sqrtl-ieee'.
8328         * modules/sqrtl-ieee: New file.
8329
8330         Tests for module 'sqrt-ieee'.
8331         * modules/sqrt-ieee-tests: New file.
8332         * tests/test-sqrt-ieee.c: New file.
8333
8334         New module 'sqrt-ieee'.
8335         * modules/sqrt-ieee: New file.
8336
8337         Tests for module 'sqrtf-ieee'.
8338         * modules/sqrtf-ieee-tests: New file.
8339         * tests/test-sqrtf-ieee.c: New file.
8340         * tests/test-sqrt-ieee.h: New file.
8341
8342         New module 'sqrtf-ieee'.
8343         * modules/sqrtf-ieee: New file.
8344
8345 2012-02-27  Bruno Haible  <bruno@clisp.org>
8346
8347         remainderl-ieee: Work around test failure on OSF/1.
8348         * m4/remainderl-ieee.m4: New file.
8349         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
8350         present, test whether remainderl works with a zero second argument.
8351         Replace it if not.
8352         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
8353         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
8354         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
8355         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
8356         (Depends-on): Update conditions.
8357         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
8358         (Depends-on): Add remainder-ieee.
8359         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
8360         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
8361         module.
8362
8363         remainderf-ieee: Work around test failure on OSF/1.
8364         * m4/remainderf-ieee.m4: New file.
8365         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
8366         present, test whether remainderf works with a zero second argument.
8367         Replace it if not.
8368         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
8369         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
8370         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
8371         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
8372         (Depends-on): Update conditions.
8373         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
8374         (Depends-on): Add remainder-ieee.
8375         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
8376         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
8377         module.
8378
8379         remainder-ieee: Work around test failure on OSF/1.
8380         * m4/remainder-ieee.m4: New file.
8381         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
8382         present, test whether remainder works with a zero second argument.
8383         Replace it if not.
8384         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
8385         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
8386         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
8387         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
8388         (Depends-on): Update dependencies.
8389         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
8390         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
8391         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
8392
8393         Tests for module 'remainderl-ieee'.
8394         * modules/remainderl-ieee-tests: New file.
8395         * tests/test-remainderl-ieee.c: New file.
8396
8397         New module 'remainderl-ieee'.
8398         * modules/remainderl-ieee: New file.
8399
8400         Tests for module 'remainder-ieee'.
8401         * modules/remainder-ieee-tests: New file.
8402         * tests/test-remainder-ieee.c: New file.
8403
8404         New module 'remainder-ieee'.
8405         * modules/remainder-ieee: New file.
8406
8407         Tests for module 'remainderf-ieee'.
8408         * modules/remainderf-ieee-tests: New file.
8409         * tests/test-remainderf-ieee.c: New file.
8410         * tests/test-remainder-ieee.h: New file.
8411
8412         New module 'remainderf-ieee'.
8413         * modules/remainderf-ieee: New file.
8414
8415 2012-02-27  Bruno Haible  <bruno@clisp.org>
8416
8417         modff, modfl: Fix configure syntax error.
8418         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
8419         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
8420
8421 2012-02-27  Bruno Haible  <bruno@clisp.org>
8422
8423         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
8424         * m4/fmodl-ieee.m4: New file.
8425         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
8426         whether fmodl works with zero arguments. Replace it if not.
8427         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
8428         (Depends-on): Add fmod-ieee.
8429         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
8430         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
8431
8432         fmodf-ieee: Work around test failure on OSF/1.
8433         * m4/fmodf-ieee.m4: New file.
8434         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
8435         whether fmodf works with zero arguments. Replace it if not.
8436         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
8437         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
8438         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
8439         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
8440         (Depends-on): Update dependencies.
8441         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
8442         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
8443         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
8444
8445         fmodf-ieee: Work around test failure on MSVC 9.
8446         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
8447         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
8448
8449         fmod-ieee: Work around test failures on OSF/1, mingw.
8450         * m4/fmod-ieee.m4: New file.
8451         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
8452         whether fmod works with zero arguments. Replace it if not.
8453         * lib/math.in.h (fmod): New declaration.
8454         * lib/fmod.c: New file.
8455         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
8456         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
8457         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
8458         * modules/fmod (Files): Add lib/fmod.c.
8459         (Depends-on): Add math, isinf, trunc, fma.
8460         (configure.ac): Arrange to compile lib/fmod.c if needed.
8461         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
8462         m4/signbit.m4.
8463         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
8464         * tests/test-math-c++.cc: Check the declaration of fmod.
8465         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
8466
8467         fmodl-ieee: Fix test failures.
8468         * lib/fmodl.c (fmodl): Treat Inf specially.
8469         * modules/fmodl (Depends-on): Add isinf.
8470
8471         Tests for module 'fmodl-ieee'.
8472         * modules/fmodl-ieee-tests: New file.
8473         * tests/test-fmodl-ieee.c: New file.
8474
8475         New module 'fmodl-ieee'.
8476         * modules/fmodl-ieee: New file.
8477
8478         Tests for module 'fmod-ieee'.
8479         * modules/fmod-ieee-tests: New file.
8480         * tests/test-fmod-ieee.c: New file.
8481
8482         New module 'fmod-ieee'.
8483         * modules/fmod-ieee: New file.
8484
8485         Tests for module 'fmodf-ieee'.
8486         * modules/fmodf-ieee-tests: New file.
8487         * tests/test-fmodf-ieee.c: New file.
8488         * tests/test-fmod-ieee.h: New file.
8489
8490         New module 'fmodf-ieee'.
8491         * modules/fmodf-ieee: New file.
8492
8493 2012-02-27  Bruno Haible  <bruno@clisp.org>
8494
8495         Tests for module 'rintl-ieee'.
8496         * modules/rintl-ieee-tests: New file.
8497         * tests/test-rintl-ieee.c: New file.
8498
8499         New module 'rintl-ieee'.
8500         * modules/rintl-ieee: New file.
8501
8502         Tests for module 'rint-ieee'.
8503         * modules/rint-ieee-tests: New file.
8504         * tests/test-rint-ieee.c: New file.
8505
8506         New module 'rint-ieee'.
8507         * modules/rint-ieee: New file.
8508
8509         Tests for module 'rintf-ieee'.
8510         * modules/rintf-ieee-tests: New file.
8511         * tests/test-rintf-ieee.c: New file.
8512         * tests/test-rint-ieee.h: New file.
8513
8514         New module 'rintf-ieee'.
8515         * modules/rintf-ieee: New file.
8516
8517 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
8518
8519         regex: re_search etc. should return -2 when memory exhausted
8520         This bug was uncovered when testing 'grep'.  Without the fix,
8521         re_search and friends return -1 when memory is exhausted, but -1
8522         means no match, and this causes grep to falsely report no-match
8523         instead of memory-exhaustion.  See
8524         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
8525         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
8526         trouble; this can occur if re_search_internal ran out of memory.
8527
8528 2012-02-26  Bruno Haible  <bruno@clisp.org>
8529
8530         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
8531         * m4/modfl-ieee.m4: New file.
8532         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
8533         whether modfl works with Inf. Replace it if not.
8534         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
8535         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
8536         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
8537         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
8538         (Depends-on): Update dependencies.
8539         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
8540         m4/signbit.m4.
8541         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
8542         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
8543
8544         modfl-ieee: Fix dependencies.
8545         * modules/modfl-ieee (Depends-on): Add modf-ieee.
8546
8547         modfl-ieee: Fix test failures.
8548         * lib/modfl.c (modfl): Treat NaN and Inf specially.
8549         * modules/modfl (Depends-on): Add isfinite, isinf.
8550
8551         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
8552         * m4/modff-ieee.m4: New file.
8553         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
8554         whether modff works with NaN and Inf. Replace it if not.
8555         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
8556         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
8557         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
8558         * modules/modff (configure.ac): Consider REPLACE_MODFF.
8559         (Depends-on): Update dependencies.
8560         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
8561         m4/signbit.m4.
8562         (Depends-on): Add modf-ieee.
8563         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
8564         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
8565
8566         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
8567         * m4/modf-ieee.m4: New file.
8568         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
8569         whether modf works with NaN and Inf. Replace it if not.
8570         * lib/math.in.h (modf): New declaration.
8571         * lib/modf.c: New file.
8572         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
8573         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
8574         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
8575         * modules/modf (Files): Add lib/modf.c.
8576         (Depends-on): Add math, isfinite, trunc, isinf.
8577         (configure.ac): Addrange to compile lib/modf.c if needed.
8578         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
8579         m4/signbit.m4.
8580         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
8581         * tests/test-math-c++.cc: Check the declaration of modf.
8582         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
8583
8584         Tests for module 'modfl-ieee'.
8585         * modules/modfl-ieee-tests: New file.
8586         * tests/test-modfl-ieee.c: New file.
8587
8588         New module 'modfl-ieee'.
8589         * modules/modfl-ieee: New file.
8590
8591         Tests for module 'modf-ieee'.
8592         * modules/modf-ieee-tests: New file.
8593         * tests/test-modf-ieee.c: New file.
8594
8595         New module 'modf-ieee'.
8596         * modules/modf-ieee: New file.
8597
8598         Tests for module 'modff-ieee'.
8599         * modules/modff-ieee-tests: New file.
8600         * tests/test-modff-ieee.c: New file.
8601         * tests/test-modf-ieee.h: New file.
8602
8603         New module 'modff-ieee'.
8604         * modules/modff-ieee: New file.
8605
8606 2012-02-26  Bruno Haible  <bruno@clisp.org>
8607
8608         Tests for module 'fabsl-ieee'.
8609         * modules/fabsl-ieee-tests: New file.
8610         * tests/test-fabsl-ieee.c: New file.
8611
8612         New module 'fabsl-ieee'.
8613         * modules/fabsl-ieee: New file.
8614
8615         Tests for module 'fabs-ieee'.
8616         * modules/fabs-ieee-tests: New file.
8617         * tests/test-fabs-ieee.c: New file.
8618
8619         New module 'fabs-ieee'.
8620         * modules/fabs-ieee: New file.
8621
8622         Tests for module 'fabsf-ieee'.
8623         * modules/fabsf-ieee-tests: New file.
8624         * tests/test-fabsf-ieee.c: New file.
8625         * tests/test-fabs-ieee.h: New file.
8626
8627         New module 'fabsf-ieee'.
8628         * modules/fabsf-ieee: New file.
8629
8630 2012-02-26  Bruno Haible  <bruno@clisp.org>
8631
8632         Tests for module 'fmal-ieee'.
8633         * modules/fmal-ieee-tests: New file.
8634         * tests/test-fmal-ieee.c: New file.
8635
8636         New module 'fmal-ieee'.
8637         * modules/fmal-ieee: New file.
8638
8639         Tests for module 'fma-ieee'.
8640         * modules/fma-ieee-tests: New file.
8641         * tests/test-fma-ieee.c: New file.
8642
8643         New module 'fma-ieee'.
8644         * modules/fma-ieee: New file.
8645
8646         Tests for module 'fmaf-ieee'.
8647         * modules/fmaf-ieee-tests: New file.
8648         * tests/test-fmaf-ieee.c: New file.
8649         * tests/test-fma-ieee.h: New file.
8650
8651         New module 'fmaf-ieee'.
8652         * modules/fmaf-ieee: New file.
8653
8654 2012-02-26  Bruno Haible  <bruno@clisp.org>
8655
8656         Tests for module 'ldexpl-ieee'.
8657         * modules/ldexpl-ieee-tests: New file.
8658         * tests/test-ldexpl-ieee.c: New file.
8659
8660         New module 'ldexpl-ieee'.
8661         * modules/ldexpl-ieee: New file.
8662
8663         Tests for module 'ldexp-ieee'.
8664         * modules/ldexp-ieee-tests: New file.
8665         * tests/test-ldexp-ieee.c: New file.
8666
8667         New module 'ldexp-ieee'.
8668         * modules/ldexp-ieee: New file.
8669
8670         Tests for module 'ldexpf-ieee'.
8671         * modules/ldexpf-ieee-tests: New file.
8672         * tests/test-ldexpf-ieee.c: New file.
8673         * tests/test-ldexp-ieee.h: New file.
8674
8675         New module 'ldexpf-ieee'.
8676         * modules/ldexpf-ieee: New file.
8677
8678 2012-02-26  Bruno Haible  <bruno@clisp.org>
8679
8680         Refactor frexp*-ieee tests.
8681         * tests/test-frexp-ieee.h: New file.
8682         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
8683         (main): Just call test_function.
8684         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
8685         (main): Just call test_function.
8686         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
8687         (main): Just call test_function.
8688         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
8689         * modules/frexp-ieee-tests (Files): Likewise.
8690         * modules/frexpl-ieee-tests (Files): Likewise.
8691
8692         Tests for module 'frexpl-ieee'.
8693         * modules/frexpl-ieee-tests: New file.
8694         * tests/test-frexpl-ieee.c: New file.
8695
8696         New module 'frexpl-ieee'.
8697         * modules/frexpl-ieee: New file.
8698
8699         Tests for module 'frexp-ieee'.
8700         * modules/frexp-ieee-tests: New file.
8701         * tests/test-frexp-ieee.c: New file.
8702
8703         New module 'frexp-ieee'.
8704         * modules/frexp-ieee: New file.
8705
8706         Tests for module 'frexpf-ieee'.
8707         * modules/frexpf-ieee-tests: New file.
8708         * tests/test-frexpf-ieee.c: New file.
8709
8710         New module 'frexpf-ieee'.
8711         * modules/frexpf-ieee: New file.
8712
8713 2012-02-26  Bruno Haible  <bruno@clisp.org>
8714
8715         roundl-ieee tests: More tests.
8716         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
8717         (main): Add tests for [MX] shaded specification in POSIX.
8718         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8719         (Depends-on): Add isnanl-nolibm.
8720
8721         round-ieee tests: More tests.
8722         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
8723         (main): Add tests for [MX] shaded specification in POSIX.
8724         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8725         (Depends-on): Add isnand-nolibm.
8726
8727         roundf-ieee tests: More tests.
8728         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
8729         (main): Add tests for [MX] shaded specification in POSIX.
8730         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8731         (Depends-on): Add isnanf-nolibm.
8732
8733         truncl-ieee tests: More tests.
8734         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
8735         (main): Add tests for [MX] shaded specification in POSIX.
8736         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8737         (Depends-on): Add isnanl-nolibm.
8738
8739         trunc-ieee tests: More tests.
8740         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
8741         (main): Add tests for [MX] shaded specification in POSIX.
8742         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8743         (Depends-on): Add isnand-nolibm.
8744
8745         truncf-ieee tests: More tests.
8746         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
8747         (main): Add tests for [MX] shaded specification in POSIX.
8748         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8749         (Depends-on): Add isnanf-nolibm.
8750
8751         ceill-ieee tests: More tests.
8752         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
8753         (main): Add tests for [MX] shaded specification in POSIX.
8754         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8755         (Depends-on): Add isnanl-nolibm.
8756
8757         ceil-ieee tests: More tests.
8758         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
8759         (main): Add tests for [MX] shaded specification in POSIX.
8760         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8761         (Depends-on): Add isnand-nolibm.
8762
8763         ceilf-ieee tests: More tests.
8764         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
8765         (main): Add tests for [MX] shaded specification in POSIX.
8766         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8767         (Depends-on): Add isnanf-nolibm.
8768
8769         floorl-ieee tests: More tests.
8770         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
8771         (main): Add tests for [MX] shaded specification in POSIX.
8772         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8773         (Depends-on): Add isnanl-nolibm.
8774
8775         floor-ieee tests: More tests.
8776         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
8777         (main): Add tests for [MX] shaded specification in POSIX.
8778         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8779         (Depends-on): Add isnand-nolibm.
8780
8781         floorf-ieee tests: More tests.
8782         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
8783         (main): Add tests for [MX] shaded specification in POSIX.
8784         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8785         (Depends-on): Add isnanf-nolibm.
8786
8787 2012-02-26  Bruno Haible  <bruno@clisp.org>
8788
8789         fpieee: More comments.
8790         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
8791
8792 2012-02-25  Bruno Haible  <bruno@clisp.org>
8793
8794         Tests for module 'log10l'.
8795         * modules/log10l-tests: New file.
8796         * tests/test-log10l.c: New file.
8797         * tests/test-math-c++.cc: Check the declaration of log10l.
8798
8799         New module 'log10l'.
8800         * lib/math.in.h (log10l): New declaration.
8801         * lib/log10l.c: New file.
8802         * m4/log10l.m4: New file.
8803         * modules/log10l: New file.
8804         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
8805         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
8806         HAVE_DECL_LOG10L.
8807         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
8808         HAVE_DECL_LOG10L.
8809         * doc/posix-functions/log10l.texi: Mention the new module.
8810
8811 2012-02-25  Bruno Haible  <bruno@clisp.org>
8812
8813         fmodl, remainder*: Avoid wrong results due to rounding errors.
8814         * lib/fmodl.c (fmodl): Correct the result if it is not within the
8815         expected bounds.
8816         * lib/remainderf.c (remainderf): Likewise.
8817         * lib/remainder.c (remainder): Likewise.
8818         * lib/remainderl.c (remainderl): Likewise.
8819
8820 2012-02-25  Bruno Haible  <bruno@clisp.org>
8821
8822         Tests for module 'remainderl'.
8823         * modules/remainderl-tests: New file.
8824         * tests/test-remainderl.c: New file.
8825         * tests/test-math-c++.cc: Check the declaration of remainderl.
8826
8827         New module 'remainderl'.
8828         * lib/math.in.h (remainderl): New declaration.
8829         * lib/remainderl.c: New file.
8830         * m4/remainderl.m4: New file.
8831         * modules/remainderl: New file.
8832         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
8833         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
8834         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
8835         HAVE_REMAINDERL.
8836         * doc/posix-functions/remainderl.texi: Mention the new module.
8837
8838 2012-02-25  Bruno Haible  <bruno@clisp.org>
8839
8840         Tests for module 'remainderf'.
8841         * modules/remainderf-tests: New file.
8842         * tests/test-remainderf.c: New file.
8843         * tests/test-math-c++.cc: Check the declaration of remainderf.
8844
8845         New module 'remainderf'.
8846         * lib/math.in.h (remainderf): New declaration.
8847         * lib/remainderf.c: New file.
8848         * m4/remainderf.m4: New file.
8849         * modules/remainderf: New file.
8850         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
8851         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
8852         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
8853         HAVE_REMAINDERF.
8854         * doc/posix-functions/remainderf.texi: Mention the new module.
8855
8856 2012-02-25  Bruno Haible  <bruno@clisp.org>
8857
8858         remainder: Support for MSVC.
8859         * lib/math.in.h (remainder): New declaration.
8860         * lib/remainder.c: New file.
8861         * m4/remainder.m4: New file.
8862         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
8863         (Depends-on): Add math, round, fma.
8864         (configure.ac): Use results of gl_FUNC_REMAINDER.
8865         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
8866         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
8867         HAVE_DECL_REMAINDER.
8868         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
8869         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
8870         * tests/test-math-c++.cc: Check the declaration of remainder.
8871         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
8872         problems are fixed.
8873
8874 2012-02-25  Bruno Haible  <bruno@clisp.org>
8875
8876         Tests for module 'fmodl'.
8877         * modules/fmodl-tests: New file.
8878         * tests/test-fmodl.c: New file.
8879         * tests/test-math-c++.cc: Check the declaration of fmodl.
8880
8881         New module 'fmodl'.
8882         * lib/math.in.h (fmodl): New declaration.
8883         * lib/fmodl.c: New file.
8884         * m4/fmodl.m4: New file.
8885         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
8886         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
8887         REPLACE_FMODL.
8888         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
8889         REPLACE_FMODL.
8890         * modules/fmodl: New file.
8891         * doc/posix-functions/fmodl.texi: Mention the new module.
8892
8893 2012-02-25  Bruno Haible  <bruno@clisp.org>
8894
8895         Tests for module 'modfl'.
8896         * modules/modfl-tests: New file.
8897         * tests/test-modfl.c: New file.
8898         * tests/test-math-c++.cc: Check the declaration of modfl.
8899
8900         New module 'modfl'.
8901         * lib/math.in.h (modfl): New declaration.
8902         * lib/modfl.c: New file.
8903         * m4/modfl.m4: New file.
8904         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
8905         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
8906         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
8907         * modules/modfl: New file.
8908         * doc/posix-functions/modfl.texi: Mention the new module.
8909
8910 2012-02-25  Bruno Haible  <bruno@clisp.org>
8911
8912         Tests for module 'fabsl'.
8913         * modules/fabsl-tests: New file.
8914         * tests/test-fabsl.c: New file.
8915         * tests/test-math-c++.cc: Check the declaration of fabsl.
8916
8917         New module 'fabsl'.
8918         * lib/math.in.h (fabsl): New declaration.
8919         * lib/fabsl.c: New file.
8920         * m4/fabsl.m4: New file.
8921         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
8922         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
8923         REPLACE_FABSL.
8924         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
8925         REPLACE_FABSL.
8926         * modules/fabsl: New file.
8927         * doc/posix-functions/fabsl.texi: Mention the new module.
8928
8929 2012-02-25  Bruno Haible  <bruno@clisp.org>
8930
8931         fabs tests: More tests.
8932         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
8933         (zero): New variable.
8934         (main): Add tests for signed zero.
8935         * modules/fabs-tests (Files): Add tests/minus-zero.h.
8936
8937         fabsf tests: More tests.
8938         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
8939         (zero): New variable.
8940         (main): Add tests for signed zero.
8941         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
8942
8943 2012-02-24  Bruno Haible  <bruno@clisp.org>
8944
8945         atanl: Provide function definition on MSVC.
8946         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
8947         function pointer.
8948         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
8949
8950 2012-02-24  Bruno Haible  <bruno@clisp.org>
8951
8952         acosl: Provide function definition on MSVC.
8953         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
8954         function pointer.
8955         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
8956
8957 2012-02-24  Bruno Haible  <bruno@clisp.org>
8958
8959         asinl: Provide function definition on MSVC.
8960         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
8961         function pointer.
8962         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
8963
8964 2012-02-24  Bruno Haible  <bruno@clisp.org>
8965
8966         tanl: Provide function definition on MSVC.
8967         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
8968         function pointer.
8969         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
8970
8971 2012-02-24  Bruno Haible  <bruno@clisp.org>
8972
8973         cosl: Provide function definition on MSVC.
8974         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
8975         function pointer.
8976         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
8977
8978 2012-02-24  Bruno Haible  <bruno@clisp.org>
8979
8980         sinl: Provide function definition on MSVC.
8981         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
8982         function pointer.
8983         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
8984
8985 2012-02-24  Bruno Haible  <bruno@clisp.org>
8986
8987         logl: Provide function definition on MSVC.
8988         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
8989         function pointer.
8990         * lib/math.in.h (logl): Undefine if it does not exist as a function.
8991
8992 2012-02-24  Bruno Haible  <bruno@clisp.org>
8993
8994         expl: Provide function definition on MSVC.
8995         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
8996         function pointer.
8997         * lib/math.in.h (expl): Undefine if it does not exist as a function.
8998
8999 2012-02-24  Bruno Haible  <bruno@clisp.org>
9000
9001         sqrtl: Provide function definition on MSVC.
9002         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
9003         a function pointer.
9004         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
9005
9006 2012-02-24  Bruno Haible  <bruno@clisp.org>
9007
9008         ceill: Provide function definition on MSVC.
9009         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
9010         used as a function pointer.
9011         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
9012
9013 2012-02-24  Bruno Haible  <bruno@clisp.org>
9014
9015         floorl: Provide function definition on MSVC.
9016         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
9017         used as a function pointer.
9018         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
9019
9020 2012-02-24  Bruno Haible  <bruno@clisp.org>
9021
9022         ceilf: Provide function definition on MSVC.
9023         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
9024         used as a function pointer.
9025         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
9026
9027 2012-02-24  Bruno Haible  <bruno@clisp.org>
9028
9029         floorf: Provide function definition on MSVC.
9030         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
9031         used as a function pointer.
9032         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
9033
9034 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
9035
9036         stdnoreturn: new module
9037         This implements a replacement for C11's <stdnoreturn.h>.
9038         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
9039         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
9040         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
9041         * tests/test-stdnoreturn.c: New files.
9042
9043 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
9044
9045         regex: fix false multibyte matches in some regular expressions
9046         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
9047         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
9048         * lib/regex_internal.c (re_string_skip_chars):
9049         Fix miscomputation of remain_len that may cause incomplete
9050         multi-byte character and false match.
9051
9052 2012-02-24  Jim Meyering  <meyering@redhat.com>
9053
9054         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
9055         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
9056         uses with "==" *before* the call, e.g., 0 == strcmp (...)
9057         Remove now-unnecessary str''cmp obfuscation.
9058         Suggested by Akim Demaille.
9059
9060 2012-02-24  Bruno Haible  <bruno@clisp.org>
9061
9062         streq: Rename macro.
9063         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
9064         * NEWS: Mention the change.
9065         * lib/mbrtowc.c (mbrtowc): Update.
9066         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
9067         * lib/wcwidth.c (wcwidth): Update.
9068         Suggested by Akim Demaille and Jim Meyering.
9069
9070 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
9071
9072         regex: fix typo in definition of MIN
9073         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
9074         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
9075
9076 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
9077             Bruno Haible  <bruno@clisp.org>
9078
9079         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
9080         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
9081         entries into a stack-allocated buffer directly.
9082         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
9083
9084 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
9085             Bruno Haible  <bruno@clisp.org>
9086
9087         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
9088
9089          - There were several instances of this pattern:
9090
9091              for (;;) {
9092                n = acl (f, GETACLCNT, 0, NULL);
9093                [ allocate an array A of size N ]
9094                if (acl (f, GETACL, n, a) == n)
9095                  break;
9096              }
9097
9098            This loop might never terminate if some other process is constantly
9099            manipulating the file's ACL.  The loop should be rewritten to
9100            terminate.
9101
9102          - The acl (... GETACLNT ...) call is merely an optimization; its value
9103            is merely a hint as to how big to make the array.  A better
9104            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
9105            and just guess a reasonably-big size, growing the size and trying
9106            again if it's not large enough.  This guarantees termination, and
9107            saves a system call.
9108
9109         * lib/acl-internal.h: Include <limits.h>.
9110         (MIN, SIZE_MAX): New macros.
9111         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
9112         a stack-allocated buffer, and use malloc if it does not fit. Don't
9113         use GETACLCNT.
9114         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
9115
9116 2012-02-19  Bruno Haible  <bruno@clisp.org>
9117
9118         acl: Fix endless loop on Solaris with vxfs.
9119         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
9120         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
9121         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
9122         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
9123         * tests/test-sameacls.c (main)[Solaris]: Likewise.
9124         Reported by Bill Jones in
9125         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
9126
9127 2012-02-19  Bruno Haible  <bruno@clisp.org>
9128
9129         acl: Fix copy-acl test failure on Solaris 11 2011-11.
9130         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
9131         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
9132         that this function returns 0 in some more cases.
9133
9134 2012-02-19  Bruno Haible  <bruno@clisp.org>
9135
9136         acl: Update doc references.
9137         * doc/acl-resources.txt: Update links to Solaris documentation.
9138
9139 2012-02-19  Bruno Haible  <bruno@clisp.org>
9140
9141         Fix test failure in many locales on Solaris 11.
9142         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
9143         'tr' arguments.
9144         * tests/test-pipe-filter-ii1.c (main): Likewise.
9145         * build-aux/bootstrap (check_versions): Run 'tr' command with range
9146         expressions in the C locale.
9147         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
9148         * m4/host-os.m4 (gl_HOST_OS): Likewise.
9149
9150 2012-02-19  Bruno Haible  <bruno@clisp.org>
9151
9152         gnulib-tool: Improve usage message.
9153         * gnulib-tool (func_usage): Move doc of --help and --version to the
9154         section "Operation modes".
9155
9156 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
9157
9158         README-release: make it easier to execute commands
9159         * top/README-release: break commands out on to separate lines.
9160
9161 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
9162
9163         GNUmakefile: simplify detection of unconfigured trees
9164         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
9165         whether the tree make is being run from is already configured or
9166         not.  Related simplifications.
9167
9168 2012-02-13  Simon Josefsson  <simon@josefsson.org>
9169
9170         * gnulib-tool (func_usage): Document --help and --version.
9171
9172 2012-02-11  Jim Meyering  <meyering@redhat.com>
9173
9174         bootstrap: don't exit 0 upon gnulib-tool failure
9175         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
9176         its exit status, not 0.
9177
9178 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
9179
9180         README-release: various improvements
9181         * top/README-release: Give a command to push changes for the
9182         release.  Add "distcheck" to list of other pre-release checks.
9183         Fix instance of "make stable" which should be "make TYPE".
9184
9185 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
9186
9187         maint: replace FSF snail-mail addresses with URLs
9188         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
9189         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
9190         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
9191         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
9192         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
9193         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
9194         * lib/check-version.c, lib/check-version.h, lib/config.charset:
9195         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
9196         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
9197         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
9198         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
9199         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
9200         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
9201         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
9202         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
9203         * lib/glthread/thread.c, lib/glthread/thread.h:
9204         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
9205         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
9206         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
9207         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
9208         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
9209         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
9210         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
9211         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
9212         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
9213         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
9214         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
9215         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
9216         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
9217         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
9218         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
9219         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
9220         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
9221         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
9222         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
9223         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
9224         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
9225         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
9226         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
9227         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
9228         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
9229         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
9230         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
9231         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
9232         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
9233         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
9234         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
9235         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
9236         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
9237         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
9238         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
9239         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
9240         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
9241         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
9242         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
9243         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
9244         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
9245         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
9246         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
9247         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
9248         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
9249         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
9250         * tests/test-poll.c, tests/test-quotearg-simple.c:
9251         * tests/test-quotearg.c, tests/test-quotearg.h:
9252         * tests/test-round-ieee.c, tests/test-round1.c:
9253         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
9254         * tests/test-roundl-ieee.c, tests/test-roundl.c:
9255         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
9256         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
9257         * tests/test-strerror.c, tests/test-strerror_r.c:
9258         * tests/test-strsignal.c, tests/test-strverscmp.c:
9259         * tests/test-xmemdup0.c:
9260         Replace FSF snail mail addresses with URLs, as per GNU coding
9261         standards.  See glibc bug
9262         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
9263
9264 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
9265
9266         README-release: capitalize a word and split a line
9267         * top/README-release: Fix punctuation and spacing.
9268
9269 2012-02-08  Akim Demaille  <demaille@gostai.com>
9270
9271         fatal-signal: use C prototypes (with explicit void).
9272         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
9273         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
9274
9275 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
9276
9277         regex: spelling fix
9278         * lib/regexec.c: spelling fix
9279
9280         regex: rely on stdint.h for SIZE_MAX
9281         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
9282
9283 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
9284
9285         regex: merge glibc changes
9286
9287         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
9288         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
9289         (init_word_char): Work even if bitset words are not exactly 32 or
9290         64 bits wide.  Don't assume there are no padding bits.
9291         * lib/regex.c [_LIBC]: Do not include <config.h>.
9292         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
9293         and -Wtype-limits.
9294         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
9295         needless disagreement with glibc.  All uses changed.  Define it to
9296         1 only if _GNU_SOURCE, to match glibc.
9297         (_REG_RM_NAME): Remove; no longer needed, since the names in
9298         question are now all protected by __USE_GNU.
9299         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
9300         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
9301         * lib/regex_internal.h (MIN): New macro.
9302
9303         2012-01-03 Ulrich Drepper <drepper@gmail.com>
9304         * lib/regcomp.c (init_word_char): Optimize regex a bit.
9305
9306         2011-12-30 Jakub Jelinek <jakub@redhat.com>
9307         * lib/regex_internal.c (re_string_fetch_byte_case):
9308         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
9309         is miscompiled, and it turns out it is because of an incorrect
9310         attribute on re_string_fetch_byte_case.  Unlike
9311         re_string_peek_byte_case, this one is really not pure, it modifies
9312         memory (increments pstr->cur_idx), and with the pure attribute GCC
9313         assumed it doesn't and it cached the presumed value of
9314         regexp->cur_idx in a variable across the
9315          for (;; ++i)
9316            {
9317              if (i >= BRACKET_NAME_BUF_SIZE)
9318                return REG_EBRACK;
9319              if (token->type == OP_OPEN_CHAR_CLASS)
9320                ch = re_string_fetch_byte_case (regexp);
9321              else
9322                ch = re_string_fetch_byte (regexp);
9323              if (re_string_eoi(regexp))
9324                return REG_EBRACK;
9325              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
9326                break;
9327              elem->opr.name[i] = ch;
9328            }
9329
9330         2011-11-29 Andreas Schwab <schwab@redhat.com>
9331         * lib/regcomp.c (build_equiv_class):
9332         Fix access after end of search string in regex matcher.
9333
9334         2011-11-12 Ulrich Drepper <drepper@redhat.com>
9335         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
9336
9337         2011-10-12 Ulrich Drepper <drepper@redhat.com>
9338         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
9339
9340         2011-10-11 Ulrich Drepper <drepper@redhat.com>
9341         * lib/regcomp.c (parse_branch, parse_sub_exp):
9342         More regex memory leak fixes and tests.
9343         (parse_sub_exp, parse_bracket_exp):
9344         Fix memory leak for some invalid regular expressions.
9345
9346         2011-05-28 Ulrich Drepper <drepper@gmail.com>
9347         * lib/regex_internal.c, lib/regexec.c:
9348         Fix unnecessary overallocation due to incomplete character.  When
9349         incomplete characters are found at the end of a string the code
9350         ran amok and allocated lots of memory.  Stricter limits are now in
9351         place.
9352
9353         2011-05-20 Reuben Thomas <rrt@sc3d.org>
9354         * lib/regex.h: Update documentation.
9355
9356         2011-05-16 Aharon Robbins <arnold@skeeve.com>
9357         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
9358
9359         2010-05-05 Andreas Schwab <schwab@redhat.com>
9360         * lib/regexec.c (find_collation_sequence_value):
9361         Fix lookup of collation sequence value during regexp matching.
9362
9363         2010-01-22 Ulrich Drepper <drepper@redhat.com>
9364         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
9365
9366         2008-01-16 Ulrich Drepper <drepper@redhat.com>
9367         * lib/regex.h: Cleanup namespace.
9368
9369         2007-11-26 Ulrich Drepper <drepper@redhat.com>
9370         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
9371
9372         2007-08-26 Ulrich Drepper <drepper@redhat.com>
9373         * lib/regex_internal.h: Prevent some declarations and definitions
9374         to be seen when used in tests.
9375
9376         2005-05-06 Ulrich Drepper <drepper@redhat.com>
9377         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
9378         __libc_lock_* macros if not _LIBC.
9379         (struct re_dfa_t): Add lock.
9380
9381 2012-02-07  Eric Blake  <eblake@redhat.com>
9382
9383         maint.mk: also prohibit lower-case @var@
9384         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
9385         lower case, like @top_srcdir@.
9386
9387 2012-02-04  Eric Blake  <eblake@redhat.com>
9388
9389         canonicalize: avoid uninitialized memory use
9390         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
9391         random '/' left in dest.
9392         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
9393
9394 2012-02-04  Bruno Haible  <bruno@clisp.org>
9395
9396         isatty: Fix test failure of ptsname_r on native Windows.
9397         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
9398         and don't set errno.
9399         (isatty): Test first whether fd is valid. Set errno when returning 0.
9400
9401 2012-02-04  Bruno Haible  <bruno@clisp.org>
9402
9403         spawn-pipe tests: Fix a NULL program name in a diagnostic.
9404         * tests/test-spawn-pipe-main.c: Include progname.h.
9405         (main): Invoke set_program_name.
9406         * modules/spawn-pipe-tests (Depends-on): Add progname.
9407
9408         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
9409         * tests/test-nonblocking-socket-main.c: Include progname.h.
9410         (main): Invoke set_program_name.
9411         * modules/nonblocking-socket-tests (Depends-on): Add progname.
9412
9413         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
9414         * tests/test-nonblocking-pipe-main.c: Include progname.h.
9415         (main): Invoke set_program_name.
9416         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
9417
9418 2012-02-04  Eric Blake  <eblake@redhat.com>
9419
9420         canonicalize-lgpl: fix // handling
9421         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
9422
9423         canonicalize: fix // handling
9424         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
9425         /// to //, since only // is special.
9426
9427 2012-02-04  Bruno Haible  <bruno@clisp.org>
9428
9429         ioctl: Fix test failure on native Windows.
9430         * lib/ioctl.c: Include msvc-nothrow.h.
9431         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
9432
9433 2012-02-04  Bruno Haible  <bruno@clisp.org>
9434
9435         fsync: Avoid test failure on native Windows.
9436         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
9437         read-only.
9438
9439 2012-02-04  Bruno Haible  <bruno@clisp.org>
9440
9441         sys_select: Avoid syntax error on OpenBSD 5.0.
9442         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
9443         currently being included, just include the system's <sys/select.h>.
9444
9445 2012-02-04  Bruno Haible  <bruno@clisp.org>
9446
9447         sys_select: Avoid syntax error on OpenBSD 5.0.
9448         * lib/sys_select.in.h: Include <signal.h> only after the include_next
9449         <sys/select.h>, not before.
9450         Reported by Jiri B <jirib@devio.us>.
9451
9452 2012-02-04  Bruno Haible  <bruno@clisp.org>
9453
9454         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
9455         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
9456         global variables.
9457         * tests/test-get-rusage-data.c (main): Likewise.
9458         Reported by Jim Meyering.
9459
9460 2012-02-04  Bruno Haible  <bruno@clisp.org>
9461
9462         stdioext: Fix last commit.
9463         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
9464
9465 2012-02-03  Bruno Haible  <bruno@clisp.org>
9466
9467         stdioext: Add tentative support for Plan9.
9468         * lib/stdio-impl.h: Include <errno.h>.
9469         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
9470         * lib/freadable.c (freadable): Likewise.
9471         * lib/fwritable.c (fwritable): Likewise.
9472         * lib/fbufmode.c (fbufmode): Likewise.
9473         * lib/freading.c (freading): Likewise.
9474         * lib/fwriting.c (fwriting): Likewise.
9475         * lib/freadptr.c (freadptr): Likewise.
9476         * lib/freadseek.c (freadptrinc): Likewise.
9477         * lib/freadahead.c (freadahead): Likewise.
9478         * lib/fpurge.c (fpurge): Likewise.
9479         * lib/fseeko.c (rpl_fseeko): Likewise.
9480         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
9481         Reported by Jens Staal <staal1978@gmail.com>.
9482
9483 2012-02-02  Jim Meyering  <meyering@redhat.com>
9484
9485         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
9486         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
9487         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
9488         not even to try to add the attribute.  Instead, add a pragma to suppress
9489         the suggestion/warning.
9490
9491 2012-01-31  Karl Berry  <karl@gnu.org>
9492
9493         setstate doc: typo.
9494         * doc/posix-functions/setstate.texi (setstate): { not (.
9495
9496 2012-01-31  Bruno Haible  <bruno@clisp.org>
9497
9498         popen: Make more robust on Windows.
9499         * lib/popen.c: On native Windows, use the _popen based code even if
9500         HAVE_POPEN is set.
9501         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
9502         environment variable on native Windows.
9503
9504 2012-01-30  Bruno Haible  <bruno@clisp.org>
9505
9506         pclose: Fix typo.
9507         * lib/stdio.in.h (pclose): Fix typo in warning message.
9508
9509 2012-01-30  Bruno Haible  <bruno@clisp.org>
9510
9511         doc about getlogin_r, setstate.
9512         * doc/posix-functions/getlogin_r.texi: List the incompatible
9513         declaration problem under "not fixed by gnulib".
9514         * doc/posix-functions/setstate.texi: Mention incompatible declaration
9515         problem on Solaris 11 and other platforms.
9516
9517 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
9518             Bruno Haible  <bruno@clisp.org>
9519
9520         poll tests: Make test more robust.
9521         * tests/test-poll.c: Include macros.h.
9522         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
9523         return value of various I/O operations.
9524         * modules/poll-tests (Files): Add tests/macros.h.
9525
9526 2012-01-30  Bruno Haible  <bruno@clisp.org>
9527
9528         sys_stat: Fix support for mingw64 and MSVC.
9529         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
9530         header files already do it.
9531         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
9532         stat itself.
9533         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
9534
9535 2012-01-30  Bruno Haible  <bruno@clisp.org>
9536
9537         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
9538         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
9539         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
9540
9541 2012-01-29  Bruno Haible  <bruno@clisp.org>
9542
9543         quotearg: Fix test failure on MacOS X 10.5.
9544         * tests/test-quotearg-simple.c: Include localcharset.h.
9545         (main): If the locale encoding is not ASCII, bypass the tests of
9546         locale_quoting_style and clocale_quoting_style.
9547         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
9548
9549 2012-01-29  Jim Meyering  <meyering@redhat.com>
9550
9551         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
9552         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
9553         detect uses of canonicalize_file_name.
9554
9555 2012-01-28  Bruno Haible  <bruno@clisp.org>
9556
9557         test-framework-sh: Fix test failure with AIX 7.1 diff.
9558         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
9559         in column 1, like 'diff -c' does.
9560         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
9561         whether 'diff -u' is used. Instead, test whether the output contains
9562         some '@' character.
9563
9564 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
9565
9566         strtoimax: eliminate need for stdint.h, inttypes.h checks
9567         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
9568         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
9569         the prerequisites for a recently-introduced strtoimax test.
9570         I guess this might cause strtoimax to be replaced when not
9571         strictly necessary on older hosts, but this shouldn't introduce
9572         any bugs and it should make Emacs 'configure' faster on typical
9573         modern hosts.  Problem discovered when importing the latest gnulib
9574         to an Emacs test version.
9575         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
9576
9577 2012-01-28  Bruno Haible  <bruno@clisp.org>
9578
9579         sys_time: Override 'struct timeval' on some native Windows platforms.
9580         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
9581         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
9582         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
9583         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
9584         needs to be overridden.
9585         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
9586         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
9587         * tests/test-sys_select.c: Check that the tv_sec member has the same
9588         size as a 'time_t'.
9589         * tests/test-sys_time.c: Likewise.
9590         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
9591         is set, set also REPLACE_GETTIMEOFDAY.
9592         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
9593         convert the resulting 'struct timeval' before returning.
9594         * lib/select.c: Include <sys/time.h>.
9595         (select, timeval): Undefine at the right place.
9596         * modules/select (Depends-on): Add sys_time.
9597         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
9598         some Windows platforms.
9599         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
9600
9601 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
9602
9603         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
9604         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
9605         an integer.
9606         * lib/fcntl.c (dupfd): Likewise.
9607         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
9608
9609 2012-01-28  Bruno Haible  <bruno@clisp.org>
9610
9611         fcntl: Avoid compilation error on native Windows.
9612         * modules/fcntl (Depends-on): Add 'close'.
9613
9614 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
9615
9616         select, poll, isatty: Avoid warnings on x86_64 mingw64.
9617         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
9618         pointer to an integer.
9619         * lib/poll.c (IsConsoleHandle): Likewise.
9620         * lib/isatty.c (IsConsoleHandle): Likewise.
9621
9622 2012-01-28  Jim Meyering  <meyering@redhat.com>
9623
9624         doc: clarify README-release
9625         * top/README-release: Clarify: you should make a point to have
9626         the latest stable versions of build tools in your PATH, and the
9627         reference to buildreq is solely for its list of tool names, not
9628         for its minimal-functional version numbers.
9629         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
9630
9631         maint.mk: use more readable (yet functionally equivalent) quoting
9632         It is common to quote a single quote in a single quoted string like
9633         this:  '...'\''...'.  Unless you know the idiom, that looks like
9634         gibberish, so prefer to double-quote the string when possible.
9635         Then you can use a more readable, lone single quote: "...'..."
9636         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
9637         "don't" is more readable than the equivalent 'don'\''t'.
9638         (sc_cast_of_x_alloc_return_value): Likewise.
9639         (sc_cast_of_alloca_return_value): Likewise.
9640         (sc_makefile_path_separator_check): Similar: use ":" in '...',
9641         rather than '\'':'\''.
9642
9643 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
9644
9645         stdalign: relax _Alignof and tighten _Alignas test
9646         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
9647         as it was too strict: alignof must divide offsetof, but it need
9648         not equal offsetof.  Inspired by Joseph S. Myers's comment
9649         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
9650         Conversely, tighten the _Alignas test a bit, as the resulting
9651         alignment must be exactly 8.
9652
9653 2012-01-27  Bruno Haible  <bruno@clisp.org>
9654
9655         stdalign: Document the last change.
9656         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
9657
9658 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
9659
9660         stdalign: check that alignof and offsetof are consistent
9661         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
9662         Problem reported for gnulib by Richard W.M. Jones in
9663         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
9664
9665 2012-01-27  Jim Meyering  <meyering@redhat.com>
9666
9667         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
9668         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
9669         convert a sequence with gaps to the minimal containing range.
9670         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
9671         * tests/test-update-copyright.sh: Test for this.
9672         The FSF confirmed it is ok to do this, assuming there is at
9673         least one significant change per year in the affected range:
9674         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
9675
9676 2012-01-26  Bruno Haible  <bruno@clisp.org>
9677
9678         pipe2: refine doc about thread-safety
9679         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
9680         multithread-safety problem.
9681         * doc/glibc-functions/accept4.texi: Likewise.
9682
9683 2012-01-26  Bruno Haible  <bruno@clisp.org>
9684
9685         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
9686         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
9687         In the test program, include <fcntl.h>, for O_RDONLY.
9688
9689 2012-01-26  Eric Blake  <eblake@redhat.com>
9690
9691         pipe2: document lack of thread-safety in replacement
9692         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
9693         issue in replacement.
9694         * doc/glibc-functions/accept4.texi (accept4): Likewise.
9695         Based on a report by Eric Wong.
9696
9697 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
9698             Bruno Haible  <bruno@clisp.org>
9699
9700         malloca: Avoid warnings on x86_64 mingw64.
9701         * lib/malloca.c: Include <stdint.h>.
9702         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
9703         * modules/malloca (Depends-on): Add stdint.
9704         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
9705
9706 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
9707
9708         obstack: remove __STDC__ conditionals
9709         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
9710         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
9711         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
9712         m4/include_next.m4 as the only gnulib-maintained places that still
9713         refer to __STDC__.
9714
9715 2012-01-24  Bruno Haible  <bruno@clisp.org>
9716
9717         havelib: Modern quoting.
9718         * build-aux/config.rpath: Quote 'like this', not `like this', as per
9719         the recent change to the GNU coding standards.
9720
9721 2012-01-24  Bruno Haible  <bruno@clisp.org>
9722
9723         stdint: Improve support for Android.
9724         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
9725         Reported by Simon Josefsson <simon@josefsson.org>.
9726
9727 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
9728
9729         doc: omit trailing empty lines from INSTALL etc.
9730         * doc/Makefile (INSTALL): Omit trailing empty lines.
9731         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
9732         omit trailing empty lines.  This simplifies the build procedure.
9733
9734 2012-01-23  Jim Meyering  <meyering@redhat.com>
9735
9736         tests: avoid spurious warnings about gl_sockets_startup
9737         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
9738         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
9739         reporting a "statement with no effect".
9740         * tests/test-accept.c (main): Mark as "(void)".
9741         * tests/test-accept4.c (main): Likewise.
9742         * tests/test-bind.c (main): Likewise.
9743         * tests/test-connect.c (main): Likewise.
9744         * tests/test-getpeername.c (main): Likewise.
9745         * tests/test-getsockname.c (main): Likewise.
9746         * tests/test-getsockopt.c (main): Likewise.
9747         * tests/test-listen.c (main): Likewise.
9748         * tests/test-recv.c (main): Likewise.
9749         * tests/test-recvfrom.c (main): Likewise.
9750         * tests/test-send.c (main): Likewise.
9751         * tests/test-sendto.c (main): Likewise.
9752         * tests/test-setsockopt.c (main): Likewise.
9753         * tests/test-shutdown.c (main): Likewise.
9754
9755 2012-01-21  Bruno Haible  <bruno@clisp.org>
9756
9757         locale-fr.m4: Fix for Android.
9758         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
9759         failure of the test program on Bionic libc.
9760
9761 2012-01-21  Jim Meyering  <meyering@redhat.com>
9762
9763         bootstrap: fail when bootstrap_post_import_hook fails
9764         Otherwise, it's far too easy to miss diagnostics emitted
9765         between gnulib-tool's output and that of running configure.
9766         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
9767
9768 2012-01-17  Jim Meyering  <meyering@redhat.com>
9769
9770         maint: enable sc_trailing_blank
9771         * build-aux/pmccabe.css: Remove trailing blanks.
9772         * doc/acl-cygwin.txt: Likewise.
9773         * doc/gnu-oids.texi: Likewise
9774         * cfg.mk: Enable sc_trailing_blank.
9775         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
9776
9777 2012-01-17  Jim Meyering  <meyering@redhat.com>
9778
9779         maint: enable sc_prohibit_openat_without_use
9780         * cfg.mk: Enable sc_prohibit_openat_without_use.
9781         Exempt lib/selinux-at.c.
9782
9783 2012-01-17  Jim Meyering  <meyering@redhat.com>
9784
9785         maint: enable sc_prohibit_cloexec_without_use
9786         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
9787         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
9788
9789 2012-01-17  Jim Meyering  <meyering@redhat.com>
9790
9791         maint: enable sc_prohibit_intprops_without_use
9792         * cfg.mk: Enable sc_prohibit_intprops_without_use
9793         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
9794
9795 2012-01-17  Jim Meyering  <meyering@redhat.com>
9796
9797         maint: enable sc_prohibit_hash_pjw_without_use
9798         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
9799         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
9800         to match any use of \<hash_pjw\>, i.e., not necessarily with a
9801         following " (".
9802
9803 2012-01-17  Jim Meyering  <meyering@redhat.com>
9804
9805         maint: enable double-word-prohibiting rule
9806         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
9807         Exempt three files.
9808
9809 2012-01-17  Jim Meyering  <meyering@redhat.com>
9810
9811         maint: remove empty lines at EOF, but excluding modules/*
9812         Apply syntax rules at home as well as abroad.  Most changes
9813         were induced by running this:
9814           make srcdir=. _build-aux=build-aux -f top/maint.mk \
9815             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
9816             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
9817         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
9818         Exempt modules/* and two binary files.
9819         Also exempt doc/INSTALL*, per request from Bruno Haible.
9820         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
9821         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
9822         * doc/Copyright/request-assign.future: Likewise.
9823         * doc/Copyright/request-disclaim.changes: Likewise.
9824         * doc/INSTALL: Likewise.
9825         * doc/INSTALL.ISO: Likewise.
9826         * doc/INSTALL.UTF-8: Likewise.
9827         * doc/acl-cygwin.txt: Likewise.
9828         * doc/acl-resources.txt: Likewise.
9829         * doc/fdl-1.2.texi: Likewise.
9830         * doc/fdl-1.3.texi: Likewise.
9831         * doc/fdl.texi: Likewise.
9832         * lib/argp-pin.c: Likewise.
9833         * lib/round.c: Likewise.
9834         * lib/unicase/u16-totitle.c: Likewise.
9835         * lib/unictype/block_test.c: Likewise.
9836         * lib/uninorm/canonical-decomposition.c: Likewise.
9837         * m4/README: Likewise.
9838         * m4/relocatable-lib.m4: Likewise.
9839         * tests/test-isnand-nolibm.c: Likewise.
9840         * tests/test-isnand.c: Likewise.
9841         * tests/uninorm/NormalizationTest.txt: Likewise.
9842
9843 2012-01-17  Jim Meyering  <meyering@redhat.com>
9844
9845         maint: add framework to run syntax-check rules against gnulib sources
9846         * cfg.mk: New file, to disable all currently-failing tests.
9847         We'll enable them one by one, as they are made to pass.
9848         * Makefile (sc_maint): New rule.
9849
9850 2012-01-21  Bruno Haible  <bruno@clisp.org>
9851
9852         stdint: Add support for Android.
9853         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
9854         include the system's <stdint.h>.
9855         Reported by Simon Josefsson <simon@josefsson.org>.
9856
9857 2012-01-19  Jim Meyering  <meyering@redhat.com>
9858
9859         bootstrap: add bootstrap_post_import_hook
9860         Bison does still need something like the gnulib_mk_hook whose
9861         invocation I had to remove along with slurp in commit 767ccd40.
9862         Technically, we could get along without it, but doing so would
9863         have required living with a warning and a mandatory post-bootstrap
9864         automake rerun.
9865         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
9866         (bootstrap_post_import_hook): New function.
9867         Invoke it after gnulib-tool --import and before autoreconf.
9868
9869 2012-01-18  Jim Meyering  <meyering@redhat.com>
9870
9871         gitlog-to-changelog: don't use "no_"-prefixed variable name
9872         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
9873         to enable both --cluster and --no-cluster.  Change variable name,
9874         s/\$no_cluster/$cluster/, and reverse usage to match.
9875
9876         gitlog-to-changelog: use "||", not "or" in expressions
9877         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
9878         expressions.
9879
9880 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
9881
9882         gitlog-to-changelog: new option --no-cluster
9883         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
9884         clustering of adjacent commit messages.
9885
9886 2012-01-17  Jim Meyering  <meyering@redhat.com>
9887
9888         maint: spell file systems with two words, not one
9889         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
9890         two words, not one.
9891
9892 2012-01-16  Jim Meyering  <meyering@redhat.com>
9893
9894         bootstrap: add a FIXME comment to ensure we eventually remove the hack
9895         * build-aux/bootstrap (gnulib_tool_options): Add comment.
9896
9897 2012-01-16  Eric Blake  <eblake@redhat.com>
9898
9899         bootstrap: cater to autoconf 2.59
9900         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
9901         is not available.
9902
9903         bootstrap: properly check for libtool
9904         * build-aux/bootstrap (libtoolize): Also run libtool when older
9905         usage is detected.
9906
9907 2012-01-15  Bruno Haible  <bruno@clisp.org>
9908
9909         Improve support for MSVC 9.
9910         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
9911         clashes on MSVC.
9912         * lib/fcntl.in.h: Likewise.
9913         * lib/stdlib.in.h: Likewise.
9914         * lib/sys_stat.in.h: Likewise.
9915
9916 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
9917
9918         gnupload: we hold the master copy of this script now
9919         For motivation and more information, see:
9920         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
9921         * build-aux/gnupload: Make it clear in the heading comments that the
9922         master copy of this file is maintained by gnulib.  Since we are at
9923         it, bump its copyright year and ...
9924         ($scriptversion): ... the date in its version.
9925         ($usage): Patches and bug reports should be sent to the gnulib list,
9926         not the automake one.
9927         * config/srclist.txt: Don't try to sync 'gnupload' from automake
9928         anymore.
9929
9930 2012-01-15  Bruno Haible  <bruno@clisp.org>
9931
9932         Fix module 'random'.
9933         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
9934         initstate, setstate are declared.
9935
9936 2012-01-14  Bruno Haible  <bruno@clisp.org>
9937
9938         Tests for module 'random'.
9939         * modules/random-tests: New file.
9940         * tests/test-random.c: New file, based on tests/test-random_r.c.
9941
9942         New module 'random'.
9943         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
9944         declarations.
9945         * lib/random.c: New file, based on glibc/stdlib/random.c.
9946         * m4/random.m4: New file.
9947         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
9948         HAVE_RANDOM.
9949         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
9950         * modules/random: New file.
9951         * config/srclist.txt: Add an entry for random.c.
9952         * doc/posix-functions/random.texi: Mention the 'random' module.
9953         * doc/posix-functions/initstate.texi: Likewise.
9954         * doc/posix-functions/setstate.texi: Likewise.
9955         * doc/posix-functions/srandom.texi: Likewise.
9956
9957 2012-01-12  Bruno Haible  <bruno@clisp.org>
9958
9959         random_r: Use common idioms.
9960         * lib/random_r.c: Include <stdlib.h> first.
9961
9962         random_r: Override incompatible API on AIX, OSF/1.
9963         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
9964         Override the system function if REPLACE_RANDOM_R is 1.
9965         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
9966         and OSF/1, set REPLACE_RANDOM_R.
9967         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
9968         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
9969         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
9970         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
9971         * doc/glibc-functions/random_r.texi: Likewise.
9972         * doc/glibc-functions/setstate_r.texi: Likewise.
9973
9974         random_r: Support for MSVC 9.
9975         * lib/random_r.c: Include stdint.h, not inttypes.h.
9976
9977 2012-01-12  Eric Blake  <eblake@redhat.com>
9978
9979         inet_ntop: guard extra work by IF_LINT
9980         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
9981         better code generation when not checking for warnings.
9982         Suggested by Paul Eggert and Jim Meyering.
9983
9984         strptime: fix regression on mingw
9985         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
9986         Fix regression.  Reported by Bruno Haible.
9987
9988 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
9989             Bruno Haible  <bruno@clisp.org>
9990
9991         copy-file: add error-code-returning variant.
9992         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
9993         (qcopy_file_preserving): New declaration.
9994         * lib/copy-file.c (qcopy_file_preserving): Renamed from
9995         copy_file_preserving. Change return type to 'int'. Don't emit an error
9996         message here.
9997         (copy_file_preserving): New function.
9998         * tests/test-copy-file.c: Include <stdlib.h>.
9999         (main): Test qcopy_file_preserving if the environment variable
10000         NO_STDERR_OUTPUT is set.
10001         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
10002         with NO_STDERR_OUTPUT
10003         * tests/test-copy-file-2.sh: Likewise.
10004
10005 2012-01-10  Bruno Haible  <bruno@clisp.org>
10006
10007         copy-file: Use 'quote' module consistently.
10008         * lib/copy-file.c (copy_file_preserving): Use quote().
10009
10010         copy-file: Refactor.
10011         * lib/copy-file.c: Include quote.h.
10012         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
10013         message here.
10014         * modules/copy-file (Depends-on): Add quote.
10015
10016         acl: Export qcopy_acl.
10017         * lib/acl.h (qcopy_acl): New declaration.
10018         * lib/copy-acl.c (qcopy_acl): Make non-static.
10019
10020         acl: Rename a local variable.
10021         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
10022
10023         acl: Align return values of copy_acl and qcopy_acl.
10024         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
10025         maybe < -1.
10026
10027 2012-01-11  Eric Blake  <eblake@redhat.com>
10028
10029         strptime: silence gcc warnings
10030         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
10031         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
10032         Reported by Daniel P. Berrange.
10033
10034         inet_ntop: silence gcc warning
10035         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
10036         Reported by Daniel P. Berrange.
10037
10038 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
10039
10040         getloadavg test: skip the test on GNU/Linux without /proc mounted
10041         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
10042         file.  When /proc is not mounted, it always fails with ENOENT.
10043         * tests/test-getloadavg.c (main): Treat ENOENT return code from
10044         getloadavg(3) the same way as ENOSYS and ENOTSUP.
10045
10046 2012-01-10  Bruno Haible  <bruno@clisp.org>
10047
10048         regex: Avoid link error on MSVC 9.
10049         * modules/regex (Depends-on): Add wctype.
10050
10051 2012-01-10  Bruno Haible  <bruno@clisp.org>
10052
10053         doc: Mention --with-tests option.
10054         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
10055         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
10056         --with-tests.
10057         Reported by Reuben Thomas.
10058
10059 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
10060
10061         users.txt: order package names lexicographically.
10062         * users.txt: Order package names lexicographically.
10063
10064 2012-01-10  Jim Meyering  <meyering@redhat.com>
10065
10066         maint.mk: fix description in comment
10067         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
10068
10069         ignore-value: remove deprecated ignore_ptr function
10070         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
10071         * NEWS: Note this.
10072
10073 2012-01-09  Jim Meyering  <meyering@redhat.com>
10074
10075         test-init.sh: avoid a subshell
10076         * tests/test-init.sh: Remove protective subshell.
10077         Suggested by Bernhard Voelker.  While a subshell is normally
10078         required to protect against older shells (Solaris, FreeBSD) that
10079         warn about a missing program before performing redirection, the
10080         shell-selection tests performed by init.sh probably exclude any
10081         offending shell.
10082
10083 2012-01-08  Bruno Haible  <bruno@clisp.org>
10084
10085         setlocale tests: Avoid test failure on Solaris 11 2011-11.
10086         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
10087         variable.
10088
10089 2012-01-08  Bruno Haible  <bruno@clisp.org>
10090
10091         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
10092         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
10093         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
10094         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
10095         macro.
10096         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
10097         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
10098         * lib/spawn_faction_addopen.c: Add workaround implementation if
10099         HAVE_WORKING_POSIX_SPAWN.
10100         * modules/spawn (Makefile): Substitute
10101         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
10102         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
10103         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
10104         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
10105         (Depends-on): Update conditions.
10106         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
10107         the Solaris 11 bug.
10108
10109 2012-01-08  Bruno Haible  <bruno@clisp.org>
10110
10111         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
10112         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
10113         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
10114         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
10115         macro.
10116         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
10117         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
10118         * lib/spawn_faction_adddup2.c: Add workaround implementation if
10119         HAVE_WORKING_POSIX_SPAWN.
10120         * modules/spawn (Makefile): Substitute
10121         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
10122         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
10123         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
10124         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
10125         (Depends-on): Update conditions.
10126         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
10127         the Solaris 11 bug.
10128
10129 2012-01-08  Bruno Haible  <bruno@clisp.org>
10130
10131         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
10132         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
10133         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
10134         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
10135         HAVE_WORKING_POSIX_SPAWN.
10136         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
10137         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
10138         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
10139         * lib/spawn_faction_addclose.c: Add workaround implementation if
10140         HAVE_WORKING_POSIX_SPAWN.
10141         * modules/spawn (Makefile): Substitute
10142         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
10143         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
10144         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
10145         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
10146         (Depends-on): Update conditions.
10147         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
10148         the Solaris 11 bug.
10149
10150 2012-01-08  Bruno Haible  <bruno@clisp.org>
10151
10152         doc: Update for Solaris 11 2011-11.
10153         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
10154         * m4/printf.m4: Update comments.
10155
10156 2012-01-08  Bruno Haible  <bruno@clisp.org>
10157
10158         mktime: Avoid compilation error on Solaris 11.
10159         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
10160
10161 2012-01-08  Bruno Haible  <bruno@clisp.org>
10162
10163         doc: Small fix.
10164         * doc/posix-headers/nl_types.texi: Correct platforms list.
10165
10166 2012-01-08  Simon Josefsson  <simon@josefsson.org>
10167
10168         Add lgpl-3.0 module.
10169         * MODULES.html.sh (Support for building documentation): Add
10170         lgpl-3.0.
10171         * modules/lgpl-3.0: New file.
10172
10173 2012-01-08  Jim Meyering  <meyering@redhat.com>
10174
10175         select.c: indent with spaces, not TABs
10176         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
10177
10178 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
10179
10180         quotearg: do not use grave accent for left quote
10181         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
10182         locale_quoting_style.
10183         (quotearg_buffer_restyled): Fix example.
10184         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
10185
10186 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
10187
10188         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
10189         Most programs do not have translation catalogs for English and much
10190         less separate catalogs for British and American English.  Drop the
10191         suggestion to translators about these two, and provide it
10192         automatically for Unicode locales.  Like most programs, even those
10193         using American English, we use single quotation marks.  This conflicts
10194         with the American typographic convention, but works better when you
10195         cite the entire error message within double quotes.  It also tries not
10196         to clash with established practice and with what non-gnulib programs
10197         will usually do.
10198         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
10199         using an UTF-8 or GB-18030 locale.  The list of other locales with
10200         quotes was provided by Bruno Haible.
10201         (quotearg_buffer_restyled): Adjust instructions to translators.
10202         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
10203         text, since this would be wrong when using Unicode.
10204         * modules/quotearg: Depend on c-strcaseeq.
10205
10206 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
10207
10208         quotearg: fix Wikipedia link
10209         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
10210
10211 2012-01-07  Simon Josefsson  <simon@josefsson.org>
10212
10213         Fix for mingw with MSVC9.
10214         * m4/ld-version-script.m4: Check that compiler rejects version
10215         scripts with syntax errors.  Reported by Bruno Haible
10216         <bruno@clisp.org>.
10217
10218 2012-01-06  Bruno Haible  <bruno@clisp.org>
10219
10220         Talk about "native Windows API", not "Woe32".
10221         * lib/accept4.c: Update comments to mention native Windows.
10222         * lib/execute.c: Likewise.
10223         * lib/fatal-signal.c: Likewise.
10224         * lib/localcharset.c: Likewise.
10225         * lib/nanosleep.c: Likewise.
10226         * lib/nl_langinfo.c: Likewise.
10227         * lib/pclose.c: Likewise.
10228         * lib/pipe-filter-gi.c: Likewise.
10229         * lib/pipe-filter-ii.c: Likewise.
10230         * lib/pipe.c: Likewise.
10231         * lib/pipe2.c: Likewise.
10232         * lib/popen.c: Likewise.
10233         * lib/progreloc.c: Likewise.
10234         * lib/relocatable.c: Likewise.
10235         * lib/sigaction.c: Likewise.
10236         * lib/sigprocmask.c: Likewise.
10237         * lib/spawn-pipe.h: Likewise.
10238         * lib/spawn-pipe.c: Likewise.
10239         * lib/spawni.c: Likewise.
10240         * lib/stat-time.h: Likewise.
10241         * lib/w32spawn.h: Likewise.
10242         * tests/test-isatty.c: Likewise.
10243         * lib/config.charset: More comments.
10244         * doc/gnulib-intro.texi: Mention native Windows.
10245         * doc/posix-functions/_Exit_C99.texi: Likewise.
10246         * doc/posix-headers/fcntl.texi: Likewise.
10247
10248 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
10249
10250         argp: Avoid crash if translator uses % characters in a translation.
10251         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
10252         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
10253
10254 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
10255
10256         doc: C11 and C++11 are now official
10257         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
10258         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
10259         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
10260         * modules/stdalign:
10261         Replace references to draft C1X to C11, and to draft C++0X to C++11.
10262
10263 2012-01-06  Bruno Haible  <bruno@clisp.org>
10264
10265         uc-is-grapheme-break tests: Tweak.
10266         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
10267         message.
10268
10269 2012-01-06  Bruno Haible  <bruno@clisp.org>
10270
10271         test-init.sh: correct the test for diff -u
10272         * tests/test-init.sh: Also redirect stdout to /dev/null.
10273
10274 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
10275
10276         Use ', not `, for quoting output.
10277         * build-aux/announce-gen (usage, sizes, print_news_deltas)
10278         (print_changelog_deltas, get_tool_versions, main program):
10279         * build-aux/git-version-gen:
10280         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
10281         * build-aux/move-if-change (help):
10282         * build-aux/useless-if-before-free (usage, main program):
10283         * check-module (parse_module_file, usage)
10284         (find_included_lib_files, check_module):
10285         * lib/argmatch.c (main) [TEST]:
10286         * lib/argp-help.c (_help):
10287         * lib/getopt1.c (main) [TEST]:
10288         * lib/git-merge-changelog.c (usage):
10289         * lib/xstrtol-error.c (xstrtol_error):
10290         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
10291         * m4/argz.m4 (gl_FUNC_ARGZ):
10292         * m4/bison.m4 (gl_BISON):
10293         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
10294         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
10295         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
10296         * m4/fpending.m4 (gl_PREREQ_FPENDING):
10297         * m4/gc-random.m4 (gl_GC_RANDOM):
10298         * m4/intl.m4 (gt_CHECK_DECL):
10299         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
10300         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
10301         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
10302         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
10303         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
10304         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
10305         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
10306         * tests/test-dirname.c (main):
10307         * tests/test-getpass.c (main):
10308         * tests/test-iconvme.c (main):
10309         * tests/test-parse-datetime.c (LOG):
10310         * tests/test-xstrtoimax.sh:
10311         * tests/test-xstrtol.sh:
10312         * tests/test-xstrtoll.sh:
10313         * tests/test-xstrtoumax.sh:
10314         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
10315         * top/GNUmakefile (abort-due-to-no-makefile):
10316         Quote 'like this', not `like this', as per the recent change to
10317         the GNU coding standards.
10318
10319 2012-01-05  Bruno Haible  <bruno@clisp.org>
10320
10321         strtoimax: Don't force a replacement on systems where intmax_t is int.
10322         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
10323         'intmax_t' is not larger than 'int'.
10324         Reported by Pádraig Brady <P@draigBrady.com>.
10325
10326 2012-01-05  Bruno Haible  <bruno@clisp.org>
10327
10328         doc: Mention NetBSD bugs.
10329         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
10330         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
10331
10332 2012-01-05  Bruno Haible  <bruno@clisp.org>
10333
10334         strtoumax tests: Enhance tests.
10335         * tests/test-strtoumax.c (main): Add tests for large values.
10336
10337 2012-01-05  Bruno Haible  <bruno@clisp.org>
10338
10339         strtoimax: Work around AIX 5.1 bug.
10340         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
10341         definition.
10342         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
10343         Set HAVE_STRTOIMAX.
10344         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
10345         REPLACE_STRTOIMAX.
10346         * modules/inttypes-incomplete (Makefile.am): Substitute
10347         REPLACE_STRTOIMAX.
10348         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
10349         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
10350         (Depends-on): Update conditions.
10351         * tests/test-strtoimax.c (main): Add tests for large values.
10352         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
10353
10354 2012-01-05  Bruno Haible  <bruno@clisp.org>
10355
10356         inttypes: Modernize.
10357         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
10358         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
10359         (Makefile.am): Update inttypes.h rule.
10360
10361 2012-01-05  Jim Meyering  <meyering@redhat.com>
10362
10363         init.sh: don't waste a subshell just to redirect stderr
10364         * tests/init.sh: In testing for diff -u and diff -c, use a
10365         stderr-redirecting exec inside `...` rather than a subshell.
10366
10367         test-init.sh: avoid failure on HP-UX 11.00
10368         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
10369         resolves to diff -c or cmp.  Reported by Bruno Haible.
10370
10371 2012-01-05  Bruno Haible  <bruno@clisp.org>
10372
10373         Tests for module 'strtoull'.
10374         * modules/strtoull-tests: New file.
10375         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
10376
10377 2012-01-05  Bruno Haible  <bruno@clisp.org>
10378
10379         Tests for module 'strtoll'.
10380         * modules/strtoll-tests: New file.
10381         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
10382
10383 2012-01-05  Bruno Haible  <bruno@clisp.org>
10384
10385         Tests for module 'strtoul'.
10386         * modules/strtoul-tests: New file.
10387         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
10388
10389 2012-01-05  Bruno Haible  <bruno@clisp.org>
10390
10391         Tests for module 'strtol'.
10392         * modules/strtol-tests: New file.
10393         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
10394
10395 2012-01-04  Jim Meyering  <meyering@redhat.com>
10396
10397         test-init.sh: accommodate Solaris 5.10's different diff -u output
10398         * tests/test-init.sh: Also exempt @@ lines from the comparison
10399         of diff output, since Solaris 5.10 and GNU diff formats differ.
10400         Reported by Stefano Lattarini.
10401
10402 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
10403
10404         test-posixtm: don't assume signed integer wraparound
10405         * tests/test-posixtm.c (main): Don't assume wraparound semantics
10406         after signed integer overflow.  Inspired by (though it may not
10407         fix) Bruno Haible's bug report in
10408         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
10409
10410         Spell out "Windows 9x" and "Windows XP".
10411         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
10412         "Windows 9x" and "WinXP" with "Windows XP".
10413
10414 2012-01-04  Jim Meyering  <meyering@redhat.com>
10415
10416         test-vc-list-files-cvs.sh: remove obsolete comment
10417         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
10418         double exit.  Now that's all encapsulated via skip_ and Exit.
10419
10420 2012-01-04  Bruno Haible  <bruno@clisp.org>
10421
10422         Talk about "native Windows API", not "Win32".
10423         * lib/classpath.c: Update comments to mention native Windows.
10424         * lib/csharpexec.c: Likewise.
10425         * lib/dup2.c: Likewise.
10426         * lib/error.c: Likewise.
10427         * lib/fcntl.c: Likewise.
10428         * lib/filename.h: Likewise.
10429         * lib/findprog.c: Likewise.
10430         * lib/get-rusage-as.c: Likewise.
10431         * lib/get-rusage-data.c: Likewise.
10432         * lib/getpagesize.c: Likewise.
10433         * lib/javaexec.c: Likewise.
10434         * lib/msvc-inval.c: Likewise.
10435         * lib/msvc-nothrow.c: Likewise.
10436         * lib/nanosleep.c: Likewise.
10437         * lib/nonblocking.c: Likewise.
10438         * lib/printf-parse.c: Likewise.
10439         * lib/setlocale.c: Likewise.
10440         * lib/sigaction.c: Likewise.
10441         * lib/strerror_r.c: Likewise.
10442         * lib/tmpdir.c: Likewise.
10443         * lib/vasnprintf.c: Likewise.
10444         * lib/w32spawn.h: Likewise.
10445         * lib/waitpid.c: Likewise.
10446         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
10447         * m4/locale-ar.m4: Likewise.
10448         * m4/locale-fr.m4: Likewise.
10449         * m4/locale-ja.m4: Likewise.
10450         * m4/locale-tr.m4: Likewise.
10451         * m4/locale-zh.m4: Likewise.
10452         * m4/printf.m4: Likewise.
10453         * tests/test-cloexec.c: Likewise.
10454         * tests/test-copy-acl.sh: Likewise.
10455         * tests/test-copy-file.sh: Likewise.
10456         * tests/test-file-has-acl.sh: Likewise.
10457         * tests/test-set-mode-acl.sh: Likewise.
10458         * tests/test-dup-safer.c: Likewise.
10459         * tests/test-dup2.c: Likewise.
10460         * tests/test-dup3.c: Likewise.
10461         * tests/test-fcntl.c: Likewise.
10462         * tests/test-nonblocking-pipe.h: Likewise.
10463         * tests/test-nonblocking-socket.h: Likewise.
10464         * tests/test-pipe.c: Likewise.
10465         * tests/test-pipe2.c: Likewise.
10466         * tests/test-spawn-pipe-child.c: Likewise.
10467         * doc/acl-resources.txt: Likewise.
10468         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
10469         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
10470         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
10471         * lib/localcharset.c: Update comments to mention native Windows.
10472         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
10473         * lib/localename.c: Likewise.
10474         * lib/progreloc.c: Likewise.
10475         * lib/relocatable.c: Likewise.
10476         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
10477         (windows_compute_revents): Renamed from win32_compute_revents.
10478         (windows_compute_revents_socket): Renamed from
10479         win32_compute_revents_socket.
10480         * lib/select.c: Update comments to mention native Windows.
10481         (windows_poll_handle): Renamed from win32_poll_handle.
10482         * m4/threadlib.m4: Update comments to mention native Windows.
10483         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
10484         --enable-threads=windows instead of --enable-threads=win32. Set
10485         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
10486         * lib/glthread/lock.h: Update comments to mention native Windows.
10487         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
10488         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
10489         USE_WIN32_THREADS.
10490         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
10491         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
10492         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
10493         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
10494         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
10495         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
10496         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
10497         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
10498         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
10499         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
10500         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
10501         * tests/test-tls.c: Likewise.
10502         Rationale:
10503         Microsoft renamed the "Win32 API" to "Windows API", as it is available
10504         on both 32-bit and 64-bit Windows systems.
10505         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
10506         line of distinction is between "native Windows" on one side and Unix/
10507         POSIX systems on the other side. More details in
10508         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
10509         Suggested by Paul Eggert.
10510
10511 2012-01-03  Bruno Haible  <bruno@clisp.org>
10512
10513         isatty: Support for MSVC 9.
10514         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
10515         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
10516         (_isatty_nothrow): New function.
10517         (isatty): Use it instead of _isatty.
10518         (IsConsoleHandle): Add comment, from Paolo Bonzini.
10519         * lib/poll.c (IsConsoleHandle): Likewise.
10520         * lib/select.c (IsConsoleHandle): Likewise.
10521         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
10522         (gl_PREREQ_ISATTY): New macro.
10523         * modules/isatty (Depends-on): Add msvc-inval.
10524         (configure.ac): Invoke gl_PREREQ_ISATTY.
10525
10526 2012-01-03  Jim Meyering  <meyering@redhat.com>
10527
10528         maint.mk: remove temporary transition aid from over 1.5 years ago
10529         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
10530         purpose was to aid in the transition (avoiding silent malfunction)
10531         from that old name to the new _sc_search_regexp.  This shim was
10532         added by commit 219c504b.
10533
10534         init.sh: do not try to accommodate compare arguments starting with "-"
10535         * tests/init.sh (compare_dev_null_): Do not try to accommodate
10536         compare arguments that start with "-".  Besides, we do not worry
10537         about this when invoking diff or cmp; why start now with sed?
10538         Using "--" to separate options from argument would trigger sed
10539         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
10540         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
10541
10542 2012-01-02  Bruno Haible  <bruno@clisp.org>
10543
10544         Enhance tests for module 'isatty'.
10545         * modules/isatty-tests (Depends-on): Add pipe-posix.
10546         * tests/test-isatty.c: Include <fcntl.h>.
10547         (DEV_NULL): New macro.
10548         (main): Test the resut of isatty() also on regular files, pipes, and
10549         /dev/null.
10550
10551         New module 'isatty'.
10552         * lib/unistd.in.h (isatty): New declaration.
10553         * lib/isatty.c: New file, based on an idea of
10554         Bastien Roucariès <roucaries.bastien@gmail.com>.
10555         * m4/isatty.m4: New file.
10556         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
10557         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
10558         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
10559         REPLACE_ISATTY.
10560         * modules/isatty: New file.
10561         * doc/posix-functions/isatty.texi: Mention the new module.
10562         Suggested by Paolo Bonzini.
10563
10564 2012-01-02  Bruno Haible  <bruno@clisp.org>
10565
10566         canonicalize: Tweak 2011-12-29 commit.
10567         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
10568         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
10569
10570 2012-01-02  Jim Meyering  <meyering@redhat.com>
10571
10572         gitlog-to-changelog: describe input syntax in --help output
10573         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
10574
10575         gitlog-to-changelog: fix typo in --help: show backslash before email @
10576         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
10577         in sources, but not in actual output.
10578
10579 2011-12-30  Jim Meyering  <meyering@redhat.com>
10580
10581         gitlog-to-changelog: don't malfunction when name contains %-directive
10582         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
10583         in a name string cause trouble.  E.g., with a user name of "%s",
10584         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
10585
10586 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
10587
10588         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
10589         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
10590         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
10591         the "  (tiny change)" notation that is appended to the standard
10592         ChangeLog "date  name  email" header line.
10593
10594 2012-01-01  Jim Meyering  <meyering@redhat.com>
10595
10596         test-framework-sh: init.sh: fix "make dist" failure
10597         When using gnulib-tool's --with-tests option and any module that
10598         depends on test-framework-sh, "make dist" would fail due to the
10599         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
10600         in the gltests directory, and not in the gllib/ directory.
10601         One way to work around that is to move the EXTRA_DIST += init.sh
10602         from the primary module to the -tests one:
10603         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
10604         * modules/test-framework-sh (Makefile.am): ...not here.
10605         Reported by Tom G. Christensen in
10606         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
10607
10608         version-etc: update copyright year reported by --version
10609         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
10610
10611 2011-12-31  Pádraig Brady  <P@draigBrady.com>
10612
10613         canonicalize: only stat() if required
10614         * lib/canonicalize.c (canonicalize_filename_mode):
10615         Avoid calling l?stat() when both CAN_MISSING,
10616         and CAN_NOLINKS are set, as we neither need
10617         to resolve symlinks or test component existence.
10618
10619 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
10620
10621         doc: cover st_ino issues once; add OpenVMS etc.
10622         * doc/posix-functions/stat.texi (stat):
10623         * doc/posix-functions/lstat.texi (lstat):
10624         * doc/posix-functions/fstatat.texi (fstatat):
10625         * doc/posix-functions/fstat.texi (fstat):
10626         Move general 'struct stat' stuff to sys_stat.texi,
10627         leaving behind a pointer.
10628         * doc/posix-headers/sys_stat.texi (sys/stat.h):
10629         Merge duplicate info about 'struct stat' problems into here.
10630         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
10631         and suggest partial workarounds.
10632
10633         same-inode: port to OpenVMS
10634         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
10635         three st_ino values.
10636
10637 2011-12-30  Pádraig Brady  <P@draigBrady.com>
10638
10639         canonicalize: fix references to stat() and lstat()
10640         * lib/canonicalize.c (canonicalize_filename_mode):
10641         Ensure references always resolve to a replacement
10642         function if required (even via a macro).
10643
10644 2011-12-30  Jim Meyering  <meyering@redhat.com>
10645
10646         gitlog-to-changelog: remove a little duplication
10647         * build-aux/gitlog-to-changelog (main): Grep @lines once,
10648         rather than twice.
10649
10650 2011-12-29  Pádraig Brady  <P@draigBrady.com>
10651
10652         canonicalize: add support for not resolving symlinks
10653         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
10654         indicate we don't want to follow symlinks.  Also
10655         provide CAN_MODE_MASK to aid setting these existing
10656         mutually exclusive values.
10657         * lib/canonicalize.c (canonicalize_filename_mode):
10658         Extract the flags from can_mode parameter, which
10659         are currently just used to select between stat()
10660         and lstat().  Also ensure that mutually exclusive
10661         values are flagged immediately as invalid.
10662         * tests/test-canonicalize.c: Verify symlinks are
10663         not followed, and that invalid flag combinations
10664         are diagnosed.
10665
10666 2011-12-25  Jim Meyering  <meyering@redhat.com>
10667
10668         gitlog-to-changelog: do not clump multi-paragraph entries
10669         Identical header lines (date,name,email+coauthors) are suppressed,
10670         thus putting all entries with those same characteristics under
10671         a single header.  However, when a log entry consists of two or
10672         more paragraphs, it may not be clear where it starts and ends.
10673         This change makes it so that such an entry is always separated
10674         from others by a header line, even when that header would
10675         otherwise be suppressed.
10676         * build-aux/gitlog-to-changelog: Implement the above.
10677         Inspired by a related request from Stefano Lattarini in
10678         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
10679
10680 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
10681
10682         announce-gen: fix `cmd' typo in diagnostic
10683         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
10684         diagnostic: a missing '$' meant that the command was not output.
10685
10686 2011-12-23  Jim Meyering  <meyering@redhat.com>
10687
10688         test-framework-sh: distribute init.sh
10689         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
10690         Otherwise, "make -C gnulib-tests check" (at least in grep) would
10691         fail due to the lack of init.sh.
10692
10693         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
10694         * modules/atexit-tests: Rather than listing tests/init.sh,
10695         now that there's a module for it, simply depend on that new module.
10696         * modules/closein-tests: Likewise.
10697         * modules/exclude-tests: Likewise.
10698         * modules/getcwd-tests: Likewise.
10699         * modules/perror-tests: Likewise.
10700         * modules/pread-tests: Likewise.
10701         * modules/pwrite-tests: Likewise.
10702         * modules/vc-list-files-tests: Likewise.
10703         * modules/verify-tests: Likewise.
10704         * modules/xalloc-die-tests: Likewise.
10705         * modules/xstrtoimax-tests: Likewise.
10706         * modules/xstrtol-tests: Likewise.
10707         * modules/xstrtoll-tests: Likewise.
10708         * modules/xstrtoumax-tests: Likewise.
10709         * modules/yesno-tests: Likewise.
10710
10711 2011-12-22  Jim Meyering  <meyering@redhat.com>
10712
10713         test-framework-sh: add minimal tests of init.sh's compare function
10714         * modules/test-framework-sh-tests: New file.
10715         * tests/test-init.sh: New file.
10716
10717         test-framework-sh: new module
10718         * modules/test-framework-sh: New file.
10719         * MODULES.html.sh (Support for maintaining and releasing projects):
10720         List it.
10721
10722         init.sh: do not emit simulated diff output to stderr
10723         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
10724
10725 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
10726
10727         .gitignore: ignore gnulib.dvi and regex.info
10728         * doc/.gitignore:add gnulib.dvi and regex.info
10729
10730 2011-12-22  Jim Meyering  <meyering@redhat.com>
10731
10732         init.sh: correct previous change
10733         * tests/init.sh (compare): My previous change was wrong.
10734         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
10735
10736         init.sh: avoid unwarranted test failure when using "set -e"
10737         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
10738         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
10739         a use like "compare exp out" would get evoke an unconditional failure.
10740
10741 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
10742
10743         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
10744         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
10745         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
10746         autoreconf that did not.
10747         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
10748         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
10749
10750 2011-12-17  Jim Meyering  <meyering@redhat.com>
10751
10752         bootstrap: remove some now-unneeded code
10753         This script arose back when gnulib-tool was young.
10754         Since then, it has seen improvements that render much of this
10755         script unnecessary.  In particular, it can now make symlinks
10756         to the files it uses.  Also, I no longer see as much value in
10757         marking files as read-only via comments.
10758         If you relied on the symlink-creation feature of the preceding
10759         version of this script, you can get most of that functionality
10760         by adding the --symlink option to the definition of
10761         gnulib_tool_option_extras in your bootstrap.conf file.
10762         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
10763         Run autopoint and libtoolize *before* gnulib-tool.
10764         After it, run an abbreviated autoreconf, rather than a loop around
10765         all tools.
10766         (slirp, bt_mark_as_generated): Remove functions.
10767
10768 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
10769
10770         ftoastr: fix typo
10771         * lib/ftoastr.h: Fix misspelling in comment.
10772
10773 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
10774
10775         * top/README-release: fix punctuation.
10776
10777 2011-12-17  Jim Meyering  <meyering@redhat.com>
10778
10779         bootstrap: correct the recent buildreq change
10780         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
10781         had no effect.
10782         * build-aux/bootstrap (buildreq): Bracket each search term with
10783         "*...*", so that the shell "case" statement works as intended.
10784         Add comments.
10785
10786 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
10787
10788         build: let bootstrap resort to wget when downloading .po files
10789         * build-aux/bootstrap (download_po_files): Fallback to wget when
10790         downloading the .po files via rsync fails.  This is necessary to
10791         bootstrap from behind a strict firewall.
10792
10793 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
10794
10795         stdint: don't assume C++11 when compiling with g++
10796         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
10797         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
10798         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
10799         work also in C++ before C++11, as that improperly inhibits
10800         generating a substitute stdint.h for that case.
10801
10802 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
10803
10804         alloca: protect comment from gnulib-tool
10805         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
10806         that gnulib-tool doesn't think it's a license, and munge it to
10807         say "GCC version 3".
10808
10809 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
10810
10811         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
10812         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
10813         $(abs_top_builddir) instead of $(top_builddir).
10814
10815 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
10816
10817         strftime-tests: also test nanoseconds
10818         * tests/test-strftime.c (T): Add a test of %N.
10819
10820 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
10821
10822         inttypes, stdint: add C++11 support
10823         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
10824         when including inttypes.h and stdint.h.  Support this change to
10825         the standard.
10826         * doc/posix-headers/inttypes.texi (inttypes.h):
10827         * doc/posix-headers/stdint.texi (stdint.h): Document this.
10828         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
10829         Define if not defined already, for the benefit of pre-C++11 hosts.
10830         Define the standard format macros (e.g., PRId8) always.
10831         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
10832         Likewise, if __cpluspus.  Define the standard constant and limit
10833         macros (e.g., INT8_C, INT8_MAX) always.
10834         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
10835         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
10836         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
10837         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
10838         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
10839         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
10840         Likewise.
10841
10842 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
10843
10844         nonblocking tests: Fix test failure on Linux/PPC.
10845         Suggested by Prerna Saxena in
10846         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
10847         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
10848         Set to 1100000.
10849
10850 2011-12-12  Jim Meyering  <meyering@redhat.com>
10851
10852         argmatch: don't hard-code `' when listing valid option arguments
10853         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
10854         use the quote function to add quotes.  Use fputs rather than
10855         fprintf for the format string with no format directive.
10856
10857 2011-12-07  Eric Blake  <eblake@redhat.com>
10858
10859         bootstrap: detect tools required by gnulib-tool
10860         * build-aux/bootstrap (buildreq): Provide minimum implicit
10861         dependencies.
10862         * DEPENDENCIES: Mention patch as a prereq.
10863
10864 2011-12-04  Bruno Haible  <bruno@clisp.org>
10865
10866         sethostname: Port to Windows platforms.
10867         * lib/sethostname.c: Provide an alternate implementation for Windows
10868         platforms.
10869         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
10870         (main): Skip the test if sethostname() fails with EPERM. On Windows
10871         platforms, don't check the result of gethostname().
10872
10873 2011-12-04  Bruno Haible  <bruno@clisp.org>
10874             Jim Meyering  <meyering@redhat.com>
10875
10876         tests: Avoid spurious error message on platforms without mktemp program.
10877         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
10878
10879 2011-12-04  Bruno Haible  <bruno@clisp.org>
10880
10881         sethostname: Fix documentation.
10882         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
10883         "not fixed" section.
10884
10885 2011-12-03  Bruno Haible  <bruno@clisp.org>
10886
10887         gnulib-tool: Verify that the License field is present and non-empty.
10888         * gnulib-tool (func_get_license_raw): New function, extracted from
10889         func_get_license.
10890         (func_get_license): Use it. Warn if the module is not a test module and
10891         has no license.
10892         Suggested by Jim Meyering.
10893
10894 2011-12-03  Bruno Haible  <bruno@clisp.org>
10895
10896         sethostname tests: Fix link error on mingw.
10897         * tests/test-sethostname1.c: New file, extracted from
10898         tests/test-sethostname.c.
10899         * tests/test-sethostname2.c: New file, extracted from
10900         tests/test-sethostname.c.
10901         * tests/test-sethostname.c: Remove file.
10902         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
10903         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
10904         (Depends-on): Add gethostname.
10905         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
10906         Link the latter with $(GETHOSTNAME_LIB).
10907
10908         sethostname tests: Fix compilation error on mingw.
10909         * tests/test-sethostname.c: Don't include <sys/types.h>.
10910         (geteuid): Use a dummy value without uid_t.
10911         * modules/sethostname-tests (Depends-on): Remove sys_types.
10912
10913         sethostname tests: Avoid a gcc warning.
10914         * tests/test-sethostname.c (main): Remove an unused variable.
10915
10916         Tweak last commit.
10917         * modules/sethostname-tests (Files): Sort by decreasing importance.
10918         (configure.ac): Check for geteuid.
10919         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
10920         the test when there's nothing to test. Drop an unnecessary cast.
10921         Improve an error message. Verify that the final sethostname() call
10922         succeeds.
10923
10924 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
10925
10926         Add a test suite for the sethostname module.
10927         * modules/sethostname-tests: New file.  A test program
10928         for the sethostname module.
10929         * tests/test-sethostname.c: Likewise.
10930
10931 2011-12-03  Bruno Haible  <bruno@clisp.org>
10932
10933         Tweak last commit.
10934         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
10935         Fix preprocessor directives indentation. Fix typos.
10936         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
10937         * modules/unistd (Makefile): Likewise.
10938
10939 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
10940
10941         Integrate the sethostname module into unistd.
10942         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
10943         into the unistd.h header.
10944         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
10945         preprocessor directives.
10946         * modules/unistd: Setup the Makefile substitutions of the
10947         SETHOSTNAME preprocessor directives.
10948
10949 2011-12-03  Bruno Haible  <bruno@clisp.org>
10950
10951         Tweak last commit.
10952         * lib/sethostname.c: Don't include <string.h>.
10953         (sethostname): No need to copy the argument string to the stack. Don't
10954         call clearerr. Preserve errno when fprintf failed.
10955         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
10956         Don't invoke AC_REPLACE_FUNCS.
10957         * modules/sethostname (Link): Remove empty section.
10958         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
10959         failure problem.
10960
10961 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
10962
10963         New module 'sethostname'.
10964         * lib/sethostname.c (sethostname): New file.  Provide sethostname
10965         for systems that lack it.
10966         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
10967         sethostname declaration and function.
10968         * modules/sethostname: New file.  Define the sethostname module.
10969
10970 2011-12-03  Bruno Haible  <bruno@clisp.org>
10971
10972         Tweak last commit.
10973         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
10974
10975 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
10976
10977         Split the HOST_NAME_MAX detection into a separate m4 macro.
10978         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
10979         macro so it can be used by the pending sethostname module.
10980
10981 2011-12-03  Bruno Haible  <bruno@clisp.org>
10982
10983         Fix module descriptions syntax.
10984         * modules/argv-iter (License): Fix syntax.
10985         * modules/di-set (License): Likewise.
10986         * modules/ino-map (License): Likewise.
10987         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
10988
10989 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
10990
10991         stdalign: port to Clang 3.0
10992         Problem reported by Simon Josefsson in
10993         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
10994         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
10995         which has <stdalign.h> but which does not define alignof.
10996         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
10997
10998 2011-12-01  Eric Blake  <eblake@redhat.com>
10999
11000         mktempd: silence dd usage
11001         * build-aux/mktempd (rand_bytes): Silence dd.
11002
11003 2011-11-30  Simon Josefsson  <simon@josefsson.org>
11004
11005         manywarnings: Don't mention gcc version in docstring.
11006         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
11007         Jim Meyering <meyering@redhat.com>.
11008
11009 2011-11-30  Jim Meyering  <meyering@redhat.com>
11010
11011         hash: mark a few floating point constants with "f" suffix
11012         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
11013         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
11014         floating point constants with "f", since they're destined to be
11015         saved/used as "float"s.
11016
11017 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
11018
11019         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
11020         * tests/test-float.c (test_long_double): Correct and re-enable the
11021         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
11022
11023 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
11024
11025         Avoid subtracting two pointers that don't point into the same block.
11026         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
11027         only pointers into the same memory block are subtracted. We cannot
11028         assume that sizeof (ptrdiff_t) == sizeof (void *).
11029
11030 2011-11-29  Eric Blake  <eblake@redhat.com>
11031
11032         maint.mk: add syntax check for use of compare from init.sh
11033         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
11034         moved here from coreutils.
11035
11036         manywarnings: drop -Wunsuffixed-float-constants
11037         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
11038         '1.0D', which is the only way to silence this warning for 'double'.
11039
11040 2011-11-29  Jim Meyering  <meyering@redhat.com>
11041
11042         hash: mark compute_bucket_size with the pure attribute
11043         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
11044
11045         quotearg, propername: correct pragma guard expression
11046         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
11047         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
11048
11049 2011-11-28  Jim Meyering  <meyering@redhat.com>
11050
11051         propername: do not mark proper_name with the const attribute
11052         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
11053         since it examines data pointed to by its parameter.
11054         * lib/propername.c (proper_name): Instead, add a pragma to suppress
11055         the suggestion from -Wsuggest-attribute=const.
11056
11057         propername: mark one more function as const
11058         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
11059
11060 2011-11-27  Jim Meyering  <meyering@redhat.com>
11061
11062         mark functions with const and pure attributes
11063
11064         Mark functions per suggestions from gcc-4.6 when using these options:
11065         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
11066         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
11067         Follow these guidelines: when possible, apply the attribute to
11068         an extern declaration, not to its definition.  Apply it to the
11069         definition only when the definition is static.
11070         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
11071         * lib/argv-iter.h (argv_iter_n_args): Likewise.
11072         * lib/base64.h (isbase64): Likewise.
11073         * lib/basename-lgpl.c (last_component, base_len): Likewise.
11074         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
11075         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
11076         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
11077         (c_tolower, c_toupper): Likewise.
11078         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
11079         * lib/chdir-long.c (find_non_slash): Likewise.
11080         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
11081         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
11082         * lib/file-type.h (file_type): Likewise.
11083         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
11084         * lib/filevercmp.c (verrevcmp): Likewise.
11085         * lib/freadahead.h (freadahead): Likewise.
11086         * lib/fts.c (fts_maxarglen): Likewise.
11087         * lib/hash-pjw.h (hash_pjw): Likewise.
11088         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
11089         * lib/hash.c (is_prime, next_prime): Likewise.
11090         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
11091         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
11092         (hash_table_ok, hash_get_first, hash_string): Likewise.
11093         (compute_bucket_size): Likewise.
11094         * lib/i-ring.h (i_ring_empty): Likewise.
11095         * lib/isnan.c (isnanl): Likewise.
11096         * lib/math.h (isnanl, rpl_isnanl): Likewise.
11097         * lib/memcasecmp.h (memcasecmp): Likewise.
11098         * lib/memchr2.h (memchr2): Likewise.
11099         * lib/memcmp2.h (memcmp2): Likewise.
11100         * lib/parse-datetime.y (lookup_zone): Likewise.
11101         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
11102         [!WINDOWS_SOCKETS]: Likewise.
11103         * lib/strnlen1.h (strnlen1): Likewise.
11104         * lib/uniwidth.in.h (uc_width): Likewise.
11105         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
11106         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
11107         (quoting_options_from_style): Add a comment.
11108         * lib/propername.h (proper_name): Add a comment.
11109
11110 2011-11-27  Bruno Haible  <bruno@clisp.org>
11111
11112         Remove unused macros from !_LIBC code in glibc-borrowed files.
11113         * lib/fnmatch.c (STRCOLL): Remove macro.
11114         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
11115         * lib/glob.c (__stat, __readdir64): Remove macros.
11116         * lib/tempname.c (__open64, __xstat64): Remove macros.
11117         Suggested by Paul Eggert.
11118
11119 2011-11-27  Bruno Haible  <bruno@clisp.org>
11120
11121         getcwd: Fix link error on MSVC 9.
11122         * modules/getcwd (Depends-on): Add readdir, rewinddir.
11123
11124 2011-11-27  Bruno Haible  <bruno@clisp.org>
11125
11126         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
11127         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
11128         HAVE_OPENDIR is 0.
11129         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
11130         HAVE_CLOSEDIR is 0.
11131         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
11132         is 0.
11133         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
11134
11135 2011-11-27  Bruno Haible  <bruno@clisp.org>
11136
11137         getcwd: Fix bug from 2011-08-17.
11138         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
11139         platforms that need it.
11140         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
11141         code of 4 to be a failure, not a success. This ensures that
11142         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
11143
11144 2011-11-27  Bruno Haible  <bruno@clisp.org>
11145
11146         binary-io tests: Avoid test failure on mingw when libtool is used.
11147         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
11148         Don't verify the size of t-bin-out1.tmp here.
11149         * tests/test-binary-io.sh: Verify it here.
11150         Reported by Simon Josefsson.
11151
11152 2011-11-26  Bruno Haible  <bruno@clisp.org>
11153
11154         Fix conflict between two instantiations of module 'unistd'.
11155         * gnulib-tool (func_emit_autoconf_snippet): Substitute
11156         ${include_guard_prefix} also in the autoconf snippet.
11157         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
11158         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
11159         GNULIB_UNISTD_H_GETOPT.
11160         * modules/getopt-posix (configure.ac): Set the
11161         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
11162         * modules/getopt-gnu (configure.ac): Likewise.
11163         * modules/unistd (Makefile.am): Change the substitution value of
11164         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
11165         Reported by Simon Josefsson.
11166
11167 2011-11-25  Bruno Haible  <bruno@clisp.org>
11168
11169         pagealign_alloc: Doc and comments.
11170         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
11171         module.
11172         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
11173
11174 2011-11-25  Jim Meyering  <meyering@redhat.com>
11175
11176         test-update-copyright.sh: avoid false-positive failure
11177         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
11178         around false positive failure on Cygwin/Windows.  The latter was
11179         matching erroneously-created files with names like
11180         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
11181
11182 2011-11-25  Simon Josefsson  <simon@josefsson.org>
11183
11184         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
11185         * m4/valgrind-tests.m4: Check that the parameters that will be
11186         used works, not just a subset of them.  Reported by Bruno Haible
11187         <bruno@clisp.org>.
11188
11189 2011-11-24  Jim Meyering  <meyering@redhat.com>
11190
11191         test-stdalign.c: comment out long double tests
11192         * tests/test-stdalign.c: Don't try to reduce alignment of long double
11193         variables.  That provokes errors like this from gcc-4.7.0 20111124:
11194         error: '_Alignas' specifiers cannot reduce alignment of \
11195         'static_longdouble_alignas'.
11196
11197 2011-11-22  Jim Meyering  <meyering@redhat.com>
11198
11199         init.sh: make "compare /dev/null FILE" output more readable
11200         * tests/init.sh (compare_): Document the preferred order of arguments.
11201         (emit_diff_u_header_): New function.
11202         (compare_dev_null_): Emit a simulated diff, rather than just the
11203         contents of the unexpected file.  Suggestion from Bruno Haible.
11204
11205 2011-11-21  Jim Meyering  <meyering@redhat.com>
11206             Eric Blake  <eblake@redhat.com>
11207
11208         init.sh: work around OSF/1 5.1's mishandling of /dev/null
11209         * tests/init.sh: Make our compare function slightly more portable.
11210         Reported by Bruno Haible in
11211         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
11212
11213 2011-11-21  Simon Josefsson  <simon@josefsson.org>
11214
11215         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
11216         before using it, in code that ends up in config.h.
11217
11218 2011-11-20  Bruno Haible  <bruno@clisp.org>
11219
11220         getcwd: Work around getcwd bug on AIX 5..7.
11221         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
11222         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
11223         Use a different value for gl_cv_func_getcwd_path_max. Move the
11224         definition of HAVE_PARTLY_WORKING_GETCWD from here...
11225         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
11226         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
11227         Define HAVE_MINIMALLY_WORKING_GETCWD.
11228         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
11229         where it is not even minimally working, that is, on AIX.
11230         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
11231         m4/getcwd-path-max.m4.
11232         (main): Update exit code computation.
11233         * doc/posix-functions/getcwd.texi: Mention list of platforms where
11234         getcwd does not handle long file names.
11235
11236 2011-11-20  Bruno Haible  <bruno@clisp.org>
11237
11238         getcwd: Fix bug from 2009-09-10.
11239         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
11240         like "no".
11241
11242 2011-11-20  Simon Josefsson  <simon@josefsson.org>
11243
11244         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
11245
11246 2011-11-20  Bruno Haible  <bruno@clisp.org>
11247
11248         fma tests: Avoid shadowing local variables.
11249         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
11250         expected.
11251
11252 2011-11-20  Bruno Haible  <bruno@clisp.org>
11253
11254         copysignf tests: Fix.
11255         * tests/test-copysignf.c: Fix signature check.
11256
11257 2011-11-20  Bruno Haible  <bruno@clisp.org>
11258
11259         fma: Remove unused code.
11260         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
11261         unused macros.
11262
11263 2011-11-20  Bruno Haible  <bruno@clisp.org>
11264
11265         sethostname: Fix doc about AIX.
11266         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
11267         sethostname; it has it.
11268
11269         sethostname: Mention more portability problems.
11270         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
11271         problem.
11272         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
11273
11274 2011-11-19  Bruno Haible  <bruno@clisp.org>
11275
11276         Depend on module fcntl-h when AT_FDCWD is used.
11277         * modules/utimens (Depends-on): Add fcntl-h.
11278         * modules/areadlinkat (Depends-on): Likewise.
11279         * modules/areadlinkat-with-size (Depends-on): Likewise.
11280         * modules/faccessat (Depends-on): Likewise.
11281         * modules/fchmodat (Depends-on): Likewise.
11282         * modules/fchownat (Depends-on): Likewise.
11283         * modules/getcwd (Depends-on): Likewise.
11284         * modules/mkdirat (Depends-on): Likewise.
11285         * modules/mkfifoat (Depends-on): Likewise.
11286         * modules/readlinkat (Depends-on): Likewise.
11287         * modules/symlinkat (Depends-on): Likewise.
11288         * modules/dup2-tests (Depends-on): Likewise.
11289         * modules/fdutimensat-tests (Depends-on): Likewise.
11290         * modules/futimens-tests (Depends-on): Likewise.
11291
11292 2011-11-19  Bruno Haible  <bruno@clisp.org>
11293
11294         euidaccess: Update a comment.
11295         * lib/euidaccess.c: Update comment about platforms with faccessat.
11296
11297 2011-11-19  Bruno Haible  <bruno@clisp.org>
11298
11299         openat: Fix file list.
11300         * modules/openat (Files): Remove lib/at-func.c.
11301
11302 2011-11-19  Bruno Haible  <bruno@clisp.org>
11303
11304         fstatat: Simplify.
11305         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
11306         gnulib should define rpl_fstatat, there is a
11307         "#define fstatat rpl_fstatat" in <sys/stat.h>.
11308
11309 2011-11-19  Bruno Haible  <bruno@clisp.org>
11310
11311         Ensure 'inline' can be used in tests/test-utimens-common.h.
11312         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
11313         * modules/futimens-tests (configure.ac): Likewise.
11314         * modules/utimens-tests (configure.ac): Likewise.
11315         * modules/utimensat-tests (configure.ac): Likewise.
11316
11317 2011-11-19  Simon Josefsson  <simon@josefsson.org>
11318
11319         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
11320         not hash_insert0.
11321         (hash_insert_if_absent): Doc fix.
11322
11323 2011-11-19  Simon Josefsson  <simon@josefsson.org>
11324
11325         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
11326
11327 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
11328
11329         test-getcwd: disambiguate exit status
11330         * tests/test-getcwd.c (test_long_name): Return 0..7.
11331         (main): Exit with an unambiguous exit status.  The old
11332         code yielded a mysterious mixture of two failure codes.
11333
11334         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
11335         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
11336         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
11337         rpl_fstatat or fstatat.  This should fix the other problem
11338         reported by Kai Habel in
11339         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
11340         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
11341         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
11342         and I reproduced it on a Solaris 8 host we still have in production.
11343
11344 2011-11-18  Jim Meyering  <meyering@redhat.com>
11345
11346         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
11347         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
11348         Add a sentence to the comment.
11349         (hash_insert0): New function that simply calls hash_insert_if_absent.
11350         * lib/hash.h (hash_insert_if_absent): Declare it.
11351         (hash_insert0): Add deprecation attribute.
11352         (_GL_ATTRIBUTE_DEPRECATED): Define.
11353         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
11354         not hash_insert0.
11355         * NEWS: Mention it, even though it's not really an incompatible change.
11356
11357 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
11358
11359         openat: avoid compilation failure due to lack of <errno.h> inclusion
11360         * lib/openat.c: Include <errno.h>.
11361
11362 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
11363
11364         * modules/getcwd (Depends-on): Add fdopendir.
11365         This fixes one of the two problems reported by Kai Habel in
11366         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
11367
11368         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
11369         stdalign problem reported by Ian Beckwith in
11370         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
11371         * modules/crypto/gc-arcfour (Depends-on):
11372         Depend conditionally on crypto/arcfour.
11373         * modules/crypto/gc-arctwo (Depends-on):
11374         Depend conditionally on crypto/arctwo.
11375         * modules/crypto/gc-des (Depends-on):
11376         Depend conditionally on crypto/des.
11377         * modules/crypto/gc-hmac-md5 (Depends-on):
11378         Depend conditionally on crypto/hmac-md5.
11379         * modules/crypto/gc-hmac-sha1 (Depends-on):
11380         Depend conditionally on crypto/hmac-sha1.
11381         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
11382         * modules/crypto/gc-md4 (Depends-on):
11383         Depend conditionally on crypto/md4.
11384         * modules/crypto/gc-md5 (Depends-on):
11385         Depend conditionally on crypto/md5.
11386         * modules/crypto/gc-rijndael (Depends-on):
11387         Depend conditionally on crypto/rijndael.
11388         * modules/crypto/gc-sha1 (Depends-on):
11389         Depend conditionally on crypto/sha1.
11390         * modules/crypto/gc-arcfour:
11391         * modules/crypto/gc-arctwo:
11392         * modules/crypto/gc-des:
11393         * modules/crypto/gc-hmac-md5:
11394         * modules/crypto/gc-hmac-sha1:
11395         * modules/crypto/gc-md2:
11396         * modules/crypto/gc-md4:
11397         * modules/crypto/gc-md5:
11398         * modules/crypto/gc-rijndael:
11399         * modules/crypto/gc-sha1:
11400         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
11401         now that the conditional dependencies do the work for us.
11402
11403 2011-11-17  Jim Meyering  <meyering@redhat.com>
11404
11405         tests: factor st_ctime-comparison out of two headers
11406         * tests/test-utimens-common.h (ctime_compare): Define.
11407         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
11408         * tests/test-lutimens.h (test_lutimens): Likewise.
11409         * tests/test-utimens.h (test_utimens): Likewise.
11410
11411         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
11412         Invoke the test program via an init.sh-using wrapper.
11413         * tests/test-getcwd.sh: New file.
11414         * modules/getcwd-tests (Files): Add it.
11415         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
11416
11417 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
11418
11419         gitlog-to-changelog: support multi-author commits.
11420         The FSF cares about keeping track of all authors of patches to its
11421         projects, but Git doesn't provide obvious support for multi-author
11422         changesets. Consensus seems to be forming around the use of extra
11423         Signed-off-by inspired lines in the log message formatted as
11424         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
11425         multi-author commits between version control systems.
11426         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
11427         log message and output in standard ChangeLog multi-author format.
11428         Reported by Peter Rosin <peda@lysator.liu.se>
11429
11430 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
11431             Bruno Haible  <bruno@clisp.org>
11432
11433         Fix some modules' file list.
11434         * modules/fstatat (Files): Add m4/lstat.m4.
11435         * modules/openat (Files): Likewise.
11436         * modules/unlinkat (Files): Likewise.
11437
11438 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
11439
11440         maint.mk: fix tight-scope.mk generation in VPATH builds.
11441         * top/maint.mk (tight-scope.mk): Make sure to prefix file
11442         reference with $(srcdir) so that the file is found correctly even
11443         when running `make syntax-check' in a VPATH build.
11444
11445 2011-11-13  Bruno Haible  <bruno@clisp.org>
11446             Jim Meyering  <meyering@redhat.com>
11447
11448         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
11449         * tests/init.sh (compare): Remove "No differences encountered" or
11450         synonymous output from the 'diff' program.
11451
11452 2011-11-13  Bruno Haible  <bruno@clisp.org>
11453
11454         Makefile: Tweak indentation.
11455         * Makefile: Use tab as first character in every line that contains rule
11456         commands.
11457
11458 2011-11-13  Bruno Haible  <bruno@clisp.org>
11459
11460         Syntax check for copyright statements.
11461         * check-copyright: New file.
11462         * Makefile (sc_check_copyright): New rule.
11463
11464 2011-11-13  Simon Josefsson  <simon@josefsson.org>
11465
11466         * build-aux/git-version-gen: Add --prefix to configure the tag
11467         match string.
11468
11469 2011-11-13  Simon Josefsson  <simon@josefsson.org>
11470
11471         * build-aux/git-version-gen: Add --help and --version.
11472
11473 2011-11-12  Jim Meyering  <meyering@redhat.com>
11474
11475         revamp the other test-exclude?.sh scripts to use init.sh, too
11476         * tests/test-exclude1.sh: Use init.sh.
11477         * tests/test-exclude2.sh: Likewise.
11478         * tests/test-exclude3.sh: Likewise.
11479         * tests/test-exclude4.sh: Likewise.
11480         * tests/test-exclude5.sh: Likewise.
11481         * tests/test-exclude6.sh: Likewise.
11482         * tests/test-exclude7.sh: Likewise.
11483         * tests/test-exclude8.sh: Likewise.
11484         * modules/exclude-tests (Files): List init.sh.
11485
11486         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
11487         These shell scripts ignored failure of the binary test-exclude,
11488         so making the latter return 77 didn't cause them to be skipped.
11489         * tests/test-exclude5.sh: Exit with test-exclude's error status
11490         when that program fails.  Revamp to use init.sh.
11491         * tests/test-exclude2.sh: Likewise.
11492
11493         test-exclude: fix a typo
11494         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
11495
11496 2011-11-11  Bruno Haible  <bruno@clisp.org>
11497
11498         obstack: Fix compilation error on MSVC 9.
11499         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
11500
11501 2011-11-11  Jim Meyering  <meyering@redhat.com>
11502
11503         test-exclude: skip tests rather than failing on deficient systems
11504         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
11505         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
11506         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
11507         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
11508
11509 2011-11-10  Bruno Haible  <bruno@clisp.org>
11510
11511         ptsname_r test: Avoid gcc warning on glibc systems.
11512         * tests/test-ptsname_r.c (null_ptr): New function.
11513         (test_errors): Use it.
11514
11515 2011-11-10  Bruno Haible  <bruno@clisp.org>
11516
11517         ptsname_r: Avoid compilation error on OSF/1 5.1.
11518         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
11519         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
11520         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
11521         function is not declared or incompatibly declared.
11522         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
11523         * modules/ptsname_r (Depends-on, configure.ac): Update.
11524         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
11525
11526 2011-11-10  Bruno Haible  <bruno@clisp.org>
11527
11528         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
11529         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
11530         When cross-compiling, guess yes on all platforms except AIX.
11531         Reported by Ludovic Courtès <ludo@gnu.org>.
11532
11533 2011-11-09  Bruno Haible  <bruno@clisp.org>
11534
11535         ptsname_r tests: Fix bugs.
11536         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
11537         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
11538
11539 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
11540
11541         fstatat: work with cross-compilation
11542         Problem reported by Ludovic Courtès in
11543         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
11544         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
11545         "cross-compiling" and assume the bug is present.  Replace
11546         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
11547         an inverted sense, to be more conservative about our assumptions.
11548         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
11549
11550 2011-11-09  Bruno Haible  <bruno@clisp.org>
11551
11552         Improve MODULES.html output.
11553         * modules/mkfifoat (Description): Use the word "function".
11554         * modules/readlinkat (Description): Likewise.
11555         * modules/symlinkat (Description): Likewise.
11556
11557 2011-11-09  Eric Blake  <eblake@redhat.com>
11558
11559         ptsname_r-tests: new test module
11560         * modules/ptsname_r-tests: New module.
11561         * tests/test-ptsname_r.c: New file.
11562
11563         ptsname_r: new module
11564         * modules/ptsname_r: New module.
11565         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
11566         * lib/ptsname.c (__ptsname_r): Split...
11567         * lib/ptsname_r.c: ...into new file.
11568         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
11569         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
11570         * modules/stdlib (Makefile.am): Substitute witnesses.
11571         * lib/stdlib.in.h (ptsname_r): Declare it.
11572         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
11573         * MODULES.html.sh (Misc): Likewise.
11574         * modules/ptsname (Depends-on): Alter dependency.
11575         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
11576
11577 2011-11-09  Jim Meyering  <meyering@redhat.com>
11578
11579         announce-gen: be more concise when there's only one URL+tarball
11580         * build-aux/announce-gen (get_tool_versions): When you distribute
11581         only one type of tarball, combine the first two "Here are..."
11582         sections and make the key-checking grammar independent of
11583         how many tarballs there are.
11584
11585 2011-11-09  Eric Blake  <eblake@redhat.com>
11586
11587         openpty: provide a stub on mingw
11588         * lib/pty.in.h (includes): Provide forward declarations.
11589         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
11590
11591         raise: fix mingw handling of SIGPIPE
11592         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
11593
11594 2011-11-08  Bruno Haible  <bruno@clisp.org>
11595
11596         More conditional dependencies.
11597         * modules/faccessat (Depends-on): Add conditions.
11598         * modules/fchmodat (Depends-on): Likewise.
11599         * modules/fchownat (Depends-on): Likewise.
11600         * modules/fstatat (Depends-on): Likewise.
11601         * modules/mkfifoat (Depends-on): Likewise.
11602         * modules/readlinkat (Depends-on): Likewise.
11603         * modules/symlinkat (Depends-on): Likewise.
11604         * modules/unlinkat (Depends-on): Likewise.
11605         * modules/utimensat (Depends-on): Likewise.
11606         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
11607         * modules/linkat (Depends-on): Refine the conditions.
11608         * modules/renameat (Depends-on): Likewise.
11609
11610 2011-11-08  Bruno Haible  <bruno@clisp.org>
11611
11612         faccessat: Move AC_LIBOBJ invocation to module description.
11613         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
11614         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
11615         invocation from here...
11616         * modules/faccessat (configure.ac): ... to here. Invoke
11617         gl_PREREQ_FACCESSAT.
11618
11619 2011-11-08  Bruno Haible  <bruno@clisp.org>
11620
11621         faccessat: Simplify autoconf macro.
11622         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
11623         gl_FUNC_EUIDACCESS.
11624
11625 2011-11-08  Bruno Haible  <bruno@clisp.org>
11626
11627         renameat: Fix dependencies.
11628         * modules/renameat (Depends-on): Add stdbool.
11629
11630 2011-11-08  Bruno Haible  <bruno@clisp.org>
11631
11632         mkfifoat: Fix module description.
11633         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
11634         not gl_UNISTD_MODULE_INDICATOR.
11635
11636 2011-11-08  Bruno Haible  <bruno@clisp.org>
11637
11638         fstatat: Remove unused dependency.
11639         * modules/fstatat (Depends-on): Remove fstat.
11640
11641 2011-11-08  Simon Josefsson  <simon@josefsson.org>
11642
11643         GNUmakefile: behave when Makefile is missing.
11644         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
11645
11646 2011-11-08  Bruno Haible  <bruno@clisp.org>
11647
11648         openat: Conditionalize dependencies.
11649         * lib/openat.c: Reduce the scope of some #includes.
11650         * modules/openat (Depends-on): Add conditions.
11651
11652 2011-11-07  Jim Meyering  <meyering@redhat.com>
11653
11654         maint.mk: extract GPG key ID without using a temporary file
11655         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
11656         without using a temporary file.  Based on a suggestion from Werner Koch
11657         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
11658
11659 2011-11-07  Eric Blake  <eblake@redhat.com>
11660
11661         grantpt: fix typo
11662         * lib/stdlib.in.h (grantpt): Check correct function.
11663
11664         maint.mk: silence new syntax check
11665         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
11666
11667 2011-11-06  Bruno Haible  <bruno@clisp.org>
11668
11669         Doc about floating-point and math API.
11670         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
11671         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
11672
11673 2011-11-06  Bruno Haible  <bruno@clisp.org>
11674
11675         stdalign tests: Skip the test when compiled by Sun C.
11676         * tests/test-stdalign.c (main): Skip the test on Sun C.
11677
11678 2011-11-06  Bruno Haible  <bruno@clisp.org>
11679
11680         ansi-c++-opt: Complete the 2011-06-05 change.
11681         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
11682         does not support namespaces, set the variable to "no", not to ":".
11683
11684 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
11685
11686         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
11687
11688 2011-11-06  Bruno Haible  <bruno@clisp.org>
11689
11690         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
11691         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
11692         (minus_zerol) [HP-UX]: New macro.
11693         (unary_minus) [HP-UX]: New function.
11694         (copysignl) [HP-UX]: Use unary_minus function.
11695
11696 2011-11-06  Bruno Haible  <bruno@clisp.org>
11697
11698         ldexp, ldexpf, ldexpl: Enhance tests.
11699         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
11700         and tests/test-ldexpl.c.
11701         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
11702         LDEXP, MIN_EXP, MAX_EXP): New macros.
11703         Include test-ldexp.h.
11704         (main): Just call test_function.
11705         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
11706         infinity.h, nan.h.
11707         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
11708         MAX_EXP): New macros.
11709         Include test-ldexp.h.
11710         (x, y): Remove variables.
11711         (main): Just call test_function.
11712         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
11713         infinity.h, nan.h.
11714         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
11715         MAX_EXP): New macros.
11716         Include test-ldexp.h.
11717         (x, y): Remove variables.
11718         (main): Just call test_function.
11719         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
11720         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
11721         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
11722         (Depends-on): Add isnand-nolibm, signbit, float.
11723         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
11724         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
11725         (Depends-on): Add isnanf-nolibm, signbit, float.
11726
11727 2011-11-06  Bruno Haible  <bruno@clisp.org>
11728
11729         math tests: Cosmetics.
11730         * tests/test-math-c++.cc: Reorder declarations.
11731
11732 2011-11-05  Bruno Haible  <bruno@clisp.org>
11733
11734         fma*: Simplify test.
11735         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
11736         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
11737
11738         Tests for module 'fmal'.
11739         * modules/fmal-tests: New file.
11740         * tests/test-fmal1.c: New file.
11741         * tests/test-fmal2.c: New file.
11742
11743         New module 'fmal'.
11744         * lib/math.in.h (fmal): New declaration.
11745         * lib/fmal.c: New file.
11746         * m4/fmal.m4: New file.
11747         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
11748         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
11749         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
11750         REPLACE_FMAL.
11751         * modules/fmal: New file.
11752         * doc/posix-functions/fmal.texi: Mention the new module and the various
11753         bugs.
11754
11755         Tests for module 'fmaf'.
11756         * modules/fmaf-tests: New file.
11757         * tests/test-fmaf1.c: New file.
11758         * tests/test-fmaf2.c: New file.
11759
11760         New module 'fmaf'.
11761         * lib/math.in.h (fmaf): New declaration.
11762         * lib/fmaf.c: New file.
11763         * m4/fmaf.m4: New file.
11764         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
11765         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
11766         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
11767         REPLACE_FMAF.
11768         * modules/fmaf: New file.
11769         * doc/posix-functions/fmaf.texi: Mention the new module and the various
11770         bugs.
11771
11772         Tests for module 'fma'.
11773         * modules/fma-tests: New file.
11774         * tests/test-fma1.c: New file.
11775         * tests/test-fma1.h: New file.
11776         * tests/test-fma2.c: New file.
11777         * tests/test-fma2.h: New file.
11778
11779         New module 'fma'.
11780         * lib/math.in.h (fma): New declaration.
11781         * lib/fma.c: New file.
11782         * m4/fma.m4: New file.
11783         * m4/fegetround.m4: New file.
11784         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
11785         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
11786         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
11787         REPLACE_FMA.
11788         * modules/fma: New file.
11789         * doc/posix-functions/fma.texi: Mention the new module and the various
11790         bugs.
11791
11792         Extend gl_MATHFUNC.
11793         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
11794         Support 'void' as argument type.
11795         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
11796
11797 2011-11-05  Jim Meyering  <meyering@redhat.com>
11798
11799         maint.mk: also prohibit inclusion of dirent.h without use
11800         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
11801
11802 2011-11-05  Bruno Haible  <bruno@clisp.org>
11803
11804         ldexpl tests: Avoid test failure on MSVC 9.
11805         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
11806         value. Needed in order to enforce the conversion from a value greater
11807         than LDBL_MAX to Infinity.
11808
11809 2011-11-05  Bruno Haible  <bruno@clisp.org>
11810
11811         New modules 'at-internal', 'openat-h', split off from module 'openat'.
11812         * modules/at-internal: New file, extracted from modules/openat.
11813         * modules/openat-h: New file.
11814         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
11815         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
11816         * modules/openat (Description): Add reference to POSIX function.
11817         (Files): Remove lib/openat.h, lib/openat-proc.c.
11818         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
11819         intprops, unistd.
11820         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
11821         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
11822         gl_FCNTL_MODULE_INDICATOR.
11823         (Include): Remove unistd.h, openat.h.
11824         * modules/areadlinkat (Files): Add lib/at-func.c.
11825         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
11826         openat-die, openat-h, save-cwd.
11827         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
11828         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
11829         openat-die, openat-h, save-cwd, unistd.
11830         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
11831         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
11832         openat-h, save-cwd. Remove fcntl-h, openat.
11833         * modules/fchmodat (Files): Remove lib/openat.h.
11834         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
11835         openat, stdbool, unistd.
11836         * modules/fchownat (Files): Remove lib/openat.h.
11837         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
11838         openat, stdbool, sys_stat.
11839         * modules/fdopendir (Files): Remove lib/openat-priv.h,
11840         lib/openat-proc.c.
11841         (Depends-on): Add at-internal.
11842         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
11843         * modules/fstatat (Files): Remove lib/openat.h.
11844         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
11845         stdbool, unistd.
11846         * modules/fts (Depends-on): Add openat-h.
11847         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
11848         openat.
11849         * modules/mkdirat (Files): Remove lib/openat.h.
11850         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
11851         openat, stdbool, sys_stat.
11852         * modules/mkfifoat (Files): Add lib/at-func.c.
11853         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
11854         openat-h, save-cwd. Remove fcntl-h, openat.
11855         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
11856         * modules/readlinkat (Files): Add lib/at-func.c.
11857         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
11858         openat-h, save-cwd. Remove fcntl-h, openat.
11859         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
11860         openat.
11861         * modules/selinux-at (Files): Add lib/at-func.c.
11862         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
11863         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
11864         * modules/symlinkat (Files): Add lib/at-func.c.
11865         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
11866         openat-h, save-cwd. Remove fcntl-h, openat.
11867         * modules/unlinkat (Files): Remove lib/openat.h.
11868         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
11869         stdbool.
11870         * modules/utimensat (Files): Add lib/at-func.c.
11871         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
11872         openat-die, openat-h, save-cwd.
11873         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
11874         * modules/fdutimensat-tests (Depends-on): Add openat.
11875         * modules/fstatat-tests (Depends-on): Add openat-h.
11876         * modules/readlinkat-tests (Depends-on): Add openat.
11877         * modules/symlinkat-tests (Depends-on): Add openat.
11878
11879 2011-11-05  Bruno Haible  <bruno@clisp.org>
11880
11881         openat: Include <stdbool.h>.
11882         * lib/openat.c: Include <stdbool.h>.
11883
11884 2011-11-04  Bruno Haible  <bruno@clisp.org>
11885
11886         fchownat, renameat, unlinkat: Fix dependencies.
11887         * modules/fchownat (Depends-on): Add fstatat.
11888         * modules/renameat (Depends-on): Likewise.
11889         * modules/unlinkat (Depends-on): Likewise.
11890
11891 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
11892
11893         openat: remove direct dependency on dirent
11894         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
11895         and hasn't been needed ever since fdopendir was split into its own
11896         module on 2009-08-31.
11897         * modules/openat (Depends-on): Remove dirent.
11898
11899 2011-11-04  Bruno Haible  <bruno@clisp.org>
11900
11901         renameat: Optimize code size.
11902         * modules/renameat (configure.ac): Don't compile at-func2.c if
11903         REPLACE_RENAMEAT is 1.
11904
11905 2011-11-04  Bruno Haible  <bruno@clisp.org>
11906
11907         openat tests: Fix file list.
11908         * modules/openat-tests (Files): Add tests/test-open.h.
11909
11910 2011-11-04  Bruno Haible  <bruno@clisp.org>
11911
11912         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
11913         * modules/fchmodat (Depends-on): Add openat-die.
11914         * modules/fchownat (Depends-on): Likewise.
11915         * modules/linkat (Depends-on): Likewise.
11916         * modules/renameat (Depends-on): Likewise.
11917         * modules/openat (Depends-on): Add dirent.
11918
11919 2011-11-04  Jim Meyering  <meyering@redhat.com>
11920
11921         at-func*.c: fix comments
11922         * lib/at-func2.c: Correct/improve first-line comment.
11923         * lib/at-func.c: Correct grammar in first-line comment.
11924
11925 2011-11-04  Bruno Haible  <bruno@clisp.org>
11926
11927         New module 'mkdirat', split off from module 'openat'.
11928         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
11929         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
11930         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
11931         * modules/mkdirat: New file, extracted from modules/openat.
11932         * modules/openat (Files): Remove lib/mkdirat.c.
11933         (Depends-on): Remove mkdir.
11934         (configure.ac): Remove AC_LIBOBJ of mkdirat.
11935         (Include): Remove <sys/stat.h>.
11936         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
11937         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
11938         tests/test-mkdir.h.
11939         (Depends-on): Remove ignore-value.
11940         (Makefile.am): Remove rules for test-mkdirat.
11941         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
11942         of module 'openat'.
11943         * NEWS: Mention the change.
11944
11945 2011-11-04  Bruno Haible  <bruno@clisp.org>
11946
11947         closedir: Avoid warning on mingw.
11948         * lib/closedir.c: Include <unistd.h>.
11949
11950 2011-11-04  Bruno Haible  <bruno@clisp.org>
11951
11952         New module 'fstatat', split off from module 'openat'.
11953         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
11954         defined.
11955         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
11956         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
11957         gl_FUNC_FSTATAT.
11958         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
11959         * modules/fstatat: New file, extracted from modules/openat.
11960         * modules/openat (Files): Remove lib/fstatat.c.
11961         (Depends-on): Remove lstat.
11962         (configure.ac): Remove AC_LIBOBJ of fstatat.
11963         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
11964         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
11965         tests/test-lstat.h, tests/test-stat.h.
11966         (Depends-on): Remove getcwd-lgpl.
11967         (Makefile.am): Remove rules for test-fstatat.
11968         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
11969         of module 'openat'.
11970         * NEWS: Mention the change.
11971         * modules/getcwd (Depends-on): Add fstatat.
11972         * modules/linkat (Depends-on): Likewise.
11973         * modules/mkfifoat-tests (Depends-on): Likewise.
11974         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
11975
11976 2011-11-03  Bruno Haible  <bruno@clisp.org>
11977
11978         New module 'unlinkat', split off from module 'openat'.
11979         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
11980         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
11981         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
11982         * modules/unlinkat: New file, extracted from modules/openat. Correct
11983         the dependency conditions.
11984         * modules/openat (Files): Remove lib/unlinkat.c.
11985         (Depends-on): Remove rmdir, unlink.
11986         (configure.ac): Remove AC_LIBOBJ of unlinkat.
11987         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
11988         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
11989         tests/test-rmdir.h, tests/test-unlink.h.
11990         (Depends-on): Remove unlinkdir.
11991         (Makefile.am): Remove rules for test-unlinkat.
11992         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
11993         of module 'openat'.
11994         * NEWS: Mention the change.
11995         * modules/linkat-tests (Depends-on): Add unlinkat.
11996         * modules/mkfifoat-tests (Depends-on): Likewise.
11997         * modules/readlinkat-tests (Depends-on): Likewise.
11998
11999 2011-11-02  Bruno Haible  <bruno@clisp.org>
12000
12001         New module 'fchmodat', split off from module 'openat'.
12002         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
12003         defined.
12004         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
12005         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
12006         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
12007         * modules/fchmodat: New file, extracted from modules/openat.
12008         * modules/openat (Files): Remove lib/fchmodat.c.
12009         (configure.ac): Remove AC_LIBOBJ of fchmodat.
12010         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
12011         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
12012         (Makefile.am): Remove rules for test-fchmodat.
12013         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
12014         of module 'openat'.
12015         * NEWS: Mention the change.
12016
12017 2011-11-02  Jim Meyering  <meyering@redhat.com>
12018
12019         putenv: indent #definition of "environ" to placate cppi
12020         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
12021
12022         gitlog-to-changelog: provide a ChangeLog-repair mechanism
12023         Git logs are often treated as immutable, because editing them
12024         changes the SHA1 checksums of all descendants.  Thus, errors in
12025         git logs tend to stay there forever.  However, when we generate
12026         a ChangeLog file -- typically for distribution -- from that git log,
12027         we can actually make corrections in the generated file.  The key
12028         lies in recording in machine-readable/applicable form the desired
12029         corrections.  See --help for description and an example.
12030         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
12031         (usage): Describe it; alphabetize option descriptions.
12032         (main): Honor the new option, carefully.
12033
12034 2011-11-01  Jim Meyering  <meyering@redhat.com>
12035
12036         gitlog-to-changelog: avoid an infloop
12037         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
12038         that ends up being empty.
12039
12040 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
12041
12042         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
12043         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
12044         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
12045         contains (possibly-quoted) backslashes.  This should avoid
12046         all-too-common shell bugs if COMPLICATED contains backslashes in
12047         the "wrong" places.  Reported by David Evans in
12048         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
12049         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
12050         because we want ASCII ranges.  Is there some reason we don't use
12051         the C locale everywhere in this script?
12052         (func_module, top level): Avoid unwanted pathname expansion when
12053         $repo_url_prefix or $repo_url_suffix_repl contain shell
12054         metacharacters like '?' and '*'.
12055
12056 2011-11-01  Bruno Haible  <bruno@clisp.org>
12057
12058         fchownat: Improve description.
12059         * modules/fchownat (Description): Add link to function.
12060
12061 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
12062
12063         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
12064         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
12065         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
12066         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
12067
12068 2011-11-01  Bruno Haible  <bruno@clisp.org>
12069
12070         alignof: Avoid collision with stdalign module.
12071         * lib/alignof.h (alignof): Remove macro.
12072         * NEWS: Mention the change.
12073         Reported by Paul Eggert.
12074
12075 2011-11-01  Bruno Haible  <bruno@clisp.org>
12076
12077         New module 'fchownat', split off from module 'openat'.
12078         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
12079         defined.
12080         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
12081         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
12082         invoke gl_FUNC_FCHOWNAT.
12083         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
12084         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
12085         * modules/fchownat: New file, extracted from modules/openat.
12086         * modules/openat (Files): Remove lib/fchownat.c.
12087         (Depends-on): Remove lchown.
12088         (configure.ac): Remove AC_LIBOBJ of fchownat.
12089         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
12090         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
12091         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
12092         (Depends-on): Remove mgetgroups, usleep, stat-time.
12093         (configure.ac): Remove test for getegid.
12094         (Makefile.am): Remove rules for test-fchownat.
12095         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
12096         of module 'openat'.
12097         * NEWS: Mention the change.
12098
12099 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
12100
12101         stdalign: port better to MSVC and to Sun C 5.11
12102         This fixes some of the problems reported by Bruno Haible in
12103         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
12104         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
12105         shortcomings of MSVC and of Sun C 5.11.
12106         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
12107         around __declspec arg.
12108         * modules/stdalign-tests (Files): Add tests/macros.h.
12109         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
12110         Include macros.h, for ASSERT.
12111         (DECLARE_ALIGNED): Remove.
12112         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
12113         to catch bug), and to 1 if not (simplifies the rest of the code).
12114         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
12115         (CHECK_AUTO): Remove.
12116         (CHECK_ALIGNED): Check only the alignment of the static vars,
12117         since auto var alignment isn't supported by Sun C 5.11.
12118         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
12119         ASSERT failures are easier to diagnose.
12120
12121 2011-10-31  Bruno Haible  <bruno@clisp.org>
12122
12123         doc about some IRIX 5.3 problems.
12124         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
12125         on IRIX 5.3.
12126         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
12127         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
12128         5.3.
12129         * doc/posix-functions/grantpt.texi: Likewise.
12130         * doc/posix-functions/unlockpt.texi: Likewise.
12131         * doc/posix-functions/lgamma.texi: Likewise.
12132         * doc/posix-functions/nextafter.texi: Likewise.
12133         * doc/posix-functions/remainder.texi: Likewise.
12134         * doc/posix-functions/select.texi: Mention misplaced declaration on
12135         IRIX 5.3.
12136         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12137
12138 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
12139
12140         gitlog-to-changelog: fix git-log invocation.
12141         git-log mishandles date strings before 1970-01-01 UTC, and there is
12142         no use to specify --since=1970-01-01 by default anyway.
12143         * build-aux/gitlog-to-changelog: By default, when no --since option
12144         was given, do not specify explicit --since option to git-log.
12145
12146 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
12147
12148         gitlog-to-changelog: new option --append-dot.
12149         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
12150         first non-blank line of each commit message terminated with a dot.
12151
12152 2011-10-30  Bruno Haible  <bruno@clisp.org>
12153
12154         ffsl, ffsll: Avoid compilation error due to 'restrict'.
12155         * lib/ffsl.h: Include <config.h>.
12156         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
12157
12158 2011-10-30  Jim Meyering  <meyering@redhat.com>
12159
12160         GNUmakefile: reenable "make syntax-check" for most projects
12161         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
12162         build-aux variable", "syntax-check" would do nothing but succeed with
12163         the "No version control files detected..." diagnostic (unless you
12164         happened to override _build-aux via cfg.mk).
12165         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
12166         to precede inclusion of maint.mk.  Otherwise, these variables would
12167         be used undefined in any project that does not override the default.
12168
12169 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
12170
12171         gitlog-to-changelog: treat a message with only blank lines as empty.
12172         * build-aux/gitlog-to-changelog: Move the code that removes leading and
12173         trailing blank lines before the code that issues a warning about an
12174         empty commit message.
12175
12176 2011-10-30  Jim Meyering  <meyering@redhat.com>
12177
12178         test-parse-datetime.c: avoid new DST-related false positive test failure
12179         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
12180         based on the time/date we'll convert, not the current time.
12181         Otherwise, the moment we cross a DST boundary like today's in
12182         Europe, (CEST to CET), that offset ends up being one hour off.
12183
12184 2011-10-27  Bruno Haible  <bruno@clisp.org>
12185
12186         fstat: Tweak documentation.
12187         * modules/fstat (Description): More precise description.
12188
12189 2011-10-27  Bruno Haible  <bruno@clisp.org>
12190
12191         Update documentation regarding 'largefile' module.
12192         * doc/posix-functions/fstat.texi: Tweak wording.
12193         * doc/posix-functions/opendir.texi: Mention that the module fixes the
12194         problems with huge directories and/or small ino_t types.
12195         * doc/posix-functions/readdir.texi: Likewise.
12196         * doc/posix-functions/rewinddir.texi: Likewise.
12197
12198 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
12199
12200         maint.mk: don't maintain a second build-aux variable.
12201         * maint.mk (build_aux): Removed.  The maintainer-makefile module
12202         depends on GNUmakefile, which already maintains a cfg.mk
12203         overridable $(_build-aux) for projects with a non-standard
12204         build-aux directory location, although without the $(srcdir)
12205         prefix.  Use that variable consistently instead of introducing a
12206         second one.  Adjust all call sites.
12207
12208 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
12209
12210         Add stdalign module and use it in other modules.
12211         This is based on a previous proposal by Bruno Haible
12212         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
12213
12214         stdalign: new module
12215         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
12216         * modules/stdalign: New files.
12217         * MODULES.html.sh (c1x_core_properties): Add stdalign.
12218         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
12219
12220         stdalign-tests: new module
12221         * modules/stdalign-tests, tests/test-stdalign.c: New files.
12222
12223         argp: use stdalign
12224         * lib/argp-parse.c: Include <stdalign.h>.
12225         (alignof): Remove.
12226         * modules/argp (Depends-on): Add stdalign.
12227
12228         crypto libraries: use stdalign
12229         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
12230         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
12231         Do not include <stdlib.h> twice, in md4.c.
12232         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
12233         because we are accessing a pointer's bit-pattern, not a size.
12234         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
12235         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
12236         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
12237         * modules/crypto/sha512: Likewise.
12238
12239         sys_socket: use stdalign, not alignof
12240         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
12241         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
12242
12243 2011-10-27  Bruno Haible  <bruno@clisp.org>
12244
12245         raise test: Avoid a test failure on Linux/MIPS.
12246         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
12247         because 99 is a valid signal on Linux/MIPS.
12248
12249 2011-10-27  Bruno Haible  <bruno@clisp.org>
12250
12251         nonblocking tests: Fix test failure on Linux/MIPS.
12252         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
12253         Set to 270000.
12254
12255 2011-10-27  Bruno Haible  <bruno@clisp.org>
12256
12257         utimensat: Work around problem on Linux/hppa.
12258         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
12259         values.
12260         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
12261
12262 2011-10-25  Jim Meyering  <meyering@redhat.com>
12263
12264         maint.mk: fix a bug in sc_prohibit_stddef_without_use
12265         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
12266         after symbols like NULL, size_t, etc.
12267         Reported by Alfred M. Szmidt.
12268
12269         maint.mk: exempt ENODATA from a syntax-check rule
12270         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
12271         from the sc_prohibit_always-defined_macros syntax-check rule.
12272         Add a comment.  See this for more details:
12273         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
12274
12275 2011-10-23  Jim Meyering  <meyering@redhat.com>
12276
12277         fts: close parent dir FD before returning from post-traversal fts_read
12278         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
12279         unlink A, even though an FD open on A remained.  This is suboptimal
12280         (holding a file descriptor open longer than needed), but otherwise not
12281         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
12282         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
12283         that represents a real problem: it causes the removal of A to fail
12284         with e.g., "rm: cannot remove `A': Device or resource busy"
12285
12286         fts visits each directory twice and keeps a cache (fts_fd_ring) of
12287         directory file descriptors.  After completing the final, FTS_DP,
12288         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
12289         cache, but then proceeded to add a new FD to it via the subsequent
12290         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
12291         final file descriptor would be closed only via fts_close's call to
12292         fd_ring_clear.  Now, it is usually closed earlier, via the final
12293         FTS_DP-returning fts_read call.
12294         * lib/fts.c (restore_initial_cwd): New function, converted from
12295         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
12296         Update callers.
12297         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
12298         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
12299
12300 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
12301             Bruno Haible  <bruno@clisp.org>
12302             Jim Meyering  <jim@meyering.net>
12303
12304         readme-release: improve safety of release prep instructions.
12305         * README-release: Don't git pull all branches when only master
12306         is needed for the release process.
12307         Run make maintainer-clean before changing trees and merging.
12308         Don't try to run ./configure right after git pull in case files
12309         that influence the bootstrap process have changed, move the
12310         ./configure step to after running ./bootstrap.
12311         Don't bootstrap "one last time"... it's the first time!
12312
12313 2011-10-22  Bruno Haible  <bruno@clisp.org>
12314
12315         errno, strerror-override: Support for MSVC 10.
12316         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
12317         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
12318         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
12319         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
12320         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
12321         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
12322         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
12323         Assign values compatible with MSVC 10.
12324         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
12325         New macros.
12326         (GNULIB_defined_EWINSOCK): New macro.
12327         * lib/strerror-override.c (strerror_override): Update accordingly.
12328         * lib/strerror-override.h: Likewise.
12329         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
12330         longer equal to the corresponding errno value.
12331         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
12332
12333 2011-10-22  Bruno Haible  <bruno@clisp.org>
12334
12335         perror: Recognize when test program crashes.
12336         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
12337         strerror, set gl_cv_func_perror_works to no.
12338         Reported by Daniel Richard G. <skunk@iskunk.org>.
12339
12340         perror: Fix indentation.
12341         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
12342
12343 2011-10-22  Bruno Haible  <bruno@clisp.org>
12344
12345         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
12346         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
12347         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
12348         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
12349         functions, not as a macro.
12350         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
12351         macros.
12352         (isfinite, isinf, isnan, signbit): Check overloaded functions and
12353         absence of macro.
12354         Suggested by Eric Blake.
12355         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
12356
12357 2011-10-21  Bruno Haible  <bruno@clisp.org>
12358
12359         relocatable-prog-wrapper: Don't leave object files behind.
12360         * build-aux/install-reloc: Re-synchronize list of .o files to be
12361         removed with list of compilation units.
12362
12363 2011-10-20  Bruno Haible  <bruno@clisp.org>
12364
12365         openpty, posix_openpt: Remove code duplication.
12366         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
12367         * lib/openpty.c: Include <stdlib.h>.
12368         (openpty): Use posix_openpt on all platforms except IRIX.
12369         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
12370
12371 2011-10-20  Bruno Haible  <bruno@clisp.org>
12372
12373         unlockpt: Detect invalid argument.
12374         * lib/unlockpt.c: Include <fcntl.h>.
12375         (unlockpt): Check whether fd is valid, using fcntl().
12376         * modules/unlockpt (Depends-on): Add fcntl-h.
12377
12378 2011-10-20  Bruno Haible  <bruno@clisp.org>
12379
12380         openpty: Avoid compilation error on AIX 6.1.
12381         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
12382
12383 2011-10-20  Bruno Haible  <bruno@clisp.org>
12384
12385         posix_openpt: Support for OpenBSD.
12386         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
12387         (posix_openpt) [OpenBSD]: New code.
12388         * lib/grantpt.c: Include <fcntl.h>.
12389         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
12390         * modules/grantpt (Depends-on): Add fcntl-h.
12391
12392 2011-10-20  Bruno Haible  <bruno@clisp.org>
12393
12394         posix_openpt test: Coding style.
12395         * tests/test-posix_openpt.c: Use GNU coding style.
12396
12397 2011-10-20  Bruno Haible  <bruno@clisp.org>
12398
12399         grantpt: Support --avoid=pt_chown.
12400         * modules/grantpt (Files): Add lib/pty-private.h.
12401
12402 2011-10-20  Bruno Haible  <bruno@clisp.org>
12403
12404         posix_openpt: Fix autoconf macro.
12405         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
12406         unneeded check for _getpty.
12407
12408 2011-10-20  Bruno Haible  <bruno@clisp.org>
12409
12410         openpty: Update comments.
12411         * lib/openpty.c: Add comments about Minix.
12412
12413 2011-10-19  Eric Blake  <eblake@redhat.com>
12414
12415         openpty: relax license
12416         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
12417
12418         pt_chown: use configmake to simplify build
12419         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
12420
12421         ptsname and others: relax license
12422         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
12423         * modules/unlockpt (License): Likewise.
12424         * modules/pt_chown (License): Likewise.
12425         * modules/ptsname (License): Likewise.
12426         * modules/ttyname_r (License): Likewise.
12427
12428 2011-10-19  Jim Meyering  <meyering@redhat.com>
12429
12430         posix_openpt: remove spurious #endif
12431         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
12432
12433 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
12434
12435         maint.mk: Respect $(build_aux) in web-manual rule.
12436         * top/maint.mk (web-manual): Find gen-announce script in user's
12437         $(build_aux) directory instead of hard-coding 'build-aux'.
12438
12439 2011-10-19  Bruno Haible  <bruno@clisp.org>
12440
12441         posix_openpt: Fix compilation error.
12442         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
12443         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
12444         Mention the openpty module as an alternative.
12445
12446 2011-10-19  Bruno Haible  <bruno@clisp.org>
12447
12448         Support for old NeXTstep 3.3 frexp().
12449         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
12450         execution time of the test to 5 seconds.
12451         Reported by Daniel Richard G. <skunk@iskunk.org>.
12452
12453 2011-10-19  Bruno Haible  <bruno@clisp.org>
12454
12455         Support for old NeXTstep 3.3 sed.
12456         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
12457         part, use /.../, not \|...|. Escape periods in the header file name.
12458         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
12459         Reported by Daniel Richard G. <skunk@iskunk.org>.
12460
12461 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
12462
12463         Support for old NeXTstep 3.3 gcc.
12464         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
12465         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
12466         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
12467         * lib/spawn.in.h (_Restrict_arr_): Likewise.
12468         * lib/regex.h (_Restrict_arr_): Likewise.
12469         * lib/regex_internal.h (re_token_t): Likewise.
12470         * lib/regexec.c (check_node_accept_bytes): Likewise.
12471         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
12472
12473 2011-10-18  Eric Blake  <eblake@redhat.com>
12474
12475         posix_openpt: new module
12476         * modules/posix_openpt: New module.
12477         * m4/posix_openpt.m4: New file.
12478         * lib/posix_openpt.c: Likewise.
12479         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
12480         (gl_STDLIB_H_DEFAULTS): Set defaults.
12481         * modules/stdlib (Makefile.am): Substitute macros.
12482         * lib/stdlib.in.h (posix_openpt): Declare.
12483         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
12484         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
12485         * modules/posix_openpt-tests: New test module.
12486         * tests/test-posix_openpt.c: New test.
12487
12488 2011-10-15  Bruno Haible  <bruno@clisp.org>
12489
12490         xstrtoll: Fix compilation failure.
12491         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
12492         from lib/strtol.c.
12493         * doc/posix-headers/limits.texi: Mention missing numerical limits on
12494         some platforms.
12495         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12496
12497 2011-10-15  Bruno Haible  <bruno@clisp.org>
12498
12499         vasnprintf: Optimize bit search operation.
12500         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
12501         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
12502         gl_DOUBLE_EXPONENT_LOCATION.
12503         * modules/vasnprintf (Files): Add m4/exponentd.m4.
12504         * modules/unistdio/u8-vasnprintf (Files): Likewise.
12505         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
12506         * modules/unistdio/u16-vasnprintf (Files): Likewise.
12507         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
12508         * modules/unistdio/u32-vasnprintf (Files): Likewise.
12509         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
12510         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
12511         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
12512
12513 2011-10-15  Bruno Haible  <bruno@clisp.org>
12514
12515         vasnprintf: Fix comments.
12516         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
12517
12518 2011-10-14  Bruno Haible  <bruno@clisp.org>
12519
12520         Tests for module 'integer_length_ll'.
12521         * modules/integer_length_ll-tests: New file.
12522         * tests/test-integer_length_ll.c: New file.
12523
12524         New module 'integer_length_ll'.
12525         * lib/integer_length_ll.c: New file.
12526         * modules/integer_length_ll: New file.
12527
12528 2011-10-14  Bruno Haible  <bruno@clisp.org>
12529
12530         Tests for module 'integer_length_l'.
12531         * modules/integer_length_l-tests: New file.
12532         * tests/test-integer_length_l.c: New file.
12533
12534         New module 'integer_length_l'.
12535         * lib/integer_length_l.c: New file.
12536         * modules/integer_length_l: New file.
12537
12538 2011-10-14  Bruno Haible  <bruno@clisp.org>
12539
12540         Tests for module 'integer_length'.
12541         * modules/integer_length-tests: New file.
12542         * tests/test-integer_length.c: New file.
12543
12544         New module 'integer_length'.
12545         * lib/integer_length.h: New file.
12546         * lib/integer_length.c: New file.
12547         * modules/integer_length: New file.
12548
12549 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
12550
12551         popen: Fix dependency conditions.
12552         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
12553
12554 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
12555
12556         perror: Fix autoconf test.
12557         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
12558         <stdlib.h> and <string.h>.
12559
12560 2011-10-14  Bruno Haible  <bruno@clisp.org>
12561
12562         ffsl: Optimize on 64-bit platforms.
12563         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
12564         unrolling.
12565
12566 2011-10-13  Bruno Haible  <bruno@clisp.org>
12567
12568         ffsl: Optimize on 32-bit platforms.
12569         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
12570         use ffs() without a loop.
12571
12572         ffsl, ffsll: Optimize for GCC.
12573         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
12574         * lib/ffsl.c (GCC_BUILTIN): New macro.
12575         * lib/ffsll.c (GCC_BUILTIN): Likewise.
12576
12577 2011-10-13  Bruno Haible  <bruno@clisp.org>
12578
12579         ffs, bcopy, memset: Support symbol renaming via config.h.
12580         * lib/ffs.c: Include <config.h>.
12581         * lib/bcopy.c: Likewise.
12582         * lib/memset.c: Likewise.
12583
12584 2011-10-10  Bruno Haible  <bruno@clisp.org>
12585
12586         atanl: Simplify for platforms where 'long double' == 'double'.
12587         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12588         alternative implementation.
12589         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12590         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12591         * modules/atanl (Depends-on): Add atan. Update conditions.
12592
12593 2011-10-10  Bruno Haible  <bruno@clisp.org>
12594
12595         acosl: Simplify for platforms where 'long double' == 'double'.
12596         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12597         alternative implementation.
12598         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12599         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12600         * modules/acosl (Depends-on): Add acos. Update conditions.
12601
12602 2011-10-10  Bruno Haible  <bruno@clisp.org>
12603
12604         asinl: Simplify for platforms where 'long double' == 'double'.
12605         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12606         alternative implementation.
12607         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12608         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12609         * modules/asinl (Depends-on): Add asin. Update conditions.
12610
12611 2011-10-10  Bruno Haible  <bruno@clisp.org>
12612
12613         tanl: Simplify for platforms where 'long double' == 'double'.
12614         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12615         implementation.
12616         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12617         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12618         * modules/tanl (Depends-on): Add tan. Update conditions.
12619         (configure.ac): Don't compile trigl.c if
12620         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12621
12622 2011-10-10  Bruno Haible  <bruno@clisp.org>
12623
12624         cosl: Simplify for platforms where 'long double' == 'double'.
12625         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12626         implementation.
12627         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12628         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12629         * modules/cosl (Depends-on): Add cos. Update conditions.
12630         (configure.ac): Don't compile sincosl.c and trigl.c if
12631         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12632
12633 2011-10-10  Bruno Haible  <bruno@clisp.org>
12634
12635         sinl: Simplify for platforms where 'long double' == 'double'.
12636         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12637         implementation.
12638         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12639         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12640         * modules/sinl (Depends-on): Add sin. Update conditions.
12641         (configure.ac): Don't compile sincosl.c and trigl.c if
12642         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12643
12644 2011-10-10  Bruno Haible  <bruno@clisp.org>
12645
12646         logl: Simplify for platforms where 'long double' == 'double'.
12647         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12648         implementation.
12649         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12650         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12651         * modules/logl (Depends-on): Add log. Update conditions.
12652
12653 2011-10-10  Bruno Haible  <bruno@clisp.org>
12654
12655         expl: Simplify for platforms where 'long double' == 'double'.
12656         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12657         implementation.
12658         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12659         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12660         * modules/expl (Depends-on): Add exp. Update conditions.
12661
12662 2011-10-10  Bruno Haible  <bruno@clisp.org>
12663
12664         sqrtl: Simplify for platforms where 'long double' == 'double'.
12665         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12666         alternative implementation.
12667         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12668         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12669         * modules/sqrtl (Depends-on): Update conditions.
12670
12671 2011-10-10  Bruno Haible  <bruno@clisp.org>
12672
12673         ldexpl: Simplify for platforms where 'long double' == 'double'.
12674         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12675         alternative implementation.
12676         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12677         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12678         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
12679
12680 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
12681
12682         ffsll: set correct witness
12683         * modules/ffsll (configure.ac): Fix typo.
12684
12685 2011-10-10  Bruno Haible  <bruno@clisp.org>
12686
12687         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
12688         * lib/printf-frexpl.c: Include <config.h>.
12689         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12690         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
12691         second time.
12692         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
12693         gl_LONG_DOUBLE_VS_DOUBLE.
12694         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
12695         conditions.
12696
12697 2011-10-10  Bruno Haible  <bruno@clisp.org>
12698
12699         frexpl: Simplify for platforms where 'long double' == 'double'.
12700         * lib/frexpl.c: Include <config.h>.
12701         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12702         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12703         time.
12704         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12705         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12706         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
12707         * modules/frexpl (Depends-on): Add frexp. Update conditions.
12708         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
12709         conditions.
12710
12711 2011-10-10  Jim Meyering  <meyering@redhat.com>
12712
12713         test-renameat: don't leave behind a temporary file
12714         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
12715           ERROR: files left in build directory after distclean:
12716           ./gltests/test-renameat.too
12717           make[1]: *** [distcleancheck] Error 1
12718         Reported by Tom G. Christensen.
12719
12720 2011-10-09  Bruno Haible  <bruno@clisp.org>
12721
12722         rint: Determine RINT_LIBM correctly on AIX 7.
12723         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
12724         directly, not only through a function pointer. Also accept an optional
12725         4th argument with extra code.
12726         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
12727         rintf() call by gcc when optimizing.
12728
12729         mathfunc.m4: Refactor.
12730         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
12731         m4 variable.
12732
12733 2011-10-09  Bruno Haible  <bruno@clisp.org>
12734
12735         rintl: Simplify for platforms where 'long double' == 'double'.
12736         * lib/rintl.c: Include <config.h>.
12737         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12738         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12739         time.
12740         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12741         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12742         * modules/rintl (Depends-on): Add rint. Update conditions.
12743
12744 2011-10-09  Bruno Haible  <bruno@clisp.org>
12745
12746         roundl: Simplify for platforms where 'long double' == 'double'.
12747         * lib/roundl.c: Include <config.h>.
12748         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12749         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12750         time.
12751         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12752         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12753         * modules/roundl (Depends-on): Add round. Update conditions.
12754
12755 2011-10-09  Bruno Haible  <bruno@clisp.org>
12756
12757         truncl: Simplify for platforms where 'long double' == 'double'.
12758         * lib/truncl.c: Include <config.h>.
12759         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12760         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12761         time.
12762         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12763         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12764         * modules/truncl (Depends-on): Add trunc. Update conditions.
12765
12766 2011-10-09  Bruno Haible  <bruno@clisp.org>
12767
12768         ceill: Simplify for platforms where 'long double' == 'double'.
12769         * lib/ceill.c: Include <config.h>.
12770         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12771         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12772         time.
12773         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12774         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12775         * modules/ceill (Depends-on): Add ceil. Update conditions.
12776
12777 2011-10-09  Bruno Haible  <bruno@clisp.org>
12778
12779         floorl: Simplify for platforms where 'long double' == 'double'.
12780         * lib/floorl.c: Include <config.h>.
12781         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12782         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12783         time.
12784         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12785         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12786         * modules/floorl (Depends-on): Add floor. Update conditions.
12787
12788 2011-10-09  Bruno Haible  <bruno@clisp.org>
12789
12790         rint: Fix ordering constraints.
12791         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
12792         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
12793         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
12794
12795 2011-10-09  Bruno Haible  <bruno@clisp.org>
12796
12797         copysignl: Simplify for platforms where 'long double' == 'double'.
12798         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12799         alternative.
12800         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12801         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12802         * modules/copysignl (Depends-on): Add copysign. Update conditions.
12803
12804 2011-10-09  Bruno Haible  <bruno@clisp.org>
12805
12806         Tests for module 'rintl'.
12807         * modules/rintl-tests: New file.
12808         * tests/test-rintl.c: New file.
12809
12810         New module 'rintl'.
12811         * lib/math.in.h (rintl): New declaration.
12812         * lib/rintl.c: New file.
12813         * m4/rintl.m4: New file.
12814         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
12815         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
12816         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
12817         * modules/rintl: New file.
12818         * tests/test-math-c++.cc: Check the declaration of rintl.
12819         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
12820         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
12821         * doc/posix-functions/rintl.texi: Mention the new module.
12822
12823 2011-10-09  Bruno Haible  <bruno@clisp.org>
12824
12825         Tests for module 'rintf'.
12826         * modules/rintf-tests: New file.
12827         * tests/test-rintf.c: New file.
12828
12829         New module 'rintf'.
12830         * lib/math.in.h (rintf): New declaration.
12831         * lib/rintf.c: New file.
12832         * m4/rintf.m4: New file.
12833         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
12834         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
12835         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
12836         * modules/rintf: New file.
12837         * tests/test-math-c++.cc: Check the declaration of rintf.
12838         * doc/posix-functions/rintf.texi: Mention the new module.
12839
12840 2011-10-09  Bruno Haible  <bruno@clisp.org>
12841
12842         rint: Support for MSVC.
12843         * lib/math.in.h (rint): New declaration.
12844         * lib/rint.c: New file.
12845         * m4/rint.m4: New file.
12846         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
12847         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
12848         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
12849         * modules/rint (Description): Fix.
12850         (Files): Add lib/rint.c, m4/rint.m4.
12851         (Depends-on): Add math.
12852         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
12853         gl_MATH_MODULE_INDICATOR.
12854         * tests/test-math-c++.cc: Check the declaration of rint.
12855         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
12856         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
12857         * doc/posix-functions/rint.texi: Mention the replacement provided by
12858         the module.
12859
12860         rint tests: More tests.
12861         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
12862         minus-zero.h, infinity.h, nan.h.
12863         (main): Skip the test if the current rounding mode is not standard. Add
12864         tests for negative numbers, minus zero, infinity, NaN.
12865         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
12866         tests/nan.h.
12867         (Depends-on): Add isnand-nolibm.
12868
12869 2011-10-09  Bruno Haible  <bruno@clisp.org>
12870
12871         Tests for module 'copysignl'.
12872         * modules/copysignl-tests: New file.
12873         * tests/test-copysignl.c: New file.
12874
12875         New module 'copysignl'.
12876         * lib/math.in.h (copysignl): New declaration.
12877         * lib/copysignl.c: New file.
12878         * m4/copysignl.m4: New file.
12879         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
12880         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
12881         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
12882         HAVE_COPYSIGNL.
12883         * modules/copysignl: New file.
12884         * tests/test-math-c++.cc: Check the declaration of copysignl.
12885         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
12886         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
12887         * doc/posix-functions/copysignl.texi: Mention the new module.
12888
12889 2011-10-09  Bruno Haible  <bruno@clisp.org>
12890
12891         Tests for module 'copysignf'.
12892         * modules/copysignf-tests: New file.
12893         * tests/test-copysignf.c: New file.
12894
12895         New module 'copysignf'.
12896         * lib/math.in.h (copysignf): New declaration.
12897         * lib/copysignf.c: New file.
12898         * m4/copysignf.m4: New file.
12899         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
12900         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
12901         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
12902         HAVE_COPYSIGNF.
12903         * modules/copysignf: New file.
12904         * tests/test-math-c++.cc: Check the declaration of copysignf.
12905         * doc/posix-functions/copysignf.texi: Mention the new module.
12906
12907 2011-10-09  Bruno Haible  <bruno@clisp.org>
12908
12909         Ensure that HAVE_* variables are set to 1 before they are set to 0.
12910         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
12911         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
12912         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
12913         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
12914         gl_SIGNAL_H_DEFAULTS.
12915
12916 2011-10-09  Bruno Haible  <bruno@clisp.org>
12917
12918         poll: Make macro safer.
12919         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
12920         ac_cv_header_poll_h is not set.
12921
12922 2011-10-09  Bruno Haible  <bruno@clisp.org>
12923
12924         copysign: Provide replacement.
12925         * lib/math.in.h (copysign): New declaration.
12926         * lib/copysign.c: New file.
12927         * m4/copysign.m4: New file.
12928         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
12929         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
12930         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
12931         HAVE_COPYSIGN.
12932         * modules/copysign (Description): Clarify.
12933         (Files): Add lib/copysign.c, m4/copysign.m4.
12934         (Depends-on): Add math, signbit.
12935         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
12936         gl_MATH_MODULE_INDICATOR.
12937         * tests/test-math-c++.cc: Check the declaration of copysign.
12938         * doc/posix-functions/copysign.texi: Mention the effects of the module
12939         on Minix and MSVC.
12940
12941 2011-10-09  Bruno Haible  <bruno@clisp.org>
12942
12943         isinf: Ensure macro on AIX 5.1.
12944         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
12945         macro.
12946         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
12947
12948 2011-10-09  Bruno Haible  <bruno@clisp.org>
12949
12950         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
12951         * modules/snprintf-posix-tests (configure.ac): Require
12952         gl_LONG_DOUBLE_VS_DOUBLE.
12953         * modules/sprintf-posix-tests (configure.ac): Likewise.
12954         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
12955         * modules/vasprintf-posix-tests (configure.ac): Likewise.
12956         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
12957         * modules/vsprintf-posix-tests (configure.ac): Likewise.
12958         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
12959         tests on platforms where 'long double' is the same as 'double'.
12960         * tests/test-sprintf-posix.h (test_function): Likewise.
12961         * tests/test-vasnprintf-posix.c (test_function): Likewise.
12962         * tests/test-vasprintf-posix.c (test_function): Likewise.
12963
12964         *printf: Fix for platforms where 'long double' == 'double'.
12965         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
12966         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
12967         * modules/dprintf-posix (Files): Add m4/math_h.m4.
12968         * modules/fprintf-posix (Files): Likewise.
12969         * modules/obstack-printf-posix (Files): Likewise.
12970         * modules/snprintf-posix (Files): Likewise.
12971         * modules/sprintf-posix (Files): Likewise.
12972         * modules/vasnprintf (Files): Likewise.
12973         * modules/vasnprintf-posix (Files): Likewise.
12974         * modules/vasprintf-posix (Files): Likewise.
12975         * modules/vdprintf-posix (Files): Likewise.
12976         * modules/vfprintf-posix (Files): Likewise.
12977         * modules/vsnprintf-posix (Files): Likewise.
12978         * modules/vsprintf-posix (Files): Likewise.
12979         * modules/unistdio/u8-vasnprintf (Files): Likewise.
12980         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
12981         * modules/unistdio/u16-vasnprintf (Files): Likewise.
12982         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
12983         * modules/unistdio/u32-vasnprintf (Files): Likewise.
12984         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
12985         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
12986
12987         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
12988         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
12989         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12990         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
12991         'long double'.
12992         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
12993
12994         isinf: Fix for platforms where 'long double' == 'double'.
12995         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
12996         Don't blindly assume 80-bit 'long double'.
12997
12998         isfinite: Fix for platforms where 'long double' == 'double'.
12999         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
13000         Don't blindly assume 80-bit 'long double'.
13001
13002         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
13003         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
13004         * modules/isfinite-tests (configure.ac): Require
13005         gl_LONG_DOUBLE_VS_DOUBLE.
13006         * modules/isinf-tests (configure.ac): Likewise.
13007         * modules/isnan-tests (configure.ac): Likewise.
13008         * modules/isnanl-tests (configure.ac): Likewise.
13009         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
13010         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
13011         tests on platforms where 'long double' is the same as 'double'.
13012         * tests/test-isinf.c (test_isinfl): Likewise.
13013         * tests/test-isnan.c (test_long_double): Likewise.
13014         * tests/test-isnanl.h (main): Likewise.
13015
13016 2011-10-08  Bruno Haible  <bruno@clisp.org>
13017
13018         Tests for module 'tanhf'.
13019         * modules/tanhf-tests: New file.
13020         * tests/test-tanhf.c: New file.
13021
13022         New module 'tanhf'.
13023         * lib/math.in.h (tanhf): New declaration.
13024         * lib/tanhf.c: New file.
13025         * m4/tanhf.m4: New file.
13026         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
13027         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
13028         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
13029         * modules/tanhf: New file.
13030         * tests/test-math-c++.cc: Check the declaration of tanhf.
13031         * doc/posix-functions/tanhf.texi: Mention the new module.
13032
13033         tanh: Use a .m4 file.
13034         * m4/tanh.m4: New file.
13035         * modules/tanh (Files): Add it.
13036         (configure.ac): Just invoke gl_FUNC_TANH.
13037
13038 2011-10-08  Bruno Haible  <bruno@clisp.org>
13039
13040         Tests for module 'coshf'.
13041         * modules/coshf-tests: New file.
13042         * tests/test-coshf.c: New file.
13043
13044         New module 'coshf'.
13045         * lib/math.in.h (coshf): New declaration.
13046         * lib/coshf.c: New file.
13047         * m4/coshf.m4: New file.
13048         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
13049         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
13050         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
13051         * modules/coshf: New file.
13052         * tests/test-math-c++.cc: Check the declaration of coshf.
13053         * doc/posix-functions/coshf.texi: Mention the new module.
13054
13055         cosh: Use a .m4 file.
13056         * m4/cosh.m4: New file.
13057         * modules/cosh (Files): Add it.
13058         (configure.ac): Just invoke gl_FUNC_COSH.
13059
13060 2011-10-08  Bruno Haible  <bruno@clisp.org>
13061
13062         Tests for module 'sinhf'.
13063         * modules/sinhf-tests: New file.
13064         * tests/test-sinhf.c: New file.
13065
13066         New module 'sinhf'.
13067         * lib/math.in.h (sinhf): New declaration.
13068         * lib/sinhf.c: New file.
13069         * m4/sinhf.m4: New file.
13070         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
13071         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
13072         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
13073         * modules/sinhf: New file.
13074         * tests/test-math-c++.cc: Check the declaration of sinhf.
13075         * doc/posix-functions/sinhf.texi: Mention the new module.
13076
13077         sinh: Use a .m4 file.
13078         * m4/sinh.m4: New file.
13079         * modules/sinh (Files): Add it.
13080         (configure.ac): Just invoke gl_FUNC_SINH.
13081
13082 2011-10-08  Bruno Haible  <bruno@clisp.org>
13083
13084         Tests for module 'atan2f'.
13085         * modules/atan2f-tests: New file.
13086         * tests/test-atan2f.c: New file.
13087
13088         New module 'atan2f'.
13089         * lib/math.in.h (atan2f): New declaration.
13090         * lib/atan2f.c: New file.
13091         * m4/atan2f.m4: New file.
13092         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
13093         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
13094         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
13095         * modules/atan2f: New file.
13096         * tests/test-math-c++.cc: Check the declaration of atan2f.
13097         * doc/posix-functions/atan2f.texi: Mention the new module.
13098
13099         atan2: Use a .m4 file.
13100         * m4/atan2.m4: New file.
13101         * modules/atan2 (Files): Add it.
13102         (configure.ac): Just invoke gl_FUNC_ATAN2.
13103
13104 2011-10-08  Bruno Haible  <bruno@clisp.org>
13105
13106         Tests for module 'atanf'.
13107         * modules/atanf-tests: New file.
13108         * tests/test-atanf.c: New file.
13109
13110         New module 'atanf'.
13111         * lib/math.in.h (atanf): New declaration.
13112         * lib/atanf.c: New file.
13113         * m4/atanf.m4: New file.
13114         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
13115         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
13116         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
13117         * modules/atanf: New file.
13118         * tests/test-math-c++.cc: Check the declaration of atanf.
13119         * doc/posix-functions/atanf.texi: Mention the new module.
13120
13121         atan: Use a .m4 file.
13122         * m4/atan.m4: New file.
13123         * modules/atan (Files): Add it.
13124         (configure.ac): Just invoke gl_FUNC_ATAN.
13125
13126 2011-10-08  Bruno Haible  <bruno@clisp.org>
13127
13128         Tests for module 'acosf'.
13129         * modules/acosf-tests: New file.
13130         * tests/test-acosf.c: New file.
13131
13132         New module 'acosf'.
13133         * lib/math.in.h (acosf): New declaration.
13134         * lib/acosf.c: New file.
13135         * m4/acosf.m4: New file.
13136         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
13137         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
13138         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
13139         * modules/acosf: New file.
13140         * tests/test-math-c++.cc: Check the declaration of acosf.
13141         * doc/posix-functions/acosf.texi: Mention the new module.
13142
13143         acos: Use a .m4 file.
13144         * m4/acos.m4: New file.
13145         * modules/acos (Files): Add it.
13146         (configure.ac): Just invoke gl_FUNC_ACOS.
13147
13148 2011-10-08  Bruno Haible  <bruno@clisp.org>
13149
13150         Tests for module 'asinf'.
13151         * modules/asinf-tests: New file.
13152         * tests/test-asinf.c: New file.
13153
13154         New module 'asinf'.
13155         * lib/math.in.h (asinf): New declaration.
13156         * lib/asinf.c: New file.
13157         * m4/asinf.m4: New file.
13158         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
13159         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
13160         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
13161         * modules/asinf: New file.
13162         * tests/test-math-c++.cc: Check the declaration of asinf.
13163         * doc/posix-functions/asinf.texi: Mention the new module.
13164
13165         asin: Use a .m4 file.
13166         * m4/asin.m4: New file.
13167         * modules/asin (Files): Add it.
13168         (configure.ac): Just invoke gl_FUNC_ASIN.
13169
13170 2011-10-08  Bruno Haible  <bruno@clisp.org>
13171
13172         Tests for module 'tanf'.
13173         * modules/tanf-tests: New file.
13174         * tests/test-tanf.c: New file.
13175
13176         New module 'tanf'.
13177         * lib/math.in.h (tanf): New declaration.
13178         * lib/tanf.c: New file.
13179         * m4/tanf.m4: New file.
13180         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
13181         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
13182         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
13183         * modules/tanf: New file.
13184         * tests/test-math-c++.cc: Check the declaration of tanf.
13185         * doc/posix-functions/tanf.texi: Mention the new module.
13186
13187         tan: Use a .m4 file.
13188         * m4/tan.m4: New file.
13189         * modules/tan (Files): Add it.
13190         (configure.ac): Just invoke gl_FUNC_TAN.
13191
13192 2011-10-08  Bruno Haible  <bruno@clisp.org>
13193
13194         Tests for module 'cosf'.
13195         * modules/cosf-tests: New file.
13196         * tests/test-cosf.c: New file.
13197
13198         New module 'cosf'.
13199         * lib/math.in.h (cosf): New declaration.
13200         * lib/cosf.c: New file.
13201         * m4/cosf.m4: New file.
13202         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
13203         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
13204         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
13205         * modules/cosf: New file.
13206         * tests/test-math-c++.cc: Check the declaration of cosf.
13207         * doc/posix-functions/cosf.texi: Mention the new module.
13208
13209         cos: Use a .m4 file.
13210         * m4/cos.m4: New file.
13211         * modules/cos (Files): Add it.
13212         (configure.ac): Just invoke gl_FUNC_COS.
13213
13214 2011-10-08  Bruno Haible  <bruno@clisp.org>
13215
13216         Tests for module 'sinf'.
13217         * modules/sinf-tests: New file.
13218         * tests/test-sinf.c: New file.
13219
13220         New module 'sinf'.
13221         * lib/math.in.h (sinf): New declaration.
13222         * lib/sinf.c: New file.
13223         * m4/sinf.m4: New file.
13224         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
13225         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
13226         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
13227         * modules/sinf: New file.
13228         * tests/test-math-c++.cc: Check the declaration of sinf.
13229         * doc/posix-functions/sinf.texi: Mention the new module.
13230
13231         sin: Use a .m4 file.
13232         * m4/sin.m4: New file.
13233         * modules/sin (Files): Add it.
13234         (configure.ac): Just invoke gl_FUNC_SIN.
13235
13236 2011-10-08  Bruno Haible  <bruno@clisp.org>
13237
13238         Tests for module 'powf'.
13239         * modules/powf-tests: New file.
13240         * tests/test-powf.c: New file.
13241
13242         New module 'powf'.
13243         * lib/math.in.h (powf): New declaration.
13244         * lib/powf.c: New file.
13245         * m4/powf.m4: New file.
13246         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
13247         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
13248         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
13249         * modules/powf: New file.
13250         * tests/test-math-c++.cc: Check the declaration of powf.
13251         * doc/posix-functions/powf.texi: Mention the new module.
13252
13253         pow: Use a .m4 file.
13254         * m4/pow.m4: New file.
13255         * modules/pow (Files): Add it.
13256         (configure.ac): Just invoke gl_FUNC_POW.
13257
13258 2011-10-08  Bruno Haible  <bruno@clisp.org>
13259
13260         Tests for module 'log10f'.
13261         * modules/log10f-tests: New file.
13262         * tests/test-log10f.c: New file.
13263
13264         New module 'log10f'.
13265         * lib/math.in.h (log10f): New declaration.
13266         * lib/log10f.c: New file.
13267         * m4/log10f.m4: New file.
13268         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
13269         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
13270         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
13271         * modules/log10f: New file.
13272         * tests/test-math-c++.cc: Check the declaration of log10f.
13273         * doc/posix-functions/log10f.texi: Mention the new module.
13274
13275         log10: Use a .m4 file.
13276         * m4/log10.m4: New file.
13277         * modules/log10 (Files): Add it.
13278         (configure.ac): Just invoke gl_FUNC_LOG10.
13279
13280 2011-10-08  Bruno Haible  <bruno@clisp.org>
13281
13282         Tests for module 'logf'.
13283         * modules/logf-tests: New file.
13284         * tests/test-logf.c: New file.
13285
13286         New module 'logf'.
13287         * lib/math.in.h (logf): New declaration.
13288         * lib/logf.c: New file.
13289         * m4/logf.m4: New file.
13290         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
13291         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
13292         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
13293         * modules/logf: New file.
13294         * tests/test-math-c++.cc: Check the declaration of logf.
13295         * doc/posix-functions/logf.texi: Mention the new module.
13296
13297         log: Use a .m4 file.
13298         * m4/log.m4: New file.
13299         * modules/log (Files): Add it.
13300         (configure.ac): Just invoke gl_FUNC_LOG.
13301
13302 2011-10-08  Bruno Haible  <bruno@clisp.org>
13303
13304         Tests for module 'expf'.
13305         * modules/expf-tests: New file.
13306         * tests/test-expf.c: New file.
13307
13308         New module 'expf'.
13309         * lib/math.in.h (expf): New declaration.
13310         * lib/expf.c: New file.
13311         * m4/expf.m4: New file.
13312         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
13313         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
13314         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
13315         * modules/expf: New file.
13316         * tests/test-math-c++.cc: Check the declaration of expf.
13317         * doc/posix-functions/expf.texi: Mention the new module.
13318
13319         exp: Use a .m4 file.
13320         * m4/exp.m4: New file.
13321         * modules/exp (Files): Add it.
13322         (configure.ac): Just invoke gl_FUNC_EXP.
13323
13324 2011-10-08  Bruno Haible  <bruno@clisp.org>
13325
13326         Tests for module 'sqrtf'.
13327         * modules/sqrtf-tests: New file.
13328         * tests/test-sqrtf.c: New file.
13329
13330         New module 'sqrtf'.
13331         * lib/math.in.h (sqrtf): New declaration.
13332         * lib/sqrtf.c: New file.
13333         * m4/sqrtf.m4: New file.
13334         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
13335         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
13336         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
13337         * modules/sqrtf: New file.
13338         * tests/test-math-c++.cc: Check the declaration of sqrtf.
13339         * doc/posix-functions/sqrtf.texi: Mention the new module.
13340
13341 2011-10-08  Bruno Haible  <bruno@clisp.org>
13342
13343         Tests: Avoid link failures w.r.t. libintl.
13344         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
13345         $(LIBINTL).
13346         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
13347         $(LIBINTL).
13348         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
13349         against $(LIBINTL).
13350         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
13351         $(LIBINTL).
13352         * modules/openat-tests (Makefile.am): Link test-fchmodat against
13353         $(LIBINTL).
13354         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
13355
13356 2011-10-08  Bruno Haible  <bruno@clisp.org>
13357
13358         pow tests: Defeat compiler optimizations.
13359         * tests/test-pow.c (main): Assign arguments to x and y before use.
13360
13361 2011-10-08  Bruno Haible  <bruno@clisp.org>
13362
13363         gnulib-tool: Improve last commit.
13364         * gnulib-tool (func_modules_transitive_closure): Simplify code.
13365         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
13366         ignore dependencies that are not among the modules list.
13367
13368 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
13369
13370         gnulib-tool: don't follow dependencies to avoided modules
13371         This fixes a bug that is related to the previous one.
13372         * gnulib-tool (func_modules_transitive_closure)
13373         (func_emit_autoconf_snippets):
13374         Check whether a dependency is acceptable before using it.
13375         (--extract-dependencies): Report an error if --avoid is also used,
13376         since this combination of options is not yet supported.
13377
13378         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
13379         Problem reported by Peter Dyballa in
13380         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
13381         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
13382         when echoing "$condition".
13383
13384 2011-10-07  Bruno Haible  <bruno@clisp.org>
13385
13386         Fix documentation about math functions on MacOS X.
13387         * doc/posix-functions/exp2.texi: Don't say the function is missing on
13388         MacOS X 10.5.
13389         * doc/posix-functions/fdim.texi: Likewise.
13390         * doc/posix-functions/feclearexcept.texi: Likewise.
13391         * doc/posix-functions/fegetenv.texi: Likewise.
13392         * doc/posix-functions/fegetround.texi: Likewise.
13393         * doc/posix-functions/feholdexcept.texi: Likewise.
13394         * doc/posix-functions/feraiseexcept.texi: Likewise.
13395         * doc/posix-functions/fesetenv.texi: Likewise.
13396         * doc/posix-functions/fesetround.texi: Likewise.
13397         * doc/posix-functions/fetestexcept.texi: Likewise.
13398         * doc/posix-functions/feupdateenv.texi: Likewise.
13399         * doc/posix-functions/fmax.texi: Likewise.
13400         * doc/posix-functions/fmin.texi: Likewise.
13401         * doc/posix-functions/log2.texi: Likewise.
13402         * doc/posix-functions/modff.texi: Likewise.
13403         * doc/posix-functions/nan.texi: Likewise.
13404         * doc/posix-functions/nanf.texi: Likewise.
13405         * doc/posix-functions/nextafterf.texi: Likewise.
13406         * doc/posix-functions/remquo.texi: Likewise.
13407
13408 2011-10-07  Bruno Haible  <bruno@clisp.org>
13409
13410         modff: Drop assumption about library that defines modff.
13411         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
13412         AC_CHECK_FUNCS.
13413         * modules/modff (Files): Add m4/mathfunc.m4.
13414
13415 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
13416
13417         raise tests: Avoid a GCC warning.
13418         * tests/test-raise.c (handler): Use _Noreturn.
13419
13420 2011-10-07  Bruno Haible  <bruno@clisp.org>
13421
13422         Tests for module 'ldexpf'.
13423         * modules/ldexpf-tests: New file.
13424         * tests/test-ldexpf.c: New file.
13425
13426         New module 'ldexpf'.
13427         * lib/math.in.h (ldexpf): New declaration.
13428         * lib/ldexpf.c: New file.
13429         * m4/ldexpf.m4: New file.
13430         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
13431         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
13432         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
13433         * modules/ldexpf: New file.
13434         * tests/test-math-c++.cc: Check the declaration of ldexpf.
13435         * doc/posix-functions/ldexpf.texi: Mention the new module.
13436
13437 2011-10-06  Bruno Haible  <bruno@clisp.org>
13438
13439         frexpf: Work around problems on IRIX and mingw.
13440         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
13441         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
13442         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
13443         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
13444         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
13445         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
13446         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
13447
13448 2011-10-06  Bruno Haible  <bruno@clisp.org>
13449
13450         fabsf: Drop assumption about library that defines fabsf.
13451         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
13452         AC_CHECK_FUNCS.
13453         * modules/fabsf (Files): Add m4/mathfunc.m4.
13454
13455 2011-10-06  Bruno Haible  <bruno@clisp.org>
13456
13457         frexpf: Drop assumption about library that defines frexpf.
13458         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
13459         'int *', 'float *', 'long double *', 'float', 'long double'.
13460         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
13461         AC_CHECK_FUNCS.
13462         * modules/frexpf (Files): Add m4/mathfunc.m4.
13463
13464         Tests for module 'frexpf'.
13465         * modules/frexpf-tests: New file.
13466         * tests/test-frexpf.c: New file.
13467
13468         New module 'frexpf'.
13469         * lib/math.in.h (frexpf): New declaration.
13470         * lib/frexpf.c: New file.
13471         * m4/frexpf.m4: New file.
13472         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
13473         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
13474         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
13475         * modules/frexpf: New file.
13476         * tests/test-math-c++.cc: Check the declaration of frexpf.
13477         * doc/posix-functions/frexpf.texi: Mention the new module.
13478
13479 2011-10-06  Bruno Haible  <bruno@clisp.org>
13480
13481         math: Sort function declarations of math.in.h.
13482         * lib/math.in.h (frexp, logb): Move declarations.
13483
13484 2011-10-05  Bruno Haible  <bruno@clisp.org>
13485
13486         Tests for module 'modff'.
13487         * modules/modff-tests: New file.
13488         * tests/test-modff.c: New file.
13489
13490         New module 'modff'.
13491         * lib/math.in.h (modff): New declaration.
13492         * lib/modff.c: New file.
13493         * m4/modff.m4: New file.
13494         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
13495         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
13496         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
13497         * modules/modff: New file.
13498         * tests/test-math-c++.cc: Check the declaration of modff.
13499         * doc/posix-functions/modff.texi: Mention the new module.
13500
13501         modf tests: Make test sharper.
13502         * tests/test-modf.c (main): Strengthen upper bound.
13503
13504         modf: Use a .m4 file.
13505         * m4/modf.m4: New file.
13506         * modules/modf (Files): Add it.
13507         (configure.ac): Just invoke gl_FUNC_MODF.
13508
13509 2011-10-05  Bruno Haible  <bruno@clisp.org>
13510
13511         Tests for module 'fmodf'.
13512         * modules/fmodf-tests: New file.
13513         * tests/test-fmodf.c: New file.
13514
13515         New module 'fmodf'.
13516         * lib/math.in.h (fmodf): New declaration.
13517         * lib/fmodf.c: New file.
13518         * m4/fmodf.m4: New file.
13519         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
13520         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
13521         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
13522         * modules/fmodf: New file.
13523         * tests/test-math-c++.cc: Check the declaration of fmodf.
13524         * doc/posix-functions/fmodf.texi: Mention the new module.
13525
13526         fmod: Use a .m4 file.
13527         * m4/fmod.m4: New file.
13528         * modules/fmod (Files): Add it.
13529         (configure.ac): Just invoke gl_FUNC_FMOD.
13530
13531 2011-10-05  Bruno Haible  <bruno@clisp.org>
13532
13533         Tests for module 'fabsf'.
13534         * modules/fabsf-tests: New file.
13535         * tests/test-fabsf.c: New file.
13536
13537         New module 'fabsf'.
13538         * lib/math.in.h (fabsf): New declaration.
13539         * lib/fabsf.c: New file.
13540         * m4/fabsf.m4: New file.
13541         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
13542         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
13543         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
13544         * modules/fabsf: New file.
13545         * tests/test-math-c++.cc: Check the declaration of fabsf.
13546         * doc/posix-functions/fabsf.texi: Mention the new module.
13547
13548         fabs: Use a .m4 file.
13549         * m4/fabs.m4: New file.
13550         * modules/fabs (Files): Add it.
13551         (configure.ac): Just invoke gl_FUNC_FABS.
13552
13553 2011-10-05  Jim Meyering  <meyering@redhat.com>
13554
13555         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
13556         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
13557         ls -lL regression introduced in coreutils-8.12, it does so at the
13558         cost of an additional stat call in the common case.  Besides, now
13559         that the kernel change that prompted commit 95f7c57f has been reverted
13560         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
13561         we have no use for commit 95f7c57f, "file-has-acl: use
13562         acl_extended_file_nofollow if available".
13563
13564 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
13565
13566         file-has-acl: revert unintended change in behavior of ls -L
13567         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
13568         derived from...
13569         (file_has_acl): ...code here.  Call it.
13570         This problem was introduced with 2011-07-22 commit 95f7c57f,
13571         "file-has-acl: use acl_extended_file_nofollow if available".
13572         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
13573
13574 2011-10-03  Bruno Haible  <bruno@clisp.org>
13575
13576         poll: Avoid link errors on MSVC.
13577         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
13578         * modules/poll (Depends-on): Add sockets.
13579         (Link): New section.
13580         * NEWS: Mention the change.
13581         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
13582         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
13583         $(LIB_POLL) instead of $(LIBSOCKET).
13584
13585 2011-10-03  Bruno Haible  <bruno@clisp.org>
13586
13587         sys_select tests: Fix link error on MSVC 9.
13588         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
13589         with $(LIB_SELECT) instead of $(LIBSOCKET).
13590
13591 2011-10-03  Bruno Haible  <bruno@clisp.org>
13592
13593         sys_select: Fix compilation error on mingw.
13594         * lib/sys_select.in.h: On native Windows, include <io.h>.
13595
13596 2011-10-03  Bruno Haible  <bruno@clisp.org>
13597
13598         wmemset: Support for MSVC.
13599         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
13600         whether wmemset() exists.
13601
13602 2011-10-03  Bruno Haible  <bruno@clisp.org>
13603
13604         wmemmove: Support for MSVC.
13605         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
13606         whether wmemmove() exists.
13607
13608 2011-10-03  Bruno Haible  <bruno@clisp.org>
13609
13610         wmemcpy: Support for MSVC.
13611         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
13612         whether wmemcpy() exists.
13613
13614 2011-10-03  Bruno Haible  <bruno@clisp.org>
13615
13616         wmemcmp: Support for MSVC.
13617         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
13618         whether wmemcmp() exists.
13619
13620 2011-10-03  Bruno Haible  <bruno@clisp.org>
13621
13622         wmemchr: Support for MSVC.
13623         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
13624         whether wmemchr() exists.
13625
13626 2011-10-03  Bruno Haible  <bruno@clisp.org>
13627
13628         glthread/*, strsignal: Support for MSVC.
13629         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
13630         including <winsock.h> on MSVC 9.
13631         * lib/glthread/lock.h: Likewise.
13632         * lib/glthread/thread.h: Likewise.
13633         * lib/glthread/tls.h: Likewise.
13634         * lib/glthread/yield.h: Likewise.
13635         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
13636         if HAVE_UNISTD_H is false.
13637         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
13638
13639 2011-10-03  Bruno Haible  <bruno@clisp.org>
13640
13641         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
13642         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
13643         Set to 100000.
13644
13645 2011-10-03  Bruno Haible  <bruno@clisp.org>
13646
13647         acl: Fix specification.
13648         * lib/file-has-acl.c (file_has_acl): Fix specification.
13649
13650 2011-10-03  Bruno Haible  <bruno@clisp.org>
13651
13652         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
13653         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
13654         (compute_curr_prefix, shared_library_fullname,
13655         find_shared_library_fullname, get_shared_library_fullname, relocate):
13656         Use it together with PIC && INSTALLDIR.
13657         Reported by <jojelino@gmail.com>
13658         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
13659
13660 2011-10-01  Jim Meyering  <meyering@redhat.com>
13661
13662         maint.mk: adjust a release-related rule not to require use of gzip
13663         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
13664         Instead, check each file in $(DIST_ARCHIVES).  This is better for
13665         projects that build only .tar.xz files.  Also fix an erroneous test.
13666
13667         test-linkat: don't leave behind a temporary file
13668         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
13669         Otherwise, coreutils' "make distcheck" would fail with this:
13670           Only in /c/cu/tests/torture/coreutils/test/\
13671             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
13672           make[2]: *** [my-distcheck] Error 1
13673
13674         float, math: add omitted file
13675         * lib/itold.c: Add file, required for yesterday's float change.
13676
13677 2011-10-01  Bruno Haible  <bruno@clisp.org>
13678
13679         isinf: Fix for OpenBSD/x86.
13680         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
13681         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
13682         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
13683
13684 2011-10-01  Bruno Haible  <bruno@clisp.org>
13685
13686         isfinite: Fix syntax error in configure test.
13687         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
13688
13689         isfinite: Fix typo.
13690         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
13691         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
13692
13693 2011-10-01  Bruno Haible  <bruno@clisp.org>
13694
13695         nonblocking tests: Fix test failure on Linux/IA-64.
13696         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
13697         Set to 270000.
13698
13699 2011-10-01  Bruno Haible  <bruno@clisp.org>
13700
13701         mkfifoat tests: Fix a test failure on mingw.
13702         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
13703         with error ENOSYS.
13704
13705 2011-09-30  Bruno Haible  <bruno@clisp.org>
13706
13707         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
13708         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
13709         'long double'. Set REPLACE_ITOLD.
13710         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
13711         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
13712         * lib/itold.c: New file.
13713         * modules/float (Files): Add lib/itold.c.
13714         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
13715         (Makefile.am): Substitute REPLACE_ITOLD.
13716         * modules/math (Depends-on): Add float.
13717         (Makefile.am): Substitute REPLACE_ITOLD.
13718         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
13719         * doc/posix-headers/math.texi: Likewise.
13720         * doc/posix-functions/logl.texi: Likewise.
13721
13722 2011-09-30  Bruno Haible  <bruno@clisp.org>
13723
13724         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
13725         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
13726         Set to 140000.
13727
13728 2011-09-30  Bruno Haible  <bruno@clisp.org>
13729
13730         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
13731         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
13732         invocation, say "right after AC_PROG_CC_STDC", not "right after
13733         AC_PROG_CC".
13734         Reported by Gary V. Vaughan <gary@gnu.org>.
13735
13736 2011-09-30  Bruno Haible  <bruno@clisp.org>
13737
13738         Centralize C99 requirement.
13739         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
13740         * modules/stdarg (configure.ac-early): Invoke it instead of
13741         AC_PROG_CC_STDC.
13742         Reported by Gary V. Vaughan and Paul Eggert.
13743
13744 2011-09-29  Bruno Haible  <bruno@clisp.org>
13745
13746         float: Fix LDBL_MAX value on Linux/PowerPC.
13747         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
13748         on Linux/PowerPC.
13749         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
13750         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
13751         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
13752         platform.
13753         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
13754
13755 2011-09-29  Bruno Haible  <bruno@clisp.org>
13756
13757         doc: Improve doc about gl_EARLY.
13758         * doc/gnulib-tool.texi (Initial import): Mention where to place an
13759         AC_PROG_CC_STDC invocation.
13760         Reported by Gary V. Vaughan <gary@gnu.org>.
13761
13762 2011-09-28  Bruno Haible  <bruno@clisp.org>
13763
13764         fgetc, fputc, fread, fwrite tests: Fix link error.
13765         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
13766         on non-MSVC platforms.
13767         * tests/test-fputc.c (main): Likewise.
13768         * tests/test-fread.c (main): Likewise.
13769         * tests/test-fwrite.c (main): Likewise.
13770         Reported by Jim Meyering.
13771
13772 2011-09-27  Bruno Haible  <bruno@clisp.org>
13773
13774         fputc, fwrite tests: Avoid test failure on MSVC.
13775         * tests/test-fgetc.c: Include msvc-inval.h.
13776         (main): Invoke gl_msvc_inval_ensure_handler.
13777         * tests/test-fputc.c: Include msvc-inval.h.
13778         (main): Invoke gl_msvc_inval_ensure_handler.
13779         * tests/test-fread.c: Include msvc-inval.h.
13780         (main): Invoke gl_msvc_inval_ensure_handler.
13781         * tests/test-fwrite.c: Include msvc-inval.h.
13782         (main): Invoke gl_msvc_inval_ensure_handler.
13783         * modules/fgetc-tests (Depends-on): Add msvc-inval.
13784         * modules/fputc-tests (Depends-on): Likewise.
13785         * modules/fread-tests (Depends-on): Likewise.
13786         * modules/fwrite-tests (Depends-on): Likewise.
13787
13788 2011-09-27  Bruno Haible  <bruno@clisp.org>
13789
13790         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
13791         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
13792         (raise): Remove older, duplicated declaration.
13793         (_gl_raise_SIGPIPE): New declaration.
13794         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
13795         (rpl_raise): Remove function.
13796         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
13797         a gnulib-defined SIGPIPE here.
13798         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
13799         'sigprocmask' has detected missing signal-blocking and the module
13800         'sigpipe' is enabled.
13801         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
13802
13803 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
13804
13805         base64-tests: avoid memory leak
13806         * tests/test-base64.c (main): Plug memory leak.
13807
13808         base32: new module
13809         * modules/base32: New module.
13810         * lib/base32.c: New file.
13811         * lib/base32.h: Likewise.
13812         * m4/base32.m4: Likewise.
13813         * modules/base32-tests: New test.
13814         * tests/test-base32.c: Likewise.
13815         * MODULES.html.sh (Misc): Mention it.
13816
13817 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
13818
13819         gnulib: use more-standard license notice wording
13820         * gnulib-tool (func_emit_copyright_notice): When emitting a
13821         license notice into a file, use the standard wording as suggested
13822         by the current information for GNU maintainers, except say "file"
13823         rather than "program".  The new wording gives a license version
13824         number, which addresses an issue raised by Glenn Morris in
13825         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
13826         * m4/onceonly.m4: Use that same wording here, too.
13827
13828         dup2: minor simplification
13829         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
13830         as lib/dup2.c no longer uses 'inline'.
13831
13832 2011-09-25  Bruno Haible  <bruno@clisp.org>
13833
13834         strings: Fix compilation error on MSVC.
13835         * lib/strings.in.h: Include <stddef.h> for size_t.
13836
13837 2011-09-25  Bruno Haible  <bruno@clisp.org>
13838
13839         fflush et al.: Document limitation on MSVC.
13840         * doc/posix-functions/fflush.texi: Document possible crash in handling
13841         mode other than DEFAULT_HANDLING.
13842         * doc/posix-functions/fgetc.texi: Likewise.
13843         * doc/posix-functions/fputc.texi: Likewise.
13844         * doc/posix-functions/fread.texi: Likewise.
13845         * doc/posix-functions/fwrite.texi: Likewise.
13846
13847 2011-09-25  Bruno Haible  <bruno@clisp.org>
13848
13849         msvc-inval: Allow three invalid parameter handling modes.
13850         * lib/msvc-inval.h: Don't include <stdlib.h> here.
13851         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
13852         macros.
13853         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
13854         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
13855         SANE_LIBRARY_HANDLING as a no-op.
13856         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
13857         <stdlib.h>.
13858         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
13859
13860 2011-09-25  Bruno Haible  <bruno@clisp.org>
13861
13862         msvc-inval: Make handler multithread-safe.
13863         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
13864         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
13865         declarations.
13866         (gl_msvc_inval_current): New declaration.
13867         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
13868         Operate on the structure returned by gl_msvc_inval_current().
13869         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
13870         Remove varaiables.
13871         (tls_index, tls_initialized): New variables.
13872         (not_per_thread): New variable.
13873         (gl_msvc_inval_current): New function.
13874         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
13875         returned by gl_msvc_inval_current().
13876
13877 2011-09-25  Bruno Haible  <bruno@clisp.org>
13878
13879         msvc-inval: Install handler globally.
13880         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
13881         !_MSC_VER.
13882         (gl_msvc_invalid_parameter_handler): Remove declaration.
13883         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
13884         declarations.
13885         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
13886         Install the handler globally, don't uninstall it.
13887         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
13888         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
13889         currently valid, call RaiseException instead.
13890         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
13891         for !_MSC_VER.
13892
13893 2011-09-25  Bruno Haible  <bruno@clisp.org>
13894
13895         strerror_r-posix: Fix for MSVC 9.
13896         * lib/strerror_r.c (local_snprintf): New function.
13897         (snprintf): Define to local_snprintf, not to _snprintf.
13898
13899 2011-09-25  Bruno Haible  <bruno@clisp.org>
13900
13901         ftruncate: Support for MSVC 9.
13902         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
13903         (chsize_nothrow): New function.
13904         (chsize): Redefine as a macro.
13905         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
13906         * modules/ftruncate (Depends-on): Add msvc-inval.
13907
13908 2011-09-25  Bruno Haible  <bruno@clisp.org>
13909
13910         New module 'fstat'.
13911         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
13912         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
13913         * lib/fchdir.c (rpl_fstat): Remove function.
13914         * m4/fstat.m4: New file.
13915         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
13916         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
13917         declared.
13918         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
13919         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
13920         * modules/fstat: New file.
13921         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
13922         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
13923         is set.
13924         * doc/posix-functions/fstat.texi: Mention the new module and the
13925         problem on MSVC.
13926         * NEWS: Mention the change.
13927         * modules/acl (Depends-on): Add fstat.
13928         * modules/chdir-safer (Depends-on): Likewise.
13929         * modules/chown (Depends-on): Likewise.
13930         * modules/copy-file (Depends-on): Likewise.
13931         * modules/fchdir (Depends-on): Likewise.
13932         * modules/fdopendir (Depends-on): Likewise.
13933         * modules/fopen (Depends-on): Likewise.
13934         * modules/fts (Depends-on): Likewise.
13935         * modules/getcwd (Depends-on): Likewise.
13936         * modules/isapipe (Depends-on): Likewise.
13937         * modules/linkat (Depends-on): Likewise.
13938         * modules/lseek (Depends-on): Likewise.
13939         * modules/mkdir-p (Depends-on): Likewise.
13940         * modules/open (Depends-on): Likewise.
13941         * modules/openat (Depends-on): Likewise.
13942         * modules/read-file (Depends-on): Likewise.
13943         * modules/renameat (Depends-on): Likewise.
13944         * modules/utimens (Depends-on): Likewise.
13945
13946 2011-09-25  Bruno Haible  <bruno@clisp.org>
13947
13948         linkat: Fix compilation on MSVC 9.
13949         * lib/linkat.c: Don't include <stdint.h>.
13950
13951 2011-09-25  Bruno Haible  <bruno@clisp.org>
13952
13953         fclose: Support for MSVC 9.
13954         * lib/fclose.c: Include msvc-inval.h.
13955         (fclose_nothrow): New function.
13956         (rpl_fclose): Use it.
13957         * modules/fclose (Depends-on): Add msvc-inval.
13958         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
13959
13960 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
13961
13962         dup2: minor simplifications
13963         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
13964         that it's a performance win.
13965         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
13966         ! defined __CYGWIN__)" to "ifdef F_GETFL".
13967
13968 2011-09-24  Jim Meyering  <meyering@redhat.com>
13969
13970         test-futimens: avoid a warning from gcc -Wshadow
13971         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
13972         to avoid a shadowing warning.
13973
13974 2011-09-24  Bruno Haible  <bruno@clisp.org>
13975
13976         fdopen: Support for MSVC 9.
13977         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
13978         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
13979         * lib/fdopen.c: Include msvc-inval.h.
13980         (fdopen_nothrow): New function.
13981         (rpl_fdopen): Use it.
13982         * modules/fdopen (Depends-on): Add msvc-inval.
13983         * modules/fclose-tests (Depends-on): Add fdopen.
13984         * modules/fflush-tests (Depends-on): Likewise.
13985         * modules/fgetc-tests (Depends-on): Likewise.
13986         * modules/fputc-tests (Depends-on): Likewise.
13987         * modules/fread-tests (Depends-on): Likewise.
13988         * modules/freopen-tests (Depends-on): Likewise.
13989         * modules/fseeko-tests (Depends-on): Likewise.
13990         * modules/ftello-tests (Depends-on): Likewise.
13991         * modules/fwrite-tests  (Depends-on): Likewise.
13992         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
13993
13994 2011-09-24  Bruno Haible  <bruno@clisp.org>
13995
13996         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
13997         * modules/fgetc-tests (Depends-on): Add unistd.
13998         * modules/fputc-tests (Depends-on): Likewise.
13999         * modules/fread-tests (Depends-on): Likewise.
14000         * modules/fwrite-tests (Depends-on): Likewise.
14001
14002 2011-09-24  Bruno Haible  <bruno@clisp.org>
14003
14004         dup: Simplify autoconf test.
14005         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
14006         on gl_MSVC_INVAL's result.
14007
14008 2011-09-24  Bruno Haible  <bruno@clisp.org>
14009
14010         Tests for function fwrite().
14011         * modules/fwrite-tests: New file.
14012         * tests/test-fwrite.c: New file.
14013         * modules/stdio-tests (Depends-on): Add fwrite-tests.
14014
14015         Tests for function fread().
14016         * modules/fread-tests: New file.
14017         * tests/test-fread.c: New file.
14018         * modules/stdio-tests (Depends-on): Add fread-tests.
14019
14020         Activate fputc tests.
14021         * modules/stdio-tests (Depends-on): Add fputc-tests.
14022
14023         Enhance fgetc, fputc tests.
14024         * tests/test-fgetc.c (main): Also test the stream's error indicator.
14025         * tests/test-fputc.c (main): Likewise.
14026
14027 2011-09-24  Bruno Haible  <bruno@clisp.org>
14028
14029         write: Support for MSVC 9.
14030         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
14031         is not 1.
14032         * lib/write.c (write_nothrow): New function.
14033         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
14034         not 1. Use write_nothrow.
14035         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
14036         invalid parameter handler.
14037         (gl_PREREQ_WRITE): New macro.
14038         * modules/write (Depends-on): Add msvc-inval.
14039         (configure.ac): Invoke gl_PREREQ_WRITE.
14040         * doc/posix-functions/write.texi: Mention the problem on MSVC.
14041
14042 2011-09-24  Bruno Haible  <bruno@clisp.org>
14043
14044         read: Fix last commit.
14045         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
14046
14047 2011-09-24  Bruno Haible  <bruno@clisp.org>
14048
14049         dup2: Fix last commit.
14050         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
14051         (rpl_dup2): Disable fcntl workaround on native Windows.
14052
14053         sigprocmask: Make code safer.
14054         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
14055         section that changes macro definitions for this compilation unit.
14056
14057 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
14058
14059         dup2: clarify by coalescing Windows-specific material
14060         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
14061         "msvc-nothrow.h"' to the Windows-specific section, so that the
14062         Emacs source need not contain these include files.
14063         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
14064         Windows-specific fixes into this function rather than just the
14065         nothrow fix, as this shortens and clarifies the code.  Always
14066         define as a function, as that's a bit cleaner than having it be
14067         sometimes a function and sometimes a macro.
14068         (rpl_dup2): Move the Windows-specific stuff out of here and into
14069         ms_windows_dup2.  Don't protect the Haiku-related fix with
14070         "#if !defined __linux__", as the same code also works around
14071         a Linux kernel bug, and it doesn't add any system calls on any
14072         platform.  Add comment about FreeBSD 6.1.
14073
14074         sigprocmask: move #include directive
14075         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
14076         Windows-specific section, so that the Emacs source need not
14077         contain msvc-inval.h.
14078
14079 2011-09-23  Bruno Haible  <bruno@clisp.org>
14080
14081         read: Support for MSVC 9.
14082         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
14083         is not 1.
14084         * lib/read.c (read_nothrow): New function.
14085         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
14086         read_nothrow.
14087         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
14088         invalid parameter handler.
14089         (gl_PREREQ_READ): New macro.
14090         * modules/read (Depends-on): Add msvc-inval.
14091         (configure.ac): Invoke gl_PREREQ_READ.
14092         * doc/posix-functions/read.texi: Mention the problem on MSVC.
14093
14094 2011-09-23  Bruno Haible  <bruno@clisp.org>
14095
14096         close: Support for MSVC 9.
14097         * lib/close.c: Include <errno.h>, msvc-inval.h.
14098         (close_nothrow): New function.
14099         (rpl_close): Use it.
14100         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
14101         invalid parameter handler.
14102         * modules/close (Depends-on): Add msvc-inval.
14103         * modules/dup2-tests (Depends-on): Add close.
14104         * modules/dup3-tests (Depends-on): Likewise.
14105         * modules/fcntl-tests (Depends-on): Likewise.
14106         * modules/spawn-pipe-tests (Depends-on): Likewise.
14107         * modules/unistd-safer-tests (Depends-on): Likewise.
14108         * doc/posix-functions/close.texi: Mention the problem on MSVC.
14109
14110 2011-09-23  Bruno Haible  <bruno@clisp.org>
14111
14112         New module 'dup'.
14113         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
14114         Allow replacement.
14115         * lib/dup.c: New file.
14116         * lib/fchdir.c (rpl_dup): Remove function.
14117         * m4/dup.m4: New file.
14118         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
14119         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
14120         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
14121         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
14122         * modules/dup: New file.
14123         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
14124         'dup' module is in use.
14125         * modules/fdopendir (Depends-on): Add dup.
14126         * modules/fdutimensat-tests (Depends-on): Likewise.
14127         * modules/fts (Depends-on): Likewise.
14128         * modules/futimens-tests (Depends-on): Likewise.
14129         * modules/posix_spawnp-tests (Depends-on): Likewise.
14130         * modules/unistd-safer-tests (Depends-on): Likewise.
14131         * modules/utimens-tests (Depends-on): Likewise.
14132         * doc/posix-functions/dup.texi: Mention the new module and the problem
14133         on MSVC.
14134
14135 2011-09-23  Bruno Haible  <bruno@clisp.org>
14136
14137         getdtablesize: Support for MSVC 9.
14138         * lib/getdtablesize.c: Include msvc-inval.h.
14139         (_setmaxstdio_nothrow): New function.
14140         (_setmaxstdio): Redefine it.
14141         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
14142         * modules/getdtablesize (Depends-on): Add msvc-inval.
14143         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
14144
14145 2011-09-23  Bruno Haible  <bruno@clisp.org>
14146
14147         signal-h: Rename from signal.
14148         * modules/signal-h: Renamed from modules/signal.
14149         * modules/pthread_sigmask (Depends-on): Update.
14150         * modules/raise (Depends-on): Likewise.
14151         * modules/sigaction (Depends-on): Likewise.
14152         * modules/sigpipe (Depends-on): Likewise.
14153         * modules/sigprocmask (Depends-on): Likewise.
14154         * modules/sys_select (Depends-on): Likewise.
14155         * modules/signal-h-tests: Renamed from modules/signal-tests.
14156         (Files, Depends-on, Makefile.am): Update.
14157         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
14158         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
14159         (Files, Makefile.am): Update.
14160         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
14161         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
14162         * modules/signal: New placeholder file.
14163         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
14164         * doc/posix-headers/signal.texi: Update.
14165         * NEWS: Mention the change.
14166
14167 2011-09-23  Bruno Haible  <bruno@clisp.org>
14168
14169         sigprocmask: Avoid crashes through signal() on MSVC 9.
14170         * lib/sigprocmask.c: Include msvc-inval.h.
14171         (signal_nothrow): New function.
14172         (signal): Redefine it.
14173         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
14174         * modules/sigprocmask (Depends-on): Add msvc-inval.
14175         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
14176
14177 2011-09-23  Bruno Haible  <bruno@clisp.org>
14178
14179         Tests for module 'raise'.
14180         * modules/raise-tests: New file.
14181         * tests/test-raise.c: New file.
14182
14183         raise: Support for MSVC.
14184         * lib/signal.in.h (raise): New declaration.
14185         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
14186         for native Windows platforms.
14187         * m4/raise.m4: New file.
14188         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
14189         HAVE_RAISE, REPLACE_RAISE.
14190         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
14191         REPLACE_RAISE.
14192         * modules/raise (Status, Notice): Remove fields.
14193         (Files): Add m4/raise.m4.
14194         (Depends-on): Add signal, msvc-inval.
14195         (configure.ac): Use the common idioms.
14196         (Maintainer): Add me.
14197         * tests/test-signal-c++.cc: Check the signature of raise.
14198         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
14199
14200 2011-09-23  Bruno Haible  <bruno@clisp.org>
14201
14202         pipe2: Fix compilation on pre-C99 compilers.
14203         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
14204
14205 2011-09-23  Bruno Haible  <bruno@clisp.org>
14206
14207         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
14208         * lib/msvc-nothrow.h: New file.
14209         * lib/msvc-nothrow.c: New file.
14210         * m4/msvc-nothrow.m4: New file.
14211         * modules/msvc-nothrow: New file.
14212         * lib/dup2.c: Include msvc-nothrow.h.
14213         (rpl_dup2): No need to protect _get_osfhandle call here.
14214         * lib/accept4.c: Include msvc-nothrow.h.
14215         * lib/error.c: Likewise.
14216         * lib/fcntl.c: Likewise.
14217         * lib/lseek.c: Likewise.
14218         * lib/nonblocking.c: Likewise.
14219         * lib/poll.c: Likewise.
14220         * lib/read.c: Likewise.
14221         * lib/select.c: Likewise.
14222         * lib/sockets.h: Likewise.
14223         * lib/sockets.c: Likewise.
14224         * lib/stdio-read.c: Likewise.
14225         * lib/stdio-write.c: Likewise.
14226         * lib/write.c: Likewise.
14227         * lib/w32sock.h: Likewise.
14228         * lib/w32spawn.h: Likewise.
14229         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
14230         * lib/fsync.c: Likewise.
14231         * lib/isapipe.c: Likewise.
14232         * modules/dup2 (Depends-on): Add msvc-nothrow.
14233         * modules/accept4 (Depends-on): Likewise.
14234         * modules/error (Depends-on): Likewise.
14235         * modules/fcntl (Depends-on): Likewise.
14236         * modules/lseek (Depends-on): Likewise.
14237         * modules/nonblocking (Depends-on): Likewise.
14238         * modules/poll (Depends-on): Likewise.
14239         * modules/read (Depends-on): Likewise.
14240         * modules/select (Depends-on): Likewise.
14241         * modules/sockets (Depends-on): Likewise.
14242         * modules/sigpipe (Depends-on): Likewise.
14243         * modules/write (Depends-on): Likewise.
14244         * modules/accept (Depends-on): Likewise.
14245         * modules/bind (Depends-on): Likewise.
14246         * modules/connect (Depends-on): Likewise.
14247         * modules/gethostname (Depends-on): Likewise.
14248         * modules/getpeername (Depends-on): Likewise.
14249         * modules/getsockname (Depends-on): Likewise.
14250         * modules/getsockopt (Depends-on): Likewise.
14251         * modules/ioctl (Depends-on): Likewise.
14252         * modules/listen (Depends-on): Likewise.
14253         * modules/recv (Depends-on): Likewise.
14254         * modules/recvfrom (Depends-on): Likewise.
14255         * modules/send (Depends-on): Likewise.
14256         * modules/sendto (Depends-on): Likewise.
14257         * modules/setsockopt (Depends-on): Likewise.
14258         * modules/shutdown (Depends-on): Likewise.
14259         * modules/socket (Depends-on): Likewise.
14260         * modules/execute (Depends-on): Likewise.
14261         * modules/spawn-pipe (Depends-on): Likewise.
14262         * modules/flock (Depends-on): Likewise.
14263         * modules/fsync (Depends-on): Likewise.
14264         * modules/isapipe (Depends-on): Likewise.
14265         * tests/test-cloexec.c: Include msvc-nothrow.h.
14266         * tests/test-dup-safer.c: Likewise.
14267         * tests/test-dup2.c: Likewise.
14268         * tests/test-dup3.c: Likewise.
14269         * tests/test-fcntl.c: Likewise.
14270         * tests/test-pipe.c: Likewise.
14271         * tests/test-pipe2.c: Likewise.
14272         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
14273         * modules/unistd-safer-tests (Depends-on): Likewise.
14274         * modules/dup2-tests (Depends-on): Likewise.
14275         * modules/dup3-tests (Depends-on): Likewise.
14276         * modules/fcntl-tests (Depends-on): Likewise.
14277         * modules/pipe-posix-tests (Depends-on): Likewise.
14278         * modules/pipe2-tests (Depends-on): Likewise.
14279
14280 2011-09-23  Bruno Haible  <bruno@clisp.org>
14281
14282         dup2: Make code more maintainable.
14283         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
14284         (rpl_dup2): Use it.
14285         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
14286         * modules/dup2 (configure.ac): Invoke it.
14287         Reported by Paul Eggert.
14288
14289 2011-09-23  Bruno Haible  <bruno@clisp.org>
14290
14291         msvc-inval: Fix compilation error.
14292         * lib/msvc-inval.h: Include <excpt.h>.
14293
14294 2011-09-23  Bruno Haible  <bruno@clisp.org>
14295
14296         mkdir: Tweak for MSVC 9.
14297         * lib/sys_stat.in.h: Update comments.
14298         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
14299
14300         Tests for module 'chdir'.
14301         * modules/chdir-tests: New file.
14302         * tests/test-chdir.c: New file.
14303
14304         New module 'chdir'.
14305         * modules/chdir: New file.
14306         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
14307         (chdir): New declaration.
14308         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
14309         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
14310         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
14311         * tests/test-unistd-c++.cc: Check signature of chdir.
14312         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
14313         * modules/chdir-long (Depends-on): Add chdir.
14314         * modules/fchdir (Depends-on): Likewise.
14315         * modules/rename (Depends-on): Likewise.
14316         * modules/savewd (Depends-on): Likewise.
14317
14318         rmdir: Support for mingw, MSVC 9.
14319         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
14320         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
14321
14322         getcwd: Tweak for MSVC 9.
14323         * lib/unistd.in.h: Update comments.
14324         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
14325
14326 2011-09-22  Bruno Haible  <bruno@clisp.org>
14327
14328         strerror_r-posix: Avoid a link error on MSVC.
14329         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
14330         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
14331
14332 2011-09-22  Bruno Haible  <bruno@clisp.org>
14333
14334         select: Avoid link errors on MSVC.
14335         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
14336         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
14337         * modules/pselect (Link): Likewise.
14338         * NEWS: Mention the change.
14339         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
14340         test-select-stdin against $(LIB_SELECT).
14341         * modules/pselect-tests (Makefile.am): Link test-pselect against
14342         $(LIB_SELECT).
14343
14344 2011-09-22  Bruno Haible  <bruno@clisp.org>
14345
14346         select: Avoid compilation error on MSVC.
14347         * lib/select.c: Don't include <stdbool.h>.
14348
14349 2011-09-21  Bruno Haible  <bruno@clisp.org>
14350
14351         Consolidate all uses of PATH_MAX in *.m4 files.
14352         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
14353         macros.
14354         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
14355         and gl_PATHMAX_SNIPPET.
14356         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
14357         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
14358         * modules/chdir-long (Files): Add m4/pathmax.m4.
14359         * modules/getcwd (Files): Likewise.
14360
14361 2011-09-21  Bruno Haible  <bruno@clisp.org>
14362
14363         ftruncate: Un-deprecate, concentrate on Win32 support.
14364         * modules/ftruncate (Status, Notice): Remove sections.
14365         (Depends-on): Add largefile.
14366         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
14367         non-mingw platforms.
14368         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
14369         include <io.h>.
14370         * modules/perror-tests (Depends-on): Add ftruncate.
14371         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
14372         'ftruncate' module.
14373
14374 2011-09-21  Bruno Haible  <bruno@clisp.org>
14375
14376         Add dependencies to new dirent related modules.
14377         * modules/opendir (Depends-on): Add closedir.
14378         * modules/getcwd (Depends-on): Add opendir, closedir.
14379         * modules/dirent-safer-tests (Depends-on): Likewise.
14380         * modules/fdopendir-tests (Depends-on): Likewise.
14381         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
14382         * modules/renameat-tests (Depends-on): Likewise.
14383
14384 2011-09-21  Bruno Haible  <bruno@clisp.org>
14385
14386         opendir: Avoid compilation error on mingw.
14387         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
14388         * modules/opendir (Depends-on): Add unistd.
14389
14390 2011-09-21  Bruno Haible  <bruno@clisp.org>
14391
14392         ftruncate tests: Avoid a test failure on mingw.
14393         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
14394
14395 2011-09-21  Bruno Haible  <bruno@clisp.org>
14396
14397         select tests: Avoid test failures on OSF/1 5.1 and mingw.
14398         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
14399         native Windows.
14400
14401 2011-09-21  Bruno Haible  <bruno@clisp.org>
14402
14403         New module 'fdopen'.
14404         * lib/stdio.in.h (fdopen): New declaration.
14405         * lib/fdopen.c: New file.
14406         * m4/fdopen.m4: New file.
14407         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
14408         REPLACE_FDOPEN.
14409         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
14410         REPLACE_FDOPEN.
14411         * modules/fdopen: New file.
14412         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
14413         * tests/test-stdio-c++.cc: Check signature of fdopen.
14414         * doc/posix-functions/fdopen.texi: Mention the new module.
14415
14416 2011-09-21  Bruno Haible  <bruno@clisp.org>
14417
14418         unlockpt tests: Avoid test failure on NetBSD 5.1.
14419         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
14420         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
14421
14422 2011-09-21  Bruno Haible  <bruno@clisp.org>
14423
14424         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
14425         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
14426         * tests/test-getlogin_r.c (main): Likewise.
14427
14428 2011-09-20  Bruno Haible  <bruno@clisp.org>
14429
14430         time tests: Don't require pid_t.
14431         * doc/posix-headers/time.texi: Revert last change.
14432         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
14433         * tests/test-time.c: Comment out the check for pid_t.
14434
14435 2011-09-20  Bruno Haible  <bruno@clisp.org>
14436
14437         fsync tests: Avoid a test failure on mingw.
14438         * tests/test-fsync.c (main): Allow a failure with EIO.
14439
14440 2011-09-20  Bruno Haible  <bruno@clisp.org>
14441
14442         euidaccess: Update comments.
14443         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
14444
14445 2011-09-20  Bruno Haible  <bruno@clisp.org>
14446
14447         Ensure EBADF returns for socket functions on mingw.
14448         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
14449         descriptor is invalid.
14450         * lib/bind.c (rpl_bind): Likewise.
14451         * lib/connect.c (rpl_connect): Likewise.
14452         * lib/getpeername.c (rpl_getpeername): Likewise.
14453         * lib/getsockname.c (rpl_getsockname): Likewise.
14454         * lib/getsockopt.c (rpl_getsockopt): Likewise.
14455         * lib/listen.c (rpl_listen): Likewise.
14456         * lib/recv.c (rpl_recv): Likewise.
14457         * lib/recvfrom.c (rpl_recvfrom): Likewise.
14458         * lib/send.c (rpl_send): Likewise.
14459         * lib/sendto.c (rpl_sendto): Likewise.
14460         * lib/setsockopt.c (rpl_setsockopt): Likewise.
14461         * lib/shutdown.c (rpl_shutdown): Likewise.
14462
14463 2011-09-20  Bruno Haible  <bruno@clisp.org>
14464
14465         select tests: EBADF tests.
14466         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
14467         test_bad_fd): New functions.
14468         (test_function): Invoke also test_bad_fd.
14469
14470 2011-09-20  Bruno Haible  <bruno@clisp.org>
14471
14472         Tests for module 'posix_spawn_file_actions_addopen.
14473         * modules/posix_spawn_file_actions_addopen-tests: New file.
14474         * tests/test-posix_spawn_file_actions_addopen.c: New file.
14475
14476         Tests for module 'posix_spawn_file_actions_adddup2'.
14477         * modules/posix_spawn_file_actions_adddup2-tests: New file.
14478         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
14479
14480         Tests for module 'posix_spawn_file_actions_addclose'.
14481         * modules/posix_spawn_file_actions_addclose-tests: New file.
14482         * tests/test-posix_spawn_file_actions_addclose.c: New file.
14483
14484 2011-09-20  Bruno Haible  <bruno@clisp.org>
14485
14486         Tests for module 'unlockpt'.
14487         * modules/unlockpt-tests: New file.
14488         * tests/test-unlockpt.c: New file.
14489         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
14490
14491         Tests for module 'grantpt'.
14492         * modules/grantpt-tests: New file.
14493         * tests/test-grantpt.c: New file.
14494         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
14495
14496 2011-09-20  Bruno Haible  <bruno@clisp.org>
14497
14498         freopen tests: EBADF tests.
14499         * tests/test-freopen.c: Include errno.h, unistd.h.
14500         (main): Add tests for EBADF, commented out for the moment.
14501
14502         fclose tests: EBADF tests.
14503         * tests/test-fclose.c (main): Add tests for EBADF.
14504
14505         fflush tests: EBADF tests.
14506         * tests/test-fflush.c: Include errno.h, macros.h.
14507         (main): Add tests for EBADF.
14508
14509         ftello tests: EBADF tests.
14510         * tests/test-ftello4.sh: New file.
14511         * tests/test-ftello4.c: New file.
14512         * modules/ftello-tests (Files): Add them.
14513         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
14514
14515         fseeko tests: EBADF tests.
14516         * tests/test-fseeko4.sh: New file.
14517         * tests/test-fseeko4.c: New file.
14518         * modules/fseeko-tests (Files): Add them.
14519         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
14520
14521         Tests for function fputc().
14522         * modules/fputc-tests: New file.
14523         * tests/test-fputc.c: New file.
14524         * modules/stdio-tests (Depends-on): Add fputc-tests.
14525
14526         Tests for function fgetc().
14527         * modules/fgetc-tests: New file.
14528         * tests/test-fgetc.c: New file.
14529         * modules/stdio-tests (Depends-on): Add fgetc-tests.
14530
14531         Tests for function fdopen().
14532         * modules/fdopen-tests: New file.
14533         * tests/test-fdopen.c: New file.
14534         * modules/stdio-tests (Depends-on): Add fdopen-tests.
14535
14536         Tests for module 'vdprintf'.
14537         * modules/vdprintf-tests: New file.
14538         * tests/test-vdprintf.c: New file.
14539
14540         Tests for module 'dprintf'.
14541         * modules/dprintf-tests: New file.
14542         * tests/test-dprintf.c: New file.
14543
14544 2011-09-20  Bruno Haible  <bruno@clisp.org>
14545
14546         Tests for module 'ioctl'.
14547         * modules/ioctl-tests: New file.
14548         * tests/test-ioctl.c: New file.
14549
14550 2011-09-20  Bruno Haible  <bruno@clisp.org>
14551
14552         fcntl tests: EBADF tests.
14553         * tests/test-fcntl.c (main): Add more tests for EBADF.
14554
14555 2011-09-20  Bruno Haible  <bruno@clisp.org>
14556
14557         utimensat tests: EBADF tests.
14558         * tests/test-utimensat.c (main): Add tests for EBADF.
14559
14560         renameat tests: EBADF tests.
14561         * tests/test-renameat.c (main): Add tests for EBADF.
14562
14563         mkfifoat tests: EBADF tests.
14564         * tests/test-mkfifoat.c (main): Add tests for EBADF.
14565
14566         readlinkat tests: EBADF tests.
14567         * tests/test-readlinkat.c (main): Add tests for EBADF.
14568
14569         symlinkat tests: EBADF tests.
14570         * tests/test-symlinkat.c (main): Add tests for EBADF.
14571
14572         linkat tests: EBADF tests.
14573         * tests/test-linkat.c (main): Add tests for EBADF.
14574
14575         Tests for module 'faccessat'.
14576         * modules/faccessat-tests: New file.
14577         * tests/test-faccessat.c: New file.
14578
14579         fdopendir tests: EBADF tests.
14580         * tests/test-fdopendir.c (main): Add more tests for EBADF.
14581
14582         openat tests: EBADF tests.
14583         * tests/test-fchownat.c (main): Add tests for EBADF.
14584         * tests/test-fstatat.c (main): Likewise.
14585         * tests/test-mkdirat.c (main): Likewise.
14586         * tests/test-openat.c (main): Likewise.
14587         * tests/test-unlinkat.c (main): Likewise.
14588         * tests/test-fchmodat.c: New file.
14589         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
14590         (Makefile.am): Also run 'test-fchmodat'.
14591
14592 2011-09-20  Bruno Haible  <bruno@clisp.org>
14593
14594         utimens, futimens, fdutimensat tests: EBADF tests.
14595         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
14596
14597         Tests for function fstat().
14598         * modules/fstat-tests: New file.
14599         * tests/test-fstat.c: New file.
14600         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
14601
14602 2011-09-20  Bruno Haible  <bruno@clisp.org>
14603
14604         test-ttyname_r tests: EBADF tests.
14605         * tests/test-ttyname_r.c (main): Add tests for EBADF.
14606
14607         Tests for module 'isatty'.
14608         * modules/isatty-tests: New file.
14609         * tests/test-isatty.c: New file.
14610
14611         Tests for module 'write'.
14612         * modules/write-tests: New file.
14613         * tests/test-write.c: New file.
14614
14615         Tests for module 'read'.
14616         * modules/read-tests: New file.
14617         * tests/test-read.c: New file.
14618
14619         pwrite tests: EBADF tests.
14620         * tests/test-pwrite.c (main): Add tests for EBADF.
14621
14622         pread tests: EBADF tests.
14623         * tests/test-pread.c (main): Add tests for EBADF.
14624
14625         lseek tests: EBADF tests.
14626         * tests/test-lseek.c (main): Add more tests for EBADF.
14627
14628         Tests for module 'ftruncate'.
14629         * modules/ftruncate-tests: New file.
14630         * tests/test-ftruncate.sh: New file.
14631         * tests/test-ftruncate.c: New file.
14632
14633         fsync tests: EBADF tests.
14634         * tests/test-fsync.c (main): Add more tests for EBADF.
14635
14636         fdatasync tests: EBADF tests.
14637         * tests/test-fdatasync.c (main): Add more tests for EBADF.
14638
14639         Tests for module 'fchown'.
14640         * modules/fchown-tests: New file.
14641         * tests/test-fchown.c: New file.
14642
14643         Tests for module 'fchmod'.
14644         * modules/fchmod-tests: New file.
14645         * tests/test-fchmod.c: New file.
14646
14647         fchdir tests: EBADF tests.
14648         * tests/test-fchdir.c (main): Add more tests for EBADF.
14649
14650         dup2 tests: EBADF tests.
14651         * tests/test-dup2.c (main): Add more tests for EBADF.
14652
14653         Tests for module 'dup'.
14654         * modules/dup-tests: New file.
14655         * tests/test-dup.c: New file.
14656
14657         Tests for module 'close'.
14658         * modules/close-tests: New file.
14659         * tests/test-close.c: New file.
14660
14661 2011-09-20  Bruno Haible  <bruno@clisp.org>
14662
14663         Tests for module 'shutdown'.
14664         * modules/shutdown-tests: New file.
14665         * tests/test-shutdown.c: New file.
14666
14667         Tests for module 'setsockopt'.
14668         * modules/setsockopt-tests: New file.
14669         * tests/test-setsockopt.c: New file.
14670
14671         Tests for module 'sendto'.
14672         * modules/sendto-tests: New file.
14673         * tests/test-sendto.c: New file.
14674
14675         Tests for module 'send'.
14676         * modules/send-tests: New file.
14677         * tests/test-send.c: New file.
14678
14679         Tests for module 'recvfrom'.
14680         * modules/recvfrom-tests: New file.
14681         * tests/test-recvfrom.c: New file.
14682
14683         Tests for module 'recv'.
14684         * modules/recv-tests: New file.
14685         * tests/test-recv.c: New file.
14686
14687         Tests for module 'listen'.
14688         * modules/listen-tests: New file.
14689         * tests/test-listen.c: New file.
14690
14691         Tests for module 'getsockopt'.
14692         * modules/getsockopt-tests: New file.
14693         * tests/test-getsockopt.c: New file.
14694
14695         Tests for module 'getsockname'.
14696         * modules/getsockname-tests: New file.
14697         * tests/test-getsockname.c: New file.
14698
14699         Tests for module 'getpeername'.
14700         * modules/getpeername-tests: New file.
14701         * tests/test-getpeername.c: New file.
14702
14703         Tests for module 'connect'.
14704         * modules/connect-tests: New file.
14705         * tests/test-connect.c: New file.
14706
14707         Tests for module 'bind'.
14708         * modules/bind-tests: New file.
14709         * tests/test-bind.c: New file.
14710
14711         accept4 tests: Fix for native Windows.
14712         * tests/test-accept4.c: Include sockets.h.
14713         (main): Invoke gl_sockets_startup.
14714         * modules/accept4-tests (Depends-on): Add sockets.
14715
14716         accept tests: Fix for native Windows.
14717         * tests/test-accept.c: Include sockets.h.
14718         (main): Invoke gl_sockets_startup.
14719         * modules/accept-tests (Depends-on): Add sockets.
14720
14721 2011-09-19  Bruno Haible  <bruno@clisp.org>
14722
14723         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
14724         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
14725         do...while(0).
14726         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
14727         Suggested by Paul Eggert.
14728
14729 2011-09-19  Bruno Haible  <bruno@clisp.org>
14730
14731         sched: Ensure pid_t is defined.
14732         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
14733         not define pid_t.
14734         * lib/sched.in.h: Include <sys/types.h>.
14735         * doc/posix-headers/sched.texi: Mention the pid_t problem.
14736         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14737
14738 2011-09-19  Bruno Haible  <bruno@clisp.org>
14739
14740         msvc-inval: Ensure the entire expansion is a single statement.
14741         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
14742         of braces.
14743
14744 2011-09-19  Jim Meyering  <meyering@redhat.com>
14745
14746         tests: use printf, not echo in init.sh's warn_ function
14747         * tests/init.sh (warn_): Use printf, not echo.  The latter would
14748         misbehave when given strings containing a backslash or starting
14749         with e.g., -n.  James Youngman suggested setting IFS.
14750
14751 2011-09-19  Eric Blake  <eblake@redhat.com>
14752
14753         futimens: enhance test
14754         * tests/test-futimens.h (test_futimens): Also check for EBADF on
14755         closed non-negative fd.
14756
14757         date: accept 'hence' as opposite of 'ago'
14758         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
14759         * tests/test-parse-datetime.c (main): Enhance test.
14760         Suggested by Jesse Wilson.
14761
14762 2011-09-19  Jim Meyering  <meyering@redhat.com>
14763
14764         getcwd: don't fail in a deep directory on a system without openat
14765         Before this change, getcwd would fail when called from a directory
14766         of depth PATH_MAX / 3 or greater.  That was due to the fact that
14767         the non-openat implementation used "..", "../..", "../../..", etc.
14768         to access ancestor directories.  With too many, that string would
14769         be longer than PATH_MAX.
14770         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
14771         using gnulib's openat replacement.
14772         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
14773         we're using the replacement function.
14774
14775 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
14776
14777         maint.mk: avoid warnings from perl about missing files
14778         * top/maint.mk (def_sym_regex): Ignore files listed in
14779         $(gl_other_headers_) that do not exist, say because a project
14780         does not use a corresponding module.
14781
14782 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
14783
14784         stat: use pathmax.h only if needed
14785         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
14786         This is better for Emacs, which does not have a mingw port and
14787         therefore can avoid the pathmax module.
14788
14789         utimens: remove dependency on dup2
14790         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
14791         to work around the Linux kernel bug.
14792         * modules/utimens (Depends-on): Remove dup2.
14793
14794 2011-09-18  Bruno Haible  <bruno@clisp.org>
14795
14796         inet_ntop, inet_pton: Look for it also in libresolv.
14797         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
14798         libnsl, search for it in libresolv.
14799         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
14800         Needed on Solaris 7.
14801
14802 2011-09-18  Bruno Haible  <bruno@clisp.org>
14803
14804         accept, accept4 tests: Avoid link error on Solaris.
14805         * modules/accept-tests (Makefile.am): Link test-accept against
14806         $(LIBSOCKET).
14807         * modules/accept4-tests (Makefile.am): Link test-accept4 against
14808         $(LIBSOCKET).
14809
14810         accept4: Avoid link error on Solaris.
14811         * modules/accept4 (Link): New section.
14812
14813         socket functions: Avoid link errors on Solaris.
14814         * modules/accept (Depends-on): Add socketlib.
14815         (Link): New section.
14816         * modules/bind (Depends-on): Add socketlib.
14817         (Link): New section.
14818         * modules/connect (Depends-on): Add socketlib.
14819         (Link): New section.
14820         * modules/getpeername (Depends-on): Add socketlib.
14821         (Link): New section.
14822         * modules/getsockname (Depends-on): Add socketlib.
14823         (Link): New section.
14824         * modules/getsockopt (Depends-on): Add socketlib.
14825         (Link): New section.
14826         * modules/listen (Depends-on): Add socketlib.
14827         (Link): New section.
14828         * modules/recv (Depends-on): Add socketlib.
14829         (Link): New section.
14830         * modules/recvfrom (Depends-on): Add socketlib.
14831         (Link): New section.
14832         * modules/send (Depends-on): Add socketlib.
14833         (Link): New section.
14834         * modules/sendto (Depends-on): Add socketlib.
14835         (Link): New section.
14836         * modules/setsockopt (Depends-on): Add socketlib.
14837         (Link): New section.
14838         * modules/shutdown (Depends-on): Add socketlib.
14839         (Link): New section.
14840         * modules/socket (Depends-on): Add socketlib.
14841         (Link): New section.
14842
14843 2011-09-18  Bruno Haible  <bruno@clisp.org>
14844
14845         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
14846         * tests/test-ptsname.c (main): Terminate the test if it takes longer
14847         than 5 seconds.
14848         * modules/ptsname-tests (configure.ac): Test for alarm.
14849
14850 2011-09-18  Bruno Haible  <bruno@clisp.org>
14851
14852         posix_spawn_file_actions_add*: Fix module dependencies.
14853         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
14854         posix_spawn_file_actions_init.
14855         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
14856         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
14857
14858 2011-09-18  Bruno Haible  <bruno@clisp.org>
14859
14860         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
14861         * tests/test-rename.h (test_rename): Allow error code EEXIST.
14862         * tests/test-renameat.c (main): Likewise.
14863
14864 2011-09-18  Bruno Haible  <bruno@clisp.org>
14865
14866         Tests for module 'accept4'.
14867         * modules/accept4-tests: New file.
14868         * tests/test-accept4.c: New file.
14869
14870 2011-09-18  Bruno Haible  <bruno@clisp.org>
14871
14872         Tests for module 'accept'.
14873         * modules/accept-tests: New file.
14874         * tests/test-accept.c: New file.
14875
14876 2011-09-18  Bruno Haible  <bruno@clisp.org>
14877
14878         dup2: Support for MSVC.
14879         * lib/dup2.c: Include msvc-inval.h.
14880         (rpl_dup2): Handle invalid parameter notifications during dup2 and
14881         _get_osfhandle calls.
14882         * modules/dup2 (Depends-on): Add msvc-inval.
14883         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
14884
14885         New module 'msvc-inval'.
14886         * lib/msvc-inval.h: New file.
14887         * lib/msvc-inval.c: New file.
14888         * m4/msvc-inval.m4: New file.
14889         * modules/msvc-inval: New file.
14890
14891 2011-09-17  Bruno Haible  <bruno@clisp.org>
14892
14893         Tests for module 'pclose'.
14894         * modules/pclose-tests: New file.
14895
14896         New module 'pclose'.
14897         * lib/stdio.in.h (pclose): New declaration.
14898         * lib/pclose.c: New file.
14899         * m4/pclose.m4: New file.
14900         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
14901         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
14902         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
14903         * modules/pclose: New file.
14904         * modules/popen-tests (Depends-on): Add pclose.
14905         * modules/popen-safer-tests (Depends-on): Likewise.
14906         * doc/posix-functions/pclose.texi: Mention the new module.
14907
14908 2011-09-17  Bruno Haible  <bruno@clisp.org>
14909
14910         popen: Support for MSVC.
14911         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
14912         * lib/popen.c (popen): Provide alternate definition for native Windows.
14913         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
14914         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
14915         * modules/popen (Depends-on, configure.ac): Update condition.
14916         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
14917         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
14918         fixed.
14919
14920 2011-09-17  Bruno Haible  <bruno@clisp.org>
14921
14922         isnanl, isnand, isnanf: Work around MSVC bug.
14923         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
14924
14925 2011-09-17  Bruno Haible  <bruno@clisp.org>
14926
14927         sys_socket tests: Fix recent mistake.
14928         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
14929
14930 2011-09-17  Bruno Haible  <bruno@clisp.org>
14931
14932         putenv: Support for MSVC.
14933         * modules/putenv (Depends-on): Add environ.
14934         * lib/putenv.c (environ): Disable declaration.
14935         * lib/unistd.in.h: Update comment.
14936
14937 2011-09-17  Bruno Haible  <bruno@clisp.org>
14938
14939         math: Avoid macro redefinition warnings on MSVC.
14940         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
14941         Undefine before redefining.
14942
14943 2011-09-17  Bruno Haible  <bruno@clisp.org>
14944
14945         doc: Mention functions which are declared as macros.
14946         * doc/posix-functions/*[fl].texi: Mention that some functions are
14947         defined as macros with arguments only.
14948
14949 2011-09-17  Bruno Haible  <bruno@clisp.org>
14950
14951         Add dependencies to new dirent related modules.
14952         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
14953         * modules/fts (Depends-on): Likewise.
14954         * modules/glob (Depends-on): Likewise.
14955         * modules/savedir (Depends-on): Likewise.
14956         * modules/scandir (Depends-on): Likewise.
14957         * modules/dirent-safer (Depends-on): Add opendir, closedir.
14958         * modules/fdopendir (Depends-on): Add opendir.
14959
14960 2011-09-17  Bruno Haible  <bruno@clisp.org>
14961
14962         inet_pton: Support for MSVC on Windows Vista or newer.
14963         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
14964         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
14965         HAVE_DECL_INET_PTON is defined.
14966         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
14967         On platforms with <winsock2.h>, test whether inet_pton is declared in
14968         <ws2tcpip.h>. If so, arrange to replace it.
14969         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
14970         REPLACE_INET_PTON.
14971         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
14972         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
14973         (Depends-on, configure.ac): Update condition.
14974         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
14975
14976 2011-09-17  Bruno Haible  <bruno@clisp.org>
14977
14978         inet_ntop: Support for MSVC on Windows Vista or newer.
14979         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
14980         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
14981         HAVE_DECL_INET_NTOP is defined.
14982         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
14983         On platforms with <winsock2.h>, test whether inet_ntop is declared in
14984         <ws2tcpip.h>. If so, arrange to replace it.
14985         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
14986         REPLACE_INET_NTOP.
14987         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
14988         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
14989         (Depends-on, configure.ac): Update condition.
14990         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
14991
14992 2011-09-16  Eric Blake  <eblake@redhat.com>
14993
14994         test-fsync: yet another enhancement
14995         * tests/test-fsync.c (main): Also test behavior on read-only text
14996         file.
14997
14998 2011-09-16  Bruno Haible  <bruno@clisp.org>
14999
15000         Enhance fsync, fdatasync tests.
15001         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
15002         * tests/test-fdatasync.c (main): Likewise.
15003
15004 2011-09-16  Bruno Haible  <bruno@clisp.org>
15005
15006         Support for MSVC compiler: Ensure mode_t gets defined.
15007         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
15008         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
15009         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
15010         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
15011         * tests/test-fcntl-h.c: Check that mode_t is defined.
15012         * tests/test-sys_stat.c: Likewise.
15013         * tests/test-sys_types.c: Likewise.
15014         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
15015         * doc/posix-headers/sys_stat.texi: Likewise.
15016         * doc/posix-headers/sys_types.texi: Likewise.
15017
15018 2011-09-16  Bruno Haible  <bruno@clisp.org>
15019
15020         sys_stat: Support for MSVC.
15021         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
15022         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
15023         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
15024         MSVC.
15025
15026 2011-09-16  Bruno Haible  <bruno@clisp.org>
15027
15028         Support for MSVC compiler: Ensure off_t gets defined.
15029         * lib/unistd.in.h: Include <sys/types.h>.
15030         * tests/test-fcntl-h.c: Check that off_t is defined.
15031         * tests/test-sys_stat.c: Likewise.
15032         * tests/test-sys_types.c: Likewise.
15033
15034 2011-09-16  Eric Blake  <eblake@redhat.com>
15035
15036         fdatasync: port to Solaris
15037         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
15038         * modules/fdatasync (Link): Document it.
15039         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
15040
15041         fdatasync: port to MacOS X 10.7
15042         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
15043         declared.
15044         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
15045         * modules/unistd (Makefile.am): Substitute it.
15046         * lib/unistd.in.h (fdatasync): Declare on MacOS.
15047         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
15048
15049         fdatasync: minor improvements
15050         * modules/fdatasync (Depends-on): Add condition for fsync.
15051         * lib/fdatasync.c (fdatasync): Add comment.
15052         * tests/test-unistd-c++.cc: Test fdatasync.
15053
15054         unistd: update refs to newer POSIX
15055         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
15056         Suggested by Bruno Haible.
15057
15058         fdatasync: new module
15059         * modules/fsync (Description): Document difference to fdatasync.
15060         * modules/fdatasync: New module.
15061         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
15062         * lib/fdatasync.c (fdatasync): Likewise.
15063         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
15064         defaults.
15065         * modules/unistd (Makefile.am): Set witnesses.
15066         * lib/unistd.in.h (fdatasync): Declare.
15067         * MODULES.html.sh: Document it.
15068         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
15069         * modules/fdatasync-tests: New test.
15070         * tests/test-fdatasync.c: Likewise.
15071
15072 2011-09-16  Eric Blake  <eblake@redhat.com>
15073
15074         test-fsync: enhance tests
15075         * modules/fsync-tests (Depends-on): Add errno, for mingw.
15076         * tests/test-fsync.c (main): Enhance test.
15077
15078 2011-09-15  Bruno Haible  <bruno@clisp.org>
15079
15080         Support for MSVC compiler: Ensure ssize_t gets defined.
15081         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
15082         * doc/posix-headers/stdio.texi: Likewise.
15083         * modules/stdio (Depends-on): Add ssize_t.
15084         * modules/sys_socket (Depends-on): Likewise.
15085         * modules/sys_types (Depends-on): Likewise.
15086         * modules/sys_uio (Depends-on): Likewise.
15087         * modules/unistd (Depends-on): Likewise.
15088         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
15089         * tests/test-sys_types.c: Check that ssize_t is defined.
15090
15091 2011-09-14  Bruno Haible  <bruno@clisp.org>
15092
15093         Avoid using #, the m4 comment starter character, near brackets.
15094         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
15095         delimiter character in sed expressions.
15096         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
15097         Suggested by Eric Blake.
15098
15099         Properly quote AC_CHECK_DECLS' 4th argument.
15100         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
15101         argument.
15102         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
15103         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
15104         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
15105         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
15106         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
15107         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
15108         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
15109         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
15110         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
15111         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
15112         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
15113         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
15114         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
15115         * m4/isinf.m4 (gl_ISINF): Likewise.
15116         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
15117         * m4/readutmp.m4 (gl_READUTMP): Likewise.
15118         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
15119         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
15120         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
15121         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
15122         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
15123         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
15124         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
15125         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
15126         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
15127         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15128         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
15129         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
15130         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
15131         Reported by Eric Blake.
15132
15133         Properly quote AC_CHECK_DECL's 4th argument.
15134         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
15135         argument.
15136         * m4/argp.m4 (gl_ARGP): Likewise.
15137         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
15138         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
15139         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
15140         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
15141         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
15142         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
15143         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
15144         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
15145         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
15146         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
15147         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
15148         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
15149         Reported by Eric Blake.
15150
15151 2011-09-14  Eric Blake  <eblake@redhat.com>
15152
15153         opendir: avoid compile warning
15154         * lib/opendir.c (includes): Always include errno.h.
15155         Reported by Tatsuro MATSUOKA.
15156
15157 2011-09-14  Jim Meyering  <meyering@redhat.com>
15158
15159         maint.mk: sc_tight_scope: propagate failure from sub-make
15160         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
15161         Reported by Martin von Gagern.
15162
15163 2011-09-13  Bruno Haible  <bruno@clisp.org>
15164
15165         tempname: Support for MSVC.
15166         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
15167         MSVC.
15168         * modules/tempname (Depends-on): Add fcntl-h.
15169
15170 2011-09-13  Bruno Haible  <bruno@clisp.org>
15171
15172         sys_time: Support for MSVC.
15173         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
15174         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
15175         include <winsock2.h>.
15176         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
15177         function declarations that collide with POSIX.
15178         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
15179         (Makefile.am): Substitute HAVE_WINSOCK2_H.
15180
15181 2011-09-13  Bruno Haible  <bruno@clisp.org>
15182
15183         stat: Support for MSVC.
15184         * lib/stat.c: Include pathmax.h.
15185         * modules/stat (Depends-on): Add pathmax.
15186
15187         pathmax: Support for native Windows.
15188         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
15189
15190 2011-09-12  Bruno Haible  <bruno@clisp.org>
15191
15192         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
15193         * lib/dirent.in.h (struct dirent): New type.
15194         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
15195         DT_WHT): New macros.
15196         (DIR): New type.
15197         (opendir, closedir): Declare only if the module 'opendir' is enabled.
15198         (readdir, rewinddir): New declarations.
15199         * lib/dirent-private.h: New file.
15200         * lib/opendir.c: New file.
15201         * lib/readdir.c: New file.
15202         * lib/rewinddir.c: New file.
15203         * lib/closedir.c: New file.
15204         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
15205         * m4/opendir.m4: New file.
15206         * m4/readdir.m4: New file.
15207         * m4/rewinddir.m4: New file.
15208         * m4/closedir.m4: New file.
15209         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
15210         REPLACE_CLOSEDIR here.
15211         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
15212         readdir, rewinddir are declared.
15213         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
15214         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
15215         HAVE_REWINDDIR, HAVE_CLOSEDIR.
15216         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
15217         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
15218         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
15219         * modules/opendir: New file.
15220         * modules/readdir: New file.
15221         * modules/rewinddir: New file.
15222         * modules/closedir: New file.
15223         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
15224         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
15225         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
15226         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
15227         * NEWS: Mention the 'fchdir' change.
15228
15229 2011-09-11  Bruno Haible  <bruno@clisp.org>
15230
15231         asm-underscore.m4: Support for MSVC.
15232         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
15233         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
15234
15235 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
15236
15237         Doc about crypt functions.
15238         * doc/posix-functions/crypt.texi: Expand range of glibc versions
15239         needing for _GNU_SOURCE to get crypt.
15240         * doc/posix-functions/encrypt.texi: Likewise.
15241         * doc/posix-functions/setkey.texi: Likewise.
15242
15243 2011-09-11  Bruno Haible  <bruno@clisp.org>
15244
15245         doc: Update regarding MSVC 9.
15246         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
15247         tested".
15248         * doc/posix-functions/*.texi: Update with info about MSVC 9.
15249         * doc/posix-headers/*.texi: Likewise.
15250         * doc/pastposix-functions/*.texi: Likewise.
15251         * doc/glibc-functions/*.texi: Likewise.
15252         * doc/glibc-headers/*.texi: Likewise.
15253
15254 2011-09-11  Bruno Haible  <bruno@clisp.org>
15255
15256         unistd et al.: Don't assume <unistd.h> exists.
15257         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
15258         does not exist.
15259         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
15260         exist. But include <stdlib.h>.
15261         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
15262         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
15263         symlink() does not exist.
15264         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
15265         include <io.h> instead.
15266         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
15267         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
15268         include <direct.h> instead.
15269         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
15270         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
15271         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
15272         <io.h> instead.
15273         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
15274         correctly if the system does not have hard links.
15275         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
15276         <direct.h> instead.
15277         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
15278         it when looking for function declarations.
15279         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
15280         <direct.h> and <io.h> instead.
15281         * doc/posix-headers/unistd.texi: More details about MSVC problem.
15282
15283 2011-09-11  Bruno Haible  <bruno@clisp.org>
15284
15285         strcase: Support for MSVC.
15286         * modules/strcase (Status, Notice): Remove obsoletion mark.
15287         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
15288         * doc/posix-functions/strncasecmp.texi: Likewise.
15289
15290         strings: Don't assume <strings.h> exists.
15291         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
15292         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
15293         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
15294         * doc/posix-headers/strings.texi: Mention the MSVC problem.
15295
15296 2011-09-11  Bruno Haible  <bruno@clisp.org>
15297
15298         dirent: Don't assume <dirent.h> exists.
15299         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
15300         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
15301         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
15302         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
15303
15304 2011-09-11  Bruno Haible  <bruno@clisp.org>
15305
15306         Fix wint_t on MSVC.
15307         * lib/wchar.in.h (wint_t): On MSVC, override it.
15308         * lib/wctype.in.h (wint_t): Likewise.
15309         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
15310         MSVC.
15311         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
15312         * doc/posix-headers/wctype.texi: Likewise.
15313
15314 2011-09-11  Bruno Haible  <bruno@clisp.org>
15315
15316         sys_types: Fix typo.
15317         * lib/sys_types.in.h: Fix typo in comment.
15318         Reported by Paul Eggert.
15319
15320         Support for MSVC compiler: Ensure size_t gets defined.
15321         * modules/strings (Depends-on): Add 'sys_types'.
15322         * modules/sys_uio (Depends-on): Likewise.
15323         * lib/sys_uio.in.h: Update comment.
15324
15325         C++ tests for module 'sys_types'.
15326         * modules/sys_types-c++-tests: New file.
15327         * tests/test-sys_types-c++.cc: New file.
15328
15329         Tests for module 'sys_types'.
15330         * modules/sys_types-tests: New file.
15331         * tests/test-sys_types.c: New file.
15332
15333         New module 'sys_types'.
15334         * lib/sys_types.in.h: New file.
15335         * m4/sys_types_h.m4: New file.
15336         * modules/sys_types: New file.
15337         * doc/posix-headers/sys_types.texi: Mention the new module and the
15338         size_t problem on MSVC 9.
15339
15340 2011-09-11  Bruno Haible  <bruno@clisp.org>
15341
15342         Support for MSVC compiler: Avoid division by a literal 0.
15343         * lib/math.in.h (NAN): Define through a function call also on MSVC.
15344         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
15345         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
15346         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
15347         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
15348         * tests/infinity.h: New file.
15349         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
15350         on MSVC.
15351         * tests/test-ceilf1.c: Include infinity.h.
15352         (main): Use Infinityf.
15353         * tests/test-ceil1.c: Include infinity.h.
15354         (main): Use Infinityd.
15355         * tests/test-ceill.c: Include infinity.h.
15356         (main): Use Infinityl.
15357         * tests/test-dprintf-posix.c: Include infinity.h.
15358         (test_function): Use Infinityd.
15359         * tests/test-floorf1.c: Include infinity.h.
15360         (main): Use Infinityf.
15361         * tests/test-floor1.c: Include infinity.h.
15362         (main): Use Infinityd.
15363         * tests/test-floorl.c: Include infinity.h.
15364         (main): Use Infinityl.
15365         * tests/test-fprintf-posix.c: Include infinity.h.
15366         (test_function): Use Infinityd.
15367         * tests/test-frexp.c: Include infinity.h.
15368         (main): Use Infinityd.
15369         * tests/test-frexpl.c: Include infinity.h.
15370         (main): Use Infinityl.
15371         * tests/test-isfinite.c: Include infinity.h.
15372         (test_isfinitef): Use Infinityf.
15373         (test_isfinited): Use Infinityd.
15374         (test_isfinitel): Use Infinityl.
15375         * tests/test-isinf.c: Include infinity.h.
15376         (test_isinff): Use Infinityf.
15377         (test_isinfd): Use Infinityd.
15378         (test_isinfl): Use Infinityl.
15379         * tests/test-isnan.c: Include infinity.h.
15380         (test_float): Use Infinityf.
15381         (test_double): Use Infinityd.
15382         (test_long_double): Use Infinityl.
15383         * tests/test-isnanf.h: Include infinity.h.
15384         (main): Use Infinityf.
15385         * tests/test-isnand.h: Include infinity.h.
15386         (main): Use Infinityd.
15387         * tests/test-isnanl.h: Include infinity.h.
15388         (main): Use Infinityl.
15389         * tests/test-ldexpl.c: Include infinity.h.
15390         (main): Use Infinityl.
15391         * tests/test-printf-posix.h: Include infinity.h.
15392         (test_function): Use Infinityd.
15393         * tests/test-roundf1.c: Include infinity.h.
15394         (main): Use Infinityf.
15395         * tests/test-round1.c: Include infinity.h.
15396         (main): Use Infinityd.
15397         * tests/test-roundl.c: Include infinity.h.
15398         (main): Use Infinityl.
15399         * tests/test-signbit.c: Include infinity.h.
15400         (test_signbitf): Use Infinityf.
15401         (test_signbitd): Use Infinityd.
15402         (test_signbitl): Use Infinityl.
15403         * tests/test-snprintf-posix.h: Include infinity.h.
15404         (test_function): Use Infinityd, Infinityl.
15405         * tests/test-sprintf-posix.h: Include infinity.h.
15406         (test_function): Use Infinityd, Infinityl.
15407         * tests/test-truncf1.c: Include infinity.h.
15408         (main): Use Infinityf.
15409         * tests/test-trunc1.c: Include infinity.h.
15410         (main): Use Infinityd.
15411         * tests/test-truncl.c: Include infinity.h.
15412         (main): Use Infinityl.
15413         * tests/test-vasnprintf-posix.c: Include infinity.h.
15414         (test_function): Use Infinityd, Infinityl.
15415         * tests/test-vasprintf-posix.c: Include infinity.h.
15416         (test_function): Use Infinityd, Infinityl.
15417         * modules/ceilf-tests (Files): Add tests/infinity.h.
15418         * modules/ceil-tests (Files): Likewise.
15419         * modules/ceill-tests (Files): Likewise.
15420         * modules/dprintf-posix-tests (Files): Likewise.
15421         * modules/floorf-tests (Files): Likewise.
15422         * modules/floor-tests (Files): Likewise.
15423         * modules/floorl-tests (Files): Likewise.
15424         * modules/fprintf-posix-tests (Files): Likewise.
15425         * modules/frexp-tests (Files): Likewise.
15426         * modules/frexp-nolibm-tests (Files): Likewise.
15427         * modules/frexpl-tests (Files): Likewise.
15428         * modules/frexpl-nolibm-tests (Files): Likewise.
15429         * modules/isfinite-tests (Files): Likewise.
15430         * modules/isinf-tests (Files): Likewise.
15431         * modules/isnan-tests (Files): Likewise.
15432         * modules/isnanf-tests (Files): Likewise.
15433         * modules/isnanf-nolibm-tests (Files): Likewise.
15434         * modules/isnand-tests (Files): Likewise.
15435         * modules/isnand-nolibm-tests (Files): Likewise.
15436         * modules/isnanl-tests (Files): Likewise.
15437         * modules/isnanl-nolibm-tests (Files): Likewise.
15438         * modules/ldexpl-tests (Files): Likewise.
15439         * modules/printf-posix-tests (Files): Likewise.
15440         * modules/roundf-tests (Files): Likewise.
15441         * modules/round-tests (Files): Likewise.
15442         * modules/roundl-tests (Files): Likewise.
15443         * modules/signbit-tests (Files): Likewise.
15444         * modules/snprintf-posix-tests (Files): Likewise.
15445         * modules/sprintf-posix-tests (Files): Likewise.
15446         * modules/truncf-tests (Files): Likewise.
15447         * modules/trunc-tests (Files): Likewise.
15448         * modules/truncl-tests (Files): Likewise.
15449         * modules/vasnprintf-posix-tests (Files): Likewise.
15450         * modules/vasprintf-posix-tests (Files): Likewise.
15451         * modules/vdprintf-posix-tests (Files): Likewise.
15452         * modules/vfprintf-posix-tests (Files): Likewise.
15453         * modules/vprintf-posix-tests (Files): Likewise.
15454         * modules/vsnprintf-posix-tests (Files): Likewise.
15455         * modules/vsprintf-posix-tests (Files): Likewise.
15456         * modules/xprintf-posix-tests (Files): Likewise.
15457
15458 2011-09-11  Bruno Haible  <bruno@clisp.org>
15459
15460         Ensure pid_t gets defined.
15461         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
15462         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
15463         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
15464         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
15465         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
15466         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
15467         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
15468         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
15469         * tests/test-fcntl-h.c: Check that pid_t is defined.
15470         * tests/test-sched.c: Likewise.
15471         * tests/test-termios.c: Likewise.
15472         * tests/test-time.c: Likewise.
15473         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
15474         * doc/posix-headers/signal.texi: Likewise.
15475         * doc/posix-headers/sys_types.texi: Likewise.
15476         * doc/posix-headers/time.texi: Likewise.
15477
15478 2011-09-11  Bruno Haible  <bruno@clisp.org>
15479
15480         acl: Fix compilation on Solaris 10 (older version).
15481         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
15482         of ACE_EVERYONE.
15483         * lib/set-mode-acl.c (qset_acl): Likewise.
15484         Reported by Christian Jullien <eligis@orange.fr>.
15485
15486 2011-09-10  Bruno Haible  <bruno@clisp.org>
15487
15488         iconv, unsetenv: Add support for MSVC compiler.
15489         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
15490         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
15491
15492 2011-09-10  Bruno Haible  <bruno@clisp.org>
15493
15494         *printf: Add support for MSVC compiler.
15495         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
15496         handles the exception caused by the %n directive. When cross-compiling,
15497         guess no on native Windows.
15498         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
15499         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
15500         emulate it through vsnprintf.
15501         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
15502         * doc/posix-functions/dprintf.texi: Update documentation regarding
15503         MSVC 9.
15504         * doc/posix-functions/fprintf.texi: Likewise.
15505         * doc/posix-functions/printf.texi: Likewise.
15506         * doc/posix-functions/snprintf.texi: Likewise.
15507         * doc/posix-functions/sprintf.texi: Likewise.
15508         * doc/posix-functions/swprintf.texi: Likewise.
15509         * doc/posix-functions/vdprintf.texi: Likewise.
15510         * doc/posix-functions/vfprintf.texi: Likewise.
15511         * doc/posix-functions/vprintf.texi: Likewise.
15512         * doc/posix-functions/vsnprintf.texi: Likewise.
15513         * doc/posix-functions/vsprintf.texi: Likewise.
15514         * doc/glibc-functions/asprintf.texi: Likewise.
15515         * doc/glibc-functions/obstack_printf.texi: Likewise.
15516         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
15517         * doc/glibc-functions/vasprintf.texi: Likewise.
15518
15519 2011-09-10  Bruno Haible  <bruno@clisp.org>
15520
15521         nocrash: Add support for native Windows.
15522         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
15523
15524 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
15525             Bruno Haible  <bruno@clisp.org>
15526
15527         absolute-header, include-next: Add support for MSVC compiler.
15528         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
15529         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
15530         directory separator in #line directives.
15531         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
15532         recognize also backslash as directory separator in #line directives.
15533
15534 2011-09-08  Jim Meyering  <meyering@redhat.com>
15535
15536         maint.mk: mark the post-release commit log with "maint: " prefix
15537         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
15538         one-line commit-log summary.
15539
15540 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
15541             Bruno Haible  <bruno@clisp.org>
15542
15543         Doc about crypt functions.
15544         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
15545         systems.
15546         * doc/posix-functions/encrypt.texi: Likewise.
15547         * doc/posix-functions/setkey.texi: Likewise.
15548
15549 2011-09-08  Simon Josefsson  <simon@josefsson.org>
15550
15551         * lib/gc.h: Fix copyright header.
15552
15553 2011-09-07  Bruno Haible  <bruno@clisp.org>
15554
15555         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
15556         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
15557         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
15558
15559 2011-09-07  Bruno Haible  <bruno@clisp.org>
15560
15561         openat: Work around compilation error with OSF/1 5.1 DTK cc.
15562         * lib/fopen.c: Use different syntax for include of <stdio.h>.
15563         * lib/freopen.c: Likewise.
15564         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
15565         * lib/lstat.c: Likewise.
15566         * lib/stat.c: Likewise.
15567         * lib/open.c: Use different syntax for include of <fcntl.h>.
15568         * lib/openat.c: Include fcntl.h again, explicitly.
15569
15570 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
15571
15572         parse-datetime: document the newly accepted format
15573         * doc/parse-datetime.texi (Combined date and time of day items):
15574         New section.
15575
15576 2011-09-06  Bruno Haible  <bruno@clisp.org>
15577
15578         acl: Fix a test failure on newer Solaris 10 with ZFS.
15579         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
15580         ENOSYS as no ACL.
15581         Reported by Jim Meyering.
15582
15583 2011-09-06  Bruno Haible  <bruno@clisp.org>
15584
15585         acl: Update for AIX >= 5.3 with NFS.
15586         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
15587         ENOSYS as no ACL.
15588
15589         acl: Fix a test failure on AIX >= 5.3 with NFS.
15590         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
15591         as no ACL.
15592
15593 2011-09-06  Bruno Haible  <bruno@clisp.org>
15594
15595         acl: Fix a test failure on IRIX 6.5 with NFS.
15596         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
15597         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
15598         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
15599         * lib/copy-acl.c (qcopy_acl): Likewise.
15600
15601 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
15602
15603         openat: port to AIX 7.1 with large files
15604         AIX 7.1 does a "#define openat open64at" if large files are in use,
15605         so we can't simply #undef openat.  Use the orig_openat trick (similar
15606         to orig_open in lib/open.c) to work around the problem.  Problem
15607         reported by Kevin Brott for GNU tar, in the thread containing
15608         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
15609         * lib/openat.c (__need_system_fcntl_h): Define first.
15610         Include <fcntl.h> and <sys/types.h> before undefining.
15611         (orig_openat) [HAVE_OPENAT]: New inline function.
15612         (openat) [HAVE_OPENAT]: Do not undef.
15613         (rpl_openat): Use orig_openat, not openat.
15614
15615 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
15616             Bruno Haible  <bruno@clisp.org>
15617
15618         acl: Avoid errors on NonStop Kernel.
15619         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
15620         ENOTSUP errors.
15621
15622 2011-09-05  Bruno Haible  <bruno@clisp.org>
15623
15624         acl: Clean up Solaris code.
15625         * lib/acl-internal.h: Remove no-op #if.
15626         * lib/file-has-acl.c: Likewise.
15627         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
15628         * lib/copy-acl.c (qcopy_acl): Likewise.
15629
15630 2011-09-05  Bruno Haible  <bruno@clisp.org>
15631
15632         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
15633         binaries built on the original Solaris 10.
15634         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
15635         trivial.
15636
15637 2011-09-05  Bruno Haible  <bruno@clisp.org>
15638
15639         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
15640         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
15641         10.
15642         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
15643         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
15644         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
15645         instead of acl_get, facl_get, acl_set, facl_set.
15646
15647 2011-09-05  Bruno Haible  <bruno@clisp.org>
15648
15649         copy-file: Try unit tests on more file systems.
15650         * tests/test-copy-file-1.sh: New file.
15651         * tests/test-copy-file-2.sh: New file.
15652         * modules/copy-file-tests (Files): Add them.
15653         (Makefile.am): Add them to TESTS.
15654
15655         acl: Try unit tests on more file systems.
15656         * tests/test-file-has-acl-1.sh: New file.
15657         * tests/test-file-has-acl-2.sh: New file.
15658         * tests/test-set-mode-acl-1.sh: New file.
15659         * tests/test-set-mode-acl-2.sh: New file.
15660         * tests/test-copy-acl-1.sh: New file.
15661         * tests/test-copy-acl-2.sh: New file.
15662         * modules/acl-tests (Files): Add them.
15663         (Makefile.am): Add them to TESTS.
15664
15665 2011-09-04  Bruno Haible  <bruno@clisp.org>
15666
15667         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
15668         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
15669         10.
15670         (OLD_ALLOW, OLD_DENY): New macros.
15671         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
15672         ACE_ACCESS_ALLOWED_ACE_TYPE.
15673         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
15674         ACE_ACCESS_DENIED_ACE_TYPE.
15675         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
15676         (NEW_ACE_EXECUTE): Fix value.
15677         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
15678         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
15679         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
15680         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
15681         NEW_ACE_SYNCHRONIZE): New macros.
15682         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
15683         instead of acl_fromtext, acl_set, facl_set.
15684         Fixes a coreutils/tests/cp/perm failure.
15685
15686 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
15687
15688         openat: test for fstatat (..., 0) bug
15689         Further testing with tar suggests that fstatat (..., 0)
15690         does not work in general, on AIX 7.1; see
15691         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
15692         So, give up entirely on AIX 7.1's fstatat, and fall back on our
15693         replacement fstatat (which is what older AIX releases were using
15694         anyway).
15695         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
15696         use is now changed to orig_fstatat.  This was probably the right
15697         thing to do anyway.
15698         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
15699         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
15700         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
15701         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
15702         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
15703         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
15704         if the bug is found.
15705
15706         openat: test for fstatat (AT_FDCWD, ..., 0) bug
15707         This tests for another fstatat bug on AIX 7.1:
15708         fstatat (AT_FDCWD, ..., 0) does not work.  See
15709         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
15710         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
15711         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
15712         (rpl_fstatat): Adjust so that it works around either (or both)
15713         bugs if present.
15714         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
15715
15716 2011-09-03  Karl Berry  <karl@gnu.org>
15717
15718         * doc/regex.texi (Character Class Operators): Avoid literal ":"
15719         in index entries.
15720
15721 2011-09-02  Bruno Haible  <bruno@clisp.org>
15722
15723         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
15724         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
15725         values of AR, ARFLAGS, RANLIB.
15726         Reported by John W. Eaton <jwe@gnu.org> for Octave.
15727
15728 2011-09-02  Bruno Haible  <bruno@clisp.org>
15729
15730         Find 'ar' program that fits with --host argument.
15731         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
15732
15733 2011-09-02  Bruno Haible  <bruno@clisp.org>
15734
15735         tests: init.sh: Support any non-GNU diff.
15736         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
15737         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
15738         Solaris 8.
15739
15740 2011-09-02  Bruno Haible  <bruno@clisp.org>
15741
15742         tests: init.sh: work also with any non-GNU diff that supports -u
15743         * tests/init.sh: Relax check for diff -u support.
15744         Rather than checking for GNU diff via --version, simply check
15745         for support for -u itself.  Useful at least on OpenBSD 4.9,
15746         AIX 7.1, IRIX 6.5, and Solaris 10.
15747
15748 2011-09-01  Bruno Haible  <bruno@clisp.org>
15749
15750         strtoimax, strtoumax: Document problem on HP-UX 11.
15751         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
15752         * doc/posix-functions/strtoumax.texi: Likewise.
15753
15754 2011-09-01  Bruno Haible  <bruno@clisp.org>
15755
15756         strtoumax: Avoid link error on OSF/1 with DTK cc.
15757         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
15758         defined as a function.
15759         * modules/strtoumax (Depends-on, configure.ac): Test only whether
15760         strtoumax is defined, not whether it is declared.
15761
15762 2011-09-01  Bruno Haible  <bruno@clisp.org>
15763
15764         strtoimax: Avoid link error on OSF/1 with DTK cc.
15765         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
15766         defined as a function.
15767         * modules/strtoimax (Depends-on, configure.ac): Test only whether
15768         strtoimax is defined, not whether it is declared.
15769
15770 2011-09-01  Bruno Haible  <bruno@clisp.org>
15771
15772         imaxdiv: Avoid link error on OSF/1 with DTK cc.
15773         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
15774         as a function.
15775         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
15776         whether it is declared.
15777
15778 2011-09-01  Bruno Haible  <bruno@clisp.org>
15779
15780         imaxabs: Avoid link error on OSF/1 with DTK cc.
15781         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
15782         as a function.
15783         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
15784         whether it is declared.
15785
15786 2011-09-01  Bruno Haible  <bruno@clisp.org>
15787
15788         Tests for module 'strtoumax'.
15789         * modules/strtoumax-tests: New file.
15790         * tests/test-strtoumax.c: New file.
15791
15792         Tests for module 'strtoimax'.
15793         * modules/strtoimax-tests: New file.
15794         * tests/test-strtoimax.c: New file.
15795
15796         Tests for module 'imaxdiv'.
15797         * modules/imaxdiv-tests: New file.
15798         * tests/test-imaxdiv.c: New file.
15799
15800         Tests for module 'imaxabs'.
15801         * modules/imaxabs-tests: New file.
15802         * tests/test-imaxabs.c: New file.
15803
15804 2011-09-01  Bruno Haible  <bruno@clisp.org>
15805
15806         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
15807         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
15808         pthread_create.
15809
15810 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
15811
15812         openat: work around AIX 7.1 fstatat issue
15813         This should fix the problem that was not properly fixed
15814         in the previous change, dated 2011-08-30.
15815         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
15816         __need_system_stat_h defined.
15817         (orig_fstatat) [HAVE_FSTATAT]: New function.
15818         (rpl_fstatat): Go back to the old way of doing things,
15819         except call orig_fstatat instead of fstatat.
15820         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
15821         Remove unnecessary check whether fstatat fills in st_size etc.
15822
15823 2011-09-01  Bruno Haible  <bruno@clisp.org>
15824
15825         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
15826         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
15827         just include the system's header.
15828
15829 2011-08-31  Jim Meyering  <meyering@redhat.com>
15830
15831         tests: avoid spurious assertion failure in test-float.c on ppc64
15832         * tests/test-float.c (test_long_double): Comment out an assertion,
15833         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
15834         with gcc-4.4.4.
15835
15836         maint: indent with spaces, not TABs
15837         I need to get in the habit of running gnulib's "make check".
15838         Both of these would have been caught.
15839         * m4/largefile.m4: Indent with spaces, not TABs.
15840         * lib/parse-datetime.y (iso_8601_time): Likewise.
15841         Spotted by Pádraig Brady.
15842
15843         test-parse-datetime.c: accommodate a relatively strict gcc warning
15844         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
15845         to avoid a warning from gcc's -Werror=missing-declarations.
15846         Insert a few spaces-before-funcall-parenthesis.
15847
15848 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
15849
15850         parse-datetime: accept ISO 8601 date and time rep with "T" separator
15851         The parser now accepts ISO 8601 date-time strings with "T" as the
15852         separator.  It has long parsed dates like "2004-02-29 16:21:42"
15853         with a space between the date and time strings.  Now it also parses
15854         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
15855         variants like "2004-02-29T16:21:42.333-07:00"
15856         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
15857         of day representation using the 'T' separator character.
15858         * doc/parse-datetime.texi (General date syntax): replace use of
15859         deprecated --iso-8601 option with --rfc-3339 in example of date
15860         command output formats that can be parsed.
15861         * tests/test-parse-datetime.c (tm_diff): New function, taken from
15862         lib/parse-datetime.y.
15863         (gmt_offset): New function.
15864         (main): Add additional test cases to validate ISO8601 extended
15865         date and time of day parsing.
15866
15867 2011-08-31  Bruno Haible  <bruno@clisp.org>
15868
15869         freopen: Documentation.
15870         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
15871         name.
15872         Reported by Claudio Bley <claudio.bley@gmail.com>.
15873
15874 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
15875
15876         freopen: Don't crash if the filename argument is NULL.
15877         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
15878         NULL.
15879
15880 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
15881
15882         openat: work around AIX 7.1 fstatat bug
15883         Problem reported by Kevin Brott for GNU tar, in the thread containing
15884         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
15885         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
15886         FSTATAT_ST_SIZE_ETC_BROKEN.
15887         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
15888         rpl_fstatat.
15889         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
15890         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
15891         AC_CHECK_FUNCS_ONCE for fstatat.
15892         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
15893         fchmodat, mkdirat, openat and unlinkat.
15894
15895 2011-08-30  Bruno Haible  <bruno@clisp.org>
15896
15897         Avoid endless recursions if config.h includes some header files.
15898         * lib/fopen.c (__need_FILE): Define already before including config.h.
15899         * lib/freopen.c (__need_FILE): Likewise.
15900         * lib/open.c (__need_system_fcntl_h): Likewise.
15901         * lib/stat.c (__need_system_sys_stat_h): Likewise.
15902         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
15903         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
15904
15905 2011-08-25  Karl Berry  <karl@gnu.org>
15906
15907         * config/srclist.txt (ylwrap): new try.
15908         * build-aux/ylwrap: new file.
15909
15910 2011-08-23  Bruno Haible  <bruno@clisp.org>
15911
15912         tmpdir: Use a good default directory on native Windows.
15913         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
15914         (P_tmpdir): Default to _P_tmpdir on native Windows.
15915         (path_search): On native Windows, try the value returned by GetTempPath
15916         before trying P_tmpdir.
15917         * modules/tmpdir (Depends-on): Add pathmax.
15918         Suggested by John Darrington <john@darrington.wattle.id.au>.
15919
15920 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
15921
15922         doc: fix typo in README-release
15923         * top/README-release: Capitalize first word of a sentence.
15924
15925 2011-08-19  Jim Meyering  <meyering@redhat.com>
15926
15927         fts: do not exhaust memory when processing million-entry directories
15928         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
15929         directory would require about 256*N bytes of memory.  Thus, it was
15930         easy to construct a directory too large to be processed by any of
15931         those tools.  With this change, fts' maximum memory utilization is
15932         now limited to around 30MB.
15933         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
15934         (fts_read): When we've processed the final entry (i.e., when
15935         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
15936         using the parent entry to read any remaining entries.  Dispatch
15937         depending on what fts_build returns:
15938         - NULL+stop, aka failure: stop
15939         - NULL otherwise: move up in the dir hierarchy
15940         - non-NULL: handle this new entry
15941         (fts_build): Declare and use new local, continue_readdir.
15942         Prepare to be called from fts_read, when the entries
15943         from a partially-read directory have just been exhausted.
15944         In that case, we'll skip the opendir and instead use the parent's
15945         fts_dirp and derive dir_fd from that.
15946         Finally, in the readdir loop, if we read max_entries entries,
15947         exit the loop ensuring *not* to call closedir.  This is required
15948         so that fts_dirp can be reused on a subsequent call.
15949         Prompted by Ben England's report of memory exhaustion in find
15950         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
15951
15952         maint: fts: move decl of `dp' down into while loop; split a long line
15953         * lib/fts.c (fts_build): No semantic change.
15954
15955         fts: add/use new struct member, fts_dirp
15956         We are about to use this to manage any directory with
15957         too many entries to read all of them into memory at once.
15958         To do that, we'll need to save the DIR* pointer in each
15959         affected FTSENT struct.
15960         * lib/fts_.h: Include <dirent.h>.
15961         (struct FTSENT) [fts_dirp]: New member.
15962         * lib/fts.c (closedir_and_clear): Define.
15963         Use it in place of closedir so that we are sure to
15964         clear the new fts_dirp member when done with it.
15965         (fts_alloc): Initialize the new member.
15966         (fts_lfree): Free, if needed.
15967
15968         maint: fts: give __opendir2 a new parameter and rename
15969         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
15970         than surreptitiously using sole caller's "dir_fd".
15971         (fts_opendir): Rename from __opendir2.
15972
15973         maint: fts.c: remove __opendir2's now-unused parameter, oflag
15974         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
15975
15976         maint: fts.c: correct off-by-one indentation
15977         * lib/fts.c (fts_build): Correct indentation, change style
15978         of a couple of block comments, and bracing style.
15979
15980         maint: fts.c: move __opendir2 #define "up" out of function body
15981         * lib/fts.c (__opendir2): Move "up".  No semantic change.
15982
15983         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
15984         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
15985         out for a long time and besides was useful only on BSD systems.
15986
15987 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
15988
15989         regex: port to Stratus OpenVOS
15990         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
15991         define to empty, rather than attempting nonportable optimizations.
15992         Problem reported by Paul Green in:
15993         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
15994         and fix suggested by Eric Blake in:
15995         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
15996
15997 2011-08-17  Eric Blake  <eblake@redhat.com>
15998
15999         getcwd: fix test failures on mingw
16000         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
16001         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
16002         test if long directory cannot be created, and allow mingw errno.
16003
16004         getcwd-lgpl: fix m4 to match relaxed test for BSD
16005         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
16006         (gl_FUNC_GETCWD_SIGNATURE): New macro.
16007         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
16008         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
16009         signature problem.
16010
16011         getcwd: fix compilation on mingw64
16012         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
16013         getcwd.
16014         Reported by Marc-André Lureau.
16015
16016         pipe2: silence compiler warning
16017         * lib/pipe2.c (pipe2): Hide label if it is not used.
16018
16019 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
16020
16021         relocatable-prog: fix link error
16022         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
16023         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
16024         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
16025         into modules/relocatable-lib without noticing that
16026         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
16027         also needs to build relocatable.c.
16028
16029 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
16030
16031         getaddrinfo: fix sh typo in gai_strerrorA decl checking
16032         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
16033         shell code: it contained a 'break' that was not in a loop.
16034         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
16035         via a shell-language loop; this may have been true in old Autoconf
16036         versions, but it's not true in Autoconf 2.68.  I found this bug
16037         when testing coreutils git on Solaris 8, whose shell complains
16038         about the syntax error.
16039
16040 2011-08-12  Simon Josefsson  <simon@josefsson.org>
16041
16042         * lib/base64.c: Fix comment to reference RFC 4648.
16043         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
16044         <gvtulder@gmail.com>.
16045
16046 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
16047
16048         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
16049
16050         po/Makefile.in.in: fix make -q problem
16051         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
16052         rule, since there's no file named 'check-macro-version' and its
16053         use as a file breaks make -q.
16054         (all): Don't depend on check-macro-version.
16055         (CHECK_MACRO_VERSION): New macro.
16056         (stamp-po): Use it.
16057
16058         configmake: fix make -q problem
16059         * modules/configmake (configmake.h): Update configmake.h's time stamp
16060         even if the file does not change.  Otherwise, 'make -q' fails.
16061         Problem reported by Simon Josefsson in
16062         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
16063
16064 2011-08-11  Jim Meyering  <meyering@redhat.com>
16065
16066         git-version-gen: correct the advice in a comment
16067         * build-aux/git-version-gen: Correct comment.
16068         Don't recommend to list .tarball-version in .gitignore.
16069
16070 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
16071
16072         base64: fix off-by-one buffer size bug
16073         Problem and (trivial) fix reported by Gijs van Tulder in
16074         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
16075         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
16076         * tests/test-base64.c (main): Catch the bug.
16077
16078 2011-08-10  Eric Blake  <eblake@redhat.com>
16079
16080         closein: correct comments
16081         * lib/closein.c (close_stdin): Improve comments.
16082
16083 2011-08-09  Bruno Haible  <bruno@clisp.org>
16084
16085         More tests for 'fseeko'.
16086         * tests/test-fseeko3.c: New file, from Eric Blake.
16087         * tests/test-fseeko3.sh: New file.
16088         * modules/fseeko-tests (Files): Add them.
16089         (TESTS): Add test-fseeko3.sh.
16090         (check_PROGRAMS): Add test-fseeko3.
16091
16092 2011-08-09  Eric Blake  <eblake@redhat.com>
16093
16094         fseeko: remove unneeded hack
16095         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
16096
16097         fseeko: fix bug on glibc
16098         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
16099         Reported by John W. Eaton.
16100
16101 2011-08-08  Bruno Haible  <bruno@clisp.org>
16102
16103         unictype/base: Fix interoperability with preinstalled libunistring.
16104         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
16105         Reported by Simon Josefsson.
16106
16107 2011-08-08  Bruno Haible  <bruno@clisp.org>
16108
16109         iswblank: Detect declaration correctly.
16110         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
16111         AC_CHECK_DECLS invocation.
16112
16113 2011-08-08  Bruno Haible  <bruno@clisp.org>
16114
16115         tcgetsid: Detect declaration correctly.
16116         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
16117         AC_CHECK_DECLS invocation.
16118         Reported by Simon Josefsson.
16119
16120 2011-08-08  Eric Blake  <eblake@redhat.com>
16121
16122         largefile: fix typo that regressed large file support
16123         * modules/largefile (configure.ac-early): Fix section name.
16124
16125 2011-08-06  Karl Berry  <karl@gnu.org>
16126
16127         * MODULES.html.sh (func_all_files): _Noreturn is no longer
16128         a separate module.
16129
16130 2011-08-05  Simon Josefsson  <simon@josefsson.org>
16131
16132         openat: Fix warnings and commens when building unlinkat.c on Hurd.
16133         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
16134         get prototype for free.
16135
16136 2011-08-04  Bruno Haible  <bruno@clisp.org>
16137
16138         Tests for module 'pathmax'.
16139         * modules/pathmax-tests: New file.
16140         * tests/test-pathmax.c: New file.
16141
16142         canonicalize-lgpl: Support larger filenames on the Hurd.
16143         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
16144         Reported by Paul Eggert.
16145
16146         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
16147         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
16148         * lib/chdir-long.h: Include pathmax.h.
16149         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
16150         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
16151         (PATH_MAX): Remove code that is done by pathmax.h.
16152         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
16153         * lib/tmpfile.c: Add a comment.
16154         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
16155         * modules/chdir-long (Depends-on): Add pathmax.
16156         * modules/getcwd (Depends-on): Add pathmax.
16157         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
16158         is not defined.
16159         * doc/posix-headers/limits.texi: Mention the pathmax module.
16160         * NEWS: Mention the change.
16161
16162 2011-08-02  Bruno Haible  <bruno@clisp.org>
16163
16164         pthread_sigmask: Actually use results of gl_THREADLIB.
16165         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
16166         gl_THREADLIB, not gl_[]THREADLIB.
16167         Reported by Eric Blake.
16168
16169 2011-08-02  Jim Meyering  <meyering@redhat.com>
16170
16171         maint.mk: relax the default _gl_TS_function_match regexp
16172         * top/maint.mk (_gl_TS_function_match): Don't require at least one
16173         space between function name and "(" in an "extern" declaration.
16174         That would fail to match a decl with no space there: extern void foo();
16175
16176 2011-07-31  Iain Nicol  <iain@thenicols.net>
16177
16178         git-version-gen: document that EXTRA_DIST must include .version
16179         * build-aux/git-version-gen: In the how-to-use comment, document
16180         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
16181         will fail when run from an unpacked distribution tarball.
16182
16183 2011-08-01  Bruno Haible  <bruno@clisp.org>
16184
16185         wctype-h: Fix last change.
16186         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
16187         REPLACE_TOWLOWER to 0.
16188         Reported by Sam Steingold <sds@gnu.org>.
16189
16190 2011-07-31  Bruno Haible  <bruno@clisp.org>
16191
16192         frexpl: Update autoconf test.
16193         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
16194         according to changes of 2011-06-20.
16195
16196 2011-07-31  Bruno Haible  <bruno@clisp.org>
16197
16198         sys_utsname: Add support for Minix.
16199         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
16200         <sys/utsname.h>.
16201         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
16202         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
16203
16204 2011-07-31  Bruno Haible  <bruno@clisp.org>
16205
16206         strings: Add support for Minix.
16207         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
16208         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
16209         * doc/posix-headers/strings.texi: Document the Minix problem.
16210
16211 2011-07-31  Bruno Haible  <bruno@clisp.org>
16212
16213         wctype-h: Add support for Minix.
16214         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
16215         REPLACE_TOWLOWER.
16216         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
16217         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
16218         REPLACE_ISWCNTRL.
16219
16220 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
16221
16222         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
16223         This is a performance improvement for 64-bit hosts: it causes the
16224         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
16225
16226 2011-07-31  Bruno Haible  <bruno@clisp.org>
16227
16228         stdioext: Add support for Minix.
16229         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
16230         * lib/fpurge.c (fpurge): Likewise.
16231         * lib/freadahead.c (freadahead): Likewise.
16232         * lib/freadable.c (freadable): Likewise.
16233         * lib/freading.c (freading): Likewise.
16234         * lib/freadptr.c (freadptr): Likewise.
16235         * lib/freadseek.c (freadptrinc): Likewise.
16236         * lib/fseeko.c (rpl_fseeko): Likewise.
16237         * lib/fseterr.c (fseterr): Likewise.
16238         * lib/fwritable.c (fwritable): Likewise.
16239         * lib/fwriting.c (fwriting): Likewise.
16240         * lib/fflush.c (clear_ungetc_buffer): Update comment.
16241         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
16242
16243 2011-07-31  Bruno Haible  <bruno@clisp.org>
16244
16245         errno: Port to Minix.
16246         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
16247         ECONNABORTED are defined.
16248         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
16249         GNULIB_defined_ECONNABORTED): New macros.
16250         * lib/strerror-override.h (strerror_override): Test also
16251         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
16252         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
16253         ECONNABORTED.
16254         * doc/posix-headers/errno.texi: Mention the Minix problem.
16255
16256 2011-07-31  Bruno Haible  <bruno@clisp.org>
16257
16258         Work around declaration collisions on Minix.
16259         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
16260         defined, set REPLACE_MBSINIT.
16261         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
16262         defined, set REPLACE_MBRTOWC.
16263         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
16264         set REPLACE_MBRLEN.
16265         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
16266         defined, set REPLACE_MBSRTOWCS.
16267         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
16268         defined, set REPLACE_WCRTOMB.
16269         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
16270         defined, set REPLACE_WCSRTOMBS.
16271
16272 2011-07-31  Bruno Haible  <bruno@clisp.org>
16273
16274         Add support for Minix with ACK compiler.
16275         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
16276         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
16277         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
16278
16279 2011-07-31  Bruno Haible  <bruno@clisp.org>
16280
16281         Documentation about Minix.
16282         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
16283         * doc/glibc-headers/*.texi: Likewise.
16284         * doc/posix-functions/*.texi: Likewise.
16285         * doc/glibc-functions/*.texi: Likewise.
16286
16287 2011-07-31  Bruno Haible  <bruno@clisp.org>
16288
16289         snippet/warn-on-use: Fix indentation.
16290         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
16291
16292 2011-07-25  Jim Meyering  <meyering@redhat.com>
16293
16294         tests: test-update-copyright.sh: remove unnecessary "rm" commands
16295         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
16296         commands.
16297
16298 2011-07-27  Jim Meyering  <meyering@redhat.com>
16299
16300         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
16301         * top/maint.mk (gl_extract_significant_defines_): Now that
16302         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
16303         gnulib/lib/signal.in.h, and now that we recommend to
16304         define-if-undefined those two symbols in application code,
16305         we must filter them out of the "significant" list.
16306         This avoids a "make syntax-check" failure in coreutils.
16307
16308 2011-07-26  Eric Blake  <eblake@redhat.com>
16309
16310         warnings: add comments about previous patch
16311         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
16312         * m4/include_next.m4: Likewise.
16313         * m4/warn-on-use.m4: Likewise.
16314         * m4/warnings.m4: Likewise, and simplify use.
16315         Suggested by Stefano Lattarini.
16316
16317         include-next, warnings: support older autoconf
16318         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
16319         AS_VAR_PUSHDEF in a way that works with older autoconf.
16320         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
16321         Reported by Daniel P. Berrange.
16322
16323 2011-07-25  Bruno Haible  <bruno@clisp.org>
16324
16325         fseek, ftell: Fix doc.
16326         * doc/posix-functions/fseek.texi: Reword statement about
16327         AC_SYS_LARGEFILE.
16328         * doc/posix-functions/ftell.texi: Likewise.
16329
16330 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
16331             Bruno Haible  <bruno@clisp.org>
16332
16333         Add dependencies to the 'largefile' module.
16334         * modules/fopen (Depends-on): Add 'largefile'.
16335         * modules/freopen (Depends-on): Likewise.
16336         * modules/fseeko (Depends-on): Likewise.
16337         * modules/ftello (Depends-on): Likewise.
16338         * modules/glob (Depends-on): Likewise.
16339         * modules/lseek (Depends-on): Likewise.
16340         * modules/lstat (Depends-on): Likewise.
16341         * modules/mkostemp (Depends-on): Likewise.
16342         * modules/mkostemps (Depends-on): Likewise.
16343         * modules/mkstemp (Depends-on): Likewise.
16344         * modules/mkstemps (Depends-on): Likewise.
16345         * modules/open (Depends-on): Likewise.
16346         * modules/openat (Depends-on): Likewise.
16347         * modules/pread (Depends-on): Likewise.
16348         * modules/pwrite (Depends-on): Likewise.
16349         * modules/scandir (Depends-on): Likewise.
16350         * modules/stat (Depends-on): Likewise.
16351         * modules/tmpfile (Depends-on): Likewise.
16352         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
16353         since the containing module now depends on the largefile module.
16354         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
16355         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
16356         off_t is fixed by gnulib.
16357         * doc/posix-functions/freopen.texi: Likewise.
16358         * doc/posix-functions/fseeko.texi: Likewise.
16359         * doc/posix-functions/fstatat.texi: Likewise.
16360         * doc/posix-functions/ftello.texi: Likewise.
16361         * doc/posix-functions/glob.texi: Likewise.
16362         * doc/posix-functions/lseek.texi: Likewise.
16363         * doc/posix-functions/lstat.texi: Likewise.
16364         * doc/posix-functions/mkstemp.texi: Likewise.
16365         * doc/posix-functions/open.texi: Likewise.
16366         * doc/posix-functions/openat.texi: Likewise.
16367         * doc/posix-functions/pread.texi: Likewise.
16368         * doc/posix-functions/pwrite.texi: Likewise.
16369         * doc/posix-functions/scandir.texi: Likewise.
16370         * doc/posix-functions/stat.texi: Likewise.
16371         * doc/posix-functions/tmpfile.texi: Likewise.
16372         * doc/glibc-functions/mkostemp.texi: Likewise.
16373         * doc/glibc-functions/mkostemps.texi: Likewise.
16374         * doc/glibc-functions/mkstemps.texi: Likewise.
16375
16376 2011-07-25  Bruno Haible  <bruno@clisp.org>
16377
16378         fcntl: Move AC_LIBOBJ invocation to module description.
16379         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
16380         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
16381
16382         fcntl: Remove call-in from fchdir.m4.
16383         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
16384         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
16385
16386         dup3: Remove potential call-in from fchdir.m4.
16387         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
16388         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
16389
16390         dup2: Move AC_LIBOBJ invocation to module description.
16391         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
16392         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
16393         Don't invoke AC_LIBOBJ.
16394         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
16395
16396         dup2: Remove call-in from fchdir.m4.
16397         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
16398         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
16399
16400         fclose: Move AC_LIBOBJ invocation to module description.
16401         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
16402         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
16403         to 1.
16404         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
16405
16406         fclose: Remove call-in from close.m4.
16407         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
16408         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
16409
16410         close: Move AC_LIBOBJ invocation to module description.
16411         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
16412         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
16413         1.
16414         * modules/close (configure.ac): Invoke AC_LIBOBJ.
16415
16416         close: Remove call-in from fchdir.m4.
16417         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
16418         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
16419
16420         open: Move AC_LIBOBJ invocation to module description.
16421         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
16422         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
16423         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
16424
16425         open: Remove call-in from fchdir.m4.
16426         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
16427         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
16428
16429         fchdir: Start to remove gl_REPLACE_* idiom.
16430         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
16431         (gl_FUNC_FCHDIR): Invoke it.
16432
16433 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
16434
16435         * lib/ftell.c (ftell): Comment out cast.
16436
16437         close: use gl_REPLACE_FCLOSE only if defined
16438         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
16439         is defined.  The close module doesn't depend on the fclose module
16440         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
16441         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
16442         I reproduced the problem with "./gnulib-tool --test close sys_socket".
16443
16444 2011-07-24  Jim Meyering  <meyering@redhat.com>
16445
16446         test-select.h: avoid warning when using gcc's -Wmissing-declarations
16447         * tests/test-select.h (test_function): Declare as "static".
16448
16449 2011-07-24  Bruno Haible  <bruno@clisp.org>
16450
16451         doc: Mention the effects of AC_SYS_LARGEFILE.
16452         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
16453         on this function.
16454         * doc/posix-functions/aio_error.texi: Likewise.
16455         * doc/posix-functions/aio_fsync.texi: Likewise.
16456         * doc/posix-functions/aio_read.texi: Likewise.
16457         * doc/posix-functions/aio_return.texi: Likewise.
16458         * doc/posix-functions/aio_suspend.texi: Likewise.
16459         * doc/posix-functions/aio_write.texi: Likewise.
16460         * doc/posix-functions/fgetpos.texi: Likewise.
16461         * doc/posix-functions/fopen.texi: Likewise.
16462         * doc/posix-functions/freopen.texi: Likewise.
16463         * doc/posix-functions/fsetpos.texi: Likewise.
16464         * doc/posix-functions/fstatvfs.texi: Likewise.
16465         * doc/posix-functions/ftruncate.texi: Likewise.
16466         * doc/posix-functions/ftw.texi: Likewise.
16467         * doc/posix-functions/getrlimit.texi: Likewise.
16468         * doc/posix-functions/glob.texi: Likewise.
16469         * doc/posix-functions/lio_listio.texi: Likewise.
16470         * doc/posix-functions/lockf.texi: Likewise.
16471         * doc/posix-functions/mkstemp.texi: Likewise.
16472         * doc/posix-functions/mmap.texi: Likewise.
16473         * doc/posix-functions/nftw.texi: Likewise.
16474         * doc/posix-functions/openat.texi: Likewise.
16475         * doc/posix-functions/opendir.texi: Likewise.
16476         * doc/posix-functions/posix_fadvise.texi: Likewise.
16477         * doc/posix-functions/posix_fallocate.texi: Likewise.
16478         * doc/posix-functions/pread.texi: Likewise.
16479         * doc/posix-functions/pwrite.texi: Likewise.
16480         * doc/posix-functions/readdir.texi: Likewise.
16481         * doc/posix-functions/readdir_r.texi: Likewise.
16482         * doc/posix-functions/rewinddir.texi: Likewise.
16483         * doc/posix-functions/scandir.texi: Likewise.
16484         * doc/posix-functions/seekdir.texi: Likewise.
16485         * doc/posix-functions/setrlimit.texi: Likewise.
16486         * doc/posix-functions/statvfs.texi: Likewise.
16487         * doc/posix-functions/telldir.texi: Likewise.
16488         * doc/posix-functions/tmpfile.texi: Likewise.
16489         * doc/posix-functions/truncate.texi: Likewise.
16490         * doc/glibc-functions/fallocate.texi: Likewise.
16491         * doc/glibc-functions/fstatfs.texi: Likewise.
16492         * doc/glibc-functions/fts_children.texi: Likewise.
16493         * doc/glibc-functions/fts_read.texi: Likewise.
16494         * doc/glibc-functions/getdirentries.texi: Likewise.
16495         * doc/glibc-functions/mkostemp.texi: Likewise.
16496         * doc/glibc-functions/mkostemps.texi: Likewise.
16497         * doc/glibc-functions/mkstemps.texi: Likewise.
16498         * doc/glibc-functions/preadv.texi: Likewise.
16499         * doc/glibc-functions/pwritev.texi: Likewise.
16500         * doc/glibc-functions/sendfile.texi: Likewise.
16501         * doc/glibc-functions/statfs.texi: Likewise.
16502
16503 2011-07-24  Bruno Haible  <bruno@clisp.org>
16504
16505         doc: Fix typo.
16506         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
16507
16508 2011-07-24  Bruno Haible  <bruno@clisp.org>
16509
16510         doc: Mention fsusage.
16511         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
16512
16513 2011-07-24  Bruno Haible  <bruno@clisp.org>
16514
16515         doc: Mention new glibc headers and functions.
16516         * doc/glibc-headers/gshadow.texi: New file.
16517         * doc/glibc-functions/endsgent.texi: New file.
16518         * doc/glibc-functions/fgetsgent.texi: New file.
16519         * doc/glibc-functions/fgetsgent_r.texi: New file.
16520         * doc/glibc-functions/getsgent.texi: New file.
16521         * doc/glibc-functions/getsgent_r.texi: New file.
16522         * doc/glibc-functions/getsgnam.texi: New file.
16523         * doc/glibc-functions/getsgnam_r.texi: New file.
16524         * doc/glibc-functions/putsgent.texi: New file.
16525         * doc/glibc-functions/setsgent.texi: New file.
16526         * doc/glibc-functions/sgetsgent.texi: New file.
16527         * doc/glibc-functions/sgetsgent_r.texi: New file.
16528         * doc/glibc-functions/malloc_info.texi: New file.
16529         * doc/glibc-functions/preadv.texi: New file.
16530         * doc/glibc-functions/pwritev.texi: New file.
16531         * doc/glibc-functions/register_printf_modifier.texi: New file.
16532         * doc/glibc-functions/register_printf_specifier.texi: New file.
16533         * doc/glibc-functions/register_printf_type.texi: New file.
16534         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
16535         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
16536         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
16537         * doc/glibc-functions/pthread_getname_np.texi: New file.
16538         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
16539         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
16540         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
16541         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
16542         * doc/glibc-functions/pthread_setname_np.texi: New file.
16543         * doc/glibc-functions/pthread_sigqueue.texi: New file.
16544         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
16545         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
16546         * doc/glibc-functions/qsort_r.texi: New file.
16547         * doc/glibc-functions/quick_exit.texi: New file.
16548         * doc/glibc-functions/syncfs.texi: New file.
16549         * doc/gnulib.texi: Include them.
16550         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
16551         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
16552         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
16553         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
16554         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
16555         * doc/glibc-functions/execvpe.texi: Likewise.
16556
16557 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
16558
16559         ftell: don't include <unistd.h>
16560         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
16561         guaranteed to define off_t, and the ftell module depends on the
16562         stdio module.
16563
16564         ftell: do not assume wraparound signed arithmetic
16565         * lib/ftell.c: Include <limits.h>.
16566         (ftell): Don't assume wraparound signed arithmetic.
16567
16568 2011-07-24  Bruno Haible  <bruno@clisp.org>
16569
16570         close: No longer depend on module 'fclose'.
16571         * modules/close (Depends-on): Remove fclose.
16572         * NEWS: Mention the change.
16573         Suggested by Sam Steingold <sds@gnu.org>.
16574
16575 2011-07-24  Bruno Haible  <bruno@clisp.org>
16576
16577         fsusage: Enable large volume support on AIX >= 5.2.
16578         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
16579         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
16580         instead of STAT_STATVFS.
16581         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
16582
16583         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
16584         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
16585         f_blocks field only on MacOS X.
16586
16587         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
16588         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
16589         * modules/fsusage (Depends-on): Add largefile.
16590
16591 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
16592
16593         * README: Modernize discussion of signed integers.
16594         Assuming overflow wraparound is no longer safe.
16595         Mention ones' complement and signed magnitude.
16596
16597 2011-07-22  Bruno Haible  <bruno@clisp.org>
16598
16599         select tests, pselect tests: Refactor.
16600         * tests/test-select.h: New file, extracted from tests/test-select.c.
16601         (select_fn): New type.
16602         (test, do_select, do_select_nowait, do_select_wait, test_tty,
16603         test_connect_first, test_accept_first, test_pair, test_socket_pair,
16604         test_pipe): Add my_select argument.
16605         (test_function): Renamed from main. Add my_select argument.
16606         * tests/test-select.c: Move most code to tests/test-select.h. Include
16607         test-select.h.
16608         * modules/select-tests (Files): Add tests/test-select.h.
16609         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
16610         (my_select, main): New functions.
16611         * modules/pselect-tests (Files): Add tests/test-select.h,
16612         tests/macros.h, tests/signature.h.
16613         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
16614         (configure.ac): Check for <sys/wait.h>.
16615
16616 2011-07-22  Bruno Haible  <bruno@clisp.org>
16617
16618         sys_select tests: Check the signature of FD_*.
16619         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
16620         signature tests from here...
16621         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
16622         here.
16623         * modules/sys_select-tests (Files): Add tests/signature.h.
16624
16625 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
16626
16627         largefile: new module, replacing large-inode
16628         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
16629         * MODULES.html.sh: Add largefile, remove large-inode.
16630         * modules/largefile, m4/largefile.m4: New files.
16631         * modules/large-inode, m4/large-inode.m4: Remove.
16632
16633         fsusage: port to MacOS X 10.7 with 4 TiB file systems
16634         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
16635         implementations that use only 32 bits to count blocks.
16636         On typical hosts with 1024-byte blocks, this fails with file
16637         systems as small as 4 TiB.  Problem reported by Herb Wartens
16638         <http://debbugs.gnu.org/9140> and this should also fix a similar
16639         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
16640
16641         large-inode: New module
16642         * MODULES.html.sh: Add it.
16643         * modules/large-inode, m4/large-inode.m4: New files.
16644
16645         extensions: Enable extensions on MacOS X 10.5 and later.
16646         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
16647
16648 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
16649
16650         file-has-acl: use acl_extended_file_nofollow if available
16651         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
16652         (acl_extended_file): New macro.
16653         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
16654         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
16655
16656 2011-07-21  Bruno Haible  <bruno@clisp.org>
16657
16658         Declare system functions in a way that works with C++.
16659         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
16660         declare fdopendir as extern "C".
16661         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
16662         declare frexpl as extern "C".
16663         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
16664         declare gai_strerror as extern "C".
16665         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
16666         programs, declare gai_strerror as extern "C".
16667         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
16668         declare getlogin_r as extern "C".
16669         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
16670         as extern "C".
16671         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
16672         declare ldexpl as extern "C".
16673         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
16674         as extern "C".
16675         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
16676         program, declare getmntinfo as extern "C".
16677         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
16678         stpncpy as extern "C".
16679         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
16680         program, declare __xpg_strerror_r as extern "C".
16681         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
16682         strndup as extern "C".
16683         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
16684         declare memset and bzero as extern "C".
16685         Reported by Sam Steingold <sds@gnu.org>.
16686
16687 2011-07-12  Jim Meyering  <meyering@redhat.com>
16688
16689         maint.mk: prohibit inclusion of "verify.h" without use
16690         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
16691
16692 2011-07-19  Pádraig Brady  <P@draigBrady.com>
16693
16694         timer-time: A new module to check for timer_settime()
16695         * m4/timer_time.m4: Check for the posix function.
16696         * modules/timer-time: Add the new module.
16697         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
16698         Mention it.
16699
16700 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
16701             Bruno Haible  <bruno@clisp.org>
16702
16703         pthread_sigmask: assume POSIX threads if --avoid=threadlib
16704         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
16705         not defined, assume POSIX threads and look for pthread_sigmask in
16706         $LIBS, without changing $CPPFLAGS.
16707
16708 2011-07-19  Bruno Haible  <bruno@clisp.org>
16709
16710         strstr: Update cross-compilation guess.
16711         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
16712         CPUs, guess no, in view of glibc
16713         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
16714         Suggested by Eric Blake. Reported by Reuben Thomas.
16715
16716 2011-07-19  Pádraig Brady  <P@draigBrady.com>
16717
16718         getopt-gnu: suppress core dumps from detection code
16719         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
16720         to suppress core dumps that may well occur on glibc systems.
16721         * modules/getopt-gnu: Depend on nocrash.
16722
16723 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
16724
16725         pthread_sigmask: ensure usleep is declared
16726         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
16727         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
16728
16729 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
16730
16731         doc: Document NonStop portability issues.
16732         * doc/posix-functions/sigaction.texi (sigaction):
16733         * doc/posix-headers/signal.texi (signal.h):
16734         Document NonStop.  See Joachim Schmitz in
16735         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
16736
16737 2011-07-15  Bruno Haible  <bruno@clisp.org>
16738
16739         ffsl, ffsll: Avoid unportable behaviour.
16740         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
16741
16742 2011-07-15  Bruno Haible  <bruno@clisp.org>
16743
16744         ffs: More tests.
16745         * tests/test-ffs.c (NBITS): New macro.
16746         (main): Add more tests.
16747         * tests/test-ffsl.c (NBITS): New macro.
16748         (main): Add more tests.
16749         * tests/test-ffsll.c (NBITS): New macro.
16750         (main): Add more tests.
16751
16752 2011-07-15  Eric Blake  <eblake@redhat.com>
16753
16754         ffsl, ffsll: new modules
16755         * modules/ffsl: New file.
16756         * modules/ffsll: Likewise.
16757         * m4/ffsl.m4: Likewise.
16758         * m4/ffsll.m4: Likewise.
16759         * lib/ffsl.c: Likewise.
16760         * lib/ffsl.h: Likewise.
16761         * lib/ffsll.c: Likewise.
16762         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
16763         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
16764         * modules/string (Makefile.am): Substitute witnesses.
16765         * lib/strings.in.h (ffsl, ffsll): Declare.
16766         * modules/ffsl-tests: New test file.
16767         * modules/ffsll-tests: Likewise.
16768         * tests/test-ffsl.c: Likewise.
16769         * tests/test-ffsll.c: Likewise.
16770         * MODULES.html.sh (Integer arithmetic functions): Mention it.
16771         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
16772         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
16773
16774         ffs: fix m4 prerequisite
16775         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
16776
16777         ffs: avoid undefined behavior
16778         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
16779         * tests/test-ffs.c (naive, main): Avoid signed shifts.
16780         Reported by Bruno Haible.
16781
16782 2011-07-12  Bruno Haible  <bruno@clisp.org>
16783
16784         pthread_sigmask: Rely on module 'threadlib'.
16785         * modules/pthread_sigmask (Depends-on): Add threadlib.
16786         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
16787         is defined.
16788
16789 2011-07-12  Bruno Haible  <bruno@clisp.org>
16790
16791         regex: Depend on module 'strcase'.
16792         * modules/regex (Depends-on): Add strcase, for strcasecmp().
16793
16794 2011-07-12  Jim Meyering  <meyering@redhat.com>
16795
16796         warn-on-use: fix typo in file name
16797         * modules/snippet/warn-on-use (Files): Correct file name:
16798         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
16799
16800 2011-07-12  Bruno Haible  <bruno@clisp.org>
16801
16802         strings: Document module.
16803         * doc/posix-headers/strings.texi: Mention module 'strings'.
16804
16805 2011-07-12  Bruno Haible  <bruno@clisp.org>
16806
16807         Rename module '_Noreturn' to 'snippet/_Noreturn'.
16808         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
16809         (Files, Makefile.am): Update.
16810         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
16811         * modules/stdlib (Depends-on): Update.
16812
16813 2011-07-12  Bruno Haible  <bruno@clisp.org>
16814
16815         * NEWS: Mention the changes.
16816
16817         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
16818         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
16819         (Files, Makefile.am): Update.
16820         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
16821         * modules/arpa_inet (Depends-on): Update.
16822         * modules/ctype (Depends-on): Update.
16823         * modules/dirent (Depends-on): Update.
16824         * modules/fcntl-h (Depends-on): Update.
16825         * modules/glob (Depends-on): Update.
16826         * modules/iconv-h (Depends-on): Update.
16827         * modules/inttypes-incomplete (Depends-on): Update.
16828         * modules/langinfo (Depends-on): Update.
16829         * modules/locale (Depends-on): Update.
16830         * modules/math (Depends-on): Update.
16831         * modules/netdb (Depends-on): Update.
16832         * modules/poll-h (Depends-on): Update.
16833         * modules/pty (Depends-on): Update.
16834         * modules/search (Depends-on): Update.
16835         * modules/signal (Depends-on): Update.
16836         * modules/spawn (Depends-on): Update.
16837         * modules/stdio (Depends-on): Update.
16838         * modules/stdlib (Depends-on): Update.
16839         * modules/string (Depends-on): Update.
16840         * modules/strings (Depends-on): Update.
16841         * modules/sys_file (Depends-on): Update.
16842         * modules/sys_ioctl (Depends-on): Update.
16843         * modules/sys_select (Depends-on): Update.
16844         * modules/sys_socket (Depends-on): Update.
16845         * modules/sys_stat (Depends-on): Update.
16846         * modules/sys_time (Depends-on): Update.
16847         * modules/sys_times (Depends-on): Update.
16848         * modules/sys_utsname (Depends-on): Update.
16849         * modules/sys_wait (Depends-on): Update.
16850         * modules/termios (Depends-on): Update.
16851         * modules/time (Depends-on): Update.
16852         * modules/unistd (Depends-on): Update.
16853         * modules/wchar (Depends-on): Update.
16854         * modules/wctype-h (Depends-on): Update.
16855         * MODULES.html.sh (Support for building libraries and executables):
16856         Update.
16857
16858         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
16859         * modules/snippet/unused-parameter: Renamed from
16860         modules/unused-parameter.
16861         (Files, Makefile.am): Update.
16862         * build-aux/snippet/unused-parameter.h: Renamed from
16863         build-aux/unused-parameter.h.
16864         * modules/selinux-h (Depends-on): Update.
16865         * modules/unistr/base (Depends-on): Update.
16866         * MODULES.html.sh (Core language properties): Update.
16867
16868         Rename module 'link-warning' to 'snippet/link-warning'.
16869         * modules/snippet/link-warning: Renamed from modules/link-warning.
16870         (Files, Makefile.am): Update.
16871         * build-aux/snippet/link-warning.h: Renamed from
16872         build-aux/link-warning.h.
16873         * MODULES.html.sh (Support for building libraries and executables):
16874         Update.
16875
16876         Rename module 'c++defs' to 'snippet/c++defs'.
16877         * modules/snippet/c++defs: Renamed from modules/c++defs.
16878         (Files, Makefile.am): Update.
16879         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
16880         * modules/arpa_inet (Depends-on): Update.
16881         * modules/ctype (Depends-on): Update.
16882         * modules/dirent (Depends-on): Update.
16883         * modules/fcntl-h (Depends-on): Update.
16884         * modules/glob (Depends-on): Update.
16885         * modules/iconv-h (Depends-on): Update.
16886         * modules/langinfo (Depends-on): Update.
16887         * modules/locale (Depends-on): Update.
16888         * modules/math (Depends-on): Update.
16889         * modules/netdb (Depends-on): Update.
16890         * modules/poll-h (Depends-on): Update.
16891         * modules/pty (Depends-on): Update.
16892         * modules/search (Depends-on): Update.
16893         * modules/signal (Depends-on): Update.
16894         * modules/spawn (Depends-on): Update.
16895         * modules/stdio (Depends-on): Update.
16896         * modules/stdlib (Depends-on): Update.
16897         * modules/string (Depends-on): Update.
16898         * modules/strings (Depends-on): Update.
16899         * modules/sys_ioctl (Depends-on): Update.
16900         * modules/sys_select (Depends-on): Update.
16901         * modules/sys_socket (Depends-on): Update.
16902         * modules/sys_stat (Depends-on): Update.
16903         * modules/sys_time (Depends-on): Update.
16904         * modules/sys_wait (Depends-on): Update.
16905         * modules/termios (Depends-on): Update.
16906         * modules/time (Depends-on): Update.
16907         * modules/unistd (Depends-on): Update.
16908         * modules/wchar (Depends-on): Update.
16909         * modules/wctype-h (Depends-on): Update.
16910
16911         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
16912         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
16913         (Files, Makefile.am): Update.
16914         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
16915         * modules/argv-iter (Depends-on): Update.
16916         * modules/arpa_inet (Depends-on): Update.
16917         * modules/dirent (Depends-on): Update.
16918         * modules/fcntl-h (Depends-on): Update.
16919         * modules/fnmatch (Depends-on): Update.
16920         * modules/getopt-posix (Depends-on): Update.
16921         * modules/glob (Depends-on): Update.
16922         * modules/iconv-h (Depends-on): Update.
16923         * modules/inttypes-incomplete (Depends-on): Update.
16924         * modules/locale (Depends-on): Update.
16925         * modules/math (Depends-on): Update.
16926         * modules/netdb (Depends-on): Update.
16927         * modules/search (Depends-on): Update.
16928         * modules/signal (Depends-on): Update.
16929         * modules/spawn (Depends-on): Update.
16930         * modules/stdio (Depends-on): Update.
16931         * modules/stdlib (Depends-on): Update.
16932         * modules/string (Depends-on): Update.
16933         * modules/strings (Depends-on): Update.
16934         * modules/sys_socket (Depends-on): Update.
16935         * modules/sys_stat (Depends-on): Update.
16936         * modules/sys_time (Depends-on): Update.
16937         * modules/sys_times (Depends-on): Update.
16938         * modules/sys_utsname (Depends-on): Update.
16939         * modules/time (Depends-on): Update.
16940         * modules/unistd (Depends-on): Update.
16941         * modules/wchar (Depends-on): Update.
16942         * MODULES.html.sh (Support for building libraries and executables):
16943         Update.
16944
16945 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
16946
16947         Improvements on _Noreturn and related modules.
16948
16949         modules/_Exit-tests: test _Noreturn too
16950         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
16951         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
16952         (main): Use them.
16953
16954         stdnoreturn, stdnoreturn-tests: remove modules
16955         They're not needed here and a bit premature for use elsewhere.  See
16956         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
16957         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
16958         * tests/test-stdnoreturn.c: Remove files.
16959         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
16960         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
16961         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
16962         and using noreturn.
16963         * modules/openat, modules/sigpipe-die, modules/xalloc:
16964         * modules/xmemdup0, modules/xstrtol:
16965         Remove dependency on stdnoreturn.
16966
16967         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
16968         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
16969         Reparenthesize to avoid GCC warning.
16970         Support Microsoft's syntax.
16971         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
16972
16973         _Noreturn-tests: remove module
16974         * modules/_Noreturn-tests: Remove.
16975         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
16976         * tests/test-_Noreturn.c: Remove.
16977         * tests/test-stdnoreturn.c: Merge from the old
16978         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
16979
16980 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
16981
16982         _Noreturn, stdnoreturn, and related modules.
16983
16984         * top/maint.mk: Adjust to new noreturn support.
16985         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
16986         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
16987
16988         xalloc: use stdnoreturn.h
16989         * lib/xalloc.h: Include <stdnoreturn.h>.
16990         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16991         * modules/xalloc (Depends-on): Add stdnoreturn.
16992
16993         xstrtol: use stdnoreturn.h
16994         * lib/xstrtol.h: Include <stdnoreturn.h>.
16995         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16996         * modules/xstrtol (Depends-on): Add stdnoreturn.
16997
16998         xmemdup0: use stdnoreturn.h
16999         * lib/xmemdup0.h: Include <stdnoreturn.h>.
17000         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
17001         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
17002
17003         sigpipe-die: use stdnoreturn.h
17004         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
17005         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
17006         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
17007
17008         openat: use stdnoreturn.h
17009         * lib/openat.h: Include <stdnoreturn.h>.
17010         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
17011         * modules/openat (Depends-on): Add stdnoreturn.
17012
17013         * lib/openat-die.c (openat_save_fail): Modernize comment.
17014
17015         * lib/xalloc-die.c (xalloc_die): Modernize comment.
17016
17017         * lib/glthread/thread.h: Modernize comment.
17018
17019         obstack: use _Noreturn
17020         * lib/obstack.c (__attribute__): Remove macro.
17021         (print_and_abort): Use _Noreturn.
17022
17023         c-stack: use _Noreturn
17024         * lib/c-stack.c (die, overflow_handler, segv_handler):
17025         Use _Noreturn rather than __attribute__((noreturn)).
17026
17027         argmatch-tests, exclude_tests: use _Noreturn
17028         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
17029         Remove.
17030         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
17031
17032         stdlib: use _Noreturn
17033         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
17034         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
17035         * modules/stdlib (Depends-on): Add _Noreturn.
17036         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
17037
17038         stdnoreturn-tests: new module
17039         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
17040
17041         stdnoreturn: new module
17042         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
17043         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
17044
17045         _Noreturn-tests: new module
17046         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
17047
17048         _Noreturn: new module
17049         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
17050         New section, mentioning it.
17051         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
17052
17053         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
17054
17055 2011-07-11  Eric Blake  <eblake@redhat.com>
17056
17057         ffs: new module
17058         * modules/ffs: New file.
17059         * m4/ffs.m4: Likewise.
17060         * lib/ffs.c: Likewise.
17061         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
17062         * modules/strings (Makefile.am): Substitute witness.
17063         (Depends-on): Add c++defs.
17064         * lib/strings.in.h (ffs): Declare.
17065         * modules/ffs-tests: New test file.
17066         * tests/test-ffs.c: Test new module.
17067         * MODULES.html.sh (Integer arithmetic functions): Mention it.
17068         * doc/posix-functions/ffs.texi (ffs): Likewise.
17069
17070         regex: avoid compiler warning
17071         * lib/regex.c (includes): Include <strings.h>, for use of
17072         strcasecmp in regcomp.c.
17073         Reported by Joachim Schmitz.
17074
17075 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
17076
17077         stdint: respect system's intmax_t if INTMAX_MAX
17078         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
17079         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
17080         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
17081         long but int64_t is long long, and where we will clash with the
17082         system intmax_t if we override it.  See
17083         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
17084         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
17085         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
17086         similarly for UINTMAX_C.
17087
17088 2011-07-08  Bruno Haible  <bruno@clisp.org>
17089
17090         pthread_sigmask tests: Avoid a compiler warning.
17091         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
17092         non-zero.
17093
17094         sigprocmask tests: A better way to avoid a compiler warning.
17095         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
17096         (main): Complain if system() returns non-zero.
17097         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
17098
17099 2011-07-08  Bruno Haible  <bruno@clisp.org>
17100
17101         pthread_sigmask: Work around IRIX bug.
17102         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
17103         bug.
17104         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
17105         there may be unblocked pending signals.
17106         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
17107
17108 2011-07-08  Bruno Haible  <bruno@clisp.org>
17109
17110         pthread_sigmask: Work around Cygwin bug.
17111         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
17112         bug.
17113         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
17114         the system's pthread_sigmask function.
17115         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
17116
17117 2011-07-08  Bruno Haible  <bruno@clisp.org>
17118
17119         pthread_sigmask: Work around bug in single-threaded implementation.
17120         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
17121         FreeBSD, HP-UX, Solaris bug.
17122         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
17123         * lib/pthread_sigmask.c: Include <stddef.h>.
17124         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
17125         the system's pthread_sigmask function.
17126         * modules/pthread_sigmask (configure.ac): Invoke
17127         gl_PREREQ_PTHREAD_SIGMASK.
17128         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
17129         HP-UX, Solaris.
17130
17131 2011-07-08  Eric Blake  <eblake@redhat.com>
17132
17133         test-sigprocmask: avoid compiler warning
17134         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
17135         * tests/test-sigprocmask.c (main): Use it to silence warning.
17136         Reported by Jim Meyering.
17137
17138         test-snprintf: avoid compiler warning
17139         * tests/test-snprintf.c (main): Avoid shadowed declaration.
17140         * tests/test-vsnprintf.c (main): Likewise.
17141         Reported by Jim Meyering.
17142
17143 2011-07-08  Bruno Haible  <bruno@clisp.org>
17144
17145         Tests for module 'pthread_sigmask'.
17146         * modules/pthread_sigmask-tests: New file.
17147         * tests/test-pthread_sigmask1.c: New file, based on
17148         tests/test-sigprocmask.c.
17149         * tests/test-pthread_sigmask2.c: New file.
17150
17151 2011-07-08  Jim Meyering  <meyering@redhat.com>
17152
17153         test-getopt.h: avoid warning about an unused variable
17154         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
17155
17156 2011-07-07  Jim Meyering  <meyering@redhat.com>
17157
17158         maint: reduce list of files exempt from sc_prohibit_leading_TABs
17159         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
17160         now that it no longer contains leading TABs.
17161         Remove unused "url=FIXME" statement.
17162
17163 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
17164
17165         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
17166         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
17167         When gl_THREADLIB is not in use, assume that the POSIX sematics
17168         are desired.  This is better for Emacs, which uses POSIX semantics
17169         on GNUish and/or POSIXish platforms, and does not use threads at
17170         all otherwise.
17171
17172         pthread_sigmask: fix typo when testing for libraries
17173         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
17174         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
17175
17176 2011-07-08  Eric Blake  <eblake@redhat.com>
17177
17178         fts: introduce FTS_NOATIME
17179         * lib/fts_.h (FTS_NOATIME): New bit flag.
17180         (FTS_OPTIONMASK): Adjust.
17181         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
17182         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
17183
17184 2011-07-08  Bruno Haible  <bruno@clisp.org>
17185
17186         Tests for module 'thread'.
17187         * modules/thread-tests: New file.
17188         * tests/test-thread_self.c: New file.
17189         * tests/test-thread_create.cc: New file.
17190
17191 2011-07-08  Bruno Haible  <bruno@clisp.org>
17192
17193         thread: Avoid gcc warnings when using gl_thread_self().
17194         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
17195         'void *'.
17196         (gl_thread_self_pointer): Update.
17197
17198 2011-07-07  Bruno Haible  <bruno@clisp.org>
17199
17200         signal-c++-tests: Check declaration of pthread_sigmask.
17201         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
17202         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
17203         $(LIB_PTHREAD_SIGMASK).
17204
17205 2011-07-07  Bruno Haible  <bruno@clisp.org>
17206
17207         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
17208         * lib/signal.in.h (pthread_sigmask): Override if
17209         REPLACE_PTHREAD_SIGMASK is 1.
17210         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
17211         REPLACE_PTHREAD_SIGMASK.
17212         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
17213         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
17214         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
17215         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
17216         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
17217
17218 2011-07-07  Bruno Haible  <bruno@clisp.org>
17219
17220         pthread_sigmask: Ensure declaration in <signal.h>.
17221         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
17222         include <pthread.h>.
17223         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
17224         problem.
17225
17226 2011-07-07  Bruno Haible  <bruno@clisp.org>
17227
17228         pthread_sigmask: Document the module.
17229         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
17230
17231 2011-07-07  Bruno Haible  <bruno@clisp.org>
17232
17233         pthread_sigmask: Follow gnulib conventions.
17234         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
17235         gl_PTHREAD_SIGMASK.
17236         * modules/pthread_sigmask (configure.ac): Update.
17237
17238 2011-07-07  Bruno Haible  <bruno@clisp.org>
17239
17240         pthread_sigmask: Make declaration C++ safe.
17241         * lib/signal.in.h: In two special conditions, just do an #include_next.
17242         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
17243         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
17244         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
17245         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
17246         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
17247         not REPLACE_PTHREAD_MASK.
17248         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
17249         not REPLACE_PTHREAD_MASK.
17250         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
17251
17252 2011-07-07  Bruno Haible  <bruno@clisp.org>
17253
17254         pthread_sigmask: Fix return value.
17255         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
17256         * lib/pthread_sigmask.c: New file.
17257         * modules/pthread_sigmask (Files): Add it.
17258         (configure.ac): Invoke AC_LIBOBJ.
17259
17260 2011-07-07  Eric Blake  <eblake@redhat.com>
17261
17262         getopt: more portable argv creation
17263         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
17264         const, use char arrays rather than strings.
17265         Suggested by Paul Eggert.
17266
17267 2011-07-07  Bruno Haible  <bruno@clisp.org>
17268
17269         Tests for module 'sigprocmask'.
17270         * modules/sigprocmask-tests: New file.
17271         * tests/test-sigprocmask.c: New file.
17272
17273 2011-07-07  Bruno Haible  <bruno@clisp.org>
17274
17275         float tests: Tweak.
17276         * tests/test-float.c (main): Tweak skip message.
17277
17278 2011-07-07  Eric Blake  <eblake@redhat.com>
17279
17280         getopt: avoid compiler warning during configure
17281         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
17282         assigning string literals to non-const pointer.
17283
17284         getopt-gnu: avoid crash in glibc getopt
17285         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
17286         * tests/test-getopt.h (test_getopt): Enhance test.
17287         * tests/test-getopt_long.h (test_getopt_long): Likewise.
17288         * doc/posix-functions/getopt.texi (getopt): Document it.
17289         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
17290         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
17291         Likewise.
17292
17293 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
17294
17295         getopt: handle W; without long options in getopt [BZ #12922]
17296         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
17297         but no long options are defined, just return 'W'.
17298
17299 2011-07-07  Bruno Haible  <bruno@clisp.org>
17300
17301         Avoid literal tabs.
17302         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
17303         variable containing a tab instead of a literal tab.
17304         Reported by Jim Meyering.
17305
17306 2011-07-07  Bruno Haible  <bruno@clisp.org>
17307
17308         Comments.
17309         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
17310
17311 2011-07-06  Bruno Haible  <bruno@clisp.org>
17312
17313         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
17314         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
17315         <winsock2.h>.
17316         (rpl_fd_isset, FD_ISSET): New definitions, copied from
17317         lib/sys_socket.in.h.
17318         (close, gethostname): Hide declarations from <winsock2.h>.
17319         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
17320         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
17321         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
17322         (select): Don't override if gnulib's <sys/select.h> was already
17323         included.
17324         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
17325         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
17326         setsockopt, shutdown, select): Tweak indentation.
17327
17328 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
17329
17330         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
17331         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
17332         in an application that does not use the sys_select module.
17333
17334 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
17335
17336         poll: do not return 0 on timeout=-1
17337         * lib/poll.c: Loop with yield if no events occurred.
17338
17339 2011-07-06  Eric Blake  <eblake@redhat.com>
17340
17341         pthread_sigmask: always replace when not using pthread
17342         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
17343         replacement when using some threading other than pthread.  Fix
17344         logic bug.
17345
17346 2011-07-06  Bruno Haible  <bruno@clisp.org>
17347
17348         Comments.
17349         * m4/printf.m4: Update comments about mingw.
17350
17351 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
17352
17353         sys_select: define sigset_t more portably
17354         * lib/sys_select.in.h: Always include <sys/types.h>, since
17355         we now need sigset_t and mingw defines it there.
17356         Include <signal.h> before split inclusion guard, to avoid
17357         mishaps on Solaris, whose <signal.h> eventually includes us.
17358         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
17359         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
17360         which come from ...
17361         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
17362         gl_CHECK_TYPE_SIGSET_T.
17363         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
17364         does the real work.
17365         * modules/sys_select (Depends-on): Add 'signal'.
17366
17367         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
17368         Suggested by Bruno Haible.
17369
17370         pselect: Use pthread_sigmask, not sigprocmask.
17371         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
17372         multithreaded apps better than sigprocmask does.
17373         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
17374         sigprocmask directly.
17375
17376 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
17377
17378         * lib/pselect.c (pselect): Use plain name, without "rpl_".
17379         Don't #undef,  since we don't need any underlying pselect.
17380         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
17381         (Depends-on): Add select.
17382         (Link): Add $(LIBSOCKET).
17383         These changes suggested by Bruno Haible.
17384
17385         pselect: document better
17386         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
17387         * doc/posix-functions/pselect.texi (pselect): Document new module.
17388
17389         pthread_sigmask: new module
17390         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
17391         * doc/posix-functions/pthread_sigmask.texi: Document new module.
17392         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
17393         This is done only as a macro; I don't know how well that'll
17394         work for C++.  Move <sys/types.h> include before the include_next,
17395         to avoid mishap on Solaris.
17396         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
17397         * modules/signal (Makefile.am): Substitute the check's results.
17398         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
17399
17400         test-pselect: new module
17401         * modules/pselect-tests, tests/test-pselect.c: New files.
17402         * tests/test-select.c, tests/test-sys_select-c++.cc:
17403         If TEST_PSELECT is defined, test pselect instead of testing select.
17404
17405         * tests/test-sys_select.c (sigset_t): Test for it, too.
17406         Suggested by Bruno Haible.
17407
17408 2011-07-05  Eric Blake  <eblake@redhat.com>
17409
17410         snprintf: guarantee %1$d, for libintl
17411         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
17412         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
17413         * doc/posix-functions/snprintf.texi (snprintf): Update.
17414         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
17415         * tests/test-snprintf.c (main): Enhance test.
17416         * tests/test-vsnprintf.c (main): Likewise.
17417
17418 2011-07-05  Jim Meyering  <meyering@redhat.com>
17419
17420         maint: exempt stdio-read.c and stdio-write.c from the cppi check
17421         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
17422         per Bruno's request, to accommodate this idiom (no space after "#")
17423         even when the function is inside an #if block:
17424         char *
17425         gets (char *s)
17426         #undef gets
17427         {
17428           ...
17429         }
17430
17431 2011-07-04  Jim Meyering  <meyering@redhat.com>
17432
17433         maint: indent with spaces, not TABs, and add a rule to check this
17434         * tests/test-userspec.c: Indent with spaces, not TABs.
17435         * tests/test-argp.c: Likewise.
17436         * tests/test-c-stack2.sh: Likewise.
17437         * tests/test-parse-duration.sh: Likewise
17438         * m4/strtod.m4: Likewise.
17439         * m4/alloca.m4: Likewise.
17440         * m4/pselect.m4: Likewise.
17441         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
17442
17443 2011-07-03  Jim Meyering  <meyering@redhat.com>
17444
17445         maint.mk: correct omissions in prohibit_argmatch_without_use check
17446         This rule would mistakenly report that argmatch.h is included without
17447         use even when both the argmatch and invalid_arg macro were used.
17448         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
17449         of argmatch and invalid_arg.
17450
17451 2011-07-03  Bruno Haible  <bruno@clisp.org>
17452
17453         Comments about EINTR.
17454         * lib/safe-read.h: Explain the purpose of this module.
17455         * lib/safe-write.h: Likewise.
17456         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
17457         module.
17458         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
17459         module.
17460         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17461
17462 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
17463
17464         xnanosleep: Rewrite to use new dtotimespec module.
17465         It has the conversion code that used to be in xnanosleep.
17466         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
17467         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
17468         (TIME_T_MAX): Remove.
17469         (xnanosleep): Rewrite in terms of dtotimespec.
17470         * modules/xnanosleep (Depends-on): Add dtotimespec.
17471         Remove intprops, stdbool.
17472
17473         timespec-add, timespec-sub: new modules
17474         * lib/timespec.h (timespec_add, timespec_sub): New decls.
17475         * lib/timespec-add.c, lib/timespec-sub.c:
17476         * modules/timespec-add, modules/timespec-sub: New files.
17477
17478         dtotimespec: new module
17479         * lib/timespec.h (dtotimespec): New decl.
17480         * lib/dtotimespec.c, modules/dtotimespec: New files.
17481
17482         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
17483
17484         pselect: new module
17485         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
17486         (pselect): New decls.
17487         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
17488         since the standard pselect decl uses 'restrict'.
17489         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
17490         HAVE_PSELECT, REPLACE_PSELECT.
17491         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
17492         HAVE_PSELECT, REPLACE_PSELECT.
17493         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
17494
17495         sys_select: don't depend on sys_socket
17496         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
17497         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
17498         This fix works on GNU and GNU-like platforms, but has not been tested
17499         on native Windows.
17500         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
17501         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
17502         gl_HEADER_SYS_SOCKET.
17503         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
17504         gl_PREREQ_SYS_H_WINSOCK2.
17505
17506 2011-06-29  Eric Blake  <eblake@redhat.com>
17507
17508         pipe2: fix C89 compile problem
17509         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
17510         Reported by Bruno Haible.
17511
17512         pipe, pipe2: don't corrupt fd on error
17513         * lib/pipe.c (pipe): Leave fd unchanged on error.
17514         * lib/pipe2.c (pipe2): Likewise.
17515         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
17516         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
17517
17518 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
17519
17520         mmap-anon: do not use regular expressions inadvertently
17521         * m4/mmap-anon.m4: Remove trailing period from strings sought
17522         in the output.
17523
17524 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
17525
17526         nanosleep: fix integer overflow problem
17527         * lib/nanosleep.c (my_usleep): Don't assume signed integer
17528         arithmetic wraps around on overflow.
17529
17530         nanosleep: simplify carrying
17531         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
17532         first call to the underyling nanosleep, not for the last one.
17533         This doesn't fix any bugs, but it simplifies the computation of
17534         the remaining delay.  Found while auditing integer overflow issues.
17535
17536         dup2: remove test for existence of fcntl
17537         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
17538         "#if HAVE_FCNTL", in the configure-time test program.
17539         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
17540         and therefore speeds up "configure" a bit.  Found while
17541         adding the dup2 module to Emacs.
17542
17543 2011-06-24  Eric Blake  <eblake@redhat.com>
17544
17545         maint.mk: enhance useless header checks
17546         * top/maint.mk (_sc_header_without_use): Check both include
17547         styles.
17548         (sc_prohibit_assert_without_use)
17549         (sc_prohibit_close_stream_without_use)
17550         (sc_prohibit_getopt_without_use)
17551         (sc_prohibit_quotearg_without_use)
17552         (sc_prohibit_quote_without_use)
17553         (sc_prohibit_long_options_without_use)
17554         (sc_prohibit_inttostr_without_use)
17555         (sc_prohibit_ignore_value_without_use)
17556         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
17557         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
17558         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
17559         (sc_prohibit_hash_pjw_without_use)
17560         (sc_prohibit_safe_read_without_use)
17561         (sc_prohibit_argmatch_without_use)
17562         (sc_prohibit_canonicalize_without_use)
17563         (sc_prohibit_root_dev_ino_without_use)
17564         (sc_prohibit_openat_without_use)
17565         (sc_prohibit_c_ctype_without_use)
17566         (sc_prohibit_signal_without_use)
17567         (sc_prohibit_stdio--_without_use)
17568         (sc_prohibit_stdio-safer_without_use)
17569         (sc_prohibit_strings_without_use)
17570         (sc_prohibit_intprops_without_use)
17571         (sc_prohibit_stddef_without_use)
17572         (sc_prohibit_xfreopen_without_use): Update clients.
17573
17574 2011-06-24  Jim Meyering  <meyering@redhat.com>
17575
17576         syntax-check: keep one maint.mk rule in sync with its header
17577         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
17578         of the bug Eric has just fixed, with today's commit 25e4c2ec.
17579         I prefer to avoid temporary files here, so use <(...), but that
17580         is not supported by /bin/sh, so...
17581         (SHELL): Define to /bin/bash.
17582
17583 2011-06-24  Eric Blake  <eblake@redhat.com>
17584
17585         maint.mk: update sc_prohibit_intprops_without_use
17586         * top/maint.mk (_intprops_names): Match recent changes.
17587
17588 2011-06-24  Bruno Haible  <bruno@clisp.org>
17589
17590         strerror-override: No-op tweak.
17591         * lib/strerror-override.h (strerror_override): Reorder conditions,
17592         for consistency with lib/strerror-override.c.
17593
17594 2011-06-23  Eric Blake  <eblake@redhat.com>
17595
17596         maint.mk: test further PATH_MAX issues
17597         * top/maint.mk (sc_prohibit_path_max_array): Rename...
17598         (sc_prohibit_path_max_allocation): ...and also test alloca.
17599         Suggested by Jim Meyering.
17600
17601 2011-06-22  Eric Blake  <eblake@redhat.com>
17602
17603         maint.mk: add syntax-check to avoid char[PATH_MAX]
17604         * top/maint.mk (sc_prohibit_path_max_array): New rule.
17605
17606         stat: be robust to PATH_MAX definition
17607         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
17608         * modules/stat (Depends-on): Add verify.
17609
17610         link: work around IRIX bug
17611         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
17612         * lib/link.c (rpl_link): Work around it.
17613         * tests/test-link.h (test_link): Enhance test.
17614         * doc/posix-functions/link.texi (link): Document the bug.
17615
17616         getopt: silence clang warning
17617         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
17618         dereference.
17619         Reported by Gustavo Martin Domato.
17620
17621 2011-06-22  Jim Meyering  <meyering@redhat.com>
17622
17623         bootstrap: do not insert a blank line into each .gitignore file
17624         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
17625
17626 2011-06-21  Eric Blake  <eblake@redhat.com>
17627
17628         perror: test for output mismatch
17629         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
17630         perror on IRIX.
17631
17632         strerror_r: fix OpenBSD behavior on out-of-range
17633         * lib/strerror_r.c (strerror_r): Always use maximal string.
17634         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
17635
17636         strerror_r: fix OpenBSD behavior on 0
17637         * lib/strerror-override.c (strerror_override): Also override 0
17638         when needed.
17639         * lib/strerror-override.h (strerror_override): Likewise.
17640         * lib/strerror.c (strerror): Simplify, now that 0 override is done
17641         earlier.
17642         * lib/strerror_r.c (strerror_r): Likewise.
17643         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
17644         behavior...
17645         (gl_FUNC_STRERROR_0): ...into new macro.
17646         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
17647         is overridden.
17648         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
17649         * modules/strerror-override (Files): Add strerror.m4.
17650         (configure.ac): Also provide override for 0 when needed.
17651         * doc/posix-functions/strerror.texi (strerror): Document this.
17652         * doc/posix-functions/perror.texi (perror): Likewise.
17653
17654         perror: adjust array size
17655         * modules/perror (Depends-on): Add strerror-override.
17656         * lib/perror.c (perror): Use it to avoid magic number.
17657
17658         strerror-override: reduce size
17659         * lib/strerror-override.c (strerror_override): Use fewer lines.
17660
17661 2011-06-20  Bruno Haible  <bruno@clisp.org>
17662
17663         pathmax: Ensure correct value for PATH_MAX on HP-UX.
17664         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
17665
17666 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
17667
17668         alloca: port to compilers that can optimize like GCC 4.6.0
17669         * lib/alloca.c (find_stack_direction): New signature, taken from
17670         Autoconf git.  This works with GCC 4.6.0.  This code should never
17671         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
17672         be used with other compilers that optimize as well as GCC 4.6.0 does.
17673         (alloca): Adjust to new signature.
17674         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
17675         New macro, which patches Autoconf in a similar way.
17676
17677         c-stack: stop worrying about stack direction
17678         * lib/c-stack.c (find_stack_direction): Remove.
17679         (segv_handler): Don't worry about stack direction growth, as it's
17680         too much of a pain to configure this correctly, given how compilers
17681         are optimizing-away our stack-growth detection code.  Instead, assume
17682         that any access to just before or just after the stack is OK.
17683         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
17684         Don't require AC_FUNC_ALLOCA; no longer needed.
17685
17686 2011-06-20  Eric Blake  <eblake@redhat.com>
17687
17688         test-stat: don't allocate PATH_MAX bytes
17689         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
17690         PATH_MAX-sized buffer.
17691         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
17692         * modules/stat-tests (Depends-on): Likewise.
17693         * tests/test-fstatat.c (includes): Drop pathmax.h.
17694         * tests/test-stat.c (includes): Likewise.
17695         Reported by Bruno Haible.
17696
17697 2011-06-20  Bruno Haible  <bruno@clisp.org>
17698
17699         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
17700         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
17701         * lib/float.c: New file.
17702         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
17703         REPLACE_FLOAT_LDBL.
17704         * modules/float (Files): Add lib/float.c.
17705         (configure.ac): Invoke AC_LIBOBJ.
17706         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
17707
17708 2011-06-20  Bruno Haible  <bruno@clisp.org>
17709
17710         Tests for module 'float'.
17711         * modules/float-tests: New file.
17712         * tests/test-float.c: New file.
17713
17714 2011-06-19  Bruno Haible  <bruno@clisp.org>
17715
17716         isinf: Coding style.
17717         * lib/isinf.c: Use GNU coding style.
17718
17719 2011-06-19  Bruno Haible  <bruno@clisp.org>
17720
17721         linkat test: Avoid test failure on AIX 7.1.
17722         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
17723         * tests/test-link.h (test_link): Likewise.
17724
17725 2011-06-19  Bruno Haible  <bruno@clisp.org>
17726
17727         pread test: Avoid test failure on OpenBSD 4.9.
17728         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
17729
17730 2011-06-19  Bruno Haible  <bruno@clisp.org>
17731
17732         sprintf-posix: Fix test failure on AIX 7.1.
17733         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
17734         * doc/posix-functions/dprintf.texi: Mention limited precision problem
17735         on AIX.
17736         * doc/posix-functions/fprintf.texi: Likewise.
17737         * doc/posix-functions/printf.texi: Likewise.
17738         * doc/posix-functions/snprintf.texi: Likewise.
17739         * doc/posix-functions/sprintf.texi: Likewise.
17740         * doc/posix-functions/vdprintf.texi: Likewise.
17741         * doc/posix-functions/vfprintf.texi: Likewise.
17742         * doc/posix-functions/vprintf.texi: Likewise.
17743         * doc/posix-functions/vsnprintf.texi: Likewise.
17744         * doc/posix-functions/vsprintf.texi: Likewise.
17745
17746 2011-06-19  Bruno Haible  <bruno@clisp.org>
17747
17748         roundl-ieee: Fix test failure on AIX 7.1.
17749         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
17750         * doc/posix-functions/roundl.texi: Mention problem with negative
17751         arguments.
17752
17753 2011-06-19  Bruno Haible  <bruno@clisp.org>
17754
17755         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
17756         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
17757         * doc/posix-functions/round.texi: Mention problem with negative
17758         arguments.
17759         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
17760
17761 2011-06-19  Bruno Haible  <bruno@clisp.org>
17762
17763         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
17764         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
17765         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
17766         * doc/posix-functions/roundf.texi: Mention problem with negative
17767         arguments.
17768         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
17769
17770 2011-06-19  Bruno Haible  <bruno@clisp.org>
17771
17772         ceilf-ieee: Work around bug on MacOS X 10.5.
17773         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
17774
17775         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
17776         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
17777         IEEE compliant, avoid compiler optimizations.
17778         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
17779         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
17780         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
17781         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
17782         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
17783         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
17784         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
17785         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
17786         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
17787         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
17788
17789 2011-06-19  Bruno Haible  <bruno@clisp.org>
17790
17791         ceilf-ieee: Work around bug on AIX 7.1.
17792         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
17793         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
17794
17795 2011-06-19  Bruno Haible  <bruno@clisp.org>
17796
17797         ceil-ieee: Work around bug on AIX 7.1.
17798         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
17799         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
17800
17801 2011-06-18  Bruno Haible  <bruno@clisp.org>
17802
17803         fsync test: Avoid test failure on MacOS X and AIX.
17804         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
17805         EINVAL.
17806
17807 2011-06-18  Bruno Haible  <bruno@clisp.org>
17808
17809         openat, fdopendir tests: Fix link errors.
17810         * modules/openat-tests (Depends-on): Add progname.
17811         * modules/fdopendir-tests (Depends-on): Likewise.
17812         * tests/test-fchownat.c: Include progname.h.
17813         (main): Call set_program_name.
17814         * tests/test-fstatat.c: Include progname.h.
17815         (main): Call set_program_name.
17816         * tests/test-mkdirat.c: Include progname.h.
17817         (main): Call set_program_name.
17818         * tests/test-openat.c: Include progname.h.
17819         (main): Call set_program_name.
17820         * tests/test-unlinkat.c: Include progname.h.
17821         (main): Call set_program_name.
17822         * tests/test-fdopendir.c: Include progname.h.
17823         (main): Call set_program_name.
17824
17825 2011-06-18  Bruno Haible  <bruno@clisp.org>
17826
17827         Doc update.
17828         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
17829         HP-UX.
17830         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
17831
17832 2011-06-18  Bruno Haible  <bruno@clisp.org>
17833
17834         getcwd tests: Avoid compilation error on HP-UX 11.31.
17835         * modules/getcwd-tests (Depends-on): Add pathmax.
17836         * tests/test-getcwd.c: Include pathmax.h.
17837
17838 2011-06-18  Bruno Haible  <bruno@clisp.org>
17839
17840         isfinite, isinf: Fix link error on AIX 6 and 7.
17841         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
17842         needed, also test the macro with a 'float' argument.
17843         * m4/isinf.m4 (gl_ISINF): Likewise.
17844
17845 2011-06-18  Bruno Haible  <bruno@clisp.org>
17846
17847         getloadavg: Don't clobber LIBS. Regression from previous commit.
17848         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
17849         AC_CHECK_LIB from here...
17850         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
17851         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
17852         gl_func_getloadavg_done.
17853         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17854
17855 2011-06-18  Bruno Haible  <bruno@clisp.org>
17856
17857         clean-temp: Improve documentation.
17858         * lib/clean-temp.h: Explain better how to use this module.
17859         Reported by John Darrington <john@darrington.wattle.id.au>.
17860
17861 2011-06-17  Bruno Haible  <bruno@clisp.org>
17862
17863         pread, pwrite: Avoid cc warning on AIX.
17864         * lib/unistd.in.h (pread): Undefine before defining as a macro.
17865         (pwrite): Likewise.
17866
17867 2011-06-17  Bruno Haible  <bruno@clisp.org>
17868
17869         spawn-pipe tests: Fix link error.
17870         * tests/test-spawn-pipe-child.c: Undefine fprintf.
17871         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17872
17873 2011-06-17  Bruno Haible  <bruno@clisp.org>
17874
17875         Tests: Remove unnecessary dependency.
17876         * modules/canonicalize-tests (Depends-on): Remove progname.
17877         * modules/chown-tests (Depends-on): Likewise.
17878         * modules/dirname-tests (Depends-on): Likewise.
17879         * modules/fdopendir-tests (Depends-on): Likewise.
17880         * modules/fdutimensat-tests (Depends-on): Likewise.
17881         * modules/hash-tests (Depends-on): Likewise.
17882         * modules/lchown-tests (Depends-on): Likewise.
17883         * modules/linkat-tests (Depends-on): Likewise.
17884         * modules/renameat-tests (Depends-on): Likewise.
17885         * modules/spawn-pipe-tests (Depends-on): Likewise.
17886         * modules/utimensat-tests (Depends-on): Likewise.
17887
17888 2011-06-17  Bruno Haible  <bruno@clisp.org>
17889
17890         spawn-pipe tests: Fix link error.
17891         * tests/test-spawn-pipe-child.c: Undefine fflush.
17892
17893 2011-06-17  Bruno Haible  <bruno@clisp.org>
17894
17895         Fix tests link errors.
17896         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
17897         * modules/chown-tests (Makefile.am): Don't link test-chown with
17898         LIBINTL.
17899         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
17900         LIBINTL.
17901         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
17902         LIBINTL.
17903         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
17904         LIBINTL.
17905
17906 2011-06-16  Bruno Haible  <bruno@clisp.org>
17907
17908         crypto/gc-sha1: Fix recent regression.
17909         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
17910         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
17911
17912         crypto/gc-md5: Fix recent regression.
17913         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
17914
17915         crypto/gc-md4: Fix recent regression.
17916         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
17917         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
17918
17919         crypto/gc-arctwo: Fix recent regression.
17920         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
17921         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
17922
17923         crypto/gc-rijndael: Fix recent regression.
17924         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
17925         (configure.ac): Invoke AC_LIBOBJ here.
17926         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
17927         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17928
17929         crypto/gc-hmac-sha1: Fix recent regression.
17930         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
17931         (configure.ac): Invoke AC_LIBOBJ here.
17932         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
17933         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17934
17935         crypto/gc-hmac-md5: Fix recent regression.
17936         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
17937         (configure.ac): Invoke AC_LIBOBJ here.
17938         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
17939         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17940
17941         crypto/gc-des: Fix recent regression.
17942         * modules/crypto/gc-des (Files): Remove m4/des.m4.
17943         (configure.ac): Invoke AC_LIBOBJ here.
17944         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
17945         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17946
17947         crypto/gc-arcfour: Fix recent regression.
17948         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
17949         (configure.ac): Invoke AC_LIBOBJ here.
17950         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
17951         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17952
17953 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
17954
17955         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
17956         After the 2011-05-21 change, this macro requires
17957         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
17958         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
17959
17960 2011-06-16  Bruno Haible  <bruno@clisp.org>
17961
17962         fprintftime: Move AC_LIBOBJ invocations to module description.
17963         * m4/fprintftime.m4: Remove file.
17964         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
17965         (configure.ac): Remove gl_FPRINTFTIME call.
17966         (Makefile.am): Augment lib_SOURCES.
17967         Reported by Jim Meyering.
17968
17969 2011-06-16  Bruno Haible  <bruno@clisp.org>
17970
17971         tmpfile-safer: Finish 2011-05-23 commit.
17972         * m4/stdio-safer.m4: Really remove file.
17973         Reported by Jim Meyering.
17974
17975 2011-06-16  Bruno Haible  <bruno@clisp.org>
17976
17977         syntax-check: Fix typo.
17978         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
17979         printf-posix.m4.
17980         Reported by Jim Meyering.
17981
17982 2011-06-13  Jim Meyering  <meyering@redhat.com>
17983
17984         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
17985         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
17986
17987 2011-05-23  Bruno Haible  <bruno@clisp.org>
17988
17989         yesno: Move AC_LIBOBJ invocations to module description.
17990         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
17991         * modules/yesno (Makefile.am): Augment lib_SOURCES.
17992
17993 2011-05-23  Bruno Haible  <bruno@clisp.org>
17994
17995         xstrtol: Move AC_LIBOBJ invocations to module description.
17996         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
17997         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
17998
17999 2011-05-23  Bruno Haible  <bruno@clisp.org>
18000
18001         xstrtold: Move AC_LIBOBJ invocations to module description.
18002         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
18003         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
18004
18005 2011-05-23  Bruno Haible  <bruno@clisp.org>
18006
18007         xstrtod: Move AC_LIBOBJ invocations to module description.
18008         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
18009         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
18010
18011 2011-05-23  Bruno Haible  <bruno@clisp.org>
18012
18013         xnanosleep: Move AC_LIBOBJ invocations to module description.
18014         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
18015         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
18016
18017 2011-05-23  Bruno Haible  <bruno@clisp.org>
18018
18019         xgetcwd: Move AC_LIBOBJ invocations to module description.
18020         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
18021         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
18022
18023 2011-05-23  Bruno Haible  <bruno@clisp.org>
18024
18025         xalloc: Move AC_LIBOBJ invocations to module description.
18026         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
18027         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
18028
18029 2011-05-23  Bruno Haible  <bruno@clisp.org>
18030
18031         write-any-file: Move AC_LIBOBJ invocations to module description.
18032         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
18033         invocation.
18034         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
18035
18036 2011-05-23  Bruno Haible  <bruno@clisp.org>
18037
18038         utimens: Move AC_LIBOBJ invocations to module description.
18039         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
18040         * modules/utimens (Makefile.am): Augment lib_SOURCES.
18041
18042 2011-05-23  Bruno Haible  <bruno@clisp.org>
18043
18044         utimecmp: Move AC_LIBOBJ invocations to module description.
18045         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
18046         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
18047
18048 2011-05-23  Bruno Haible  <bruno@clisp.org>
18049
18050         userspec: Move AC_LIBOBJ invocations to module description.
18051         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
18052         * modules/userspec (Makefile.am): Augment lib_SOURCES.
18053
18054 2011-05-23  Bruno Haible  <bruno@clisp.org>
18055
18056         unlinkdir: Move AC_LIBOBJ invocations to module description.
18057         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
18058         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
18059
18060 2011-05-23  Bruno Haible  <bruno@clisp.org>
18061
18062         unistd-safer: Move AC_LIBOBJ invocations to module description.
18063         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
18064         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
18065
18066 2011-05-23  Bruno Haible  <bruno@clisp.org>
18067
18068         tempname: Move AC_LIBOBJ invocations to module description.
18069         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
18070         * modules/tempname (Makefile.am): Augment lib_SOURCES.
18071
18072 2011-05-23  Bruno Haible  <bruno@clisp.org>
18073
18074         strftime: Move AC_LIBOBJ invocations to module description.
18075         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
18076         * modules/strftime (Makefile.am): Augment lib_SOURCES.
18077
18078 2011-05-23  Bruno Haible  <bruno@clisp.org>
18079
18080         stdlib-safer: Move AC_LIBOBJ invocations to module description.
18081         * m4/stdlib-safer.m4: Remove file.
18082         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
18083         (configure.ac): Remove gl_STDLIB_SAFER call.
18084         (Makefile.am): Augment lib_SOURCES.
18085
18086 2011-05-23  Bruno Haible  <bruno@clisp.org>
18087
18088         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
18089         * m4/stdio-safer.m4: Remove file.
18090         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
18091         (configure.ac): Remove gl_TMPFILE_SAFER call.
18092         (Makefile.am): Augment lib_SOURCES.
18093
18094 2011-05-23  Bruno Haible  <bruno@clisp.org>
18095
18096         popen-safer: Move AC_LIBOBJ invocations to module description.
18097         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
18098         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
18099         (configure.ac): Remove gl_POPEN_SAFER call.
18100         (Makefile.am): Augment lib_SOURCES.
18101
18102 2011-05-23  Bruno Haible  <bruno@clisp.org>
18103
18104         freopen-safer: Move AC_LIBOBJ invocations to module description.
18105         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
18106         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
18107         (configure.ac): Remove gl_FREOPEN_SAFER call.
18108         (Makefile.am): Augment lib_SOURCES.
18109
18110 2011-05-23  Bruno Haible  <bruno@clisp.org>
18111
18112         fopen-safer: Move AC_LIBOBJ invocations to module description.
18113         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
18114         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
18115         (configure.ac): Remove gl_FOPEN_SAFER call.
18116         (Makefile.am): Augment lib_SOURCES.
18117
18118 2011-05-23  Bruno Haible  <bruno@clisp.org>
18119
18120         crypto/sha512: Move AC_LIBOBJ invocations to module description.
18121         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
18122         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
18123
18124 2011-05-23  Bruno Haible  <bruno@clisp.org>
18125
18126         crypto/sha256: Move AC_LIBOBJ invocations to module description.
18127         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
18128         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
18129
18130 2011-05-23  Bruno Haible  <bruno@clisp.org>
18131
18132         crypto/sha1: Move AC_LIBOBJ invocations to module description.
18133         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
18134         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
18135
18136 2011-05-23  Bruno Haible  <bruno@clisp.org>
18137
18138         settime: Move AC_LIBOBJ invocations to module description.
18139         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
18140         * modules/settime (Makefile.am): Augment lib_SOURCES.
18141
18142 2011-05-23  Bruno Haible  <bruno@clisp.org>
18143
18144         savedir: Move AC_LIBOBJ invocations to module description.
18145         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
18146         * modules/savedir (Makefile.am): Augment lib_SOURCES.
18147
18148 2011-05-23  Bruno Haible  <bruno@clisp.org>
18149
18150         save-cwd: Move AC_LIBOBJ invocations to module description.
18151         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
18152         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
18153
18154 2011-05-23  Bruno Haible  <bruno@clisp.org>
18155
18156         same: Move AC_LIBOBJ invocations to module description.
18157         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
18158         * modules/same (Makefile.am): Augment lib_SOURCES.
18159
18160 2011-05-23  Bruno Haible  <bruno@clisp.org>
18161
18162         safe-write: Move AC_LIBOBJ invocations to module description.
18163         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
18164         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
18165         instead of gl_SAFE_WRITE.
18166         (Makefile.am): Augment lib_SOURCES.
18167
18168 2011-05-23  Bruno Haible  <bruno@clisp.org>
18169
18170         safe-read: Move AC_LIBOBJ invocations to module description.
18171         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
18172         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
18173         of gl_SAFE_READ.
18174         (Makefile.am): Augment lib_SOURCES.
18175
18176 2011-05-23  Bruno Haible  <bruno@clisp.org>
18177
18178         safe-alloc: Move AC_LIBOBJ invocations to module description.
18179         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
18180         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
18181
18182 2011-05-23  Bruno Haible  <bruno@clisp.org>
18183
18184         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
18185         * m4/rijndael.m4: Remove file.
18186         * modules/crypto/rijndael (Files): Remove it.
18187         (configure.ac): Remove gl_RIJNDAEL call.
18188         (Makefile.am): Augment lib_SOURCES.
18189
18190 2011-05-23  Bruno Haible  <bruno@clisp.org>
18191
18192         readtokens: Move AC_LIBOBJ invocations to module description.
18193         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
18194         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
18195
18196 2011-05-23  Bruno Haible  <bruno@clisp.org>
18197
18198         read-file: Move AC_LIBOBJ invocations to module description.
18199         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
18200         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
18201         of gl_FUNC_READ_FILE.
18202         (Makefile.am): Augment lib_SOURCES.
18203
18204 2011-05-23  Bruno Haible  <bruno@clisp.org>
18205
18206         quotearg: Move AC_LIBOBJ invocations to module description.
18207         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
18208         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
18209
18210 2011-05-23  Bruno Haible  <bruno@clisp.org>
18211
18212         quote: Move AC_LIBOBJ invocations to module description.
18213         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
18214         * modules/quote (Makefile.am): Augment lib_SOURCES.
18215
18216 2011-05-23  Bruno Haible  <bruno@clisp.org>
18217
18218         posixver: Move AC_LIBOBJ invocations to module description.
18219         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
18220         * modules/posixver (Makefile.am): Augment lib_SOURCES.
18221
18222 2011-05-23  Bruno Haible  <bruno@clisp.org>
18223
18224         posixtm: Move AC_LIBOBJ invocations to module description.
18225         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
18226         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
18227
18228 2011-05-23  Bruno Haible  <bruno@clisp.org>
18229
18230         physmem: Move AC_LIBOBJ invocations to module description.
18231         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
18232         * modules/physmem (Makefile.am): Augment lib_SOURCES.
18233
18234 2011-05-23  Bruno Haible  <bruno@clisp.org>
18235
18236         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
18237         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
18238         invocation.
18239         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
18240
18241 2011-05-23  Bruno Haible  <bruno@clisp.org>
18242
18243         mpsort: Move AC_LIBOBJ invocations to module description.
18244         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
18245         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
18246
18247 2011-05-23  Bruno Haible  <bruno@clisp.org>
18248
18249         modechange: Move AC_LIBOBJ invocations to module description.
18250         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
18251         * modules/modechange (Makefile.am): Augment lib_SOURCES.
18252
18253 2011-05-23  Bruno Haible  <bruno@clisp.org>
18254
18255         mkdir-p: Move AC_LIBOBJ invocations to module description.
18256         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
18257         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
18258
18259 2011-05-23  Bruno Haible  <bruno@clisp.org>
18260
18261         mkancesdirs: Move AC_LIBOBJ invocations to module description.
18262         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
18263         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
18264
18265 2011-05-23  Bruno Haible  <bruno@clisp.org>
18266
18267         mgetgroups: Move AC_LIBOBJ invocations to module description.
18268         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
18269         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
18270
18271 2011-05-23  Bruno Haible  <bruno@clisp.org>
18272
18273         memxor: Move AC_LIBOBJ invocations to module description.
18274         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
18275         * modules/memxor (Makefile.am): Augment lib_SOURCES.
18276
18277 2011-05-23  Bruno Haible  <bruno@clisp.org>
18278
18279         memcoll: Move AC_LIBOBJ invocations to module description.
18280         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
18281         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
18282
18283 2011-05-23  Bruno Haible  <bruno@clisp.org>
18284
18285         memcasecmp: Move AC_LIBOBJ invocations to module description.
18286         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
18287         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
18288
18289 2011-05-23  Bruno Haible  <bruno@clisp.org>
18290
18291         crypto/md5: Move AC_LIBOBJ invocations to module description.
18292         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
18293         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
18294
18295 2011-05-23  Bruno Haible  <bruno@clisp.org>
18296
18297         crypto/md4: Move AC_LIBOBJ invocations to module description.
18298         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
18299         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
18300
18301 2011-05-23  Bruno Haible  <bruno@clisp.org>
18302
18303         crypto/md2: Move AC_LIBOBJ invocations to module description.
18304         * m4/md2.m4: Remove file.
18305         * modules/crypto/md2 (Files): Remove it.
18306         (configure.ac): Remove gl_MD2 call.
18307         (Makefile.am): Augment lib_SOURCES.
18308
18309 2011-05-23  Bruno Haible  <bruno@clisp.org>
18310
18311         long-options: Move AC_LIBOBJ invocations to module description.
18312         * m4/long-options.m4: Remove file.
18313         * modules/long-options (Files): Remove it.
18314         (configure.ac): Remove gl_LONG_OPTIONS call.
18315         (Makefile.am): Augment lib_SOURCES.
18316
18317 2011-05-23  Bruno Haible  <bruno@clisp.org>
18318
18319         i-ring: Move AC_LIBOBJ invocations to module description.
18320         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
18321         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
18322
18323 2011-05-23  Bruno Haible  <bruno@clisp.org>
18324
18325         idcache: Move AC_LIBOBJ invocations to module description.
18326         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
18327         * modules/idcache (Makefile.am): Augment lib_SOURCES.
18328
18329 2011-05-23  Bruno Haible  <bruno@clisp.org>
18330
18331         human: Move AC_LIBOBJ invocations to module description.
18332         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
18333         * modules/human (Makefile.am): Augment lib_SOURCES.
18334
18335 2011-05-23  Bruno Haible  <bruno@clisp.org>
18336
18337         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
18338         * m4/hmac-sha1.m4: Remove file.
18339         * modules/crypto/hmac-sha1 (Files): Remove it.
18340         (configure.ac): Remove gl_HMAC_SHA1 call.
18341         (Makefile.am): Augment lib_SOURCES.
18342
18343 2011-05-23  Bruno Haible  <bruno@clisp.org>
18344
18345         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
18346         * m4/hmac-md5.m4: Remove file.
18347         * modules/crypto/hmac-md5 (Files): Remove it.
18348         (configure.ac): Remove gl_HMAC_MD5 call.
18349         (Makefile.am): Augment lib_SOURCES.
18350
18351 2011-05-23  Bruno Haible  <bruno@clisp.org>
18352
18353         hash: Move AC_LIBOBJ invocations to module description.
18354         * m4/hash.m4: Remove file.
18355         * modules/hash (Files): Remove it.
18356         (configure.ac): Remove gl_HASH call.
18357         (Makefile.am): Augment lib_SOURCES.
18358
18359 2011-05-23  Bruno Haible  <bruno@clisp.org>
18360
18361         hard-locale: Move AC_LIBOBJ invocations to module description.
18362         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
18363         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
18364
18365 2011-05-23  Bruno Haible  <bruno@clisp.org>
18366
18367         getugroups: Move AC_LIBOBJ invocations to module description.
18368         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
18369         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
18370
18371 2011-05-23  Bruno Haible  <bruno@clisp.org>
18372
18373         gettime: Move AC_LIBOBJ invocations to module description.
18374         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
18375         * modules/gettime (Makefile.am): Augment lib_SOURCES.
18376
18377 2011-05-23  Bruno Haible  <bruno@clisp.org>
18378
18379         getndelim2: Move AC_LIBOBJ invocations to module description.
18380         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
18381         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
18382
18383 2011-05-23  Bruno Haible  <bruno@clisp.org>
18384
18385         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
18386         * m4/gc-pbkdf2-sha1.m4: Remove file.
18387         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
18388         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
18389         (Makefile.am): Augment lib_SOURCES.
18390
18391 2011-05-23  Bruno Haible  <bruno@clisp.org>
18392
18393         fts: Move AC_LIBOBJ invocations to module description.
18394         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
18395         * modules/fts (configure.ac): ... to here.
18396
18397 2011-05-23  Bruno Haible  <bruno@clisp.org>
18398
18399         file-type: Move AC_LIBOBJ invocations to module description.
18400         * m4/file-type.m4: Remove file.
18401         * modules/file-type (Files): Remove it.
18402         (configure.ac): Remove gl_FILE_TYPE call.
18403         (Makefile.am): Augment lib_SOURCES.
18404
18405 2011-05-23  Bruno Haible  <bruno@clisp.org>
18406
18407         filenamecat*: Respect rules for use of AC_LIBOBJ.
18408         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
18409         Remove AC_LIBOBJ invocation.
18410         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
18411         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
18412
18413 2011-05-23  Bruno Haible  <bruno@clisp.org>
18414
18415         filemode: Move AC_LIBOBJ invocations to module description.
18416         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
18417         * modules/filemode (Makefile.am): Augment lib_SOURCES.
18418
18419 2011-05-23  Bruno Haible  <bruno@clisp.org>
18420
18421         openat-safer: Move AC_LIBOBJ invocations to module description.
18422         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
18423         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
18424
18425 2011-05-23  Bruno Haible  <bruno@clisp.org>
18426
18427         fcntl-safer: Move AC_LIBOBJ invocations to module description.
18428         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
18429         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
18430
18431 2011-05-23  Bruno Haible  <bruno@clisp.org>
18432
18433         exclude: Move AC_LIBOBJ invocations to module description.
18434         * m4/exclude.m4: Remove file.
18435         * modules/exclude (Files): Remove it.
18436         (configure.ac): Remove gl_EXCLUDE call.
18437         (Makefile.am): Augment lib_SOURCES.
18438
18439 2011-05-23  Bruno Haible  <bruno@clisp.org>
18440
18441         dirname*: Respect rules for use of AC_LIBOBJ.
18442         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
18443         invocations.
18444         * modules/dirname (Makefile.am): Augment lib_SOURCES.
18445         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
18446
18447 2011-05-23  Bruno Haible  <bruno@clisp.org>
18448
18449         dirent-safer: Move AC_LIBOBJ invocations to module description.
18450         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
18451         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
18452
18453 2011-05-23  Bruno Haible  <bruno@clisp.org>
18454
18455         crypto/des: Move AC_LIBOBJ invocations to module description.
18456         * m4/des.m4: Remove file.
18457         * modules/crypto/des (Files): Remove it.
18458         (configure.ac): Remove gl_DES call.
18459         (Makefile.am): Augment lib_SOURCES.
18460
18461 2011-05-23  Bruno Haible  <bruno@clisp.org>
18462
18463         cycle-check: Move AC_LIBOBJ invocations to module description.
18464         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
18465         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
18466
18467 2011-05-23  Bruno Haible  <bruno@clisp.org>
18468
18469         c-strtold: Move AC_LIBOBJ invocations to module description.
18470         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
18471         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
18472
18473 2011-05-23  Bruno Haible  <bruno@clisp.org>
18474
18475         c-strtod: Move AC_LIBOBJ invocations to module description.
18476         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
18477         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
18478
18479 2011-05-23  Bruno Haible  <bruno@clisp.org>
18480
18481         crc: Move AC_LIBOBJ invocations to module description.
18482         * m4/crc.m4: Remove file.
18483         * modules/crc (Files): Remove it.
18484         (configure.ac): Remove gl_CRC call.
18485         (Makefile.am): Augment lib_SOURCES.
18486
18487 2011-05-23  Bruno Haible  <bruno@clisp.org>
18488
18489         close-stream: Move AC_LIBOBJ invocations to module description.
18490         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
18491         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
18492
18493 2011-05-23  Bruno Haible  <bruno@clisp.org>
18494
18495         closeout: Move AC_LIBOBJ invocations to module description.
18496         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
18497         * modules/closeout (Makefile.am): Augment lib_SOURCES.
18498
18499 2011-05-23  Bruno Haible  <bruno@clisp.org>
18500
18501         closein: Move AC_LIBOBJ invocations to module description.
18502         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
18503         * modules/closein (Makefile.am): Augment lib_SOURCES.
18504
18505 2011-05-23  Bruno Haible  <bruno@clisp.org>
18506
18507         cloexec: Move AC_LIBOBJ invocations to module description.
18508         * m4/cloexec.m4: Remove file.
18509         * modules/cloexec (Files): Remove it.
18510         (configure.ac): Remove gl_CLOEXEC call.
18511         (Makefile.am): Augment lib_SOURCES.
18512
18513 2011-05-23  Bruno Haible  <bruno@clisp.org>
18514
18515         check-version: Move AC_LIBOBJ invocations to module description.
18516         * m4/check-version.m4: Remove file.
18517         * modules/check-version (Files): Remove it.
18518         (configure.ac): Remove gl_CHECK_VERSION call.
18519         (Makefile.am): Augment lib_SOURCES.
18520
18521 2011-05-23  Bruno Haible  <bruno@clisp.org>
18522
18523         chdir-safer: Move AC_LIBOBJ invocations to module description.
18524         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
18525         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
18526
18527 2011-05-23  Bruno Haible  <bruno@clisp.org>
18528
18529         canonicalize: Move AC_LIBOBJ invocations to module description.
18530         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
18531         AC_LIBOBJ invocation.
18532         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
18533
18534 2011-05-23  Bruno Haible  <bruno@clisp.org>
18535
18536         canon-host: Move AC_LIBOBJ invocations to module description.
18537         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
18538         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
18539         instead of gl_CANON_HOST.
18540         (Makefile.am): Augment lib_SOURCES.
18541
18542 2011-05-23  Bruno Haible  <bruno@clisp.org>
18543
18544         backupfile: Move AC_LIBOBJ invocations to module description.
18545         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
18546         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
18547
18548 2011-05-23  Bruno Haible  <bruno@clisp.org>
18549
18550         argmatch: Move AC_LIBOBJ invocations to module description.
18551         * m4/argmatch.m4: Remove file.
18552         * modules/argmatch (Files): Remove it.
18553         (configure.ac): Remove gl_ARGMATCH call.
18554         (Makefile.am): Augment lib_SOURCES.
18555
18556 2011-05-23  Bruno Haible  <bruno@clisp.org>
18557
18558         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
18559         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
18560         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
18561
18562 2011-05-23  Bruno Haible  <bruno@clisp.org>
18563
18564         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
18565         * m4/arcfour.m4: Remove file.
18566         * modules/crypto/arcfour (Files): Remove it.
18567         (configure.ac): Remove gl_ARCFOUR call.
18568         (Makefile.am): Augment lib_SOURCES.
18569
18570 2011-05-22  Bruno Haible  <bruno@clisp.org>
18571
18572         write: Move AC_LIBOBJ invocations to module description.
18573         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
18574         * modules/write (configure.ac): ... to here.
18575
18576 2011-05-22  Bruno Haible  <bruno@clisp.org>
18577
18578         wmemset: Move AC_LIBOBJ invocations to module description.
18579         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
18580         here...
18581         * modules/wmemset (configure.ac): ... to here.
18582
18583 2011-05-22  Bruno Haible  <bruno@clisp.org>
18584
18585         wmemmove: Move AC_LIBOBJ invocations to module description.
18586         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
18587         here...
18588         * modules/wmemmove (configure.ac): ... to here.
18589
18590 2011-05-22  Bruno Haible  <bruno@clisp.org>
18591
18592         wmemcpy: Move AC_LIBOBJ invocations to module description.
18593         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
18594         here...
18595         * modules/wmemcpy (configure.ac): ... to here.
18596
18597 2011-05-22  Bruno Haible  <bruno@clisp.org>
18598
18599         wmemcmp: Move AC_LIBOBJ invocations to module description.
18600         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
18601         here...
18602         * modules/wmemcmp (configure.ac): ... to here.
18603
18604 2011-05-22  Bruno Haible  <bruno@clisp.org>
18605
18606         wmemchr: Move AC_LIBOBJ invocations to module description.
18607         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
18608         here...
18609         * modules/wmemchr (configure.ac): ... to here.
18610
18611 2011-05-22  Bruno Haible  <bruno@clisp.org>
18612
18613         wcswidth: Move AC_LIBOBJ invocations to module description.
18614         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
18615         here...
18616         * modules/wcswidth (configure.ac): ... to here.
18617
18618 2011-05-22  Bruno Haible  <bruno@clisp.org>
18619
18620         wcwidth: Respect rules for use of AC_LIBOBJ.
18621         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
18622         invocation from here...
18623         * modules/wcwidth (configure.ac): ... to here.
18624         (Depends-on): Update conditions.
18625
18626 2011-05-22  Bruno Haible  <bruno@clisp.org>
18627
18628         wctype: Move AC_LIBOBJ invocations to module description.
18629         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
18630         invocation from here...
18631         * modules/wctype (configure.ac): ... to here.
18632         (Depends-on): Update conditions.
18633
18634 2011-05-22  Bruno Haible  <bruno@clisp.org>
18635
18636         wctrans: Move AC_LIBOBJ invocations to module description.
18637         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
18638         invocation from here...
18639         * modules/wctrans (configure.ac): ... to here.
18640
18641 2011-05-22  Bruno Haible  <bruno@clisp.org>
18642
18643         wctomb: Move AC_LIBOBJ invocations to module description.
18644         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
18645         invocations from here...
18646         * modules/wctomb (configure.ac): ... to here.
18647
18648 2011-05-22  Bruno Haible  <bruno@clisp.org>
18649
18650         wctob: Move AC_LIBOBJ invocations to module description.
18651         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
18652         gl_PREREQ_WCTOB invocations from here...
18653         * modules/wctob (configure.ac): ... to here.
18654         (Depends-on): Update conditions.
18655
18656 2011-05-22  Bruno Haible  <bruno@clisp.org>
18657
18658         wcsxfrm: Move AC_LIBOBJ invocations to module description.
18659         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
18660         here...
18661         * modules/wcsxfrm (configure.ac): ... to here.
18662
18663 2011-05-22  Bruno Haible  <bruno@clisp.org>
18664
18665         wcstok: Move AC_LIBOBJ invocations to module description.
18666         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
18667         * modules/wcstok (configure.ac): ... to here.
18668
18669 2011-05-22  Bruno Haible  <bruno@clisp.org>
18670
18671         wcsstr: Move AC_LIBOBJ invocations to module description.
18672         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
18673         * modules/wcsstr (configure.ac): ... to here.
18674
18675 2011-05-22  Bruno Haible  <bruno@clisp.org>
18676
18677         wcsspn: Move AC_LIBOBJ invocations to module description.
18678         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
18679         * modules/wcsspn (configure.ac): ... to here.
18680
18681 2011-05-22  Bruno Haible  <bruno@clisp.org>
18682
18683         wcsrtombs: Move AC_LIBOBJ invocations to module description.
18684         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
18685         gl_PREREQ_WCSRTOMBS invocations from here...
18686         * modules/wcsrtombs (configure.ac): ... to here.
18687
18688 2011-05-22  Bruno Haible  <bruno@clisp.org>
18689
18690         wcsrchr: Move AC_LIBOBJ invocations to module description.
18691         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
18692         here...
18693         * modules/wcsrchr (configure.ac): ... to here.
18694
18695 2011-05-22  Bruno Haible  <bruno@clisp.org>
18696
18697         wcspbrk: Move AC_LIBOBJ invocations to module description.
18698         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
18699         here...
18700         * modules/wcspbrk (configure.ac): ... to here.
18701
18702 2011-05-22  Bruno Haible  <bruno@clisp.org>
18703
18704         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
18705         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
18706         gl_PREREQ_WCSNRTOMBS invocations from here...
18707         * modules/wcsnrtombs (configure.ac): ... to here.
18708
18709 2011-05-22  Bruno Haible  <bruno@clisp.org>
18710
18711         wcsnlen: Move AC_LIBOBJ invocations to module description.
18712         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
18713         here...
18714         * modules/wcsnlen (configure.ac): ... to here.
18715
18716 2011-05-22  Bruno Haible  <bruno@clisp.org>
18717
18718         wcsncpy: Move AC_LIBOBJ invocations to module description.
18719         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
18720         here...
18721         * modules/wcsncpy (configure.ac): ... to here.
18722
18723 2011-05-22  Bruno Haible  <bruno@clisp.org>
18724
18725         wcsncmp: Move AC_LIBOBJ invocations to module description.
18726         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
18727         here...
18728         * modules/wcsncmp (configure.ac): ... to here.
18729
18730 2011-05-22  Bruno Haible  <bruno@clisp.org>
18731
18732         wcsncat: Move AC_LIBOBJ invocations to module description.
18733         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
18734         here...
18735         * modules/wcsncat (configure.ac): ... to here.
18736
18737 2011-05-22  Bruno Haible  <bruno@clisp.org>
18738
18739         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
18740         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
18741         from here...
18742         * modules/wcsncasecmp (configure.ac): ... to here.
18743
18744 2011-05-22  Bruno Haible  <bruno@clisp.org>
18745
18746         wcslen: Move AC_LIBOBJ invocations to module description.
18747         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
18748         * modules/wcslen (configure.ac): ... to here.
18749
18750 2011-05-22  Bruno Haible  <bruno@clisp.org>
18751
18752         wcsdup: Move AC_LIBOBJ invocations to module description.
18753         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
18754         * modules/wcsdup (configure.ac): ... to here.
18755
18756 2011-05-22  Bruno Haible  <bruno@clisp.org>
18757
18758         wcscspn: Move AC_LIBOBJ invocations to module description.
18759         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
18760         here...
18761         * modules/wcscspn (configure.ac): ... to here.
18762
18763 2011-05-22  Bruno Haible  <bruno@clisp.org>
18764
18765         wcscpy: Move AC_LIBOBJ invocations to module description.
18766         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
18767         * modules/wcscpy (configure.ac): ... to here.
18768
18769 2011-05-22  Bruno Haible  <bruno@clisp.org>
18770
18771         wcscoll: Move AC_LIBOBJ invocations to module description.
18772         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
18773         here...
18774         * modules/wcscoll (configure.ac): ... to here.
18775
18776 2011-05-22  Bruno Haible  <bruno@clisp.org>
18777
18778         wcscmp: Move AC_LIBOBJ invocations to module description.
18779         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
18780         * modules/wcscmp (configure.ac): ... to here.
18781
18782 2011-05-22  Bruno Haible  <bruno@clisp.org>
18783
18784         wcschr: Move AC_LIBOBJ invocations to module description.
18785         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
18786         * modules/wcschr (configure.ac): ... to here.
18787
18788 2011-05-22  Bruno Haible  <bruno@clisp.org>
18789
18790         wcscat: Move AC_LIBOBJ invocations to module description.
18791         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
18792         * modules/wcscat (configure.ac): ... to here.
18793
18794 2011-05-22  Bruno Haible  <bruno@clisp.org>
18795
18796         wcscasecmp: Move AC_LIBOBJ invocations to module description.
18797         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
18798         here...
18799         * modules/wcscasecmp (configure.ac): ... to here.
18800
18801 2011-05-22  Bruno Haible  <bruno@clisp.org>
18802
18803         wcrtomb: Move AC_LIBOBJ invocations to module description.
18804         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
18805         invocations from here...
18806         * modules/wcrtomb (configure.ac): ... to here.
18807
18808 2011-05-22  Bruno Haible  <bruno@clisp.org>
18809
18810         wcpncpy: Move AC_LIBOBJ invocations to module description.
18811         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
18812         here...
18813         * modules/wcpncpy (configure.ac): ... to here.
18814
18815 2011-05-22  Bruno Haible  <bruno@clisp.org>
18816
18817         wcpcpy: Move AC_LIBOBJ invocations to module description.
18818         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
18819         * modules/wcpcpy (configure.ac): ... to here.
18820
18821 2011-05-22  Bruno Haible  <bruno@clisp.org>
18822
18823         waitpid: Move AC_LIBOBJ invocations to module description.
18824         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
18825         invocation from here...
18826         * modules/waitpid (configure.ac): ... to here.
18827
18828 2011-05-22  Bruno Haible  <bruno@clisp.org>
18829
18830         utimensat: Move AC_LIBOBJ invocations to module description.
18831         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
18832         here...
18833         * modules/utimensat (configure.ac): ... to here.
18834
18835 2011-05-22  Bruno Haible  <bruno@clisp.org>
18836
18837         usleep: Move AC_LIBOBJ invocations to module description.
18838         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
18839         here...
18840         * modules/usleep (configure.ac): ... to here.
18841
18842 2011-05-22  Bruno Haible  <bruno@clisp.org>
18843
18844         unlockpt: Move AC_LIBOBJ invocations to module description.
18845         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
18846         gl_PREREQ_UNLOCKPT invocations from here...
18847         * modules/unlockpt (configure.ac): ... to here.
18848
18849 2011-05-22  Bruno Haible  <bruno@clisp.org>
18850
18851         unlink: Respect rules for use of AC_LIBOBJ.
18852         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
18853         * modules/unlink (configure.ac): ... to here.
18854
18855 2011-05-22  Bruno Haible  <bruno@clisp.org>
18856
18857         uname: Move AC_LIBOBJ invocations to module description.
18858         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
18859         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
18860         here...
18861         * modules/uname (configure.ac): ... to here.
18862
18863 2011-05-22  Bruno Haible  <bruno@clisp.org>
18864
18865         ttyname_r: Move AC_LIBOBJ invocations to module description.
18866         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
18867         gl_PREREQ_TTYNAME_R invocations from here...
18868         * modules/ttyname_r (configure.ac): ... to here.
18869
18870 2011-05-22  Bruno Haible  <bruno@clisp.org>
18871
18872         tsearch: Move AC_LIBOBJ invocations to module description.
18873         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
18874         invocations from here...
18875         * modules/tsearch (configure.ac): ... to here.
18876
18877 2011-05-22  Bruno Haible  <bruno@clisp.org>
18878
18879         towctrans: Move AC_LIBOBJ invocations to module description.
18880         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
18881         AC_LIBOBJ invocation from here...
18882         * modules/towctrans (configure.ac): ... to here.
18883
18884 2011-05-22  Bruno Haible  <bruno@clisp.org>
18885
18886         tmpfile: Move AC_LIBOBJ invocations to module description.
18887         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
18888         invocations from here...
18889         * modules/tmpfile (configure.ac): ... to here.
18890
18891 2011-05-22  Bruno Haible  <bruno@clisp.org>
18892
18893         times: Move AC_LIBOBJ invocations to module description.
18894         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
18895         * modules/times (configure.ac): ... to here.
18896
18897 2011-05-22  Bruno Haible  <bruno@clisp.org>
18898
18899         time_r: Move AC_LIBOBJ invocations to module description.
18900         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
18901         invocations from here...
18902         * modules/time_r (configure.ac): ... to here.
18903
18904 2011-05-22  Bruno Haible  <bruno@clisp.org>
18905
18906         timegm: Move AC_LIBOBJ invocations to module description.
18907         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
18908         invocations from here...
18909         * modules/timegm (configure.ac): ... to here.
18910
18911 2011-05-22  Bruno Haible  <bruno@clisp.org>
18912
18913         tcgetsid: Move AC_LIBOBJ invocations to module description.
18914         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
18915         and gl_PREREQ_TCGETSID invocations from here...
18916         * modules/tcgetsid (configure.ac): ... to here.
18917         (Depends-on): Update conditions.
18918
18919 2011-05-22  Bruno Haible  <bruno@clisp.org>
18920
18921         symlinkat: Move AC_LIBOBJ invocations to module description.
18922         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
18923         here...
18924         * modules/symlinkat (configure.ac): ... to here.
18925
18926 2011-05-22  Bruno Haible  <bruno@clisp.org>
18927
18928         symlink: Move AC_LIBOBJ invocations to module description.
18929         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
18930         here...
18931         * modules/symlink (configure.ac): ... to here.
18932
18933 2011-05-22  Bruno Haible  <bruno@clisp.org>
18934
18935         strverscmp: Move AC_LIBOBJ invocations to module description.
18936         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
18937         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
18938         from here...
18939         * modules/strverscmp (configure.ac): ... to here.
18940
18941 2011-05-22  Bruno Haible  <bruno@clisp.org>
18942
18943         strtok_r: Move AC_LIBOBJ invocations to module description.
18944         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
18945         and gl_PREREQ_STRTOK_R invocations from here...
18946         * modules/strtok_r (configure.ac): ... to here.
18947         (Depends-on): Update conditions.
18948
18949 2011-05-22  Bruno Haible  <bruno@clisp.org>
18950
18951         strtoumax: Move AC_LIBOBJ invocations to module description.
18952         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
18953         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
18954         from here...
18955         * modules/strtoumax (configure.ac): ... to here.
18956
18957 2011-05-22  Bruno Haible  <bruno@clisp.org>
18958
18959         strtoimax: Move AC_LIBOBJ invocations to module description.
18960         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
18961         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
18962         from here...
18963         * modules/strtoimax (configure.ac): ... to here.
18964
18965 2011-05-22  Bruno Haible  <bruno@clisp.org>
18966
18967         strtoull: Move AC_LIBOBJ invocations to module description.
18968         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
18969         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
18970         from here...
18971         * modules/strtoull (configure.ac): ... to here.
18972
18973 2011-05-22  Bruno Haible  <bruno@clisp.org>
18974
18975         strtoll: Move AC_LIBOBJ invocations to module description.
18976         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
18977         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
18978         here...
18979         * modules/strtoll (configure.ac): ... to here.
18980
18981 2011-05-22  Bruno Haible  <bruno@clisp.org>
18982
18983         strtoul: Move AC_LIBOBJ invocations to module description.
18984         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
18985         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
18986         * modules/strtoul (configure.ac): ... to here.
18987
18988 2011-05-22  Bruno Haible  <bruno@clisp.org>
18989
18990         strtol: Move AC_LIBOBJ invocations to module description.
18991         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
18992         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
18993         * modules/strtol (configure.ac): ... to here.
18994
18995 2011-05-22  Bruno Haible  <bruno@clisp.org>
18996
18997         strtod: Move AC_LIBOBJ invocations to module description.
18998         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
18999         invocations from here...
19000         * modules/strtod (configure.ac): ... to here.
19001
19002 2011-05-22  Bruno Haible  <bruno@clisp.org>
19003
19004         strstr*: Move AC_LIBOBJ invocations to module description.
19005         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
19006         invocations from here...
19007         * modules/strstr-simple (configure.ac): ... to here.
19008         * modules/strstr (configure.ac): ... and here.
19009
19010 2011-05-22  Bruno Haible  <bruno@clisp.org>
19011
19012         strsignal: Move AC_LIBOBJ invocations to module description.
19013         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
19014         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
19015         * modules/strsignal (configure.ac): ... to here.
19016         (Depends-on): Update conditions.
19017
19018 2011-05-22  Bruno Haible  <bruno@clisp.org>
19019
19020         strsep: Move AC_LIBOBJ invocations to module description.
19021         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
19022         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
19023         here...
19024         * modules/strsep (configure.ac): ... to here.
19025
19026 2011-05-22  Bruno Haible  <bruno@clisp.org>
19027
19028         strptime: Move AC_LIBOBJ invocations to module description.
19029         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
19030         gl_PREREQ_STRPTIME invocations from here...
19031         * modules/strptime (configure.ac): ... to here.
19032
19033 2011-05-22  Bruno Haible  <bruno@clisp.org>
19034
19035         strpbrk: Move AC_LIBOBJ invocations to module description.
19036         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
19037         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
19038         here...
19039         * modules/strpbrk (configure.ac): ... to here.
19040
19041 2011-05-22  Bruno Haible  <bruno@clisp.org>
19042
19043         strnlen: Move AC_LIBOBJ invocations to module description.
19044         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
19045         invocations from here...
19046         * modules/strnlen (configure.ac): ... to here.
19047
19048 2011-05-22  Bruno Haible  <bruno@clisp.org>
19049
19050         strndup: Move AC_LIBOBJ invocations to module description.
19051         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
19052         invocations from here...
19053         * modules/strndup (configure.ac): ... to here.
19054         (Depends-on): Update conditions.
19055
19056 2011-05-22  Bruno Haible  <bruno@clisp.org>
19057
19058         strncat: Move AC_LIBOBJ invocations to module description.
19059         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
19060         invocations from here...
19061         * modules/strncat (configure.ac): ... to here.
19062
19063 2011-05-22  Bruno Haible  <bruno@clisp.org>
19064
19065         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
19066         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
19067         invocations from here...
19068         * modules/strdup (configure.ac): ... to here.
19069         * modules/strdup-posix (configure.ac): ... and here.
19070
19071 2011-05-22  Bruno Haible  <bruno@clisp.org>
19072
19073         strcspn: Move AC_LIBOBJ invocations to module description.
19074         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
19075         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
19076         here...
19077         * modules/strcspn (configure.ac): ... to here.
19078
19079 2011-05-22  Bruno Haible  <bruno@clisp.org>
19080
19081         strchrnul: Move AC_LIBOBJ invocations to module description.
19082         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
19083         gl_PREREQ_STRCHRNUL invocations from here...
19084         * modules/strchrnul (configure.ac): ... to here.
19085
19086 2011-05-22  Bruno Haible  <bruno@clisp.org>
19087
19088         strcasestr*: Move AC_LIBOBJ invocations to module description.
19089         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
19090         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
19091         * modules/strcasestr-simple (configure.ac): ... to here.
19092         * modules/strcasestr (configure.ac): ... and here.
19093
19094 2011-05-22  Bruno Haible  <bruno@clisp.org>
19095
19096         strcase: Move AC_LIBOBJ invocations to module description.
19097         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
19098         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
19099         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
19100         gl_PREREQ_STRNCASECMP invocations from here...
19101         * modules/strcase (configure.ac): ... to here.
19102
19103 2011-05-22  Bruno Haible  <bruno@clisp.org>
19104
19105         stpncpy: Move AC_LIBOBJ invocations to module description.
19106         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
19107         here...
19108         * modules/stpncpy (configure.ac): ... to here.
19109
19110 2011-05-22  Bruno Haible  <bruno@clisp.org>
19111
19112         stpcpy: Move AC_LIBOBJ invocations to module description.
19113         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
19114         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
19115         here...
19116         * modules/stpcpy (configure.ac): ... to here.
19117
19118 2011-05-21  Bruno Haible  <bruno@clisp.org>
19119
19120         stat: Move AC_LIBOBJ invocations to module description.
19121         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
19122         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
19123         here...
19124         * modules/stat (configure.ac): ... to here.
19125
19126 2011-05-21  Bruno Haible  <bruno@clisp.org>
19127
19128         sleep: Move AC_LIBOBJ invocations to module description.
19129         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
19130         * modules/sleep (configure.ac): ... to here.
19131
19132 2011-05-21  Bruno Haible  <bruno@clisp.org>
19133
19134         signbit: Move AC_LIBOBJ invocations to module description.
19135         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
19136         * modules/signbit (configure.ac): ... to here.
19137
19138 2011-05-21  Bruno Haible  <bruno@clisp.org>
19139
19140         sigprocmask: Move AC_LIBOBJ invocations to module description.
19141         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
19142         gl_PREREQ_SIGPROMASK invocations from here...
19143         * modules/sigprocmask (configure.ac): ... to here.
19144
19145 2011-05-21  Bruno Haible  <bruno@clisp.org>
19146
19147         sigaction: Move AC_LIBOBJ invocations to module description.
19148         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
19149         gl_PREREQ_SIGACTION invocations from here...
19150         * modules/sigaction (configure.ac): ... to here.
19151
19152 2011-05-21  Bruno Haible  <bruno@clisp.org>
19153
19154         sig2str: Move AC_LIBOBJ invocations to module description.
19155         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
19156         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
19157         here...
19158         * modules/sig2str (configure.ac): ... to here.
19159
19160 2011-05-21  Bruno Haible  <bruno@clisp.org>
19161
19162         setlocale: Move AC_LIBOBJ invocations to module description.
19163         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
19164         gl_PREREQ_SETLOCALE invocations from here...
19165         * modules/setlocale (configure.ac): ... to here.
19166
19167 2011-05-21  Bruno Haible  <bruno@clisp.org>
19168
19169         unsetenv: Move AC_LIBOBJ invocations to module description.
19170         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
19171         and gl_PREREQ_UNSETENV invocations from here...
19172         * modules/unsetenv (configure.ac): ... to here.
19173         (Depends-on): Update.
19174
19175 2011-05-21  Bruno Haible  <bruno@clisp.org>
19176
19177         setenv: Move AC_LIBOBJ invocations to module description.
19178         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
19179         here...
19180         * modules/setenv (configure.ac): ... to here.
19181
19182 2011-05-21  Bruno Haible  <bruno@clisp.org>
19183
19184         selinux-h: Move AC_LIBOBJ invocations to module description.
19185         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
19186         AC_LIBOBJ invocation from here...
19187         * modules/selinux-h (configure.ac): ... to here.
19188
19189 2011-05-21  Bruno Haible  <bruno@clisp.org>
19190
19191         select: Respect rules for use of AC_LIBOBJ.
19192         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
19193         here...
19194         * modules/select (configure.ac): ... to here.
19195
19196 2011-05-21  Bruno Haible  <bruno@clisp.org>
19197
19198         scandir: Move AC_LIBOBJ invocations to module description.
19199         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
19200         invocations from here...
19201         * modules/scandir (configure.ac): ... to here.
19202
19203 2011-05-21  Bruno Haible  <bruno@clisp.org>
19204
19205         rpmatch: Move AC_LIBOBJ invocations to module description.
19206         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
19207         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
19208         here...
19209         * modules/rpmatch (configure.ac): ... to here.
19210
19211 2011-05-21  Bruno Haible  <bruno@clisp.org>
19212
19213         rmdir: Respect rules for use of AC_LIBOBJ.
19214         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
19215         * modules/rmdir (configure.ac): ... to here.
19216
19217 2011-05-21  Bruno Haible  <bruno@clisp.org>
19218
19219         renameat: Move AC_LIBOBJ invocations to module description.
19220         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
19221         here...
19222         * modules/renameat (configure.ac): ... to here.
19223
19224 2011-05-21  Bruno Haible  <bruno@clisp.org>
19225
19226         rename: Respect rules for use of AC_LIBOBJ.
19227         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
19228         here...
19229         * modules/rename (configure.ac): ... to here.
19230
19231 2011-05-21  Bruno Haible  <bruno@clisp.org>
19232
19233         remove: Move AC_LIBOBJ invocations to module description.
19234         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
19235         here...
19236         * modules/remove (configure.ac): ... to here.
19237
19238 2011-05-21  Bruno Haible  <bruno@clisp.org>
19239
19240         relocatable-lib: Move AC_LIBOBJ invocations to module description.
19241         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
19242         macro.
19243         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
19244         * modules/relocatable-lib (configure.ac): ... to here.
19245         * modules/relocatable-prog-wrapper (configure.ac): Invoke
19246         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
19247
19248 2011-05-21  Bruno Haible  <bruno@clisp.org>
19249
19250         relocatable-prog: Move AC_LIBOBJ invocations to module description.
19251         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
19252         here...
19253         * modules/relocatable-prog (configure.ac): ... to here.
19254
19255 2011-05-21  Bruno Haible  <bruno@clisp.org>
19256
19257         regex: Move AC_LIBOBJ invocations to module description.
19258         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
19259         invocations from here...
19260         * modules/regex (configure.ac): ... to here.
19261
19262 2011-05-21  Bruno Haible  <bruno@clisp.org>
19263
19264         realloc-*: Move AC_LIBOBJ invocations to module description.
19265         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
19266         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
19267         AC_LIBOBJ invocations from here...
19268         * modules/realloc-gnu (configure.ac): ... to here.
19269         * modules/realloc-posix (configure.ac): ... and here.
19270
19271 2011-05-21  Bruno Haible  <bruno@clisp.org>
19272
19273         readutmp: Move AC_LIBOBJ invocations to module description.
19274         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
19275         * modules/readutmp (configure.ac): ... to here.
19276
19277 2011-05-21  Bruno Haible  <bruno@clisp.org>
19278
19279         readlinkat: Move AC_LIBOBJ invocations to module description.
19280         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
19281         here...
19282         * modules/readlinkat (configure.ac): ... to here.
19283
19284 2011-05-21  Bruno Haible  <bruno@clisp.org>
19285
19286         readlink: Move AC_LIBOBJ invocations to module description.
19287         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
19288         gl_PREREQ_READLINK invocations from here...
19289         * modules/readlink (configure.ac): ... to here.
19290
19291 2011-05-21  Bruno Haible  <bruno@clisp.org>
19292
19293         readline: Move AC_LIBOBJ invocations to module description.
19294         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
19295         gl_PREREQ_READLINE invocations from here...
19296         * modules/readline (configure.ac): ... to here.
19297
19298 2011-05-21  Bruno Haible  <bruno@clisp.org>
19299
19300         read: Move AC_LIBOBJ invocations to module description.
19301         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
19302         * modules/read (configure.ac): ... to here.
19303
19304 2011-05-21  Bruno Haible  <bruno@clisp.org>
19305
19306         rawmemchr: Move AC_LIBOBJ invocations to module description.
19307         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
19308         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
19309         from here...
19310         * modules/rawmemchr (configure.ac): ... to here.
19311
19312 2011-05-21  Bruno Haible  <bruno@clisp.org>
19313
19314         random_r: Move AC_LIBOBJ invocations to module description.
19315         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
19316         gl_PREREQ_RANDOM_R invocations from here...
19317         * modules/random_r (configure.ac): ... to here.
19318
19319 2011-05-21  Bruno Haible  <bruno@clisp.org>
19320
19321         pwrite: Move AC_LIBOBJ invocations to module description.
19322         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
19323         * modules/pwrite (configure.ac): ... to here.
19324
19325 2011-05-21  Bruno Haible  <bruno@clisp.org>
19326
19327         putenv: Move AC_LIBOBJ invocations to module description.
19328         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
19329         * modules/putenv (configure.ac): ... to here.
19330
19331 2011-05-21  Bruno Haible  <bruno@clisp.org>
19332
19333         login_tty: Move AC_LIBOBJ invocations to module description.
19334         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
19335         * modules/login_tty (configure.ac): ... to here.
19336
19337 2011-05-21  Bruno Haible  <bruno@clisp.org>
19338
19339         openpty: Move AC_LIBOBJ invocations to module description.
19340         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
19341         * modules/openpty (configure.ac): ... to here.
19342
19343 2011-05-21  Bruno Haible  <bruno@clisp.org>
19344
19345         forkpty: Move AC_LIBOBJ invocations to module description.
19346         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
19347         * modules/forkpty (configure.ac): ... to here.
19348
19349 2011-05-21  Bruno Haible  <bruno@clisp.org>
19350
19351         ptsname: Move AC_LIBOBJ invocations to module description.
19352         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
19353         invocations from here...
19354         * modules/ptsname (configure.ac): ... to here.
19355
19356 2011-05-21  Bruno Haible  <bruno@clisp.org>
19357
19358         pread: Move AC_LIBOBJ invocations to module description.
19359         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
19360         * modules/pread (configure.ac): ... to here.
19361
19362 2011-05-21  Bruno Haible  <bruno@clisp.org>
19363
19364         posix_spawn*: Move AC_LIBOBJ invocations to module description.
19365         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
19366         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
19367         * modules/posix_spawn (configure.ac): ... to here.
19368         * modules/posix_spawnp (configure.ac): ... and here.
19369
19370 2011-05-21  Bruno Haible  <bruno@clisp.org>
19371
19372         popen: Move AC_LIBOBJ invocations to module description.
19373         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
19374         invocations from here...
19375         * modules/popen (configure.ac): ... to here.
19376
19377 2011-05-21  Bruno Haible  <bruno@clisp.org>
19378
19379         poll: Move AC_LIBOBJ invocations to module description.
19380         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
19381         invocations from here...
19382         * modules/poll (configure.ac): ... to here.
19383
19384 2011-05-21  Bruno Haible  <bruno@clisp.org>
19385
19386         pipe-posix: Move AC_LIBOBJ invocations to module description.
19387         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
19388         * modules/pipe-posix (configure.ac): ... to here.
19389
19390 2011-05-21  Bruno Haible  <bruno@clisp.org>
19391
19392         openat: Respect rules for use of AC_LIBOBJ.
19393         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
19394         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
19395         * modules/openat (configure.ac): ... to here.
19396
19397 2011-05-21  Bruno Haible  <bruno@clisp.org>
19398
19399         obstack-printf*: Move AC_LIBOBJ invocations to module description.
19400         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
19401         invocation from here...
19402         * modules/obstack-printf (configure.ac): ... to here.
19403         * modules/obstack-printf-posix (configure.ac): ... and here.
19404
19405 2011-05-21  Bruno Haible  <bruno@clisp.org>
19406
19407         nl_langinfo: Move AC_LIBOBJ invocations to module description.
19408         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
19409         from here...
19410         * modules/nl_langinfo (configure.ac): ... to here.
19411
19412 2011-05-21  Bruno Haible  <bruno@clisp.org>
19413
19414         nanosleep: Move AC_LIBOBJ invocations to module description.
19415         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
19416         gl_PREREQ_NANOSLEEP invocations from here...
19417         * modules/nanosleep (configure.ac): ... to here.
19418
19419 2011-05-21  Bruno Haible  <bruno@clisp.org>
19420
19421         mountlist: Move AC_LIBOBJ invocations to module description.
19422         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
19423         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
19424         * modules/mountlist (configure.ac): ... to here.
19425
19426 2011-05-21  Bruno Haible  <bruno@clisp.org>
19427
19428         mktime: Respect rules for use of AC_LIBOBJ.
19429         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
19430         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
19431         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
19432         (gl_FUNC_MKTIME_INTERNAL): ... and here...
19433         * modules/mktime (configure.ac): ... to here.
19434         * modules/mktime-internal (configure.ac): ... and here.
19435         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
19436
19437 2011-05-21  Bruno Haible  <bruno@clisp.org>
19438
19439         mkstemps: Move AC_LIBOBJ invocations to module description.
19440         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
19441         here...
19442         * modules/mkstemps (configure.ac): ... to here.
19443
19444 2011-05-21  Bruno Haible  <bruno@clisp.org>
19445
19446         mkstemp: Move AC_LIBOBJ invocations to module description.
19447         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
19448         gl_PREREQ_MKSTEMP invocations from here...
19449         * modules/mkstemp (configure.ac): ... to here.
19450
19451 2011-05-21  Bruno Haible  <bruno@clisp.org>
19452
19453         mkostemps: Move AC_LIBOBJ invocations to module description.
19454         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
19455         here...
19456         * modules/mkostemps (configure.ac): ... to here.
19457
19458 2011-05-21  Bruno Haible  <bruno@clisp.org>
19459
19460         mkostemp: Move AC_LIBOBJ invocations to module description.
19461         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
19462         gl_PREREQ_MKOSTEMP invocations from here...
19463         * modules/mkostemp (configure.ac): ... to here.
19464
19465 2011-05-21  Bruno Haible  <bruno@clisp.org>
19466
19467         mknod: Move AC_LIBOBJ invocations to module description.
19468         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
19469         * modules/mknod (configure.ac): ... to here.
19470
19471 2011-05-21  Bruno Haible  <bruno@clisp.org>
19472
19473         mkfifoat: Move AC_LIBOBJ invocations to module description.
19474         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
19475         here...
19476         * modules/mkfifoat (configure.ac): ... to here.
19477
19478 2011-05-21  Bruno Haible  <bruno@clisp.org>
19479
19480         mkfifo: Respect rules for use of AC_LIBOBJ.
19481         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
19482         here...
19483         * modules/mkfifo (configure.ac): ... to here.
19484
19485 2011-05-21  Bruno Haible  <bruno@clisp.org>
19486
19487         mkdtemp: Move AC_LIBOBJ invocations to module description.
19488         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
19489         invocations from here...
19490         * modules/mkdtemp (configure.ac): ... to here.
19491
19492 2011-05-21  Bruno Haible  <bruno@clisp.org>
19493
19494         mkdir: Move AC_LIBOBJ invocations to module description.
19495         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
19496         * modules/mkdir (configure.ac): ... to here.
19497
19498 2011-05-21  Bruno Haible  <bruno@clisp.org>
19499
19500         memset: Move AC_LIBOBJ invocations to module description.
19501         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
19502         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
19503         here...
19504         * modules/memset (configure.ac): ... to here.
19505
19506 2011-05-21  Bruno Haible  <bruno@clisp.org>
19507
19508         memrchr: Move AC_LIBOBJ invocations to module description.
19509         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
19510         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
19511         here...
19512         * modules/memrchr (configure.ac): ... to here.
19513
19514 2011-05-21  Bruno Haible  <bruno@clisp.org>
19515
19516         mempcpy: Move AC_LIBOBJ invocations to module description.
19517         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
19518         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
19519         here...
19520         * modules/mempcpy (configure.ac): ... to here.
19521
19522 2011-05-21  Bruno Haible  <bruno@clisp.org>
19523
19524         memmove: Move AC_LIBOBJ invocations to module description.
19525         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
19526         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
19527         here...
19528         * modules/memmove (configure.ac): ... to here.
19529
19530 2011-05-21  Bruno Haible  <bruno@clisp.org>
19531
19532         memmem*: Move AC_LIBOBJ invocations to module description.
19533         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
19534         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
19535         here...
19536         (gl_FUNC_MEMMEM): ... and here...
19537         * modules/memmem-simple (configure.ac): ... to here.
19538         * modules/memmem (configure.ac): ... and here.
19539
19540 2011-05-21  Bruno Haible  <bruno@clisp.org>
19541
19542         memcpy: Move AC_LIBOBJ invocations to module description.
19543         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
19544         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
19545         here...
19546         * modules/memcpy (configure.ac): ... to here.
19547
19548 2011-05-21  Bruno Haible  <bruno@clisp.org>
19549
19550         memcmp: Simplify autoconf macro.
19551         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
19552         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
19553         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
19554
19555 2011-05-21  Bruno Haible  <bruno@clisp.org>
19556
19557         memcmp: Move AC_LIBOBJ invocations to module description.
19558         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
19559         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
19560         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
19561         * modules/memcmp (configure.ac): ... to here.
19562         (Depends-on): Update conditions.
19563
19564 2011-05-21  Bruno Haible  <bruno@clisp.org>
19565
19566         memchr: Respect rules for use of AC_LIBOBJ.
19567         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
19568         invocations from here...
19569         * modules/memchr (configure.ac): ... to here.
19570
19571 2011-05-21  Bruno Haible  <bruno@clisp.org>
19572
19573         mbtowc: Move AC_LIBOBJ invocations to module description.
19574         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
19575         invocations from here...
19576         * modules/mbtowc (configure.ac): ... to here.
19577
19578 2011-05-21  Bruno Haible  <bruno@clisp.org>
19579
19580         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
19581         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
19582         gl_PREREQ_MBSRTOWCS invocations from here...
19583         * modules/mbsrtowcs (configure.ac): ... to here.
19584
19585 2011-05-21  Bruno Haible  <bruno@clisp.org>
19586
19587         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
19588         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
19589         gl_PREREQ_MBSNRTOWCS invocations from here...
19590         * modules/mbsnrtowcs (configure.ac): ... to here.
19591
19592 2011-05-21  Bruno Haible  <bruno@clisp.org>
19593
19594         mbsinit: Move AC_LIBOBJ invocations to module description.
19595         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
19596         invocations from here...
19597         * modules/mbsinit (configure.ac): ... to here.
19598
19599 2011-05-21  Bruno Haible  <bruno@clisp.org>
19600
19601         mbrlen: Move AC_LIBOBJ invocations to module description.
19602         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
19603         invocations from here...
19604         * modules/mbrlen (configure.ac): ... to here.
19605
19606 2011-05-21  Bruno Haible  <bruno@clisp.org>
19607
19608         mbrtowc: Respect rules for use of AC_LIBOBJ.
19609         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
19610         invocations from here...
19611         * modules/mbrtowc (configure.ac): ... to here.
19612
19613 2011-05-21  Bruno Haible  <bruno@clisp.org>
19614
19615         malloc-*: Move AC_LIBOBJ invocations to module description.
19616         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
19617         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
19618         AC_LIBOBJ invocations from here...
19619         * modules/malloc-gnu (configure.ac): ... to here.
19620         * modules/malloc-posix (configure.ac): ... and here.
19621
19622 2011-05-21  Bruno Haible  <bruno@clisp.org>
19623
19624         lstat, openat: Respect rules for use of AC_LIBOBJ.
19625         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
19626         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
19627         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
19628         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
19629         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
19630         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
19631         here.
19632         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
19633
19634 2011-05-21  Bruno Haible  <bruno@clisp.org>
19635
19636         lseek: Move AC_LIBOBJ invocations to module description.
19637         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
19638         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
19639         * modules/lseek (configure.ac): ... to here.
19640
19641 2011-05-21  Bruno Haible  <bruno@clisp.org>
19642
19643         linkat: Move AC_LIBOBJ invocations to module description.
19644         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
19645         here...
19646         * modules/linkat (configure.ac): ... to here.
19647
19648 2011-05-21  Bruno Haible  <bruno@clisp.org>
19649
19650         link: Respect rules for use of AC_LIBOBJ.
19651         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
19652         * modules/link (configure.ac): ... to here.
19653
19654 2011-05-21  Bruno Haible  <bruno@clisp.org>
19655
19656         lchown: Move AC_LIBOBJ invocations to module description.
19657         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
19658         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
19659         * modules/lchown (configure.ac): ... to here.
19660
19661 2011-05-21  Bruno Haible  <bruno@clisp.org>
19662
19663         iswctype: Move AC_LIBOBJ invocations to module description.
19664         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
19665         here...
19666         * modules/iswctype (configure.ac): ... to here.
19667
19668 2011-05-21  Bruno Haible  <bruno@clisp.org>
19669
19670         iswblank: Move AC_LIBOBJ invocations to module description.
19671         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
19672         here...
19673         * modules/iswblank (configure.ac): ... to here.
19674
19675 2011-05-21  Bruno Haible  <bruno@clisp.org>
19676
19677         atanl: Move AC_LIBOBJ invocations to module description.
19678         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
19679         * modules/atanl (configure.ac): ... to here.
19680
19681 2011-05-21  Bruno Haible  <bruno@clisp.org>
19682
19683         acosl: Move AC_LIBOBJ invocations to module description.
19684         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
19685         * modules/acosl (configure.ac): ... to here.
19686
19687 2011-05-21  Bruno Haible  <bruno@clisp.org>
19688
19689         asinl: Respect rules for use of AC_LIBOBJ.
19690         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
19691         * modules/asinl (configure.ac): ... to here.
19692
19693 2011-05-21  Bruno Haible  <bruno@clisp.org>
19694
19695         tanl: Move AC_LIBOBJ invocations to module description.
19696         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
19697         * modules/tanl (configure.ac): ... to here.
19698
19699 2011-05-21  Bruno Haible  <bruno@clisp.org>
19700
19701         cosl: Move AC_LIBOBJ invocations to module description.
19702         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
19703         * modules/cosl (configure.ac): ... to here.
19704
19705 2011-05-21  Bruno Haible  <bruno@clisp.org>
19706
19707         sinl: Move AC_LIBOBJ invocations to module description.
19708         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
19709         * modules/sinl (configure.ac): ... to here.
19710
19711 2011-05-21  Bruno Haible  <bruno@clisp.org>
19712
19713         logl: Move AC_LIBOBJ invocations to module description.
19714         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
19715         * modules/logl (configure.ac): ... to here.
19716
19717 2011-05-21  Bruno Haible  <bruno@clisp.org>
19718
19719         expl: Move AC_LIBOBJ invocations to module description.
19720         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
19721         * modules/expl (configure.ac): ... to here.
19722
19723 2011-05-21  Bruno Haible  <bruno@clisp.org>
19724
19725         roundl: Move AC_LIBOBJ invocations to module description.
19726         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
19727         * modules/roundl (configure.ac): ... to here.
19728
19729 2011-05-21  Bruno Haible  <bruno@clisp.org>
19730
19731         round: Move AC_LIBOBJ invocations to module description.
19732         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
19733         * modules/round (configure.ac): ... to here.
19734
19735 2011-05-21  Bruno Haible  <bruno@clisp.org>
19736
19737         roundf: Move AC_LIBOBJ invocations to module description.
19738         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
19739         * modules/roundf (configure.ac): ... to here.
19740
19741 2011-05-21  Bruno Haible  <bruno@clisp.org>
19742
19743         truncl: Move AC_LIBOBJ invocations to module description.
19744         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
19745         * modules/truncl (configure.ac): ... to here.
19746
19747 2011-05-21  Bruno Haible  <bruno@clisp.org>
19748
19749         trunc: Move AC_LIBOBJ invocations to module description.
19750         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
19751         * modules/trunc (configure.ac): ... to here.
19752
19753 2011-05-21  Bruno Haible  <bruno@clisp.org>
19754
19755         truncf: Move AC_LIBOBJ invocations to module description.
19756         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
19757         * modules/truncf (configure.ac): ... to here.
19758
19759 2011-05-21  Bruno Haible  <bruno@clisp.org>
19760
19761         ceill: Move AC_LIBOBJ invocations to module description.
19762         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
19763         * modules/ceill (configure.ac): ... to here.
19764
19765 2011-05-21  Bruno Haible  <bruno@clisp.org>
19766
19767         ceil: Move AC_LIBOBJ invocations to module description.
19768         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
19769         * modules/ceil (configure.ac): ... to here.
19770
19771 2011-05-21  Bruno Haible  <bruno@clisp.org>
19772
19773         ceilf: Move AC_LIBOBJ invocations to module description.
19774         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
19775         * modules/ceilf (configure.ac): ... to here.
19776
19777 2011-05-21  Bruno Haible  <bruno@clisp.org>
19778
19779         floorl: Respect rules for use of AC_LIBOBJ.
19780         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
19781         * modules/floorl (configure.ac): ... to here.
19782
19783 2011-05-21  Bruno Haible  <bruno@clisp.org>
19784
19785         floor: Respect rules for use of AC_LIBOBJ.
19786         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
19787         * modules/floor (configure.ac): ... to here.
19788
19789 2011-05-21  Bruno Haible  <bruno@clisp.org>
19790
19791         floorf: Move AC_LIBOBJ invocations to module description.
19792         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
19793         * modules/floorf (configure.ac): ... to here.
19794
19795 2011-05-20  Bruno Haible  <bruno@clisp.org>
19796
19797         sqrtl: Respect rules for use of AC_LIBOBJ.
19798         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
19799         * modules/sqrtl (configure.ac): ... to here.
19800
19801 2011-05-20  Bruno Haible  <bruno@clisp.org>
19802
19803         ldexpl: Respect rules for use of AC_LIBOBJ.
19804         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
19805         * modules/ldexpl (configure.ac): ... to here.
19806
19807 2011-05-20  Bruno Haible  <bruno@clisp.org>
19808
19809         frexpl*: Respect rules for use of AC_LIBOBJ.
19810         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
19811         invocation from here...
19812         * modules/frexpl (configure.ac): ... to here.
19813         * modules/frexpl-nolibm (configure.ac): ... and here.
19814
19815 2011-05-20  Bruno Haible  <bruno@clisp.org>
19816
19817         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
19818         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
19819         invocation from here...
19820         * modules/frexp (configure.ac): ... to here.
19821         * modules/frexp-nolibm (configure.ac): ... and here.
19822
19823 2011-05-20  Bruno Haible  <bruno@clisp.org>
19824
19825         isnan: Respect rules for use of AC_LIBOBJ.
19826         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
19827         invocations here.
19828         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
19829         REPLACE_ISNAN.
19830         * modules/isnand (configure.ac): Likewise.
19831         * modules/isnanl (configure.ac): Likewise.
19832
19833 2011-05-20  Bruno Haible  <bruno@clisp.org>
19834
19835         isnanl*: Respect rules for use of AC_LIBOBJ.
19836         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
19837         invocation from here...
19838         * modules/isnanl (configure.ac): ... to here.
19839         * modules/isnanl-nolibm (configure.ac): ... and here.
19840
19841 2011-05-20  Bruno Haible  <bruno@clisp.org>
19842
19843         isnand*: Move AC_LIBOBJ invocations to module description.
19844         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
19845         invocation from here...
19846         * modules/isnand (configure.ac): ... to here.
19847         * modules/isnand-nolibm (configure.ac): ... and here.
19848
19849 2011-05-20  Bruno Haible  <bruno@clisp.org>
19850
19851         isnanf*: Move AC_LIBOBJ invocations to module description.
19852         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
19853         invocation from here...
19854         * modules/isnanf (configure.ac): ... to here.
19855         * modules/isnanf-nolibm (configure.ac): ... and here.
19856
19857 2011-05-20  Bruno Haible  <bruno@clisp.org>
19858
19859         isnan*: Separate the AC_LIBOBJ invocations.
19860         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
19861         AC_LIBOBJ invocation.
19862         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
19863         here.
19864         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
19865         AC_LIBOBJ invocation.
19866         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
19867         here.
19868         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
19869         AC_LIBOBJ invocation.
19870         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
19871         here.
19872         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
19873
19874 2011-05-08  Bruno Haible  <bruno@clisp.org>
19875
19876         isinf: Move AC_LIBOBJ invocations to module description.
19877         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
19878         * modules/isinf (configure.ac): ... to here.
19879
19880 2011-05-08  Bruno Haible  <bruno@clisp.org>
19881
19882         isfinite: Move AC_LIBOBJ invocations to module description.
19883         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
19884         * modules/isfinite (configure.ac): ... to here.
19885
19886 2011-05-08  Bruno Haible  <bruno@clisp.org>
19887
19888         isblank: Move AC_LIBOBJ invocations to module description.
19889         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
19890         here...
19891         * modules/isblank (configure.ac): ... to here.
19892
19893 2011-05-08  Bruno Haible  <bruno@clisp.org>
19894
19895         isapipe: Move AC_LIBOBJ invocations to module description.
19896         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
19897         gl_PREREQ_ISAPIPE invocations from here...
19898         * modules/isapipe (configure.ac): ... to here.
19899         (Depends-on): Update condition.
19900
19901 2011-05-08  Bruno Haible  <bruno@clisp.org>
19902
19903         ioctl: Move AC_LIBOBJ invocations to module description.
19904         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
19905         invocations from here...
19906         * modules/ioctl (configure.ac): ... to here.
19907         (Depends-on): Update condition.
19908
19909 2011-05-08  Bruno Haible  <bruno@clisp.org>
19910
19911         imaxdiv: Move AC_LIBOBJ invocations to module description.
19912         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
19913         invocations from here...
19914         * modules/imaxdiv (configure.ac): ... to here.
19915
19916 2011-05-08  Bruno Haible  <bruno@clisp.org>
19917
19918         imaxabs: Move AC_LIBOBJ invocations to module description.
19919         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
19920         invocations from here...
19921         * modules/imaxabs (configure.ac): ... to here.
19922
19923 2011-05-08  Bruno Haible  <bruno@clisp.org>
19924
19925         getaddrinfo: Move AC_LIBOBJ invocations to module description.
19926         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
19927         AC_LIBOBJ invocations from here...
19928         * modules/getaddrinfo (configure.ac): ... to here.
19929         (Depends-on): Add conditions.
19930
19931 2011-05-08  Bruno Haible  <bruno@clisp.org>
19932
19933         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
19934         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
19935         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
19936         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
19937         (gl_PREREQ_INET_PTON): ... from here.
19938         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
19939         gl_PREREQ_INET_PTON here.
19940         (Depends-on): Update condition.
19941
19942 2011-05-08  Bruno Haible  <bruno@clisp.org>
19943
19944         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
19945         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
19946         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
19947         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
19948         (gl_PREREQ_INET_NTOP): ... from here.
19949         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
19950         gl_PREREQ_INET_NTOP here.
19951         (Depends-on): Update condition.
19952
19953 2011-05-08  Bruno Haible  <bruno@clisp.org>
19954
19955         iconv_open: Move AC_LIBOBJ invocations to module description.
19956         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
19957         AC_LIBOBJ invocations from here...
19958         * modules/iconv_open (configure.ac): ... to here.
19959
19960 2011-05-08  Bruno Haible  <bruno@clisp.org>
19961
19962         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
19963         If module 'iconv_open' is among the main modules and module
19964         'iconv_open-utf' is among the tests dependencies, then
19965         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
19966         return the special iconv_t values. Therefore iconv() and iconv_close()
19967         must support these special iconv_t values, already in lib, not only in
19968         tests.
19969         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
19970         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
19971         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
19972         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
19973         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
19974         (Depends-on): Add the dependencies of iconv_open-utf.
19975         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
19976         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
19977         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
19978
19979 2011-05-08  Bruno Haible  <bruno@clisp.org>
19980
19981         group-member: Move AC_LIBOBJ invocations to module description.
19982         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
19983         gl_PREREQ_GROUP_MEMBER invocations from here...
19984         * modules/group-member (configure.ac): ... to here.
19985
19986 2011-05-08  Bruno Haible  <bruno@clisp.org>
19987
19988         grantpt: Move AC_LIBOBJ invocations to module description.
19989         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
19990         invocations from here...
19991         * modules/grantpt (configure.ac): ... to here.
19992
19993 2011-05-08  Bruno Haible  <bruno@clisp.org>
19994
19995         glob: Move AC_LIBOBJ invocations to module description.
19996         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
19997         from here...
19998         * modules/glob (configure.ac): ... to here.
19999
20000 2011-05-08  Bruno Haible  <bruno@clisp.org>
20001
20002         getusershell: Move AC_LIBOBJ invocations to module description.
20003         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
20004         Move AC_LIBOBJ invocation from here...
20005         * modules/getusershell (configure.ac): ... to here.
20006         (Depends-on): Update condition.
20007
20008 2011-05-08  Bruno Haible  <bruno@clisp.org>
20009
20010         gettimeofday: Move AC_LIBOBJ invocations to module description.
20011         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
20012         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
20013         gl_PREREQ_GETTIMEOFDAY invocations from here...
20014         * modules/gettimeofday (configure.ac): ... to here.
20015
20016 2011-05-08  Bruno Haible  <bruno@clisp.org>
20017
20018         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
20019         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
20020         just gl_FUNC_TZSET.
20021         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
20022         (gl_FUNC_TZSET_CLOBBER): Remove actions.
20023         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
20024         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
20025
20026 2011-05-08  Bruno Haible  <bruno@clisp.org>
20027
20028         getsubopt: Move AC_LIBOBJ invocations to module description.
20029         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
20030         gl_PREREQ_GETSUBOPT invocations from here...
20031         * modules/getsubopt (configure.ac): ... to here.
20032
20033 2011-05-08  Bruno Haible  <bruno@clisp.org>
20034
20035         getpass-gnu: Move AC_LIBOBJ invocations to module description.
20036         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
20037         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
20038         * modules/getpass-gnu (configure.ac): ... to here.
20039
20040 2011-05-08  Bruno Haible  <bruno@clisp.org>
20041
20042         getpass: Move AC_LIBOBJ invocations to module description.
20043         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
20044         gl_PREREQ_GETPASS invocations from here...
20045         * modules/getpass (configure.ac): ... to here.
20046
20047 2011-05-08  Bruno Haible  <bruno@clisp.org>
20048
20049         getpagesize: Move AC_LIBOBJ invocations to module description.
20050         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
20051         from here...
20052         * modules/getpagesize (configure.ac): ... to here.
20053
20054 2011-05-08  Bruno Haible  <bruno@clisp.org>
20055
20056         getopt: Move AC_LIBOBJ invocations to module description.
20057         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
20058         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
20059         invocations from here...
20060         * modules/getopt-gnu (configure.ac): ... to here.
20061         * modules/getopt-posix (configure.ac): ... and here.
20062         (Depends-on): Update condition.
20063
20064 2011-05-08  Bruno Haible  <bruno@clisp.org>
20065
20066         getopt, argp: Respect rules for use of AC_LIBOBJ.
20067         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
20068         (gl_REPLACE_GETOPT_ALWAYS): New macro.
20069         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
20070         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
20071
20072 2011-05-08  Bruno Haible  <bruno@clisp.org>
20073
20074         getlogin_r: Move AC_LIBOBJ invocations to module description.
20075         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
20076         gl_PREREQ_GETLOGIN_R invocations from here...
20077         * modules/getlogin_r (configure.ac): ... to here.
20078
20079 2011-05-08  Bruno Haible  <bruno@clisp.org>
20080
20081         getlogin: Move AC_LIBOBJ invocations to module description.
20082         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
20083         here...
20084         * modules/getlogin (configure.ac): ... to here.
20085
20086 2011-05-08  Bruno Haible  <bruno@clisp.org>
20087
20088         getloadavg: Move AC_LIBOBJ invocations to module description.
20089         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
20090         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
20091         * modules/getloadavg (configure.ac): ... to here.
20092
20093 2011-05-08  Bruno Haible  <bruno@clisp.org>
20094
20095         gethrxtime: Move AC_LIBOBJ invocations to module description.
20096         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
20097         LIB_GETHRXTIME from here...
20098         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
20099         invocations from here...
20100         * modules/gethrxtime (configure.ac): ... to here.
20101
20102 2011-05-08  Bruno Haible  <bruno@clisp.org>
20103
20104         gethostname: Move AC_LIBOBJ invocations to module description.
20105         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
20106         gl_PREREQ_GETHOSTNAME invocations from here...
20107         * modules/gethostname (configure.ac): ... to here.
20108
20109 2011-05-08  Bruno Haible  <bruno@clisp.org>
20110
20111         getgroups: Move AC_LIBOBJ invocations to module description.
20112         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
20113         here...
20114         * modules/getgroups (configure.ac): ... to here.
20115
20116 2011-05-08  Bruno Haible  <bruno@clisp.org>
20117
20118         getdtablesize: Move AC_LIBOBJ invocations to module description.
20119         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
20120         invocation from here...
20121         * modules/getdtablesize (configure.ac): ... to here.
20122
20123 2011-05-08  Bruno Haible  <bruno@clisp.org>
20124
20125         getdomainname: Move AC_LIBOBJ invocations to module description.
20126         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
20127         gl_PREREQ_GETDOMAINNAME invocations from here...
20128         * modules/getdomainname (configure.ac): ... to here.
20129
20130 2011-05-08  Bruno Haible  <bruno@clisp.org>
20131
20132         getline: Move AC_LIBOBJ invocations to module description.
20133         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
20134         invocations from here...
20135         * modules/getline (configure.ac): ... to here.
20136
20137 2011-05-08  Bruno Haible  <bruno@clisp.org>
20138
20139         getline: Simplify.
20140         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
20141         It's already handled through the module dependency.
20142
20143 2011-05-08  Bruno Haible  <bruno@clisp.org>
20144
20145         getdelim: Move AC_LIBOBJ invocations to module description.
20146         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
20147         and gl_PREREQ_GETDELIM invocations from here...
20148         * modules/getdelim (configure.ac): ... to here.
20149         (Depends-on): Fix condition.
20150
20151 2011-05-08  Bruno Haible  <bruno@clisp.org>
20152
20153         getcwd: Move AC_LIBOBJ invocations to module description.
20154         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
20155         invocations from here...
20156         * modules/getcwd (configure.ac): ... to here.
20157
20158 2011-05-08  Bruno Haible  <bruno@clisp.org>
20159
20160         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
20161         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
20162         here...
20163         * modules/getcwd-lgpl (configure.ac): ... to here.
20164
20165 2011-05-07  Bruno Haible  <bruno@clisp.org>
20166
20167         crypto/gc: Move AC_LIBOBJ invocations to module description.
20168         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
20169         * modules/crypto/gc (configure.ac): ... to here.
20170
20171 2011-05-07  Bruno Haible  <bruno@clisp.org>
20172
20173         fwriting: Move AC_LIBOBJ invocations to module description.
20174         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
20175         here...
20176         * modules/fwriting (configure.ac): ... to here.
20177
20178 2011-05-07  Bruno Haible  <bruno@clisp.org>
20179
20180         fwritable: Move AC_LIBOBJ invocations to module description.
20181         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
20182         here...
20183         * modules/fwritable (configure.ac): ... to here.
20184
20185 2011-05-07  Bruno Haible  <bruno@clisp.org>
20186
20187         futimens: Move AC_LIBOBJ invocations to module description.
20188         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
20189         here...
20190         * modules/futimens (configure.ac): ... to here.
20191
20192 2011-05-07  Bruno Haible  <bruno@clisp.org>
20193
20194         ftruncate: Move AC_LIBOBJ invocations to module description.
20195         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
20196         gl_PREREQ_FTRUNCATE invocations from here...
20197         * modules/ftruncate (configure.ac): ... to here.
20198
20199 2011-05-07  Bruno Haible  <bruno@clisp.org>
20200
20201         fsync: Move AC_LIBOBJ invocations to module description.
20202         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
20203         invocations from here...
20204         * modules/fsync (configure.ac): ... to here.
20205
20206 2011-05-07  Bruno Haible  <bruno@clisp.org>
20207
20208         fsusage: Move AC_LIBOBJ invocations to module description.
20209         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
20210         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
20211         * modules/fsusage (configure.ac): ... to here.
20212
20213 2011-05-07  Bruno Haible  <bruno@clisp.org>
20214
20215         freopen: Move AC_LIBOBJ invocations to module description.
20216         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
20217         invocations from here...
20218         * modules/freopen (configure.ac): ... to here.
20219
20220 2011-05-07  Bruno Haible  <bruno@clisp.org>
20221
20222         free: Move AC_LIBOBJ invocations to module description.
20223         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
20224         invocations from here...
20225         * modules/free (configure.ac): ... to here.
20226
20227 2011-05-07  Bruno Haible  <bruno@clisp.org>
20228
20229         freadable: Move AC_LIBOBJ invocations to module description.
20230         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
20231         here...
20232         * modules/freadable (configure.ac): ... to here.
20233
20234 2011-05-07  Bruno Haible  <bruno@clisp.org>
20235
20236         fpurge: Move AC_LIBOBJ invocations to module description.
20237         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
20238         invocations from here...
20239         * modules/fpurge (configure.ac): ... to here.
20240
20241 2011-05-07  Bruno Haible  <bruno@clisp.org>
20242
20243         fpending: Move AC_LIBOBJ invocations to module description.
20244         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
20245         gl_FUNC_FPENDING.
20246         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
20247         invocations from here...
20248         * modules/fpending (configure.ac): ... to here.
20249
20250 2011-05-07  Bruno Haible  <bruno@clisp.org>
20251
20252         fopen: Move AC_LIBOBJ invocations to module description.
20253         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
20254         invocations from here...
20255         * modules/fopen (configure.ac): ... to here.
20256
20257 2011-05-07  Bruno Haible  <bruno@clisp.org>
20258
20259         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
20260         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
20261         gl_FUNC_FNMATCH_POSIX.
20262         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
20263         invocations from here...
20264         * modules/fnmatch (configure.ac): ... to here.
20265         * modules/fnmatch-gnu (configure.ac): ... and here.
20266
20267 2011-05-07  Bruno Haible  <bruno@clisp.org>
20268
20269         flock: Move AC_LIBOBJ invocations to module description.
20270         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
20271         invocations from here...
20272         * modules/flock (configure.ac): ... to here.
20273
20274 2011-05-07  Bruno Haible  <bruno@clisp.org>
20275
20276         fileblocks: Move AC_LIBOBJ invocations to module description.
20277         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
20278         gl_PREREQ_FILEBLOCKS invocations from here...
20279         * modules/fileblocks (configure.ac): ... to here.
20280
20281 2011-05-06  Bruno Haible  <bruno@clisp.org>
20282
20283         fflush: Move AC_LIBOBJ invocations to module description.
20284         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
20285         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
20286         invocations from here...
20287         * modules/fflush (configure.ac): ... to here.
20288
20289 2011-05-06  Bruno Haible  <bruno@clisp.org>
20290
20291         fdopendir: Move AC_LIBOBJ invocations to module description.
20292         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
20293         here...
20294         * modules/fdopendir (configure.ac): ... to here.
20295         (Depends-on): Improve conditions.
20296
20297 2011-05-06  Bruno Haible  <bruno@clisp.org>
20298
20299         _Exit: Move AC_LIBOBJ invocations to module description.
20300         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
20301         invocations from here...
20302         * modules/_Exit (configure.ac): ... to here.
20303
20304 2011-05-21  Bruno Haible  <bruno@clisp.org>
20305
20306         euidaccess: Respect rules for use of AC_LIBOBJ.
20307         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
20308         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
20309         from here...
20310         * modules/euidaccess (configure.ac): ... to here.
20311
20312 2011-05-06  Bruno Haible  <bruno@clisp.org>
20313
20314         error: Move AC_LIBOBJ invocations to module description.
20315         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
20316         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
20317         invocations from here...
20318         * modules/error (configure.ac): ... to here.
20319
20320 2011-05-06  Bruno Haible  <bruno@clisp.org>
20321
20322         duplocale: Move AC_LIBOBJ invocations to module description.
20323         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
20324         gl_PREREQ_DUPLOCALE invocations from here...
20325         * modules/duplocale (configure.ac): ... to here.
20326
20327 2011-05-05  Bruno Haible  <bruno@clisp.org>
20328
20329         dirfd: Move AC_LIBOBJ invocations to module description.
20330         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
20331         gl_FUNC_DIRFD.
20332         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
20333         here...
20334         * modules/dirfd (configure.ac): ... to here.
20335         (Depends-on): Fix condition.
20336
20337 2011-05-05  Bruno Haible  <bruno@clisp.org>
20338
20339         chown: Respect rules for use of AC_LIBOBJ.
20340         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
20341         * modules/chown (configure.ac): ... to here.
20342
20343 2011-05-05  Bruno Haible  <bruno@clisp.org>
20344
20345         chdir-long: Move AC_LIBOBJ invocations to module description.
20346         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
20347         gl_PREREQ_CHDIR_LONG invocations from here...
20348         * modules/chdir-long (configure.ac): ... to here.
20349
20350 2011-05-05  Bruno Haible  <bruno@clisp.org>
20351
20352         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
20353         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
20354         from here...
20355         * modules/canonicalize-lgpl (configure.ac): ... to here.
20356
20357 2011-05-05  Bruno Haible  <bruno@clisp.org>
20358
20359         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
20360         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
20361         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
20362         REPLACE_CALLOC.
20363         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
20364         * modules/calloc-gnu (configure.ac): Likewise.
20365
20366 2011-05-05  Bruno Haible  <bruno@clisp.org>
20367
20368         btowc: Move AC_LIBOBJ invocations to module description.
20369         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
20370         invocations from here...
20371         * modules/btowc (configure.ac): ... to here.
20372
20373 2011-05-21  Bruno Haible  <bruno@clisp.org>
20374
20375         atexit: Move AC_LIBOBJ invocations to module description.
20376         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
20377         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
20378         here...
20379         * modules/atexit (configure.ac): ... to here.
20380
20381 2011-05-05  Bruno Haible  <bruno@clisp.org>
20382
20383         atoll: Move AC_LIBOBJ invocations to module description.
20384         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
20385         invocations from here...
20386         * modules/atoll (configure.ac): ... to here.
20387
20388 2011-05-05  Bruno Haible  <bruno@clisp.org>
20389
20390         argz: Move AC_LIBOBJ invocations to module description.
20391         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
20392         * modules/argz (configure.ac): ... to here.
20393
20394 2011-05-05  Bruno Haible  <bruno@clisp.org>
20395
20396         alphasort: Move AC_LIBOBJ invocations to module description.
20397         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
20398         gl_PREREQ_ALPHASORT invocations from here...
20399         * modules/alphasort (configure.ac): ... to here.
20400
20401 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
20402
20403         verify: new macro verify_expr; verify_true deprecated
20404         * NEWS: Mention this.
20405         * doc/verify.texi (Compile-time Assertions): Document this.
20406         * lib/verify.h (verify_true): Deprecate.
20407         (verify_expr): New macro.
20408         * tests/test-verify.c (function): Test verify_expr.
20409
20410 2011-06-14  Jim Meyering  <meyering@redhat.com>
20411
20412         init.sh: give more portable redirection-related advice in a comment
20413         * tests/init.sh (stderr_fileno_): Update the advice in comments.
20414         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
20415         for lots of discussion.  Stefano Lattarini suggested the solution
20416         of putting "9>&2" after the command.  Reported by Bruno Haible.
20417
20418 2011-06-13  Bruno Haible  <bruno@clisp.org>
20419
20420         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
20421         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
20422         'none'.
20423
20424 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
20425
20426         ftoastr: use strtof only if HAVE_STRTOF
20427         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
20428         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
20429         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
20430         * modules/ftoastr (configure.ac): Check for strtof.
20431
20432 2011-06-13  Bruno Haible  <bruno@clisp.org>
20433
20434         gnulib-tool: Addendum to 2011-06-08 commit.
20435         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
20436         and --witness-c-macro have been given, augment AM_CPPFLAGS.
20437
20438 2011-06-13  Bruno Haible  <bruno@clisp.org>
20439
20440         fseeko: Provide a non-inline replacement of fseek().
20441         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
20442         * modules/fseeko (Depends-on): Add fseek.
20443         * modules/fseek (License): Change to LGPLv2+.
20444
20445 2011-06-13  Bruno Haible  <bruno@clisp.org>
20446
20447         ftello: Provide a non-inline replacement of ftell().
20448         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
20449         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
20450         not have ftello() (such as on mingw).
20451         * modules/ftello (Depends-on): Add ftell.
20452         * modules/ftell (License): Change to LGPLv2+.
20453
20454 2011-05-07  Bruno Haible  <bruno@clisp.org>
20455
20456         ftell: Move AC_LIBOBJ invocations to module description.
20457         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
20458         * modules/ftell (configure.ac): ... to here.
20459
20460 2011-05-07  Bruno Haible  <bruno@clisp.org>
20461
20462         ftello: Respect rules for use of AC_LIBOBJ.
20463         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
20464         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
20465         here...
20466         * modules/ftello (configure.ac): ... to here.
20467
20468 2011-05-07  Bruno Haible  <bruno@clisp.org>
20469
20470         fseeko: Simplify.
20471         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
20472         (gl_FUNC_FSEEKO): Inline it here.
20473
20474 2011-05-07  Bruno Haible  <bruno@clisp.org>
20475
20476         fseek: Move AC_LIBOBJ invocations to module description.
20477         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
20478         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
20479         * modules/fseek (configure.ac): ... to here.
20480
20481 2011-05-07  Bruno Haible  <bruno@clisp.org>
20482
20483         fseek: Respect rules for use of AC_LIBOBJ.
20484         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
20485         here...
20486         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
20487
20488 2011-05-07  Bruno Haible  <bruno@clisp.org>
20489
20490         fseeko: Respect rules for use of AC_LIBOBJ.
20491         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
20492         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
20493         here...
20494         * modules/fseeko (configure.ac): ... to here.
20495
20496 2011-06-13  Bruno Haible  <bruno@clisp.org>
20497
20498         gnulib-tool: Allow comments in the 'Depends-on' section.
20499         * doc/gnulib.texi (Module description): Mention comment syntax in the
20500         Depends-on section.
20501         * gnulib-tool (func_get_dependencies): Filter out comment lines.
20502
20503 2011-06-13  Bruno Haible  <bruno@clisp.org>
20504
20505         file-set.h: guard __attibute__ use, now that it's not always defined
20506         * lib/file-set.h (record_file): Use __attribute__ only with compiler
20507         versions that support it.  This fixes a coreutils build failure with
20508         the vendor cc on HP-UX 11.31.
20509
20510 2011-06-12  Bruno Haible  <bruno@clisp.org>
20511
20512         acl: Add support for HP-UX >= 11.11 JFS ACLs.
20513         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
20514         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
20515         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
20516         (acl, aclsort): New declarations.
20517         (aclv_nontrivial): New declaration.
20518         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
20519         (file_has_acl): Read also the second kind of HP-UX ACLs.
20520         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
20521         kind of HP-UX ACLs if the first kind fails.
20522         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
20523         second kind of HP-UX ACLs.
20524         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
20525         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
20526         agree.
20527         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
20528         hpuxjfs.
20529         Handle hpuxjfs.
20530         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
20531         hpuxjfs.
20532         Handle hpuxjfs.
20533         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
20534         (func_test_same_acls): Use both lsacl and getacl.
20535         Handle hpuxjfs.
20536         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
20537         (func_test_same_acls): Use both lsacl and getacl.
20538         Handle hpuxjfs.
20539
20540 2011-06-12  Bruno Haible  <bruno@clisp.org>
20541
20542         acl: Complete the 2010-08-10 fix.
20543         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
20544         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
20545         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
20546         explicitly.
20547         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
20548         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
20549
20550 2011-06-12  Bruno Haible  <bruno@clisp.org>
20551
20552         spawn-pipe tests: Comments.
20553         * tests/test-spawn-pipe-child.c (main): Update comment.
20554         Reported by James Youngman <jay@gnu.org>.
20555
20556 2011-06-11  James Youngman  <jay@gnu.org>
20557
20558         New module 'stat-size'.
20559         * modules/stat-size: New module.  Provides macros for accessing
20560         file size information in instances of struct stat.  Depends on the
20561         fileblocks module because it calls st_blocks.
20562         * lib/stat-size.h: New file, adapted from coreutils' system.h.
20563         * doc/gnulib.texi: Include stat-size.texi.
20564         * doc/stat-size.texi: Documentation for this module.
20565         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
20566         * m4/fileblocks.m4: Mention that stat-size depends on the call to
20567         AC_STRUCT_ST_BLOCKS.
20568
20569 2011-06-09  Bruno Haible  <bruno@clisp.org>
20570
20571         thread: Support pthreads-win32.
20572         * lib/glthread/thread.h (gl_thread_self): Define differently on
20573         pthreads-win32.
20574         (gl_null_thread): New declaration.
20575         (gl_thread_self_pointer): New macro.
20576         * lib/glthread/thread.c (gl_null_thread): New constant.
20577         * tests/test-lock.c: Use gl_thread_self_pointer instead of
20578         gl_thread_self.
20579         * tests/test-tls.c: Likewise.
20580         Suggested by Paul Eggert. Reported by Eric Blake.
20581
20582 2011-06-09  Bruno Haible  <bruno@clisp.org>
20583
20584         thread: Fix confusion between NULL and 0.
20585         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
20586         Reported by Paul Eggert.
20587
20588 2011-06-09  Bruno Haible  <bruno@clisp.org>
20589
20590         spawn-pipe tests: Avoid test failure on HP-UX 11.
20591         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
20592         is closed.
20593
20594 2011-06-09  Bruno Haible  <bruno@clisp.org>
20595
20596         acl tests: Fix compilation error on HP-UX 11.
20597         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
20598
20599 2011-06-09  Bruno Haible  <bruno@clisp.org>
20600
20601         rmdir: Avoid test failure on HP-UX 10.20.
20602         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
20603         EEXIST.
20604
20605 2011-06-08  Eric Blake  <eblake@redhat.com>
20606
20607         perror: fix test on mingw
20608         * modules/perror-tests (Depends-on): Add dup2.
20609
20610         strerror_r-posix: fix on MacOS
20611         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
20612         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
20613         logic bug.
20614         * lib/strerror_r.c (strerror_r): Fix the bug.
20615         * lib/strerror.c (strerror): Likewise.
20616         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
20617         problem.
20618         * doc/posix-functions/strerror.texi (strerror): Likewise.
20619         * doc/posix-functions/perror.texi (perror): Likewise.
20620         * tests/test-strerror.c (main): Enhance test.
20621         * tests/test-strerror_r.c (main): Likewise.
20622
20623 2011-06-08  Bruno Haible  <bruno@clisp.org>
20624
20625         gnulib-tool: Better isolation between different gnulib-tool invocations.
20626         * gnulib-tool: New option --witness-c-macro.
20627         (witness_c_macro): New variable.
20628         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
20629         AM_CPPFLAGS define it as a C macro.
20630         (func_emit_tests_Makefile_am): Likewise.
20631         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
20632         read it from there.
20633         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
20634         m4_define, not AC_DEFUN.
20635         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
20636         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
20637         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
20638         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
20639         s|...|...|, to substitute the values of the GNULIB_* module indicator
20640         variables.
20641         * modules/dirent (Makefile.am): Likewise.
20642         * modules/fcntl-h (Makefile.am): Likewise.
20643         * modules/iconv-h (Makefile.am): Likewise.
20644         * modules/langinfo (Makefile.am): Likewise.
20645         * modules/locale (Makefile.am): Likewise.
20646         * modules/math (Makefile.am): Likewise.
20647         * modules/netdb (Makefile.am): Likewise.
20648         * modules/poll-h (Makefile.am): Likewise.
20649         * modules/pty (Makefile.am): Likewise.
20650         * modules/search (Makefile.am): Likewise.
20651         * modules/signal (Makefile.am): Likewise.
20652         * modules/spawn (Makefile.am): Likewise.
20653         * modules/stdio (Makefile.am): Likewise.
20654         * modules/stdlib (Makefile.am): Likewise.
20655         * modules/string (Makefile.am): Likewise.
20656         * modules/sys_ioctl (Makefile.am): Likewise.
20657         * modules/sys_select (Makefile.am): Likewise.
20658         * modules/sys_socket (Makefile.am): Likewise.
20659         * modules/sys_stat (Makefile.am): Likewise.
20660         * modules/sys_times (Makefile.am): Likewise.
20661         * modules/sys_utsname (Makefile.am): Likewise.
20662         * modules/sys_wait (Makefile.am): Likewise.
20663         * modules/termios (Makefile.am): Likewise.
20664         * modules/time (Makefile.am): Likewise.
20665         * modules/unistd (Makefile.am): Likewise.
20666         * modules/wchar (Makefile.am): Likewise.
20667
20668 2011-06-08  Eric Blake  <eblake@redhat.com>
20669
20670         strerror: simplify replacement
20671         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
20672         * modules/strerror (configure.ac): No prereqs needed here...
20673         * modules/strerror-override (configure.ac): ...but this needs it.
20674         (Files): Add file for needed prereq macro.
20675
20676 2011-06-08  Bruno Haible  <bruno@clisp.org>
20677
20678         strerror_r-posix: Tweaks.
20679         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
20680         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
20681         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
20682         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
20683         (gl_FUNC_STRERROR_R): ... to here.
20684         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
20685
20686 2011-06-07  Eric Blake  <eblake@redhat.com>
20687
20688         perror: document fixed bugs
20689         * doc/posix-functions/perror.texi (perror): Document recent
20690         patches.
20691
20692 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
20693
20694         stat-time: get_stat_birthtime failure is better-defined
20695         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
20696         return a timestamp whose tv_sec and tv_nsec values are both -1.
20697         Previously, the spec said only that the tv_nsec value was negative.
20698         This upward-compatible change simplifies GNU tar a bit.
20699
20700 2011-06-07  Eric Blake  <eblake@redhat.com>
20701
20702         strerror_r-posix: work around cygwin 1.7.9
20703         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
20704         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
20705         bug without replacing strerror_r.
20706         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
20707         strerror_r is buggy, but without requiring strerror_r compilation.
20708         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
20709
20710         test-perror: relax test to ignore cygwin bug
20711         * tests/test-perror2.c (main): Relax test on requiring detection
20712         of stream errors, and use unbuffered stream.
20713         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
20714         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
20715         * doc/posix-functions/fputc.texi (fputc): Likewise.
20716         * doc/posix-functions/fputs.texi (fputs): Likewise.
20717         * doc/posix-functions/fputws.texi (fputws): Likewise.
20718         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
20719         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
20720         * doc/posix-functions/getopt.texi (getopt): Likewise.
20721         * doc/posix-functions/perror.texi (perror): Likewise.
20722         * doc/posix-functions/printf.texi (printf): Likewise.
20723         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
20724         * doc/posix-functions/psignal.texi (psignal): Likewise.
20725         * doc/posix-functions/putc.texi (putc): Likewise.
20726         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
20727         Likewise.
20728         * doc/posix-functions/putchar.texi (putchar): Likewise.
20729         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
20730         Likewise.
20731         * doc/posix-functions/puts.texi (puts): Likewise.
20732         * doc/posix-functions/putwc.texi (putwc): Likewise.
20733         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
20734         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
20735         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
20736         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
20737         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
20738         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
20739         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
20740         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
20741
20742 2011-05-22  Bruno Haible  <bruno@clisp.org>
20743
20744         strerror: Move AC_LIBOBJ invocations to module description.
20745         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
20746         gl_PREREQ_STRERROR invocations from here...
20747         * modules/strerror (configure.ac): ... to here.
20748
20749 2011-05-21  Bruno Haible  <bruno@clisp.org>
20750
20751         perror: Use common idiom.
20752         * modules/perror (configure.ac): Reorder statements.
20753
20754 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
20755
20756         tests: fix usage message in 'mktempd_'
20757         * tests/init.sh (mktempd_): In the usage message, use literal
20758         'mktempd_', not '$ME' (which is even undefined), as the name of
20759         the subroutine.
20760
20761 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
20762
20763         tests init: new function 'fatal_', for hard errors
20764         Before this patch, the only way offered by tests/init.sh to
20765         properly signal a hard error was the `framework_failure_'
20766         function.  But the error message issued by that function,
20767         as its name would suggest, refers to a set-up failure in the
20768         testsuite, while hard errors can obviously also be due to
20769         other reasons.  The best way to fix this inconsistency is to
20770         introduce a new function with a more general error message.
20771         * tests/init.sh (fatal_): New function.
20772
20773 2011-06-06  Eric Blake  <eblake@redhat.com>
20774
20775         canonicalize-lgpl: use common idiom
20776         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
20777         over newer POSIX -Rf.
20778         Reported by Bruno Haible.
20779
20780         canonicalize-lgpl: work around AIX realpath bug
20781         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
20782         * doc/posix-functions/realpath.texi (realpath): Document it.
20783         Reported by Bruno Haible.
20784
20785         strerror: work around FreeBSD bug
20786         * lib/strerror.c (strerror): Special case 0.
20787         Reported by Bruno Haible.
20788
20789         strerror-override: avoid bloating errno module
20790         * modules/errno (Files, configure.ac): Move replacement strings...
20791         * modules/strerror-override: ...to new module.
20792         * modules/strerror (Depends-on): Add strerror-override.
20793         * modules/strerror_r-posix (Depends-on): Likewise.
20794         * MODULES.html.sh: Document new module.
20795         Reported by Bruno Haible.
20796
20797 2011-06-06  Bruno Haible  <bruno@clisp.org>
20798
20799         spawn-pipe tests: Rename program.
20800         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
20801         * tests/test-spawn-pipe-child.c: Update comment.
20802         * tests/test-spawn-pipe.sh: Update.
20803         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
20804
20805         spawn-pipe tests: Link the child program only against libc.
20806         * tests/test-spawn-pipe-child.c: New file, extracted from
20807         tests/test-spawn-pipe.c.
20808         (main): Expect only one argument.
20809         (is_open): New function, copied from tests/test-pipe.c.
20810         * tests/test-spawn-pipe.c: Don't include <errno.h>.
20811         (child_main): Remove function.
20812         (test_pipe): Pass only one argument to the child program.
20813         (main): Remove child process code. Expect the child program's name as
20814         first argument.
20815         * tests/test-spawn-pipe.sh: Pass the child program's name as first
20816         argument.
20817         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
20818         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
20819         test-spawn-pipe-child against no libraries.
20820
20821 2011-06-06  Bruno Haible  <bruno@clisp.org>
20822
20823         careadlinkat: Avoid mismatch between ssize_t and int.
20824         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
20825         * lib/careadlinkat.c (careadlinkatcwd): Define always.
20826
20827 2011-06-06  Jim Meyering  <meyering@redhat.com>
20828
20829         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
20830         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
20831         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
20832
20833 2011-06-05  Bruno Haible  <bruno@clisp.org>
20834
20835         ansi-c++-opt: Interoperability with libtool.
20836         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
20837         set the variable to "no", not to ":".
20838         * NEWS: Mention the change.
20839
20840 2011-06-05  Bruno Haible  <bruno@clisp.org>
20841
20842         acl: Fix test failure on AIX 7.
20843         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
20844         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
20845
20846 2011-06-05  Bruno Haible  <bruno@clisp.org>
20847
20848         pipe-filter-ii: Fix test failure on AIX and IRIX.
20849         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
20850         with EAGAIN, retry with a smaller buffer size.
20851
20852 2011-06-05  Bruno Haible  <bruno@clisp.org>
20853
20854         localename: Fix link dependencies.
20855         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
20856         * modules/localename-tests (Makefile.am): Link test-localename with
20857         $(LIBTHREAD).
20858
20859 2011-06-05  Bruno Haible  <bruno@clisp.org>
20860
20861         error: Avoid gcc warning.
20862         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
20863
20864 2011-06-05  Bruno Haible  <bruno@clisp.org>
20865
20866         unsetenv: Avoid gcc warning.
20867         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
20868
20869 2011-06-05  Bruno Haible  <bruno@clisp.org>
20870
20871         setenv: Avoid gcc warning.
20872         * lib/setenv.c (setenv): Provide declaration if system lacks it.
20873
20874 2011-06-05  Bruno Haible  <bruno@clisp.org>
20875
20876         sys_select: Ensure memset is declared also on AIX 7.
20877         * lib/sys_select.in.h: Include <string.h> also on AIX.
20878         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
20879         self-contained also on AIX 7.1.
20880
20881 2011-06-04  Jim Meyering  <meyering@redhat.com>
20882
20883         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
20884         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
20885         function name, "error".
20886         (_gl_translatable_diag_func_re): New configurable variable.
20887
20888 2011-06-04  Bruno Haible  <bruno@clisp.org>
20889
20890         getopt: Avoid gcc warning.
20891         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
20892
20893 2011-06-04  Bruno Haible  <bruno@clisp.org>
20894
20895         strerror_r: Fix comments.
20896         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
20897         commit.
20898
20899 2011-06-04  Bruno Haible  <bruno@clisp.org>
20900
20901         perror: Fix compilation error.
20902         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
20903         Undefine fprintf, not sprintf.
20904         * modules/perror (Depends-on): Remove intprops, verify.
20905
20906 2011-06-04  Bruno Haible  <bruno@clisp.org>
20907
20908         setlocale: Enable replacement on Cygwin 1.5.
20909         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
20910         Cygwin 1.5.x.
20911         * doc/posix-functions/setlocale.texi: Mention that the problem with the
20912         LC_CTYPE category also exists on Cygwin 1.5.x.
20913
20914 2011-06-04  Bruno Haible  <bruno@clisp.org>
20915
20916         strerror-override: Don't disable symbol renamings.
20917         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
20918         * lib/strerror-override.c: Include config.h.
20919         (strerror_override): Don't undefine.
20920
20921 2011-06-03  Bruno Haible  <bruno@clisp.org>
20922
20923         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
20924         * lib/localename.h: Update copyright header.
20925         * lib/localename.c: Likewise.
20926         * lib/relocatable.h: Likewise.
20927         * lib/relocatable.c: Likewise.
20928
20929 2011-06-02  Bruno Haible  <bruno@clisp.org>
20930
20931         doc: Fix a module name.
20932         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
20933
20934 2011-06-02  Bruno Haible  <bruno@clisp.org>
20935
20936         pipe2: Remove dependency on 'nonblocking' module.
20937         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
20938         O_NONBLOCK is defined by gnulib.
20939         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
20940         is zero.
20941         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
20942         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
20943         defined by gnulib.
20944         (get_nonblocking_flag): New function.
20945         (main): Test O_NONBLOCK flag only if it is nonzero.
20946         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
20947
20948 2011-06-03  Jim Meyering  <meyering@redhat.com>
20949
20950         maint: three new prohibit-header-without-use rules
20951         Prohibit use of cloexec.h, posixver.h, same.h without use.
20952         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
20953         (sc_prohibit_posixver_without_use): Likewise.
20954         (sc_prohibit_same_without_use): Likewise.
20955
20956 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
20957
20958         allocator: 'die' routine is now given requested size
20959         * lib/allocator.h (struct allocator.die): New size arg.
20960         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
20961         If the actual problem is an ssize_t limitation, not a size_t or
20962         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
20963
20964 2011-06-01  Eric Blake  <eblake@redhat.com>
20965
20966         strerror: drop strerror_r dependency
20967         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
20968         * lib/strerror-override.c (strerror_override): ...to new file.
20969         * lib/strerror-override.h: Add prototype.
20970         * lib/strerror-impl.h: Delete.
20971         * lib/strerror.c (strerror): New implementation.
20972         * modules/errno (Files): Add new files.
20973         (configure.ac): Compile new file as appropriate.
20974         * modules/strerror (Files): Drop unused file.
20975         (Depends-on): Drop strerror_r-posix.
20976         * MODULES.html.sh: Document strerror_r-posix.
20977         Requested by Sam Steingold.
20978
20979         perror: call strerror_r directly
20980         * modules/perror (Files): Drop strerror-impl.h.
20981         * lib/perror.c (perror): Use our own stack buffer, rather than
20982         calling a wrapper that uses static storage.
20983         * doc/posix-functions/perror.texi (perror): Document a limitation
20984         of our replacement.
20985
20986         strerror_r: fix includes for FreeBSD
20987         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
20988         since we use abort on some platforms.
20989         Reported by Matthias Bolte.
20990
20991 2011-05-31  Bruno Haible  <bruno@clisp.org>
20992
20993         Fix link errors in tests: openat-die uses gettext-h.
20994         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
20995         against $(LIBINTL).
20996         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
20997         against $(LIBINTL).
20998         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
20999         $(LIBINTL).
21000         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
21001         against $(LIBINTL).
21002         * modules/linkat-tests (Makefile.am): Link test-linkat against
21003         $(LIBINTL).
21004         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
21005         $(LIBINTL).
21006         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
21007         against $(LIBINTL).
21008         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
21009         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
21010         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
21011         $(LIBINTL).
21012         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
21013         $(LIBINTL).
21014         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
21015         $(LIBINTL).
21016         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21017
21018 2011-05-31  Bruno Haible  <bruno@clisp.org>
21019
21020         Fix link errors in tests: wait-process uses gettext-h.
21021         * modules/nonblocking-pipe-tests (Makefile.am): Set
21022         test_nonblocking_pipe_main_LDADD.
21023         * modules/nonblocking-socket-tests (Makefile.am): Link
21024         test-nonblocking-socket-main against $(LIBINTL).
21025         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21026
21027 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
21028
21029         assert-h: work around 'verify' incompatibility
21030         * lib/verify.h: Use @...@ directives, not ifdef.
21031         * modules/assert-h (assert.h): Implement the directives.
21032         (assert.h): Substitute the symbol-prefix more consistently.
21033
21034 2011-05-29  Jim Meyering  <meyering@redhat.com>
21035
21036         trim: remove three superfluous assignments
21037         * lib/trim.c (trim2): Remove three superfluous assignments
21038         and correct brace positioning.
21039
21040 2011-05-29  Bruno Haible  <bruno@clisp.org>
21041
21042         wctype-h: Avoid namespace pollution on Solaris 2.6.
21043         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
21044         identifiers.
21045         * doc/posix-headers/wctype.texi: Mention the problem.
21046         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21047
21048 2011-05-28  Jim Meyering  <meyering@redhat.com>
21049
21050         parse-datetime.y: accommodate -Wstrict-overflow
21051         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
21052         placate -Wstrict-overflow.
21053
21054         trim: avoid a warning from -O2 -Wstrict-overflow
21055         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
21056
21057 2011-05-29  Bruno Haible  <bruno@clisp.org>
21058
21059         gnulib-tool: Fix bug in yesterday's commit.
21060         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
21061         twice.
21062
21063 2011-05-29  Bruno Haible  <bruno@clisp.org>
21064
21065         Allow multiple gnulib generated include files to be combined.
21066         * gnulib-tool (func_compute_include_guard_prefix): New function.
21067         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
21068         ${gl_include_guard_prefix} references.
21069         (func_import, func_create_testdir): Invoke
21070         func_compute_include_guard_prefix.
21071         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
21072         * lib/ctype.in.h: Likewise.
21073         * lib/dirent.in.h: Likewise.
21074         * lib/errno.in.h: Likewise.
21075         * lib/fcntl.in.h: Likewise.
21076         * lib/float.in.h: Likewise.
21077         * lib/getopt.in.h: Likewise.
21078         * lib/iconv.in.h: Likewise.
21079         * lib/langinfo.in.h: Likewise.
21080         * lib/locale.in.h: Likewise.
21081         * lib/math.in.h: Likewise.
21082         * lib/netdb.in.h: Likewise.
21083         * lib/netinet_in.in.h: Likewise.
21084         * lib/poll.in.h: Likewise.
21085         * lib/pthread.in.h: Likewise.
21086         * lib/pty.in.h: Likewise.
21087         * lib/sched.in.h: Likewise.
21088         * lib/se-selinux.in.h: Likewise.
21089         * lib/search.in.h: Likewise.
21090         * lib/signal.in.h: Likewise.
21091         * lib/spawn.in.h: Likewise.
21092         * lib/stdarg.in.h: Likewise.
21093         * lib/stddef.in.h: Likewise.
21094         * lib/stdint.in.h: Likewise.
21095         * lib/stdio.in.h: Likewise.
21096         * lib/stdlib.in.h: Likewise.
21097         * lib/string.in.h: Likewise.
21098         * lib/strings.in.h: Likewise.
21099         * lib/sys_file.in.h: Likewise.
21100         * lib/sys_ioctl.in.h: Likewise.
21101         * lib/sys_select.in.h: Likewise.
21102         * lib/sys_socket.in.h: Likewise.
21103         * lib/sys_stat.in.h: Likewise.
21104         * lib/sys_time.in.h: Likewise.
21105         * lib/sys_times.in.h: Likewise.
21106         * lib/sys_uio.in.h: Likewise.
21107         * lib/sys_utsname.in.h: Likewise.
21108         * lib/sys_wait.in.h: Likewise.
21109         * lib/sysexits.in.h: Likewise.
21110         * lib/termios.in.h: Likewise.
21111         * lib/time.in.h: Likewise.
21112         * lib/unistd.in.h: Likewise.
21113         * lib/wchar.in.h: Likewise.
21114         * lib/wctype.in.h: Likewise.
21115         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
21116         * modules/ctype (Makefile.am): Likewise.
21117         * modules/dirent (Makefile.am): Likewise.
21118         * modules/errno (Makefile.am): Likewise.
21119         * modules/fcntl-h (Makefile.am): Likewise.
21120         * modules/float (Makefile.am): Likewise.
21121         * modules/getopt-posix (Makefile.am): Likewise.
21122         * modules/iconv-h (Makefile.am): Likewise.
21123         * modules/langinfo (Makefile.am): Likewise.
21124         * modules/locale (Makefile.am): Likewise.
21125         * modules/math (Makefile.am): Likewise.
21126         * modules/netdb (Makefile.am): Likewise.
21127         * modules/netinet_in (Makefile.am): Likewise.
21128         * modules/poll-h (Makefile.am): Likewise.
21129         * modules/pthread (Makefile.am): Likewise.
21130         * modules/pty (Makefile.am): Likewise.
21131         * modules/sched (Makefile.am): Likewise.
21132         * modules/search (Makefile.am): Likewise.
21133         * modules/selinux-h (Makefile.am): Likewise.
21134         * modules/signal (Makefile.am): Likewise.
21135         * modules/spawn (Makefile.am): Likewise.
21136         * modules/stdarg (Makefile.am): Likewise.
21137         * modules/stddef (Makefile.am): Likewise.
21138         * modules/stdint (Makefile.am): Likewise.
21139         * modules/stdio (Makefile.am): Likewise.
21140         * modules/stdlib (Makefile.am): Likewise.
21141         * modules/string (Makefile.am): Likewise.
21142         * modules/strings (Makefile.am): Likewise.
21143         * modules/sys_file (Makefile.am): Likewise.
21144         * modules/sys_ioctl (Makefile.am): Likewise.
21145         * modules/sys_select (Makefile.am): Likewise.
21146         * modules/sys_socket (Makefile.am): Likewise.
21147         * modules/sys_stat (Makefile.am): Likewise.
21148         * modules/sys_time (Makefile.am): Likewise.
21149         * modules/sys_times (Makefile.am): Likewise.
21150         * modules/sys_uio (Makefile.am): Likewise.
21151         * modules/sys_utsname (Makefile.am): Likewise.
21152         * modules/sys_wait (Makefile.am): Likewise.
21153         * modules/sysexits (Makefile.am): Likewise.
21154         * modules/termios (Makefile.am): Likewise.
21155         * modules/time (Makefile.am): Likewise.
21156         * modules/unistd (Makefile.am): Likewise.
21157         * modules/wchar (Makefile.am): Likewise.
21158         * modules/wctype-h (Makefile.am): Likewise.
21159         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
21160
21161 2011-05-29  Bruno Haible  <bruno@clisp.org>
21162
21163         assert-h: Allow multiple gnulib generated replacements to coexist.
21164         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
21165
21166 2011-05-29  Bruno Haible  <bruno@clisp.org>
21167
21168         argp: Allow coexistence with strerror_r-posix module.
21169         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
21170         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
21171         by gnulib's <string.h> replacement), assume it has the POSIX signature,
21172         not the glibc signature.
21173
21174 2011-05-28  Bruno Haible  <bruno@clisp.org>
21175
21176         gnulib-tool: Alternative structure of testdirs, similar to --import.
21177         * gnulib-tool: New option --single-configure.
21178         (func_usage): Document it.
21179         (single_configure): New variable.
21180         (func_modules_transitive_closure_separately,
21181         func_modules_transitive_closure_separately,
21182         func_determine_use_libtests, func_modules_add_dummy_separately,
21183         func_modules_to_filelist_separately): New functions, extracted from
21184         func_import.
21185         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
21186         (func_import): Use the new functions.
21187         (func_create_testdir): Set final_modules. Handle $single_configure =
21188         true case.
21189
21190 2011-05-28  Bruno Haible  <bruno@clisp.org>
21191
21192         getloadavg: Remove an unreliable safety check.
21193         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
21194         getloadavg.c is in place.
21195         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
21196         Reported by Sam Steingold <sds@gnu.org>.
21197
21198 2011-05-28  Bruno Haible  <bruno@clisp.org>
21199
21200         doc: Cleanup yet another file produced by texinfo.tex.
21201         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
21202
21203 2011-05-28  Bruno Haible  <bruno@clisp.org>
21204
21205         Finish the conditional dependencies mechanism.
21206         * gnulib-tool: New option --no-conditional-dependencies.
21207         (func_usage): Document it. Don't mark --conditional-dependencies as
21208         experimental.
21209         (cond_dependencies): The possible values can now be true, false, empty.
21210         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
21211         (func_import): Store setting in gnulib-cache.m4 and read it from there.
21212         * doc/gnulib-tool.texi (Conditional dependencies): New section.
21213
21214 2011-05-28  Bruno Haible  <bruno@clisp.org>
21215
21216         doc: Use a recent texinfo.tex.
21217         * doc/Makefile (tex_opts): New variable.
21218         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
21219
21220 2011-05-28  Jim Meyering  <meyering@redhat.com>
21221
21222         intprops.h: adjust comment to match code change
21223         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
21224         only once, it *may* have side effects.  Also fix an unrelated typo.
21225         (_GL_INT_SIGNED): Likewise.
21226
21227 2011-05-26  Simon Josefsson  <simon@josefsson.org>
21228
21229         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
21230
21231 2011-05-26  Bruno Haible  <bruno@clisp.org>
21232
21233         mbsrchr: Avoid collision with system function on Interix.
21234         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
21235         Reported by Markus Duft <mduft@gentoo.org>.
21236
21237 2011-05-15  James Youngman  <jay@gnu.org>
21238
21239         getopt: for ambiguous options, enumerate the possibilities.
21240         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
21241         the ambiguous options when an ambiguous prefix is given. This was
21242         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
21243         glibc change was
21244         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
21245
21246 2011-05-25  Eric Blake  <eblake@redhat.com>
21247
21248         getcwd: work around mingw bug
21249         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
21250         * doc/posix-functions/getcwd.texi (getcwd): Document it.
21251         Reported by Matthias Bolte.
21252
21253 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
21254
21255         test-intprops: disable -Wtype-limits diagnostics
21256         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
21257         diagnostics.  Otherwise, the integer overflow macros generate many
21258         diagnostics.  Reported by Jim Meyering in
21259         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
21260
21261         intprops: shorten, to pacify gcc -Woverlength-strings
21262         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
21263         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
21264         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
21265         likely to run afoul of C compiler limits for string constant lengths.
21266         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
21267
21268 2011-05-24  Eric Blake  <eblake@redhat.com>
21269
21270         docs: document recently fixed glibc printf bug
21271         * doc/posix-functions/fprintf.texi (fprintf): Document it.
21272         * doc/posix-functions/printf.texi (printf): Likewise.
21273         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
21274         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
21275
21276         closein-tests: convert to init.sh
21277         * modules/closein-tests (Files): Add init.sh
21278         * tests/test-closein.sh Use it.
21279
21280         yesno-tests: convert to init.sh
21281         * modules/yesno-tests (Files): Add init.sh.
21282         * tests/test-yesno.sh: Use it.
21283
21284         atexit-tests: ensure reliable exit status
21285         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
21286         Reported by Bruno Haible.
21287
21288 2011-05-24  Bruno Haible  <bruno@clisp.org>
21289
21290         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
21291         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
21292         gl_PREREQ_STRERROR_R invocations from here...
21293         * modules/strerror_r-posix (configure.ac): ... to here.
21294
21295 2011-05-24  Eric Blake  <eblake@redhat.com>
21296
21297         strerror_r: fix missing header
21298         * lib/strerror_r.c: Avoid compiler warning about snprintf.
21299
21300         strerror_r: fix AIX test failures
21301         * lib/strerror_r.c (strerror_r): Convert silent truncation to
21302         ERANGE failure.
21303
21304         strerror_r: fix Solaris test failures
21305         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
21306         failures.
21307         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
21308
21309         strerror_r: enforce POSIX recommendations
21310         * lib/strerror_r.c (safe_copy): New helper method.
21311         (strerror_r): Guarantee a non-empty string.
21312         * tests/test-strerror_r.c (main): Enhance tests to incorporate
21313         recent POSIX rulings and to match our strerror guarantees.
21314         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
21315
21316 2011-05-24  Jim Meyering  <meyering@redhat.com>
21317
21318         test-perror2.c: avoid warning about unused variable
21319         * tests/test-perror2.c (main): Remove declaration of unused "fp".
21320
21321 2011-05-24  Eric Blake  <eblake@redhat.com>
21322
21323         perror: avoid spurious test failure on HP-UX
21324         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
21325
21326         tests: fix logic bug in init.sh
21327         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
21328         shell.
21329
21330 2011-05-24  Jim Meyering  <meyering@redhat.com>
21331
21332         utimensat: do not reference an out-of-scope buffer
21333         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
21334         declared in an inner scope, yet "times" would be dereferenced outside
21335         the scope in which "ts" was valid.
21336         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
21337         of ts[2] "out/up", so that the use of aliased "times" (via
21338         "times = ts;") does not end up referencing an out-of-scope "ts"
21339
21340         opendir-safer.c: don't clobber errno; don't close negative FD
21341         * lib/opendir-safer.c (opendir_safer):
21342         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
21343         file descriptor, and more importantly, don't clobber the
21344         offending errno value with EINVAL.  Before, upon failure
21345         of dup_safer, we would pass the negative file descriptor to
21346         fdopendir, which would clobber errno.
21347
21348 2011-05-23  Bruno Haible  <bruno@clisp.org>
21349
21350         idcache: Fix module description.
21351         * modules/idcache (Include): Set to "idcache.h".
21352
21353 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
21354
21355         gnulib-tool: fix portability problem with MacOS sed
21356         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
21357         before the "}".  Problem reported by Leo in
21358         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
21359         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
21360         sed_extract_condition1, sed_extract_condition2.
21361
21362 2011-05-23  Bruno Haible  <bruno@clisp.org>
21363
21364         hash: Simplify autoconf macro.
21365         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
21366
21367 2011-05-23  Bruno Haible  <bruno@clisp.org>
21368
21369         getugroups: Fix module description.
21370         * modules/getugroups (Include): Set to "getugroups.h".
21371
21372 2011-05-23  Bruno Haible  <bruno@clisp.org>
21373
21374         linkat: Simplify autoconf macro.
21375         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
21376
21377 2011-05-23  Bruno Haible  <bruno@clisp.org>
21378             Eric Blake  <eblake@redhat.com>
21379
21380         linkat, renameat: Update dependencies.
21381         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
21382         * modules/linkat (Depends-on): Likewise. Remove also readlink,
21383         symlinkat.
21384
21385 2011-05-23  Jim Meyering  <meyering@redhat.com>
21386
21387         maint.mk: more tight_scope improvements
21388         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
21389         (_gl_TS_headers): Define only in if-0'd block.
21390         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
21391         sometimes we must *not* use it.  Adjust uses accordingly.
21392         (sc_tight_scope): Use much simpler grep-based test to determine
21393         whether we skip this rule.
21394
21395         maint.mk: generalize/improve the tight-scope rule
21396         * top/maint.mk: Emit a warning when the test is skipped.
21397         (_gl_TS_dir): Add $(srcdir)/ prefix.
21398         (_gl_TS_function_match): Simplify, rather than trying
21399         to enumerate common types.  Otherwise, it would fail to match an
21400         "extern unsigned char const *" declaration in idutils.
21401         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
21402         a way to support use of that type of macro.
21403         (_gl_TS_var_match): Simplify regexp.
21404         (_gl_TS_obj_files): New configurable variable.
21405         (_gl_TS_headers): Likewise.
21406
21407 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
21408
21409         verify: fix bug when gnulib <assert.h> is also included
21410         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
21411         is defined, not if _GL_STATIC_ASSERT_H is not defined.
21412         Perhaps there's a better way, but this fixes the immediate problem.
21413         Problem reported by Bruno Haible in
21414         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
21415
21416 2011-05-22  Bruno Haible  <bruno@clisp.org>
21417
21418         xgetcwd: Simplify autoconf macro.
21419         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
21420
21421 2011-05-22  Bruno Haible  <bruno@clisp.org>
21422
21423         New module 'mktime-internal'.
21424         * modules/mktime-internal: New file.
21425         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
21426         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
21427         mktime_internal as a C macro if libc has __mktime_internal.
21428         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
21429         conditions.
21430         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
21431
21432 2011-05-22  Bruno Haible  <bruno@clisp.org>
21433
21434         timegm: Correct mktime replacement statements.
21435         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
21436         defining mktime as a C macro. This completes a 2009-07-28 commit.
21437
21438 2011-05-22  Bruno Haible  <bruno@clisp.org>
21439
21440         timegm: Simplify autoconf macro.
21441         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
21442
21443 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
21444
21445         clock-time: change to LGPLv2+.
21446         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
21447         BSD-like but we have no mark for that; this is good enough for now.
21448
21449 2011-05-21  Bruno Haible  <bruno@clisp.org>
21450
21451         strerror_r: Fix comments.
21452         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
21453
21454 2011-05-21  Bruno Haible  <bruno@clisp.org>
21455
21456         relocatable-prog-wrapper: Fix possible link error.
21457         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
21458         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
21459         (gl_FUNC_SETENV): ... to here.
21460         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
21461         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
21462
21463 2011-05-21  Bruno Haible  <bruno@clisp.org>
21464
21465         relocatable-prog-wrapper: Assume strerror() exists.
21466         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
21467         m4/strerror.m4.
21468         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
21469         * lib/relocwrapper.c: Remove mention of strerror module.
21470         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
21471         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
21472         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
21473         C macro.
21474
21475 2011-05-21  Bruno Haible  <bruno@clisp.org>
21476
21477         select: Simplify replacement idiom.
21478         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
21479         Win32 platforms.
21480         * lib/sys_select.in.h (select): Simplify accordingly.
21481         * modules/select (Depends-on): Likewise.
21482
21483 2011-05-21  Bruno Haible  <bruno@clisp.org>
21484
21485         mkdir-p: Simplify autoconf macro.
21486         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
21487         gl_FUNC_LCHOWN.
21488
21489 2011-05-21  Eric Blake  <eblake@redhat.com>
21490
21491         strerror_r: avoid clobbering strerror on cygwin
21492         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
21493         fall back instead to sys_errlist.
21494         * modules/strerror (configure.ac): Add witness.
21495         * tests/test-strerror_r.c (main): Enhance test.
21496         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
21497         * tests/test-perror2.c (main): Free memory before exit.
21498
21499 2011-05-21  Bruno Haible  <bruno@clisp.org>
21500
21501         mkdtemp: Use gnulib naming conventions.
21502         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
21503         * modules/mkdtemp (configure.ac): Update.
21504
21505 2011-05-20  Eric Blake  <eblake@redhat.com>
21506
21507         strerror_r: avoid corrupting errno on Solaris
21508         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
21509         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
21510
21511         strerror_r: avoid compiler warning
21512         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
21513
21514         strerror_r: simplify AIX code
21515         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
21516
21517         test-perror: avoid spurious failure on FreeBSD
21518         * modules/perror-tests (Depends-on): Add strerror, now that
21519         strerror_r no longer pulls it in.
21520
21521 2011-05-20  Bruno Haible  <bruno@clisp.org>
21522
21523         strerror_r-posix: Remove unused dependencies.
21524         * modules/strerror_r-posix (Depends-on): Remove strerror.
21525         Reported by Eric Blake.
21526
21527 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
21528
21529         intprops: remove assumption about A|B representation
21530         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
21531         is a valid integer if both A and B are.  Although this is true for
21532         all known practical hosts, the C standard doesn't guarantee it,
21533         and the code need not assume it.  Also, this change may work around
21534         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
21535         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
21536
21537 2011-05-20  Eric Blake  <eblake@redhat.com>
21538
21539         perror: work around FreeBSD bug
21540         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
21541         is broken.  Move AC_LIBOBJ...
21542         * modules/perror (configure.ac): Here.
21543         * doc/posix-functions/perror.texi (perror): Document this.
21544         * tests/test-perror2.c (main): Enhance test.
21545
21546         test-perror: check for strerror interactions
21547         * tests/macros.h (STREQ): Add macro.
21548         * modules/perror-tests (Files): Add second test.
21549         * tests/test-perror2.c (main): New file.
21550         * doc/posix-functions/perror.texi (perror): Document glibc bug.
21551
21552         test-perror: rewrite to use init script
21553         * modules/perror-tests (Files): Add init.sh.
21554         * tests/test-perror.sh: Use temporary directory.
21555
21556 2011-05-20  Jim Meyering  <meyering@redhat.com>
21557
21558         maint: replace misused "a" with "an"
21559         * doc/intprops.texi: "a integer"
21560         * doc/regex.texi: "a explanation"
21561         * lib/alignof.h: "a object"
21562         * lib/argmatch.h: "a explanation"
21563         * lib/argp-help.c: "a option" and "a OPTION_DOC"
21564         * lib/stdint.in.h: "a integer"
21565         * lib/userspec.c: "a owner"
21566         * doc/gnulib.texi: Fix "a idea", and reword.
21567
21568 2011-05-19  Jim Meyering  <meyering@redhat.com>
21569
21570         maint: correct misuse of "a" and "an"
21571         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
21572         * lib/argp-help.c: "an docum...": s/an/a/
21573         * lib/argp-parse.c: "An vector": s/An/A/
21574         * lib/execute.c: "an native": s/an/a/
21575         * lib/spawn-pipe.c: Likewise.
21576         * lib/gc.h: "an Gc_rc": s/an/a/
21577         * lib/unigbrk.in.h: "an grapheme": s/an/a/
21578         * lib/fts.c: "an stat.st_dev": s/an/a/
21579
21580 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
21581
21582         intprops-tests: work around HP-UX 11.23 cc bug with constants
21583         * tests/test-intprops.c (VERIFY): New macro.
21584         (main): Use it, instead of verify, to work around the compiler bug; see
21585         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
21586
21587         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
21588         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
21589         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
21590         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
21591         (_GL_REMAINDER_OVERFLOW): Use it.
21592
21593         intprops-tests: revert unsigned part of previous change
21594         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
21595         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
21596         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
21597         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
21598
21599 2011-05-19  Bruno Haible  <bruno@clisp.org>
21600
21601         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
21602         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
21603         strerror_r() returned without filling the buffer.
21604         Reported by Eric Blake.
21605
21606 2011-05-19  Eric Blake  <eblake@redhat.com>
21607
21608         strerror_r: guarantee unchanged errno
21609         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
21610         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
21611         failure.
21612         * tests/test-strerror_r.c (main): Enhance test.
21613
21614 2011-05-19  Bruno Haible  <bruno@clisp.org>
21615
21616         strerror_r: Reorder #if blocks.
21617         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
21618         for consistency with the previous commit.
21619
21620 2011-05-19  Bruno Haible  <bruno@clisp.org>
21621
21622         perror: Avoid clobbering the strerror buffer when possible.
21623         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
21624         * lib/strerror.c: Include it.
21625         * modules/strerror (Files): Add lib/strerror-impl.h.
21626         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
21627         (my_strerror): New function, defined through lib/strerror-impl.h.
21628         (perror): Use it instead of strerror.
21629         * modules/perror (Files): Add lib/strerror-impl.h.
21630         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
21631
21632 2011-05-19  Eric Blake  <eblake@redhat.com>
21633
21634         strerror_r: fix on newer cygwin
21635         * lib/strerror_r.c (strerror_r): Cygwin now has
21636         __xpg_strerror_r, use it.
21637
21638 2011-05-19  Bruno Haible  <bruno@clisp.org>
21639
21640         strerror_r: Avoid clobbering the strerror buffer when possible.
21641         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
21642         (sys_nerr, sys_errlist): New declarations.
21643         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
21644         HP-UX, native Win32, IRIX, and 32-bit Solaris.
21645         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
21646
21647 2011-05-19  Bruno Haible  <bruno@clisp.org>
21648
21649         strerror_r: Fix test failure on mingw.
21650         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
21651         EXTEND_STRERROR_R.
21652         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
21653         macros from errno.in.h instead.
21654
21655 2011-05-19  Eric Blake  <eblake@redhat.com>
21656
21657         strerror: relax test for Solaris
21658         * tests/test-strerror.c (main): Permit Solaris behavior.
21659         * tests/test-strerror_r.c (main): Likewise.
21660
21661         strerror: enforce POSIX ruling on strerror(0)
21662         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
21663         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
21664         * lib/strerror_r.c (rpl_strerror_r): Work around it.
21665         * doc/posix-functions/strerror.texi (strerror): Document it.
21666         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
21667         * tests/test-strerror.c (main): Strengthen test.
21668         * tests/test-strerror_r.c (main): Likewise.
21669
21670 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
21671
21672         intprop-tests: port to older and more-pedantic compilers
21673         * modules/intprops-tests (Files): Add tests/macros.h.
21674         * tests/test-intprops.c: Include macros.h.
21675         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
21676         it's no longer documented to expand to an integer constant expression.
21677         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
21678         argument is floating point, as it's no longer documented to expand
21679         to an integer constant expression in that case.
21680         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
21681         compiler bugs reported by Bruno Haible.  See
21682         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
21683         (U0, U1): New constants, to work around the same bugs.  Also,
21684         in tests, use e.g., "(unsigned int) 39" rather than "39u".
21685
21686         intprops: work around C compiler bugs
21687         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
21688         bug in Sun C 5.11 2010/08/13 and other compilers; see
21689         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
21690
21691         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
21692         * doc/intprops.texi (Integer Type Determination): Fix
21693         documentation for TYPE_IS_INTEGER: it returns an constant
21694         expression, not an integer constant expression.  Fix doc for
21695         TYPE_SIGNED: it returns an integer constant expression only if its
21696         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
21697         hardly worth documented that way....)
21698
21699 2011-05-18  Bruno Haible  <bruno@clisp.org>
21700
21701         strerror_r: Avoid clobbering the strerror buffer when possible.
21702         * lib/strerror_r.c (strerror_r): Merge the three implementations.
21703         Handle gnulib defined errno values here. When strerror() returns NULL
21704         or an empty string, return EINVAL.
21705         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
21706         gnulib defined errno values here.
21707         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
21708
21709 2011-05-18  Eric Blake  <eblake@redhat.com>
21710
21711         fnmatch: avoid compiler warning
21712         * lib/fnmatch_loop.c (FCT): Use correct type.
21713         Reported by Matthias Bolte.
21714
21715 2011-05-13  Jim Meyering  <meyering@redhat.com>
21716
21717         maint.mk: three new prohibit_<HDR>_without_use rules
21718         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
21719         (sc_prohibit_stdio-safer_without_use): Likewise.
21720         (sc_prohibit_xfreopen_without_use): Likewise.
21721
21722 2011-05-17  Jim Meyering  <meyering@redhat.com>
21723
21724         announce-gen: fail if the NEWS delta is empty
21725         If there's nothing noteworthy in NEWS, then either you forgot
21726         or you shouldn't be releasing.
21727         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
21728
21729 2011-05-17  Pádraig Brady <P@draigBrady.com>
21730
21731         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
21732         reserved symbols starting with double underscore from the check.
21733
21734 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
21735
21736         intprops: add doc
21737         * doc/intprops.texi: New file, documenting intprops.
21738         * doc/gnulib.texi (Particular Modules): Include it.
21739
21740         verify: add doc to gnulib manual and fix example
21741         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
21742         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
21743         (Compile-time Assertions): Fix example so it can't overflow.
21744
21745 2011-05-17  Jim Meyering  <meyering@redhat.com>
21746
21747         warnings.m4: don't usurp save_CPPFLAGS variable name
21748         * m4/warnings.m4: Prefix local temporary variable name with gl_.
21749
21750         doc: fix typo
21751         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
21752
21753 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
21754             Bruno Haible  <bruno@clisp.org>
21755
21756         doc: Tweak recent change.
21757         * README (Portability guidelines): Tweak new text.
21758         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
21759         Interix 6.1.
21760
21761 2011-05-16  Eric Blake  <eblake@redhat.com>
21762
21763         inttypes: avoid autoconf warning
21764         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
21765         * m4/stdint.m4 (gl_STDINT_H): Likewise.
21766
21767 2011-05-16  Sam Steingold <sds@gnu.org>
21768         and Eric Blake  <eblake@redhat.com>
21769
21770         vc-list-files: accept multiple directory operands
21771         * build-aux/vc-list-files: Iterate over all remaining operands.
21772
21773 2011-05-16  Bruno Haible  <bruno@clisp.org>
21774
21775         Fix confusion regarding deprecated modules.
21776         * modules/calloc (Status, Notice): Mark module as deprecated, not
21777         obsolete.
21778         * modules/fnmatch-posix (Status, Notice): Likewise.
21779         * modules/getdate (Status, Notice): Likewise.
21780         * modules/getopt (Status, Notice): Likewise.
21781         * modules/malloc (Status, Notice): Likewise.
21782         * modules/pipe (Status, Notice): Likewise.
21783         * modules/realloc (Status, Notice): Likewise.
21784         * modules/rename-dest-slash (Status, Notice): Likewise.
21785         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
21786         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
21787         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
21788         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
21789         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
21790
21791 2011-05-16  Bruno Haible  <bruno@clisp.org>
21792
21793         doc: List the target platforms.
21794         * doc/gnulib-intro.texi (Target Platforms): New section.
21795         * doc/gnulib.texi (Introduction): Update menu.
21796         * README (Portability guidelines): Refer to the new section. Update
21797         statement about oldest supported environment. Remove rationale why
21798         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
21799         unportable C89 function.
21800         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
21801         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
21802
21803 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
21804
21805         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
21806
21807 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
21808
21809         intprops-tests: new module
21810         * modules/intprops-tests, tests/test-intprops.c: New files.
21811
21812         intprops: add safe, portable integer overflow checking
21813         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
21814         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
21815         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
21816         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
21817         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
21818         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
21819         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
21820         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
21821         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
21822         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
21823         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
21824
21825 2011-05-12  James Youngman  <jay@gnu.org>
21826
21827         Add a test for glibc's Bugzilla bug #12378.
21828         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
21829         doesn't allow the literal matching of a lone "[" (which is
21830         required by POSIX).
21831         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
21832
21833 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
21834
21835         Sync glibc change fixing Bugzilla bug #12378.
21836         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
21837         beginning and fall back to matching as normal character if the
21838         string ends before the matching ']' is found.  This is what POSIX
21839         requires.
21840
21841 2011-05-13  Eric Blake  <eblake@redhat.com>
21842
21843         getcwd-lgpl: relax test for FreeBSD
21844         * doc/posix-functions/getcwd.texi (getcwd): Document portability
21845         issue.
21846         * tests/test-getcwd-lgpl.c (main): Relax test.
21847         Reported by Matthias Bolte.
21848
21849 2011-05-11  Eric Blake  <eblake@redhat.com>
21850
21851         test-fflush: silence compiler warning
21852         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
21853
21854 2011-05-11  Bruno Haible  <bruno@clisp.org>
21855
21856         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
21857         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
21858         * modules/canonicalize (Depends-on): Add 'nocrash'.
21859         * modules/canonicalize-lgpl (Depends-on): Likewise.
21860         * doc/posix-functions/realpath.texi: Update platforms list.
21861         Reported by Ryan Schmidt <ryandesign@macports.org>.
21862
21863 2011-05-11  Bruno Haible  <bruno@clisp.org>
21864
21865         group-member: Declare function in <unistd.h>.
21866         * lib/unistd.in.h (group_member): New declaration.
21867         * lib/group-member.h: Remove file.
21868         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
21869         * tests/test-unistd-c++.cc: Check signature of group_member.
21870         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
21871         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
21872         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
21873         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
21874         HAVE_GROUP_MEMBER.
21875         * modules/group-member (Files): Remove lib/group-member.h.
21876         (Depends-on): Add unistd. Specify conditions.
21877         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
21878         (Include): Change to <unistd.h>.
21879         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
21880         HAVE_GROUP_MEMBER.
21881         * NEWS: Mention the change.
21882         * lib/euidaccess.c: Don't include group-member.h.
21883
21884 2011-05-11  Bruno Haible  <bruno@clisp.org>
21885
21886         group-member: Document module.
21887         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
21888         module.
21889
21890 2011-05-11  Bruno Haible  <bruno@clisp.org>
21891
21892         fclose: Fix mistake earlier today.
21893         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
21894
21895 2011-05-11  Eric Blake  <eblake@redhat.com>
21896
21897         fclose: preserve fflush errors
21898         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
21899         Reported by Jim Meyering.
21900
21901         bootstrap: support a prereq of 'rpcgen -' on RHEL5
21902         * build-aux/bootstrap (check_versions): When no specific version
21903         is required, merely check that the app produces an exit status
21904         that indicates its existence.
21905
21906         maint.mk: drop redundant check
21907         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
21908         the same but better.
21909
21910 2011-05-11  Bruno Haible  <bruno@clisp.org>
21911
21912         fclose: Fix possible link error.
21913         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
21914         unregister_shadow_fd. Improve comments.
21915         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
21916         Eric Blake.
21917
21918 2011-05-11  Jim Meyering  <meyering@redhat.com>
21919
21920         maint.mk: improve "can not" detection and generalize rule name
21921         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
21922         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
21923         Use the same technique as in sc_prohibit_doubled_word, so that
21924         we recognize "can not" also when the words are separated by a newline.
21925         Suggested by Eric Blake.
21926         (perl_filename_lineno_text_): Define.  Factored out of...
21927         (prohibit_doubled_word_): ...here.  Use the new definition.
21928         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
21929         (prohibit_undesirable_word_seq_RE_): New overridable variable.
21930         (ignore_undesirable_word_sequence_RE_): New overridable variable.
21931
21932 2011-05-10  Eric Blake  <eblake@redhat.com>
21933
21934         fclose: avoid double close race when possible
21935         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
21936         all but WINDOWS_SOCKETS.
21937
21938 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
21939
21940         openat: correct new comment
21941         * lib/openat-proc.c (openat_proc_name): Correct the comment.
21942
21943 2011-05-10  Jim Meyering  <meyering@redhat.com>
21944
21945         openat: add comments
21946         * lib/openat-proc.c (openat_proc_name): Add comments,
21947         mostly from Eric Blake.
21948
21949 2011-05-09  Eric Blake  <eblake@redhat.com>
21950
21951         openat: reduce syscalls in first probe of /proc
21952         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
21953         be a directory.  Simplify the probe for .. bugs.
21954         * modules/openat (Depends-on): Drop same-inode.
21955         Reported by Bastien ROUCARIES.
21956
21957 2011-05-09  Jim Meyering  <meyering@redhat.com>
21958
21959         maint.mk: change semantics/name of tight_scope variables
21960         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
21961         Rename variables to align with semantics that make them more useful.
21962
21963         maint.mk: tweak new rule's name not to impinge
21964         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
21965         (sc_tight_scope): Use new rule name rather than $@-0.
21966
21967         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
21968         * top/maint.mk (sc_tight_scope): New rule.
21969         (sc_tight_scope-0): New rule, ifdef'd out.
21970         (_gl_TS_dir): Default.
21971         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
21972         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
21973
21974 2011-05-09  Simon Josefsson  <simon@josefsson.org>
21975
21976         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
21977         Haible <bruno@clisp.org>.
21978
21979 2011-05-08  Bruno Haible  <bruno@clisp.org>
21980
21981         Comments.
21982         * m4/isnanf.m4: Add comment.
21983         * m4/isnanl.m4: Likewise.
21984
21985 2011-05-08  Bruno Haible  <bruno@clisp.org>
21986
21987         glob: Remove obsolete macro.
21988         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
21989
21990 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
21991
21992         intprops: Sun C 5.11 supports __typeof__
21993         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
21994         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
21995         which is new.
21996         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
21997
21998         intprops: switch to usual gnulib indenting and naming
21999         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
22000         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
22001
22002         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
22003
22004 2011-05-08  Jim Meyering  <meyering@redhat.com>
22005
22006         maint.mk: suppress "Entering/Leaving directory" diag in announcement
22007         * top/maint.mk (release-prep): Use make's --no-print-directory
22008         option when generating the announcement.  This eliminates the
22009         pesky "make[2]: Entering/Leaving directory" diagnostics in the
22010         generated announcement template.
22011
22012 2011-05-08  Bruno Haible  <bruno@clisp.org>
22013
22014         tzset: Fix gettimeofday wrapper on Solaris 2.6.
22015         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
22016         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
22017
22018 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
22019
22020         ignore-value, verify: Omit include files from lib_SOURCES.
22021         * modules/ignore-value, modules/verify (Makefile.am):
22022         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
22023         that leads Automake to duplicate use of am__objects_... variables
22024         in Makefile.in.  See
22025         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
22026
22027 2011-05-07  Bruno Haible  <bruno@clisp.org>
22028
22029         fclose: Simplify autoconf macro.
22030         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
22031         defined.
22032
22033 2011-05-07  Bruno Haible  <bruno@clisp.org>
22034
22035         canonicalize-lgpl: Fix autoconf macro ordering bug.
22036         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
22037         gl_STDLIB_H_DEFAULTS.
22038
22039 2011-05-06  Eric Blake  <eblake@redhat.com>
22040
22041         maintainer-makefile: make sc_po_check easier to tune
22042         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
22043         to probe for strings, such as an alternate location for gnulib.
22044
22045         fclose: guarantee behavior on seekable stdin
22046         * modules/fclose (Depends-on): Add fflush.
22047         * doc/posix-functions/fclose.texi (fclose): Document this.
22048         * tests/test-fclose.c (main): Make test for this unconditional.
22049
22050 2011-05-06  Bruno Haible  <bruno@clisp.org>
22051
22052         fflush, fpurge: Relicense under LGPLv2+.
22053         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
22054         * modules/fpurge (License): Likewise.
22055         With permission from Eric Blake and Jim Meyering.
22056         Suggested by Eric Blake.
22057
22058 2011-05-06  Karl Berry  <karl@gnu.org>
22059
22060         * MODULES.html.sh (func_all_modules): remove exit.
22061
22062 2011-05-06  Jim Meyering  <meyering@redhat.com>
22063
22064         maint.mk: use info-gnu@ as the default only for a stable release
22065         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
22066         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
22067         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
22068         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
22069
22070 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
22071
22072         assert-h: new module, which supports C1X-style static_assert
22073         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
22074         * lib/verify.h: Revamp so that this can be copied into assert.h,
22075         while retaining the ability to use it standalone as before.
22076         Rename private identifiers so as not to encroach on the
22077         standard C namespace, since this is now used by assert.h.
22078         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
22079         the old verify_true.
22080         (_GL_VERIFY_TRUE): New macro, with much of the contents of
22081         the old verify_true.  Use _GL_VERIFY_TYPE.
22082         (_GL_VERIFY): New macro, with much of the contents of the old verify.
22083         (static_assert): New macro, if _GL_STATIC_ASSERT_H
22084         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
22085         defined when this file is copied into the replacement assert.h.
22086         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
22087         and _Static_assert is not built in.
22088         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
22089         defined, and use the new macros mentioned above.
22090         * doc/posix-headers/assert.texi: Document this.
22091
22092 2011-05-05  Bruno Haible  <bruno@clisp.org>
22093
22094         fclose, fflush: Respect rules for use of AC_LIBOBJ.
22095         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
22096         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
22097         gl_REPLACE_FCLOSE here.
22098         * modules/fflush (Depends-on): Remove fclose.
22099         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
22100         combination with module 'fclose'.
22101
22102 2011-05-05  Bruno Haible  <bruno@clisp.org>
22103
22104         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
22105         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
22106         gl_FUNC_FFLUSH.
22107         (gl_FUNC_FFLUSH): Use it.
22108         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
22109         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
22110         gl_REPLACE_FSEEKO here.
22111
22112 2011-05-05  Bruno Haible  <bruno@clisp.org>
22113
22114         tzset: Relicense under LGPL.
22115         * modules/tzset (License): Change to LGPL.
22116         No agreement needed; it's a no-op.
22117
22118         strtoimax, strtoumax: Relicense under LGPL.
22119         * modules/strtoimax (License): Change to LGPL.
22120         * modules/strtoumax (License): Likewise.
22121         With permission from Jim Meyering, Paul Eggert:
22122         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
22123         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
22124
22125         getgroups: Relicense under LGPL.
22126         * modules/getgroups (License): Change to LGPL.
22127         With permission from Jim Meyering, Paul Eggert, Eric Blake:
22128         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
22129         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
22130         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
22131
22132         nanosleep: Relicense under LGPL.
22133         * modules/nanosleep (License): Change to LGPL.
22134         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
22135         Haible:
22136         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
22137         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
22138         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
22139         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
22140
22141         futimens: Relicense under LGPL.
22142         * modules/futimens (License): Change to LGPL.
22143         With permission from Eric Blake:
22144         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
22145
22146         fflush: Relicense under LGPL.
22147         * modules/fflush (License): Change to LGPL.
22148         With permission from Eric Blake, Bruno Haible, Jim Meyering:
22149         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
22150         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
22151         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
22152
22153         tmpfile: Relicense under LGPL.
22154         * modules/tmpfile (License): Change to LGPL.
22155         With permission from Ben Pfaff:
22156         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
22157
22158         isfinite: Relicense under LGPL.
22159         * modules/isfinite (License): Change to LGPL.
22160         With permission from Ben Pfaff, Bruno Haible:
22161         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
22162         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
22163
22164         acosl..tanl: Relicense under LGPL.
22165         * modules/acosl (License): Change to LGPL.
22166         * modules/asinl (License): Likewise.
22167         * modules/atanl (License): Likewise.
22168         * modules/cosl (License): Likewise.
22169         * modules/expl (License): Likewise.
22170         * modules/logl (License): Likewise.
22171         * modules/sinl (License): Likewise.
22172         * modules/sqrtl (License): Likewise.
22173         * modules/tanl (License): Likewise.
22174         Source code originally from glibc and Paolo Bonzini. Agreements:
22175         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
22176         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
22177
22178 2011-05-05  Bruno Haible  <bruno@clisp.org>
22179
22180         signal: Define sighandler_t.
22181         * lib/signal.in.h (sighandler_t): New type.
22182         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
22183         whether sighandler_t is defined.
22184         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
22185         * modules/signal (Depends-on): Add extensions.
22186         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
22187         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
22188         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
22189
22190 2011-05-05  Eric Blake  <eblake@redhat.com>
22191
22192         maint: remove useless REPLACE_*_H macros
22193         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
22194         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
22195         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
22196         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
22197         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
22198         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
22199         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
22200         * m4/btowc.m4: Update callers.
22201         * m4/dirfd.m4: Likewise.
22202         * m4/duplocale.m4: Likewise.
22203         * m4/fchdir.m4: Likewise.
22204         * m4/fdopendir.m4: Likewise.
22205         * m4/inet_ntop.m4: Likewise.
22206         * m4/inet_pton.m4: Likewise.
22207         * m4/ioctl.m4: Likewise.
22208         * m4/mbrlen.m4: Likewise.
22209         * m4/mbrtowc.m4: Likewise.
22210         * m4/mbsinit.m4: Likewise.
22211         * m4/mbsnrtowcs.m4: Likewise.
22212         * m4/mbsrtowcs.m4: Likewise.
22213         * m4/poll.m4: Likewise.
22214         * m4/setlocale.m4: Likewise.
22215         * m4/wcrtomb.m4: Likewise.
22216         * m4/wcsnrtombs.m4: Likewise.
22217         * m4/wcsrtombs.m4: Likewise.
22218         * m4/wctob.m4: Likewise.
22219         * m4/wcwidth.m4: Likewise.
22220         * modules/posix_spawn: Likewise.
22221         * modules/posix_spawn_file_actions_addclose: Likewise.
22222         * modules/posix_spawn_file_actions_adddup2: Likewise.
22223         * modules/posix_spawn_file_actions_addopen: Likewise.
22224         * modules/posix_spawn_file_actions_destroy: Likewise.
22225         * modules/posix_spawn_file_actions_init: Likewise.
22226         * modules/posix_spawnattr_destroy: Likewise.
22227         * modules/posix_spawnattr_getflags: Likewise.
22228         * modules/posix_spawnattr_getpgroup: Likewise.
22229         * modules/posix_spawnattr_getschedparam: Likewise.
22230         * modules/posix_spawnattr_getschedpolicy: Likewise.
22231         * modules/posix_spawnattr_getsigdefault: Likewise.
22232         * modules/posix_spawnattr_getsigmask: Likewise.
22233         * modules/posix_spawnattr_init: Likewise.
22234         * modules/posix_spawnattr_setflags: Likewise.
22235         * modules/posix_spawnattr_setpgroup: Likewise.
22236         * modules/posix_spawnattr_setschedparam: Likewise.
22237         * modules/posix_spawnattr_setschedpolicy: Likewise.
22238         * modules/posix_spawnattr_setsigdefault: Likewise.
22239         * modules/posix_spawnattr_setsigmask: Likewise.
22240         * modules/posix_spawnp: Likewise.
22241
22242 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
22243
22244         Add option to do-release-commit-and-tag to specify branch.
22245         * build-aux/do-release-commit-and-tag: Add --branch.
22246
22247 2011-05-03  Bruno Haible  <bruno@clisp.org>
22248
22249         Avoid unnecessary compilation units, through conditional dependencies.
22250         * modules/accept (Depends-on): Add conditions to the dependencies.
22251         * modules/acosl (Depends-on): Likewise.
22252         * modules/argz (Depends-on): Likewise.
22253         * modules/asinl (Depends-on): Likewise.
22254         * modules/atanl (Depends-on): Likewise.
22255         * modules/atoll (Depends-on): Likewise.
22256         * modules/bind (Depends-on): Likewise.
22257         * modules/btowc (Depends-on): Likewise.
22258         * modules/canonicalize-lgpl (Depends-on): Likewise.
22259         * modules/ceil (Depends-on): Likewise.
22260         * modules/ceilf (Depends-on): Likewise.
22261         * modules/ceill (Depends-on): Likewise.
22262         * modules/chdir-long (Depends-on): Likewise.
22263         * modules/chown (Depends-on): Likewise.
22264         * modules/close (Depends-on): Likewise.
22265         * modules/connect (Depends-on): Likewise.
22266         * modules/cosl (Depends-on): Likewise.
22267         * modules/dirfd (Depends-on): Likewise.
22268         * modules/dprintf (Depends-on): Likewise.
22269         * modules/dprintf-posix (Depends-on): Likewise.
22270         * modules/error (Depends-on): Likewise.
22271         * modules/euidaccess (Depends-on): Likewise.
22272         * modules/expl (Depends-on): Likewise.
22273         * modules/faccessat (Depends-on): Likewise.
22274         * modules/fchdir (Depends-on): Likewise.
22275         * modules/fclose (Depends-on): Likewise.
22276         * modules/fcntl (Depends-on): Likewise.
22277         * modules/fdopendir (Depends-on): Likewise.
22278         * modules/fflush (Depends-on): Likewise.
22279         * modules/floor (Depends-on): Likewise.
22280         * modules/floorf (Depends-on): Likewise.
22281         * modules/floorl (Depends-on): Likewise.
22282         * modules/fnmatch (Depends-on): Likewise.
22283         * modules/fopen (Depends-on): Likewise.
22284         * modules/fprintf-posix (Depends-on): Likewise.
22285         * modules/frexp (Depends-on): Likewise.
22286         * modules/frexp-nolibm (Depends-on): Likewise.
22287         * modules/frexpl (Depends-on): Likewise.
22288         * modules/frexpl-nolibm (Depends-on): Likewise.
22289         * modules/fseek (Depends-on): Likewise.
22290         * modules/fsusage (Depends-on): Likewise.
22291         * modules/ftell (Depends-on): Likewise.
22292         * modules/ftello (Depends-on): Likewise.
22293         * modules/futimens (Depends-on): Likewise.
22294         * modules/getcwd (Depends-on): Likewise.
22295         * modules/getcwd-lgpl (Depends-on): Likewise.
22296         * modules/getdelim (Depends-on): Likewise.
22297         * modules/getdomainname (Depends-on): Likewise.
22298         * modules/getgroups (Depends-on): Likewise.
22299         * modules/gethostname (Depends-on): Likewise.
22300         * modules/getline (Depends-on): Likewise.
22301         * modules/getlogin_r (Depends-on): Likewise.
22302         * modules/getopt-posix (Depends-on): Likewise.
22303         * modules/getpeername (Depends-on): Likewise.
22304         * modules/getsockname (Depends-on): Likewise.
22305         * modules/getsockopt (Depends-on): Likewise.
22306         * modules/getsubopt (Depends-on): Likewise.
22307         * modules/getusershell (Depends-on): Likewise.
22308         * modules/glob (Depends-on): Likewise.
22309         * modules/grantpt (Depends-on): Likewise.
22310         * modules/iconv_open (Depends-on): Likewise.
22311         * modules/iconv_open-utf (Depends-on): Likewise.
22312         * modules/inet_ntop (Depends-on): Likewise.
22313         * modules/inet_pton (Depends-on): Likewise.
22314         * modules/ioctl (Depends-on): Likewise.
22315         * modules/isapipe (Depends-on): Likewise.
22316         * modules/isfinite (Depends-on): Likewise.
22317         * modules/isinf (Depends-on): Likewise.
22318         * modules/lchown (Depends-on): Likewise.
22319         * modules/ldexpl (Depends-on): Likewise.
22320         * modules/link (Depends-on): Likewise.
22321         * modules/linkat (Depends-on): Likewise.
22322         * modules/listen (Depends-on): Likewise.
22323         * modules/logl (Depends-on): Likewise.
22324         * modules/lstat (Depends-on): Likewise.
22325         * modules/mbrlen (Depends-on): Likewise.
22326         * modules/mbrtowc (Depends-on): Likewise.
22327         * modules/mbsinit (Depends-on): Likewise.
22328         * modules/mbsnrtowcs (Depends-on): Likewise.
22329         * modules/mbsrtowcs (Depends-on): Likewise.
22330         * modules/mbtowc (Depends-on): Likewise.
22331         * modules/memcmp (Depends-on): Likewise.
22332         * modules/mkdir (Depends-on): Likewise.
22333         * modules/mkdtemp (Depends-on): Likewise.
22334         * modules/mkfifo (Depends-on): Likewise.
22335         * modules/mkfifoat (Depends-on): Likewise.
22336         * modules/mknod (Depends-on): Likewise.
22337         * modules/mkostemp (Depends-on): Likewise.
22338         * modules/mkostemps (Depends-on): Likewise.
22339         * modules/mkstemp (Depends-on): Likewise.
22340         * modules/mkstemps (Depends-on): Likewise.
22341         * modules/mktime (Depends-on): Likewise.
22342         * modules/nanosleep (Depends-on): Likewise.
22343         * modules/open (Depends-on): Likewise.
22344         * modules/openat (Depends-on): Likewise.
22345         * modules/perror (Depends-on): Likewise.
22346         * modules/poll (Depends-on): Likewise.
22347         * modules/popen (Depends-on): Likewise.
22348         * modules/posix_spawn (Depends-on): Likewise.
22349         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
22350         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
22351         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
22352         * modules/posix_spawnp (Depends-on): Likewise.
22353         * modules/pread (Depends-on): Likewise.
22354         * modules/printf-posix (Depends-on): Likewise.
22355         * modules/ptsname (Depends-on): Likewise.
22356         * modules/putenv (Depends-on): Likewise.
22357         * modules/pwrite (Depends-on): Likewise.
22358         * modules/readline (Depends-on): Likewise.
22359         * modules/readlink (Depends-on): Likewise.
22360         * modules/readlinkat (Depends-on): Likewise.
22361         * modules/recv (Depends-on): Likewise.
22362         * modules/recvfrom (Depends-on): Likewise.
22363         * modules/regex (Depends-on): Likewise.
22364         * modules/remove (Depends-on): Likewise.
22365         * modules/rename (Depends-on): Likewise.
22366         * modules/renameat (Depends-on): Likewise.
22367         * modules/rmdir (Depends-on): Likewise.
22368         * modules/round (Depends-on): Likewise.
22369         * modules/roundf (Depends-on): Likewise.
22370         * modules/roundl (Depends-on): Likewise.
22371         * modules/rpmatch (Depends-on): Likewise.
22372         * modules/select (Depends-on): Likewise.
22373         * modules/send (Depends-on): Likewise.
22374         * modules/sendto (Depends-on): Likewise.
22375         * modules/setenv (Depends-on): Likewise.
22376         * modules/setlocale (Depends-on): Likewise.
22377         * modules/setsockopt (Depends-on): Likewise.
22378         * modules/shutdown (Depends-on): Likewise.
22379         * modules/sigaction (Depends-on): Likewise.
22380         * modules/signbit (Depends-on): Likewise.
22381         * modules/sigprocmask (Depends-on): Likewise.
22382         * modules/sinl (Depends-on): Likewise.
22383         * modules/sleep (Depends-on): Likewise.
22384         * modules/snprintf (Depends-on): Likewise.
22385         * modules/snprintf-posix (Depends-on): Likewise.
22386         * modules/socket (Depends-on): Likewise.
22387         * modules/sprintf-posix (Depends-on): Likewise.
22388         * modules/sqrtl (Depends-on): Likewise.
22389         * modules/stat (Depends-on): Likewise.
22390         * modules/strchrnul (Depends-on): Likewise.
22391         * modules/strdup-posix (Depends-on): Likewise.
22392         * modules/strerror (Depends-on): Likewise.
22393         * modules/strerror_r-posix (Depends-on): Likewise.
22394         * modules/strndup (Depends-on): Likewise.
22395         * modules/strnlen (Depends-on): Likewise.
22396         * modules/strptime (Depends-on): Likewise.
22397         * modules/strsep (Depends-on): Likewise.
22398         * modules/strsignal (Depends-on): Likewise.
22399         * modules/strstr-simple (Depends-on): Likewise.
22400         * modules/strtod (Depends-on): Likewise.
22401         * modules/strtoimax (Depends-on): Likewise.
22402         * modules/strtok_r (Depends-on): Likewise.
22403         * modules/strtoumax (Depends-on): Likewise.
22404         * modules/symlink (Depends-on): Likewise.
22405         * modules/symlinkat (Depends-on): Likewise.
22406         * modules/tanl (Depends-on): Likewise.
22407         * modules/tcgetsid (Depends-on): Likewise.
22408         * modules/tmpfile (Depends-on): Likewise.
22409         * modules/trunc (Depends-on): Likewise.
22410         * modules/truncf (Depends-on): Likewise.
22411         * modules/truncl (Depends-on): Likewise.
22412         * modules/uname (Depends-on): Likewise.
22413         * modules/unlink (Depends-on): Likewise.
22414         * modules/unlockpt (Depends-on): Likewise.
22415         * modules/unsetenv (Depends-on): Likewise.
22416         * modules/usleep (Depends-on): Likewise.
22417         * modules/utimensat (Depends-on): Likewise.
22418         * modules/vasprintf (Depends-on): Likewise.
22419         * modules/vdprintf (Depends-on): Likewise.
22420         * modules/vdprintf-posix (Depends-on): Likewise.
22421         * modules/vfprintf-posix (Depends-on): Likewise.
22422         * modules/vprintf-posix (Depends-on): Likewise.
22423         * modules/vsnprintf (Depends-on): Likewise.
22424         * modules/vsnprintf-posix (Depends-on): Likewise.
22425         * modules/vsprintf-posix (Depends-on): Likewise.
22426         * modules/wcrtomb (Depends-on): Likewise.
22427         * modules/wcscasecmp (Depends-on): Likewise.
22428         * modules/wcscspn (Depends-on): Likewise.
22429         * modules/wcsdup (Depends-on): Likewise.
22430         * modules/wcsncasecmp (Depends-on): Likewise.
22431         * modules/wcsnrtombs (Depends-on): Likewise.
22432         * modules/wcspbrk (Depends-on): Likewise.
22433         * modules/wcsrtombs (Depends-on): Likewise.
22434         * modules/wcsspn (Depends-on): Likewise.
22435         * modules/wcsstr (Depends-on): Likewise.
22436         * modules/wcstok (Depends-on): Likewise.
22437         * modules/wcswidth (Depends-on): Likewise.
22438         * modules/wctob (Depends-on): Likewise.
22439         * modules/wctomb (Depends-on): Likewise.
22440         * modules/wctype (Depends-on): Likewise.
22441         * modules/wcwidth (Depends-on): Likewise.
22442         * modules/write (Depends-on): Likewise.
22443
22444 2011-05-03  Bruno Haible  <bruno@clisp.org>
22445
22446         Support for conditional dependencies.
22447         * doc/gnulib.texi (Module description): Document the syntax of
22448         conditional dependencies.
22449         * gnulib-tool: New option --conditional-dependencies.
22450         (func_usage): Document it.
22451         (cond_dependencies): New variable.
22452         (func_get_automake_snippet_conditional,
22453         func_get_automake_snippet_unconditional): New functions, extracted from
22454         func_get_automake_snippet.
22455         (func_get_automake_snippet): Use them.
22456         (sed_first_32_chars): New variable.
22457         (func_module_shellfunc_name): New function.
22458         (func_module_shellvar_name): New function.
22459         (func_module_conditional_name): New function.
22460         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
22461         func_cond_module_condition): New functions.
22462         (func_modules_transitive_closure): Add support for conditional
22463         dependencies.
22464         (func_emit_lib_Makefile_am): For a conditional module, enclose the
22465         conditional automake snippet in an automake conditional.
22466         (func_emit_autoconf_snippets): Emit shell functions that contain the
22467         code for conditional modules.
22468         (func_import, func_create_testdir): Update specification.
22469
22470 2011-05-03  Eric Blake  <eblake@redhat.com>
22471
22472         test-getaddrinfo: report error information
22473         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
22474
22475 2011-05-03  Jim Meyering  <meyering@redhat.com>
22476
22477         bootstrap: avoid build failure when $GZIP is set
22478         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
22479         program name.  If defined at all, it is supposed to list gzip options.
22480         Reported by Alan Curry in http://debbugs.gnu.org/8609
22481
22482 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
22483
22484         readme-release: new module with release instructions
22485         * modules/readme-release: New module.
22486         * top/README-release: New file, from coreutils, grep, diffutils.
22487         * MODULES.html.sh (Support for maintaining and releasing): Add it.
22488
22489 2011-05-02  Eric Blake  <eblake@redhat.com>
22490
22491         fflush: also replace fclose when fixing fflush
22492         * modules/fflush (Depends-on): Add fclose.
22493         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
22494         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
22495         memstreams with no backing fd.
22496         * doc/posix-functions/fclose.texi (fclose): Document the use of
22497         fflush module to fix the bug.
22498         * tests/test-fclose.c (main): Relax test when fclose is used in
22499         isolation.
22500
22501         fclose: add some tests
22502         * modules/fclose-tests: New test module.
22503         * tests/test-fclose.c: New file.
22504         * doc/posix-functions/fclose.texi (fclose): Document the bug.
22505
22506         fclose: reduced dependencies
22507         * modules/fclose (Depends-on): Switch from fflush/fseeko to
22508         simpler lseek.
22509         * lib/fclose.c (rpl_fclose): Likewise.
22510         Reported by Simon Josefsson.
22511
22512         exit: drop remaining clients
22513         * modules/argmatch (Depends-on): Replace exit with stdlib.
22514         * modules/copy-file (Depends-on): Likewise.
22515         * modules/execute (Depends-on): Likewise.
22516         * modules/exitfail (Depends-on): Likewise.
22517         * modules/obstack (Depends-on): Likewise.
22518         * modules/pagealign_alloc (Depends-on): Likewise.
22519         * modules/pipe-filter-gi (Depends-on): Likewise.
22520         * modules/pipe-filter-ii (Depends-on): Likewise.
22521         * modules/savewd (Depends-on): Likewise.
22522         * modules/spawn-pipe (Depends-on): Likewise.
22523         * modules/wait-process (Depends-on): Likewise.
22524         * modules/xsetenv (Depends-on): Likewise.
22525         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
22526         * modules/git-merge-changelog (Depends-on): Likewise.
22527         * modules/long-options (Depends-on): Likewise.
22528         * modules/pt_chown (Depends-on): Likewise.
22529         * modules/sysexits (Depends-on): Likewise.
22530
22531         freading: relax license from LGPLv3+ to LGPLv2+
22532         * modules/freading (License): Relax LGPL version.
22533
22534 2011-05-02  Bruno Haible  <bruno@clisp.org>
22535
22536         fchdir: Remove unused dependencies.
22537         * modules/fchdir (Depends-on): Remove include_next.
22538
22539 2011-05-02  Bruno Haible  <bruno@clisp.org>
22540
22541         gnulib-tool: Refactor.
22542         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
22543         from func_emit_autoconf_snippets.
22544         (func_emit_autoconf_snippets): Use it.
22545
22546 2011-05-02  Simon Josefsson  <simon@josefsson.org>
22547
22548         * NEWS: Document removal of 'exit'.
22549         * modules/exit: Remove file.
22550
22551 2011-05-01  Bruno Haible  <bruno@clisp.org>
22552
22553         Update DEPENDENCIES.
22554         * DEPENDENCIES (gettext): Recommend the newest release.
22555         Reported by Simon Josefsson.
22556
22557 2011-05-01  Bruno Haible  <bruno@clisp.org>
22558
22559         gnulib-tool: Reduce code duplication.
22560         * gnulib-tool (func_emit_autoconf_snippets): New function.
22561         (func_import, func_create_testdir): Use it.
22562
22563 2011-04-30  Eric Blake  <eblake@redhat.com>
22564
22565         fclose: don't fail on non-seekable input stream
22566         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
22567         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
22568         since fflush is allowed to fail in that case.
22569
22570 2011-04-30  Bruno Haible  <bruno@clisp.org>
22571
22572         dup3: cleanup
22573         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
22574
22575 2011-04-30  Bruno Haible  <bruno@clisp.org>
22576
22577         netdb: Make it work in C++ mode.
22578         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
22579         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
22580         module.
22581         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
22582         gl_MODULE_INDICATOR_FOR_TESTS.
22583         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
22584         * modules/netdb-c++-tests: New file.
22585         * tests/test-netdb-c++.cc: New file.
22586
22587 2011-04-30  Bruno Haible  <bruno@clisp.org>
22588
22589         New modules 'vfscanf', 'vscanf'.
22590         * modules/vfscanf: New file.
22591         * modules/vscanf: New file.
22592         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
22593         here.
22594         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
22595         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
22596
22597 2011-04-30  Bruno Haible  <bruno@clisp.org>
22598
22599         passfd: Add comments.
22600         * lib/passfd.c: Add comments about platforms.
22601
22602 2011-04-30  Bruno Haible  <bruno@clisp.org>
22603
22604         sys_uio: Make <sys/uio.h> self-contained.
22605         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
22606         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
22607
22608 2011-04-30  Bruno Haible  <bruno@clisp.org>
22609
22610         sys_socket: Ensure 'struct iovec' definition.
22611         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
22612         <sys/socket.h>.
22613         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
22614
22615 2011-04-30  Bruno Haible  <bruno@clisp.org>
22616
22617         sys_uio: Protect definition of 'struct iovec'.
22618         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
22619         it as a C struct.
22620
22621 2011-04-30  Bruno Haible  <bruno@clisp.org>
22622
22623         manywarnings: fix indentation
22624         * m4/manywarnings.m4: Indent by 2 spaces consistently.
22625
22626 2011-04-30  Pádraig Brady <P@draigBrady.com>
22627
22628         manywarnings: add -Wno-missing-field-initializers if needed.
22629         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
22630         option if it's needed to allow initialization with { 0, }
22631
22632 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
22633
22634         announce-gen: cosmetic improvement
22635         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
22636
22637 2011-04-29  Jim Meyering  <meyering@redhat.com>
22638
22639         vc-list-files: indent with spaces, not TABs
22640         * build-aux/vc-list-files: Convert leading TABs to spaces,
22641         to match the style of most other files in gnulib.
22642
22643         announce-gen: indent with spaces, not TABs
22644         * build-aux/announce-gen: Convert all TABs to spaces, to match
22645         the style of most other files in gnulib.
22646
22647 2011-04-29  Eric Blake  <eblake@redhat.com>
22648
22649         quotearg: avoid uninitialized variable use
22650         * lib/quotearg.c (quoting_options_from_style): Initialize
22651         remaining fields, and ensure that custom styles are only used via
22652         quoting_options rather than quoting_style.
22653
22654 2011-04-29  Jim Meyering  <meyering@redhat.com>
22655
22656         maint.mk: remove unused VC-tag variable
22657         * top/maint.mk (VC-tag): Remove unused variable.
22658
22659 2011-04-29  Bruno Haible  <bruno@clisp.org>
22660
22661         netdb: fix gai_strerror replacements
22662         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
22663         * modules/netdb: Substitute it.
22664
22665 2011-04-29  Jim Meyering  <meyering@redhat.com>
22666
22667         test-getcwd.c: avoid new set-but-not-used warning
22668         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
22669         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
22670         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
22671         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
22672
22673         test-hash.c: avoid a new shadowing warning
22674         * tests/test-hash.c (main): Don't shadow "dup".
22675
22676 2011-04-28  Eric Blake  <eblake@redhat.com>
22677
22678         getaddrinfo: fix gai_strerror signature
22679         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
22680         and work around mingw with UNICODE defined.
22681         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
22682         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
22683         * modules/netdb (Makefile.am): Substitute it.
22684         * lib/netdb.in.h (gai_strerror): Declare replacement.
22685         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
22686         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
22687         the fix.
22688
22689         getsockopt: avoid compiler warning
22690         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
22691         Reported by Matthias Bolte.
22692
22693         tests: drop unused link dependency
22694         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
22695         * modules/dirent-safer-tests (Makefile.am): Likewise.
22696         * modules/fdopendir-tests (Makefile.am): Likewise.
22697         * modules/mkfifoat-tests (Makefile.am): Likewise.
22698         * modules/openat-safer-tests (Makefile.am): Likewise.
22699         * modules/openat-tests (Makefile.am): Likewise.
22700         * modules/readlinkat-tests (Makefile.am): Likewise.
22701         * modules/symlinkat-tests (Makefile.am): Likewise.
22702         * modules/linkat-tests (Makefile.am): Likewise.
22703         (Depends-on): Switch to filenamecat-lgpl.
22704         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
22705         LIBINTL.
22706         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
22707         * tests/test-linkat.c (main): Don't require xalloc.
22708
22709         hash, mgetgroups: drop xalloc dependency
22710         * lib/hash.c (includes): Adjust includes.
22711         * lib/mgetgroups.c (includes): Likewise.
22712         (xgetgroups): Move...
22713         * lib/xgetgroups.c: ...to new file.
22714         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
22715         * modules/xgetgroups: New file, split from...
22716         * modules/mgetgroups: ...here.
22717         (Depends-on): Add xalloc-oversized.
22718         * modules/hash (Depends-on): Likewise.
22719         * modules/hash-tests (Depends-on): Drop xalloc.
22720         (test_hash_LDADD): Drop unused library.
22721         * tests/test-hash.c (main): Break xalloc dependency.
22722         (includes): Drop unused include.
22723
22724         xalloc-oversized: new module
22725         * modules/xalloc-oversized: New module.
22726         * modules/xalloc (Depends-on): Add it.
22727         * lib/xalloc.h (xalloc_oversized): Move...
22728         * lib/xalloc-oversized.h: ...into new file.
22729
22730         utimecmp: drop dependency on xmalloc
22731         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
22732         due to memory pressure.
22733         * modules/utimecmp (Depends-on): Drop xalloc.
22734
22735 2011-04-27  Eric Blake  <eblake@redhat.com>
22736
22737         getcwd: fix mingw bugs
22738         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
22739         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
22740         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
22741
22742 2011-04-27  Bruno Haible  <bruno@clisp.org>
22743
22744         mkstemps: Ensure declaration on MacOS X 10.5.
22745         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
22746         * doc/glibc-functions/mkstemps.texi: Document header file problem on
22747         MacOS X.
22748
22749 2011-04-27  Bruno Haible  <bruno@clisp.org>
22750
22751         mkstemp: More documentation.
22752         * doc/posix-functions/mkstemp.texi: Document header file problem on
22753         MacOS X.
22754
22755 2011-04-27  Bruno Haible  <bruno@clisp.org>
22756
22757         mkstemp: Tweak configure message when cross-compiling.
22758         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
22759         result as a guess.
22760
22761 2011-04-27  Bruno Haible  <bruno@clisp.org>
22762
22763         clean-temp: Clarify what it does.
22764         * lib/clean-temp.h: Add more comments.
22765         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
22766         module.
22767         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
22768         * doc/glibc-functions/mkstemps.texi: Likewise.
22769         * doc/glibc-functions/mkostemps.texi: Likewise.
22770
22771 2011-04-27  Eric Blake  <eblake@redhat.com>
22772
22773         fchdir: avoid extra chdir and fix test
22774         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
22775         getcwd-lgpl.
22776         * lib/fchdir.c (get_name): Any absolute name will do; it does not
22777         have to be canonical.
22778         (canonicalize_file_name): Drop unused macro.
22779         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
22780
22781         filenamecat-lgpl: fix licence
22782         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
22783         when it was first created.
22784
22785         linkat, renameat: add missing dependency
22786         * modules/linkat (Depends-on): Require getcwd-lgpl.
22787         * modules/renameat (Depends-on): Likewise.
22788
22789         tests: reduce dependencies
22790         * tests/test-linkat.c (main): Use lighter-weight getcwd.
22791         * tests/test-renameat.c (main): Likewise.
22792         * modules/linkat-tests (Depends-on): Relax dependency.
22793         * modules/renameat-tests (Depends-on): Likewise.
22794         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
22795         dependency explicit.
22796
22797         save-cwd: reduce default dependency
22798         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
22799         * lib/save-cwd.c: Update comments.
22800         * NEWS: Document the semantic change.
22801
22802         getcwd: enhance tests
22803         * tests/test-getcwd-lgpl.c: New file, taken from...
22804         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
22805         repeat long path stress tests from m4 probe.
22806         * modules/getcwd-lgpl-tests: New module.
22807         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
22808         * m4/getcwd-abort-bug.m4: Update comment.
22809         * m4/getcwd-path-max.m4: Likewise.
22810
22811         getcwd-lgpl: new module
22812         * modules/getcwd-lgpl: New module.
22813         * lib/getcwd-lgpl.c: New file.
22814         * doc/posix-functions/getcwd.texi (getcwd): Document it.
22815         * MODULES.html.sh (lacking POSIX:2008): Likewise.
22816         * modules/getcwd (configure.ac): Set C witness.
22817         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
22818
22819         getcwd: tweak comments
22820         * m4/getcwd-abort-bug.m4: Fix comments.
22821         * m4/getcwd-path-max.m4: Likewise.
22822         * m4/getcwd.m4: Likewise.
22823
22824 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
22825         and Eric Blake  <eblake@redhat.com>
22826
22827         mkstemp: replace if system version uses wrong permissions
22828         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
22829         read/write mode bits set in file created by mkstemp.
22830         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
22831
22832 2011-04-27  Eric Blake  <eblake@redhat.com>
22833
22834         passfd: avoid compiler warning
22835         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
22836         Reported by Laine Stump.
22837
22838 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
22839
22840         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
22841         required by the NetBSD (and perhaps other 4.4BSD derived) join.
22842
22843 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
22844         and Eric Blake  <eblake@redhat.com>
22845
22846         mkstemp: mention clean-temp module
22847         * lib/mkstemp.c: Add comment.
22848         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
22849
22850 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
22851
22852         inttypes: also provide default values for 32-bit tests
22853         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
22854         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
22855
22856 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
22857
22858         strtoumax: remove dependency on strtoimax
22859         This is like the strtoull change of yesterday.
22860         * modules/strtoumax (Files): Add lib/strtoimax.c.
22861         (Depends-on): Remove strtoimax and add verify.
22862
22863         inttypes-incomplete: new module
22864         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
22865         all but the PRI* and SCN* parts of gl_INTTYPES_H.
22866         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
22867         of gl_INTTYPES_H.
22868         (gl_INTTYPES_H): Rewrite in terms of these new macros.
22869         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
22870         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
22871         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
22872         * modules/strtoumax, modules/xstrtol (Depends-on):
22873         Depend on inttypes-incomplete, not inttypes.
22874         * modules/inttypes-incomplete: New module, containing the contents
22875         of the old modules/inttypes module, except that the Files: section
22876         omits m4/inttypes-pri.m4, and the configure.ac section invokes
22877         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
22878         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
22879         (Depends-on): Depend only on inttypes-incomplete.
22880         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
22881
22882         inttypes: omit now-redundant strtoimax and strtoumax work
22883         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
22884         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
22885
22886         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
22887         This supports apps that need pointers to strtoimax and strtoumax,
22888         and ports to HP-UX 11.00 64.bit, which has macros that expand to
22889         nonexistent functions.  See
22890         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
22891         et seq.
22892         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
22893         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
22894         a macro.
22895         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
22896
22897 2011-04-25  Simon Josefsson  <simon@josefsson.org>
22898
22899         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
22900
22901 2011-04-25  Bruno Haible  <bruno@clisp.org>
22902
22903         strtol, strtoul: Mark modules as obsolete.
22904         * modules/strtol (Status, Notice): New sections.
22905         * modules/strtoul (Status, Notice): New sections.
22906
22907 2011-04-25  Bruno Haible  <bruno@clisp.org>
22908
22909         strtod: Remove check for strtod, unless supporting old platforms.
22910         * modules/strtod-obsolete: New file.
22911         * m4/strtod-obsolete.m4: New file.
22912         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
22913         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
22914         * modules/strtod (Depends-on): Add strtod-obsolete.
22915         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
22916
22917 2011-04-25  Bruno Haible  <bruno@clisp.org>
22918
22919         strcase: Make module obsolete.
22920         * modules/strcase (Status, Notice): New sections.
22921
22922 2011-04-25  Bruno Haible  <bruno@clisp.org>
22923
22924         dup2: Remove check for dup2, unless supporting old obsolete platforms.
22925         * modules/dup2-obsolete: New file.
22926         * m4/dup2-obsolete.m4: New file.
22927         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
22928         gl_FUNC_DUP2_OBSOLETE is not also defined.
22929         * modules/dup2 (Depends-on): Add dup2-obsolete.
22930         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
22931
22932 2011-04-25  Bruno Haible  <bruno@clisp.org>
22933
22934         strnlen: Avoid memchr related link error on old obsolete platforms.
22935         * modules/memchr-obsolete: New file.
22936         * m4/memchr-obsolete.m4: New file.
22937         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
22938         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
22939         * modules/memchr (Depends-on): Add memchr-obsolete.
22940         * modules/strnlen (Depends-on): Likewise.
22941         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
22942
22943 2011-04-25  Jim Meyering  <meyering@redhat.com>
22944
22945         maint.mk: makefile_at_at_check extend and clean up
22946         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
22947         in addition to */Makefile.am.
22948         Exempt legitimate uses of @VAR@ notation, e.g.,
22949         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
22950         Remove obsolete coreutils-specific comment.
22951         Prompted by discussion here:
22952         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
22953
22954 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
22955
22956         strtoul: remove dependency on strtol
22957         This is so that 'configure' need not check for strtol merely because
22958         the application needs strtoul.
22959         * modules/strtoul (Files): Add lib/strtol.c.
22960         (Depends-on): Remove strtol.
22961
22962         strtoull: remove dependency on strtoul
22963         This is like the strtoll change.
22964         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
22965         (Depends-on): Remove strtoul.
22966
22967         strtoll: remove dependency on strtol
22968         This is so that 'configure' need not check for strtol merely because
22969         the application needs strtoll.
22970         * modules/strtoll (Files): Add lib/strtol.c.
22971         (Depends-on): Remove strtol.
22972
22973 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22974
22975         inttypes: Move some configure check to module 'imaxdiv'.
22976         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
22977         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
22978         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
22979
22980 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22981
22982         inttypes: Move some configure check to module 'imaxabs'.
22983         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
22984         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
22985         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
22986
22987 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22988
22989         inttypes: Remove configure tests that are not needed since 2009-12-31.
22990         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
22991         gl_cv_header_working_inttypes_h.
22992
22993 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22994
22995         * modules/strnlen (Depends-on): Remove memchr.
22996         The strnlen implementation doesn't need the memchr module's fixes; see
22997         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
22998
22999         strtol: remove dependency on wchar
23000         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
23001         * modules/strtol (Depends-on): Remove wchar.
23002
23003 2011-04-21  Eric Blake  <eblake@redhat.com>
23004
23005         passfd: fix test regression on Linux
23006         * modules/passfd-tests (configure.ac): Correct socketpair check.
23007
23008         passfd: speed up configure and drop unused code
23009         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
23010         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
23011         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
23012         Instead of probing at configure for unix_scm_rights_bsd44_way,
23013         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
23014         check to a struct member probe.
23015         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
23016         (sendfd, recvfd): Update preprocessor checks.
23017         * modules/passfd (Files): Reflect rename, and drop unused file.
23018         (Depends-on): Drop unused dependency.
23019
23020         passfd: allow compilation on mingw
23021         * modules/sys_socket (Depends-on): Add sys_uio.
23022         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
23023         iovec and a minimal struct msghdr.
23024         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
23025         * tests/test-sys_socket.c (main): Enhance test.
23026         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
23027         guaranteed to provide what we need.
23028         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
23029         * modules/passfd-tests (Depends-on): Add sys_wait.
23030         * tests/test-passfd.c (main): Skip test on mingw, for now.
23031         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
23032         partial 'struct msghdr' implementation.
23033
23034         sys_uio: new module
23035         * modules/sys_uio: New module.
23036         * modules/sys_uio-tests: Likewise.
23037         * lib/sys_uio.in.h: New file.
23038         * m4/sys_uio_h.m4: Likewise.
23039         * tests/test-sys_uio.c: Likewise.
23040         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
23041         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
23042
23043 2011-04-20  Jim Meyering  <meyering@redhat.com>
23044
23045         useless-if-before-free: avoid false-positive
23046         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
23047         disjunct so that it too requires a terminating ";".  Without that,
23048         this script would identify as useless one statement from gcc that
23049         was not:
23050           if (aligned_ptr)
23051             free (((void **) aligned_ptr) [-1]);
23052
23053 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
23054
23055         doc: update users.txt.
23056         * users.txt: Add barcode.
23057
23058 2011-04-19  Bruno Haible  <bruno@clisp.org>
23059
23060         ioctl: Remove link dependency on native Windows.
23061         * lib/fd-hook.h: Renamed from lib/close-hook.h.
23062         (gl_close_fn, gl_ioctl_fn): New types.
23063         (struct fd_hook): Renamed from struct close_hook. Change type of
23064         private_close_fn field. Add private_ioctl_fn field.
23065         (close_hook_fn): Add parameter for primary close method.
23066         (execute_close_hooks, execute_all_close_hooks): Likewise.
23067         (ioctl_hook_fn): New type.
23068         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
23069         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
23070         argument.
23071         (unregister_fd_hook): Renamed from unregister_close_hook.
23072         * lib/fd-hook.c: Renamed from lib/close-hook.c.
23073         Don't include <unistd.h>.
23074         (close): Remove undef.
23075         (anchor): Update.
23076         (execute_close_hooks): Add argument for primary close method.
23077         (execute_all_close_hooks): Likewise.
23078         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
23079         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
23080         argument. Allow each argument to be NULL.
23081         (unregister_fd_hook): Renamed from unregister_close_hook.
23082         * lib/close.c (rpl_close): Pass 'close' function pointer to
23083         execute_all_close_hooks.
23084         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
23085         (primary_ioctl): New function.
23086         (ioctl): Don't call ioctlsocket here. Instead, call
23087         execute_all_ioctl_hooks.
23088         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
23089         close method.
23090         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
23091         (fd_sockets_hook): Renamed from close_sockets_hook.
23092         (gl_sockets_startup, gl_sockets_cleanup): Update.
23093         * modules/fd-hook: Renamed from modules/close-hook. Update.
23094         * modules/close (Depends-on): Add fd-hook, remove close-hook.
23095         * modules/sockets (Depends-on): Likewise.
23096         * modules/ioctl (Depends-on): Add fd-hook.
23097         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
23098         GNULIB_SOCKET.
23099
23100 2011-04-19  Bruno Haible  <bruno@clisp.org>
23101
23102         Move the support of O_NONBLOCK in open() to the 'open' module.
23103         * modules/nonblocking (Depends-on): Remove 'open'.
23104         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
23105         gl_cv_have_open_O_NONBLOCK.
23106         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
23107         O_NONBLOCK support.
23108         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
23109
23110 2011-04-17  Bruno Haible  <bruno@clisp.org>
23111
23112         pipe2: Simplify code.
23113         * lib/pipe2.c (pipe2): Reduce code duplication.
23114
23115 2011-04-17  Bruno Haible  <bruno@clisp.org>
23116
23117         nonblocking: Add comment.
23118         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
23119
23120 2011-04-17  Bruno Haible  <bruno@clisp.org>
23121
23122         nonblocking: Add tests for sockets.
23123         * tests/test-nonblocking-socket.sh: New file.
23124         * tests/test-nonblocking-socket-main.c: New file.
23125         * tests/test-nonblocking-socket-child.c: New file.
23126         * tests/test-nonblocking-socket.h: New file.
23127         * tests/socket-server.h: New file.
23128         * tests/socket-client.h: New file.
23129         * modules/nonblocking-socket-tests: New file.
23130         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
23131
23132 2011-04-17  Bruno Haible  <bruno@clisp.org>
23133
23134         nonblocking: Add tests for pipes.
23135         * tests/test-nonblocking-pipe.sh: New file.
23136         * tests/test-nonblocking-pipe-main.c: New file.
23137         * tests/test-nonblocking-pipe-child.c: New file.
23138         * tests/test-nonblocking-pipe.h: New file.
23139         * tests/test-nonblocking-writer.h: New file.
23140         * tests/test-nonblocking-reader.h: New file.
23141         * tests/test-nonblocking-misc.h: New file.
23142         * modules/nonblocking-pipe-tests: New file.
23143         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
23144
23145 2011-04-16  Bruno Haible  <bruno@clisp.org>
23146
23147         gettext: Clarify the needed programmer actions.
23148         * modules/gettext (Notice): New field.
23149         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
23150
23151 2011-04-16  Bruno Haible  <bruno@clisp.org>
23152
23153         strchrnul: Tweak last commit.
23154         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
23155         bug.
23156         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
23157         as in _GL_FUNCDECL_SYS.
23158         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
23159         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
23160
23161 2011-04-15  Eric Blake  <eblake@redhat.com>
23162
23163         strchrnul: work around cygwin bug
23164         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
23165         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
23166         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
23167         * modules/string (Makefile.am): Substitute it.
23168         * lib/string.in.h (strchrnul): Use it.
23169
23170 2011-04-15  Bruno Haible  <bruno@clisp.org>
23171
23172         Don't require lib/stdio-write.c when only module 'stdio' is used.
23173         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
23174         invocation.
23175         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
23176
23177 2011-04-14  Bruno Haible  <bruno@clisp.org>
23178
23179         Support non-blocking pipe I/O in read() on native Windows.
23180         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
23181         (read): New declaration.
23182         * lib/read.c: New file.
23183         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
23184         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
23185         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
23186         vscanf): New declarations.
23187         * lib/stdio-read.c: New file.
23188         * m4/read.m4: New file.
23189         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
23190         REPLACE_READ.
23191         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
23192         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
23193         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
23194         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
23195         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
23196         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
23197         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
23198         * modules/read: New file.
23199         * modules/nonblocking (Files): Add lib/stdio-read.c.
23200         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
23201         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
23202         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
23203         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
23204         * modules/pread (Depends-on): Add read.
23205         * modules/safe-read (Depends-on): Likewise.
23206         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
23207         gets, scanf, vfscanf, vscanf): Verify signatures.
23208         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
23209         problem with non-blocking pipes.
23210         * doc/posix-functions/fgetc.texi: Likewise.
23211         * doc/posix-functions/fgets.texi: Likewise.
23212         * doc/posix-functions/fread.texi: Likewise.
23213         * doc/posix-functions/fscanf.texi: Likewise.
23214         * doc/posix-functions/getc.texi: Likewise.
23215         * doc/posix-functions/getchar.texi: Likewise.
23216         * doc/posix-functions/gets.texi: Likewise.
23217         * doc/posix-functions/scanf.texi: Likewise.
23218         * doc/posix-functions/vfscanf.texi: Likewise.
23219         * doc/posix-functions/vscanf.texi: Likewise.
23220
23221 2011-04-14  Bruno Haible  <bruno@clisp.org>
23222
23223         Support non-blocking pipe I/O in write() on native Windows.
23224         * lib/write.c (rpl_write): Split a write request that failed merely
23225         because the byte count was larger than the pipe buffer's size.
23226         * doc/posix-functions/write.texi: Mention the problem with large byte
23227         counts.
23228
23229 2011-04-14  Bruno Haible  <bruno@clisp.org>
23230
23231         wchar: Ensure that wchar_t gets defined on uClibc.
23232         * lib/wchar.in.h: On uClibc, include <stddef.h>.
23233         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
23234
23235 2011-04-13  Bruno Haible  <bruno@clisp.org>
23236
23237         safe-write, full-read: Avoid unnecessary compilation units.
23238         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
23239         (Depends-on): Remove safe-read. Add ssize_t.
23240         * modules/full-read (Files): Add lib/full-write.c.
23241         (Depends-on): Add full-write.
23242
23243 2011-04-13  Bruno Haible  <bruno@clisp.org>
23244
23245         Support non-blocking pipe I/O and SIGPIPE in pwrite().
23246         * modules/pwrite (Depends-on): Add 'write'.
23247
23248 2011-04-13  Bruno Haible  <bruno@clisp.org>
23249
23250         Support non-blocking pipe I/O in write() on native Windows.
23251         * lib/unistd.in.h (write): Enable replacement also if
23252         GNULIB_UNISTD_H_NONBLOCKING is 1.
23253         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
23254         (rpl_write): When failing to write on a non-blocking pipe, change
23255         errno from ENOSPC to EAGAIN.
23256         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
23257         putchar, puts, vfprintf, vprintf): Enable replacement also if
23258         GNULIB_STDIO_H_NONBLOCKING is 1.
23259         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
23260         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
23261         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
23262         CALL_WITH_SIGPIPE_EMULATION.
23263         (CALL_WITH_SIGPIPE_EMULATION): Use them.
23264         * m4/nonblocking.m4: New file.
23265         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
23266         for non-blocking I/O support.
23267         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23268         GNULIB_UNISTD_H_NONBLOCKING.
23269         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
23270         required for non-blocking I/O support.
23271         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
23272         * modules/nonblocking (Files): Add m4/nonblocking.m4,
23273         lib/stdio-write.c, m4/asm-underscore.m4.
23274         (Depends-on): Add stdio, unistd.
23275         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
23276         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
23277         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
23278         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
23279         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
23280         problem with non-blocking pipes.
23281         * doc/posix-functions/fputc.texi: Likewise.
23282         * doc/posix-functions/fputs.texi: Likewise.
23283         * doc/posix-functions/fwrite.texi: Likewise.
23284         * doc/posix-functions/printf.texi: Likewise.
23285         * doc/posix-functions/putc.texi: Likewise.
23286         * doc/posix-functions/putchar.texi: Likewise.
23287         * doc/posix-functions/puts.texi: Likewise.
23288         * doc/posix-functions/vfprintf.texi: Likewise.
23289         * doc/posix-functions/vprintf.texi: Likewise.
23290         * doc/posix-functions/write.texi: Likewise.
23291
23292 2011-04-10  Jim Meyering  <meyering@redhat.com>
23293
23294         maint.mk: prohibit doubled words
23295         Detect them also when they're separated by a newline.
23296         There are 3 ways to customize it:
23297           - disable the test on a per file basis, as usual with rules using
23298             $(VC_LIST_EXCEPT)
23299           - replace the default doubled-word-selecting regexp (affects all files)
23300           - ignore a particular file-vs-doubled-word match
23301         I nearly used that last one to ignore the "is is" match in
23302         coreutils' NEWS file, since the text was "ls -is is ..."
23303         To do that, I would have added this line to cfg.mk:
23304           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
23305         but it would have ignored any "is is" match in NEWS.
23306         Low probability, but still...
23307         Instead, I changed the text, slightly:
23308           -  ls -is is now consistent with ls -lis in ignoring values returned
23309           +  "ls -is" is now consistent with ls -lis in ignoring values returned
23310         * top/maint.mk (prohibit_double_word_RE_): Provide default.
23311         (prohibit_doubled_word_): Define.
23312         (sc_prohibit_doubled_word): New rule.
23313         (sc_prohibit_the_the): Remove.  Subsumed by the above.
23314
23315 2011-04-10  Jim Meyering  <meyering@redhat.com>
23316
23317         maint: fix doubled-word typo in comment
23318         * m4/gethostname.m4: s/is is/it is/
23319         * m4/getdomainname.m4: Likewise.
23320
23321 2011-04-10  Jim Meyering  <meyering@redhat.com>
23322
23323         maint: remove doubled word: s/it it/it/
23324         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
23325
23326 2011-04-10  Jim Meyering  <meyering@redhat.com>
23327
23328         maint.mk: remove useless semicolon and backslash
23329         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
23330         semicolon and backslash.
23331
23332 2011-04-10  Bruno Haible  <bruno@clisp.org>
23333
23334         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
23335         * modules/stdint-tests (Depends-on): Add wchar.
23336
23337 2011-04-10  Jim Meyering  <meyering@redhat.com>
23338
23339         maint: remove doubled words in comments, e.g., s/a a/a/
23340         * lib/strptime.c (day_of_the_week): s/the the/the/
23341         * tests/test-chown.h (test_chown): s/a a/a/
23342
23343         test-chown.h: correct a cast
23344         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
23345         when the destination is a stat.st_gid.
23346
23347 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
23348
23349         getaddrinfo: Fix test for sa_len member.
23350         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
23351         include <sys/types.h> before <sys/socket.h>.
23352
23353 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
23354
23355         maint: change "can not" to "cannot"
23356         * doc/posix-functions/iconv.texi (iconv): This one crossed line
23357         boundaries.
23358
23359 2011-04-09  Jim Meyering  <meyering@redhat.com>
23360
23361         maint: change "a a" to "a"
23362         * tests/test-lchown.h (test_lchown): s/a a/a/
23363
23364         maint.mk: prohibit \<the the\>
23365         * top/maint.mk (sc_prohibit_the_the): New rule.
23366
23367         maint: fix "the the" in comment
23368         * lib/count-one-bits.h: s/the the/the/
23369
23370         maint: change "can not" to "cannot"
23371         But do not change the occurrences in maintain.texi or in
23372         build-aux/po/Makefile.in.in, which I presume comes from gettext.
23373         * doc/gnulib-tool.texi: s/can not/cannot/
23374         * doc/posix-functions/accept.texi (accept): Likewise.
23375         * doc/posix-functions/socket.texi (socket): Likewise.
23376         * lib/mbrtowc.c: Likewise.
23377
23378         maint.mk: prohibit use of "can not"
23379         * top/maint.mk (sc_prohibit_can_not): New rule.
23380         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
23381
23382 2011-04-09  Bruno Haible  <bruno@clisp.org>
23383
23384         careadlinkat: Guard against misuse of careadlinkatcwd.
23385         * lib/careadlinkat.c: Include <stdlib.h>.
23386         (careadlinkatcwd): Check that the fd argument is as expected.
23387
23388 2011-04-09  Bruno Haible  <bruno@clisp.org>
23389
23390         careadlinkat: Use common coding style.
23391         * lib/careadlinkat.c: Move gnulib includes after system includes.
23392
23393 2011-04-09  Bruno Haible  <bruno@clisp.org>
23394
23395         careadlinkat: Clarify specification.
23396         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
23397         (careadlinkatcwd): Add comment.
23398         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
23399
23400 2011-04-09  Bruno Haible  <bruno@clisp.org>
23401
23402         areadlinkat: Avoid link error on many platforms.
23403         * modules/areadlinkat (Depends-on): Add areadlink.
23404
23405 2011-04-09  Bruno Haible  <bruno@clisp.org>
23406
23407         allocator, careadlinkat: Fix double-inclusion guard.
23408         * lib/allocator.h: Fix double-inclusion guard.
23409         * lib/careadlinkat.h: Likewise.
23410
23411 2011-04-09  Bruno Haible  <bruno@clisp.org>
23412
23413         relocatable-prog-wrapper: Update after module 'areadlink' changed.
23414         * lib/relocwrapper.c: Update dependencies hierarchy.
23415         * build-aux/install-reloc: Update list of files to be compiled.
23416         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
23417         lib/allocator.[hc].
23418
23419 2011-04-08  Eric Blake  <eblake@redhat.com>
23420
23421         strftime: silence gnulib-tool warning
23422         * modules/strftime-tests (Depends-on): Drop automatic dependency.
23423
23424 2011-04-08  Bruno Haible  <bruno@clisp.org>
23425
23426         verify: Fix syntax error with GCC 4.6 in C++ mode.
23427         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
23428         (HAVE_STATIC_ASSERT): New macro.
23429         (verify_true, verify): Use 'static_assert' if it is supported and
23430         '_Static_assert' is not supported.
23431
23432 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
23433
23434         allocator: New module.
23435         * modules/allocator, lib/allocator.c: New files.
23436         * lib/allocator.h (stdlib_allocator): New decl.
23437         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
23438         Remove.  Do not include <stdlib.h>.
23439         (careadlinkat): Use stdlib_allocator instead of rolling our own.
23440         * modules/careadlinkat (Files): Remove lib/allocator.h.
23441         (Depends-on): Add allocator.
23442
23443         stdlib: let modules use system malloc, realloc
23444         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
23445         if !_GL_USE_STDLIB_ALLOC.
23446         (malloc, realloc): Limit this change to a smaller scope.
23447
23448         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
23449         (malloc, realloc): Don't #undef; no longer needed.
23450         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23451         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23452         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
23453         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23454         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23455         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23456         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23457         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
23458
23459         careadlinkat: rename members to avoid problem
23460         * lib/allocator.h (struct allocator): Rename members from
23461         malloc/realloc to allocate/reallocate, to avoid problems if malloc
23462         and realloc are #define'd.  Reported by Eric Blake in
23463         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
23464         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
23465
23466 2011-04-08  Eric Blake  <eblake@redhat.com>
23467
23468         nonblocking: reduce dependency
23469         * tests/test-nonblocking.c: Only test sockets when in use.
23470         * modules/nonblocking-tests (Depends-on): Drop socket.
23471         (Makefile.am): Link even if sockets are not present.
23472         * modules/pipe2-tests (Makefile.am): Likewise.
23473         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
23474
23475         pipe2: fix O_NONBLOCK support on mingw
23476         * modules/pipe2 (Depends-on): Add nonblocking.
23477         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
23478         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
23479         * tests/test-nonblocking.c (main): Likewise.
23480         * modules/pipe2-tests (Makefile.am): Avoid link failure.
23481
23482         fcntl-h: fix O_ACCMODE on cygwin
23483         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
23484         * lib/fcntl.in.h (O_ACCMODE): Fix it.
23485
23486         pipe-filter: drop O_NONBLOCK workarounds
23487         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
23488         * modules/pipe-filter-ii (Depends-on): Likewise.
23489         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
23490
23491         nonblocking: provide O_NONBLOCK for mingw
23492         * modules/nonblocking (Depends-on): Add open.
23493         (configure.ac): Set new witness macro.
23494         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
23495         * modules/fcntl-h (Makefile.am): Substitute it.
23496         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
23497         nonblocking module is in use.
23498         * lib/nonblocking.c: Adjust portability test.
23499         * lib/open.c (open): Don't let native open see gnulib flag.
23500         * tests/test-fcntl-h.c (main): Enhance test.
23501         * tests/test-open.h (test_open): Likewise.
23502         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
23503
23504         careadlinkat: fix compilation error on mingw
23505         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
23506         within struct allocator.
23507
23508 2011-04-06  Eric Blake  <eblake@redhat.com>
23509
23510         binary-io: relicense under LGPLv2+
23511         * modules/binary-io (License): Relax to LGPLv2+.
23512         Requested for libvirt, and required by pipe2.
23513
23514 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
23515
23516         verify: use _Static_assert if available
23517         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
23518         (verify_true, verify): Use it if available.  This generates better
23519         diagnostics with GCC 4.6.0 and later.
23520
23521 2011-04-05  Bruno Haible  <bruno@clisp.org>
23522
23523         Remove leftover generated .h files after config.status changed.
23524
23525         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
23526         GL_GENERATE_ALLOCA_H.
23527         * modules/alloca-opt (Makefile.am): Remove alloca.h if
23528         GL_GENERATE_ALLOCA_H evaluates to false.
23529
23530         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
23531         GL_GENERATE_ARGZ_H.
23532         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
23533         evaluates to false.
23534
23535         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
23536         GL_GENERATE_BYTESWAP_H.
23537         * modules/byteswap (Makefile.am): Remove byteswap.h if
23538         GL_GENERATE_BYTESWAP_H evaluates to false.
23539
23540         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
23541         GL_GENERATE_ERRNO_H.
23542         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
23543         evaluates to false.
23544
23545         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
23546         GL_GENERATE_FLOAT_H.
23547         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
23548         evaluates to false.
23549
23550         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
23551         GL_GENERATE_FNMATCH_H.
23552         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
23553         GL_GENERATE_FNMATCH_H evaluates to false.
23554
23555         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
23556         GL_GENERATE_GLOB_H.
23557         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
23558         evaluates to false.
23559
23560         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
23561         automake conditional GL_GENERATE_ICONV_H.
23562         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
23563         evaluates to false.
23564
23565         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
23566         GL_GENERATE_NETINET_IN_H.
23567         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
23568         GL_GENERATE_NETINET_IN_H evaluates to false.
23569
23570         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
23571         conditional GL_GENERATE_PTHREAD_H.
23572         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
23573         * modules/pthread (Makefile.am): Remove pthread.h if
23574         GL_GENERATE_PTHREAD_H evaluates to false.
23575
23576         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
23577         GL_GENERATE_SCHED_H.
23578         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
23579         evaluates to false.
23580
23581         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
23582         conditional GL_GENERATE_SELINUX_CONTEXT_H.
23583         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
23584         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
23585
23586         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
23587         GL_GENERATE_STDARG_H.
23588         * modules/stdarg (Makefile.am): Remove stdarg.h if
23589         GL_GENERATE_STDARG_H evaluates to false.
23590
23591         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
23592         GL_GENERATE_STDBOOL_H.
23593         * modules/stdbool (Makefile.am): Remove stdbool.h if
23594         GL_GENERATE_STDBOOL_H evaluates to false.
23595
23596         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
23597         conditional GL_GENERATE_STDDEF_H.
23598         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
23599         * modules/stddef (Makefile.am): Remove stddef.h if
23600         GL_GENERATE_STDDEF_H evaluates to false.
23601
23602         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
23603         GL_GENERATE_STDINT_H.
23604         * modules/stdint (Makefile.am): Remove stdint.h if
23605         GL_GENERATE_STDINT_H evaluates to false.
23606
23607         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
23608         GL_GENERATE_SYSEXITS_H.
23609         * modules/sysexits (Makefile.am): Remove sysexits.h if
23610         GL_GENERATE_SYSEXITS_H evaluates to false.
23611
23612         Reported by Karl Berry and Ralf Wildenhues.
23613
23614 2011-04-05  Bruno Haible  <bruno@clisp.org>
23615
23616         Ensure to rebuild generated .h files when config.status has changed.
23617         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
23618         config.status.
23619         * modules/ctype (Makefile.am): Likewise.
23620         * modules/dirent (Makefile.am): Likewise.
23621         * modules/errno (Makefile.am): Likewise.
23622         * modules/fcntl-h (Makefile.am): Likewise.
23623         * modules/float (Makefile.am): Likewise.
23624         * modules/getopt-posix (Makefile.am): Likewise.
23625         * modules/glob (Makefile.am): Likewise.
23626         * modules/iconv-h (Makefile.am): Likewise.
23627         * modules/inttypes (Makefile.am): Likewise.
23628         * modules/langinfo (Makefile.am): Likewise.
23629         * modules/locale (Makefile.am): Likewise.
23630         * modules/math (Makefile.am): Likewise.
23631         * modules/netdb (Makefile.am): Likewise.
23632         * modules/netinet_in (Makefile.am): Likewise.
23633         * modules/poll-h (Makefile.am): Likewise.
23634         * modules/pthread (Makefile.am): Likewise.
23635         * modules/pty (Makefile.am): Likewise.
23636         * modules/sched (Makefile.am): Likewise.
23637         * modules/search (Makefile.am): Likewise.
23638         * modules/selinux-h (Makefile.am): Likewise.
23639         * modules/signal (Makefile.am): Likewise.
23640         * modules/spawn (Makefile.am): Likewise.
23641         * modules/stdarg (Makefile.am): Likewise.
23642         * modules/stdbool (Makefile.am): Likewise.
23643         * modules/stddef (Makefile.am): Likewise.
23644         * modules/stdint (Makefile.am): Likewise.
23645         * modules/stdio (Makefile.am): Likewise.
23646         * modules/stdlib (Makefile.am): Likewise.
23647         * modules/string (Makefile.am): Likewise.
23648         * modules/strings (Makefile.am): Likewise.
23649         * modules/sys_file (Makefile.am): Likewise.
23650         * modules/sys_ioctl (Makefile.am): Likewise.
23651         * modules/sys_select (Makefile.am): Likewise.
23652         * modules/sys_socket (Makefile.am): Likewise.
23653         * modules/sys_stat (Makefile.am): Likewise.
23654         * modules/sys_time (Makefile.am): Likewise.
23655         * modules/sys_times (Makefile.am): Likewise.
23656         * modules/sys_utsname (Makefile.am): Likewise.
23657         * modules/sys_wait (Makefile.am): Likewise.
23658         * modules/sysexits (Makefile.am): Likewise.
23659         * modules/termios (Makefile.am): Likewise.
23660         * modules/time (Makefile.am): Likewise.
23661         * modules/unistd (Makefile.am): Likewise.
23662         * modules/wchar (Makefile.am): Likewise.
23663         * modules/wctype-h (Makefile.am): Likewise.
23664         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
23665
23666 2011-04-05  Bruno Haible  <bruno@clisp.org>
23667
23668         pipe2: Relicense under LGPLv2+.
23669         * modules/pipe2 (License): Change to LGPLv2+.
23670         Requested by Eric Blake, for libvirt.
23671
23672 2011-04-05  Bruce Korb  <bkorb@gnu.org>
23673
23674         bootstrap: compute gnulib_extra_files after updating build_aux
23675         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
23676         change build_aux or also supply gnulib_extra_files.  Handle correctly.
23677
23678 2011-04-05  Eric Blake  <eblake@redhat.com>
23679
23680         bootstrap: preserve git whitelist item sorting
23681         * build-aux/bootstrap (sort_patterns): New function.
23682         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
23683
23684 2011-04-05  Simon Josefsson  <simon@josefsson.org>
23685
23686         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
23687         sc_space_tab check.
23688
23689 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
23690
23691         areadlink, areadlinkat: rewrite in terms of careadlinkat
23692         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
23693         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
23694         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
23695         (malloc, realloc): Remove #undefs.
23696         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
23697         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
23698         readlink, ssize_t, stdint, unistd.
23699         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
23700         areadlink, stdint.
23701
23702         careadlinkat: new module
23703         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
23704         * modules/careadlinkat: New files, written by me with
23705         a review and feedback from Ben Pfaff in
23706         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
23707
23708 2011-04-01  Bruno Haible  <bruno@clisp.org>
23709
23710         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
23711         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
23712         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
23713         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
23714         Reported by Bruce Korb <bruce.korb@gmail.com>.
23715
23716 2011-04-01  Bruno Haible  <bruno@clisp.org>
23717
23718         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
23719         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
23720         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
23721         * modules/wcpcpy (Depends-on): Add extensions.
23722         * modules/wcpncpy (Depends-on): Likewise.
23723         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
23724         systems.
23725         * doc/posix-functions/wcpncpy.texi: Likewise.
23726         * doc/posix-functions/wcwidth.texi: Likewise.
23727
23728 2011-03-31  Eric Blake  <eblake@redhat.com>
23729
23730         nonblocking: fix mingw test failures
23731         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
23732         non-blocking flag on regular file.
23733         (get_nonblocking_flag): Set errno on invalid fd.
23734         * tests/test-nonblocking.c (main): Avoid test failure on
23735         directories if fchdir is not active.
23736         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
23737
23738 2011-03-31  Bruno Haible  <bruno@clisp.org>
23739
23740         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
23741         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
23742         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
23743         Reported by Simon Josefsson <simon@josefsson.org>.
23744
23745 2011-03-31  Bruno Haible  <bruno@clisp.org>
23746         and Eric Blake  <eblake@redhat.com>
23747
23748         nonblocking: new module
23749         * modules/nonblocking: New module.
23750         * modules/nonblocking-tests: Likewise.
23751         * lib/nonblocking.h: New file.
23752         * lib/nonblocking.c: Likewise.
23753         * tests/test-nonblocking.c: New test.
23754         * lib/ioctl.c (ioctl) [mingw]: Update comment.
23755
23756 2011-03-30  Bruno Haible  <bruno@clisp.org>
23757
23758         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
23759         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
23760         instead of 'printf' format for GCC >= 4.4.
23761         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
23762         (fprintf, printf, vfprintf, vprintf): Declare with
23763         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
23764         the system's vfprintf() function.
23765         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
23766
23767 2011-03-30  Eric Blake  <eblake@redhat.com>
23768
23769         passfd: fix scoping bug
23770         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
23771         before sendmsg/recvmsg.
23772
23773         passfd: standardize coding conventions
23774         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
23775         can be learned at compile time.
23776         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
23777         ifdefs.
23778         (sendfd, recvfd): Follow gnulib code conventions.
23779
23780         passfd: fix incorrect sendmsg arguments
23781         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
23782         incorrect msg_controllen value.
23783         * modules/passfd-tests (Depends-on): Check for alarm.
23784         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
23785         Reported by Bastien ROUCARIES.
23786
23787 2011-03-30  Bruno Haible  <bruno@clisp.org>
23788
23789         c-strcasestr: Relicense under LGPLv2+.
23790         * modules/c-strcasestr (License): Change to LGPLv2+.
23791         Requested by Eric Blake, for libvirt.
23792
23793 2011-03-30  Simon Josefsson  <simon@josefsson.org>
23794
23795         * users.txt: Add libidn2.  Fix libtasn1 link.
23796
23797 2011-03-30  Jim Meyering  <meyering@redhat.com>
23798
23799         tests: readlink* ("",... fails with EINVAL on newer kernels
23800         readlink and readlinkat have typically failed with ENOENT for
23801         the invalid, empty file name,  "".  However, with the advent
23802         of linux-2.6.39, they fail with EINVAL.
23803         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
23804         when operating on the empty file name.
23805         * tests/test-readlink.h (test_readlink): Likewise.
23806
23807 2011-03-29  Bruno Haible  <bruno@clisp.org>
23808
23809         Relicense some modules under LGPLv2+, for libidn2.
23810         * modules/array-mergesort (License): Change to LGPLv2+.
23811         * modules/c-strcaseeq (License): Likewise.
23812         * modules/striconveh (License): Likewise.
23813         * modules/striconveha (License): Likewise.
23814         * modules/uniconv/base (License): Likewise.
23815         * modules/uniconv/u8-conv-from-enc (License): Likewise.
23816         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
23817         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
23818         * modules/unictype/base (License): Likewise.
23819         * modules/unictype/bidiclass-of (License): Likewise.
23820         * modules/unictype/category-M (License): Likewise.
23821         * modules/unictype/category-none (License): Likewise.
23822         * modules/unictype/category-of (License): Likewise.
23823         * modules/unictype/category-test (License): Likewise.
23824         * modules/unictype/category-test-withtable (License): Likewise.
23825         * modules/unictype/combining-class (License): Likewise.
23826         * modules/unictype/joiningtype-of (License): Likewise.
23827         * modules/unictype/scripts (License): Likewise.
23828         * modules/uninorm/base (License): Likewise.
23829         * modules/uninorm/canonical-decomposition (License): Likewise.
23830         * modules/uninorm/composition (License): Likewise.
23831         * modules/uninorm/decompose-internal (License): Likewise.
23832         * modules/uninorm/decomposition-table (License): Likewise.
23833         * modules/uninorm/nfc (License): Likewise.
23834         * modules/uninorm/nfd (License): Likewise.
23835         * modules/uninorm/u32-normalize (License): Likewise.
23836         * modules/unistr/base (License): Likewise.
23837         * modules/unistr/u32-cpy (License): Likewise.
23838         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
23839         * modules/unistr/u32-to-u8 (License): Likewise.
23840         * modules/unistr/u32-uctomb (License): Likewise.
23841         * modules/unistr/u8-check (License): Likewise.
23842         * modules/unistr/u8-mblen (License): Likewise.
23843         * modules/unistr/u8-mbtouc (License): Likewise.
23844         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
23845         * modules/unistr/u8-mbtoucr (License): Likewise.
23846         * modules/unistr/u8-prev (License): Likewise.
23847         * modules/unistr/u8-strlen (License): Likewise.
23848         * modules/unistr/u8-to-u32 (License): Likewise.
23849         * modules/unistr/u8-uctomb (License): Likewise.
23850         * modules/unitypes (License): Likewise.
23851         Requested by Simon Josefsson.
23852
23853 2011-03-29  Simon Josefsson  <simon@josefsson.org>
23854
23855         lib-symbol-visibility: Add a notice.
23856         * modules/lib-symbol-visibility (Notice): New field.
23857
23858 2011-03-29  Bruno Haible  <bruno@clisp.org>
23859
23860         getaddrinfo: Doc fix.
23861         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
23862         section "fixed in Gnulib".
23863
23864 2011-03-28  Simon Josefsson  <simon@josefsson.org>
23865
23866         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
23867         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
23868
23869 2011-03-26  Bruno Haible  <bruno@clisp.org>
23870
23871         unictype/property-byname: Reduce the number of load-time relocations.
23872         * lib/unictype/pr_byname.c: Include <stdlib.h>.
23873         (UC_PROPERTY_INDEX_*): New enumeration values.
23874         (uc_property_byname): Convert an index from the lookup table to an
23875         uc_property_t.
23876         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
23877         values.
23878
23879 2011-03-26  Bruno Haible  <bruno@clisp.org>
23880
23881         unictype/property-byname: Allow omitted word separators and aliases.
23882         * lib/unictype/pr_byname.gperf: Add property names without word
23883         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
23884         for 'space'.
23885
23886 2011-03-26  Bruno Haible  <bruno@clisp.org>
23887
23888         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
23889         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
23890         also hyphens to space.
23891         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
23892         without spaces.
23893         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
23894
23895 2011-03-26  Bruno Haible  <bruno@clisp.org>
23896
23897         unictype/joiningtype-byname: Recognize long names as well.
23898         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
23899         a long name.
23900         * lib/unictype/joiningtype_byname.c: Include <string.h>,
23901         unictype/joiningtype_byname.h.
23902         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
23903         * lib/unictype/joiningtype_byname.gperf: New file.
23904         * modules/unictype/joiningtype-byname (Files): Add
23905         lib/unictype/joiningtype_byname.gperf.
23906         (Depends-on): Add gperf.
23907         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
23908         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
23909         long names.
23910
23911         Tests for module 'unictype/joiningtype-longname'.
23912         * modules/unictype/joiningtype-longname-tests: New file.
23913         * tests/unictype/test-joiningtype_longname.c: New file.
23914
23915         New module 'unictype/joiningtype-longname'.
23916         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
23917         * lib/unictype/joiningtype_longname.c: New file.
23918         * modules/unictype/joiningtype-longname: New file.
23919         * modules/unictype/joiningtype-all (Depends-on): Add
23920         unictype/joiningtype-longname.
23921
23922 2011-03-26  Bruno Haible  <bruno@clisp.org>
23923
23924         unictype/bidiclass-byname: Recognize long names as well.
23925         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
23926         name.
23927         * lib/unictype/bidi_byname.c: Include <string.h>,
23928         unictype/bidi_byname.h.
23929         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
23930         * lib/unictype/bidi_byname.gperf: New file.
23931         * modules/unictype/bidiclass-byname (Files): Add
23932         lib/unictype/bidi_byname.gperf.
23933         (Depends-on): Add gperf.
23934         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
23935         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
23936         long names.
23937
23938         Tests for module 'unictype/bidiclass-longname'.
23939         * modules/unictype/bidiclass-longname-tests: New file.
23940         * tests/unictype/test-bidi_longname.c: New file.
23941
23942         New module 'unictype/bidiclass-longname'.
23943         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
23944         * lib/unictype/bidi_longname.c: New file.
23945         * modules/unictype/bidiclass-longname: New file.
23946         * modules/unictype/bidiclass-all (Depends-on): Add
23947         unictype/bidiclass-longname.
23948
23949 2011-03-26  Bruno Haible  <bruno@clisp.org>
23950
23951         unictype/bidi*: Rename modules.
23952         * modules/unictype/bidiclass-all: Renamed from
23953         modules/unictype/bidicategory-all.
23954         * modules/unictype/bidiclass-name: Renamed from
23955         modules/unictype/bidiclass-name.
23956         (Description): Update.
23957         * modules/unictype/bidiclass-name-tests: Renamed from
23958         modules/unictype/bidicategory-name-tests.
23959         * modules/unictype/bidiclass-byname: Renamed from
23960         modules/unictype/bidicategory-byname.
23961         (Description): Update.
23962         * modules/unictype/bidiclass-byname-tests: Renamed from
23963         modules/unictype/bidicategory-byname-tests.
23964         * modules/unictype/bidiclass-of: Renamed from
23965         modules/unictype/bidicategory-of.
23966         (Description): Update.
23967         * modules/unictype/bidiclass-of-tests: Renamed from
23968         modules/unictype/bidicategory-of-tests.
23969         * modules/unictype/bidiclass-test: Renamed from
23970         modules/unictype/bidicategory-test.
23971         (Description): Update.
23972         * modules/unictype/bidiclass-test-tests: Renamed from
23973         modules/unictype/bidicategory-test-tests.
23974         * modules/unictype/bidicategory-all: New file, a simple redirection.
23975         * modules/unictype/bidicategory-name: Likewise.
23976         * modules/unictype/bidicategory-byname: Likewise.
23977         * modules/unictype/bidicategory-of: Likewise.
23978         * modules/unictype/bidicategory-test: Likewise.
23979         * modules/unictype/property-bidi-* (Dependencies): Update.
23980         * lib/unictype/bidi_*.c: Update comment.
23981
23982 2011-03-26  Bruno Haible  <bruno@clisp.org>
23983
23984         unictype/bidi*: Rename functions, part 2.
23985         * modules/unictype/bidicategory-name (configure.ac): Update required
23986         libunistring version.
23987         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
23988
23989 2011-03-25  Bruno Haible  <bruno@clisp.org>
23990
23991         New module 'unictype/combining-class-all'.
23992         * modules/unictype/combining-class-all: New file.
23993
23994         Tests for module 'unictype/combining-class-byname'.
23995         * modules/unictype/combining-class-byname-tests: New file.
23996         * tests/unictype/test-combiningclass_byname.c: New file.
23997
23998         New module 'unictype/combining-class-byname'.
23999         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
24000         * lib/unictype/combiningclass_byname.c: New file.
24001         * lib/unictype/combiningclass_byname.gperf: New file.
24002         * modules/unictype/combining-class-byname: New file.
24003
24004         Tests for module 'unictype/combining-class-longname'.
24005         * modules/unictype/combining-class-longname-tests: New file.
24006         * tests/unictype/test-combiningclass_longname.c: New file.
24007
24008         New module 'unictype/combining-class-longname'.
24009         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
24010         * lib/unictype/combiningclass_longname.c: New file.
24011         * modules/unictype/combining-class-longname: New file.
24012
24013         Tests for module 'unictype/combining-class-name'.
24014         * modules/unictype/combining-class-name-tests: New file.
24015         * tests/unictype/test-combiningclass_name.c: New file.
24016
24017         New module 'unictype/combining-class-name'.
24018         * lib/unictype.in.h (uc_combining_class_name): New declaration.
24019         * lib/unictype/combiningclass_name.c: New file.
24020         * modules/unictype/combining-class-name: New file.
24021
24022 2011-03-25  Bruno Haible  <bruno@clisp.org>
24023
24024         unictype/combining-class: Rename source files.
24025         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
24026         of unictype/combining.h.
24027         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
24028         Update.
24029         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
24030         * modules/unictype/combining-class (Description): Fix.
24031         (Files, Makefile.am): Update.
24032         * tests/unictype/test-combiningclass.c: Renamed from
24033         tests/unictype/test-combining.c.
24034         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
24035
24036 2011-03-25  Bruno Haible  <bruno@clisp.org>
24037
24038         unictype: Update list of canonical combining classes.
24039         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
24040
24041 2011-03-25  Bruno Haible  <bruno@clisp.org>
24042
24043         unictype/category-byname: Recognize long names as well.
24044         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
24045         a long name.
24046         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
24047         unictype/categ_byname.h.
24048         (UC_CATEGORY_INDEX_*): New enumeration values.
24049         (uc_general_category_byname): Use uc_general_category_lookup and
24050         convert from index to value.
24051         * lib/unictype/categ_byname.gperf: New file.
24052         * modules/unictype/category-byname (Files): Add
24053         lib/unictype/categ_byname.gperf.
24054         (Depends-on): Add gperf.
24055         (Makefile.am): Add rule for generating unictype/categ_byname.h.
24056         * tests/unictype/test-categ_byname.c (main): Test the recognition of
24057         long names.
24058
24059         Tests for module 'unictype/category-longname'.
24060         * modules/unictype/category-longname-tests: New file.
24061         * tests/unictype/test-categ_longname.c: New file.
24062
24063         New module 'unictype/category-longname'.
24064         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
24065         * lib/unictype/categ_longname.c: New file.
24066         * modules/unictype/category-longname: New file.
24067         * modules/unictype/category-all (Depends-on): Add it.
24068
24069 2011-03-25  Bruno Haible  <bruno@clisp.org>
24070
24071         Tests for module 'unictype/category-LC'.
24072         * modules/unictype/category-LC-tests: New file.
24073         * tests/unictype/test-categ_LC.c: New file, automatically generated.
24074
24075         New module 'unictype/category-LC'.
24076         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
24077         (UC_CATEGORY_LC): New declaration.
24078         (UC_CASED_LETTER): New macro.
24079         * lib/gen-uni-tables.c (is_category_LC): New function.
24080         (output_categories): Also handle category LC.
24081         (UC_CATEGORY_MASK_LC): New enumeration value.
24082         (general_category_byname): Also handle category LC.
24083         * lib/unictype/categ_LC.c: New file.
24084         * lib/unictype/categ_LC.h: New file, automatically generated.
24085         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
24086         category LC.
24087         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
24088         * modules/unictype/category-LC: New file.
24089         * modules/unictype/category-byname (Depends-on): Add
24090         unictype/category-LC.
24091         * modules/unictype/category-all (Depends-on): Likewise.
24092
24093 2011-03-25  Eric Blake  <eblake@redhat.com>
24094
24095         xmalloc: revert yesterday's regression
24096         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
24097         realloc's underlying behavior (allowing allocation of zero-size
24098         objects, especially if malloc-gnu is also in use).
24099
24100 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
24101
24102         maint.mk: add missing version to VC-tag
24103         * top/maint.mk: git tag was missing actual tag name; add it.
24104
24105         valgrind: do leak checking, and exit with code 1 on error (not 0)
24106         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
24107         to VALGRIND.
24108
24109 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
24110
24111         posix-modules: say what it does.
24112         * posix-modules: Add a line to the --help output saying what it does.
24113
24114 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
24115
24116         xmalloc: Do not leak if underlying realloc is C99 compatible.
24117         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
24118         This avoids a leak on C99-based systems.  See
24119         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
24120
24121 2011-03-24  Eric Blake  <eblake@redhat.com>
24122
24123         realloc: document portability problem
24124         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
24125         passing 0 size to realloc.
24126
24127 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
24128
24129         doc: update users.txt
24130         * users.txt: Add cvsps, tmpwatch
24131
24132 2011-03-23  Matt Rice  <ratmice@gmail.com>
24133
24134         doc: update users.txt
24135         * users.txt: Add gdb.
24136
24137 2011-03-23  Jim Meyering  <meyering@redhat.com>
24138
24139         doc: update users.txt
24140         Looking through matches up to the following URL (there are still
24141         several more pages), I found several projects that use gnulib:
24142         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
24143         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
24144         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
24145
24146 2011-03-22  Bruno Haible  <bruno@clisp.org>
24147
24148         unictype/bidi*: Rename functions.
24149         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
24150         uc_bidi_class, uc_is_bidi_class): New declarations.
24151         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
24152         uc_bidi_category_byname.
24153         (uc_bidi_category_byname): New function.
24154         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
24155         u_bidi_category_name.
24156         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
24157         (uc_bidi_category_name): New function.
24158         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
24159         uc_bidi_category.
24160         (uc_bidi_category): New function.
24161         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
24162         uc_is_bidi_category. Invoke uc_bidi_class.
24163         (uc_is_bidi_category): New function.
24164         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
24165         instead of uc_bidi_category_byname.
24166         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
24167         instead of uc_bidi_category_name.
24168         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
24169         uc_bidi_category.
24170         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
24171         instead of uc_is_bidi_category.
24172
24173 2011-03-21  Bruno Haible  <bruno@clisp.org>
24174
24175         New module 'unictype/joininggroup-all'.
24176         * modules/unictype/joininggroup-all: New file.
24177
24178         Tests for module 'unictype/joininggroup-of'.
24179         * modules/unictype/joininggroup-of-tests: New file.
24180         * tests/unictype/test-joininggroup_of.c: New file.
24181         * tests/unictype/test-joininggroup_of.h: New file, automatically
24182         generated by gen-uni-tables.
24183
24184         New module 'unictype/joininggroup-of'.
24185         * modules/unictype/joininggroup-of: New file.
24186         * lib/unictype/joininggroup_of.c: New file.
24187         * lib/unictype/joininggroup_of.h: New file, automatically generated by
24188         gen-uni-tables.
24189
24190         Tests for module 'unictype/joininggroup-byname'.
24191         * modules/unictype/joininggroup-byname-tests: New file.
24192         * tests/unictype/test-joininggroup_byname.c: New file.
24193
24194         New module 'unictype/joininggroup-byname'.
24195         * modules/unictype/joininggroup-byname: New file.
24196         * lib/unictype/joininggroup_byname.c: New file.
24197         * lib/unictype/joininggroup_byname.gperf: New file.
24198
24199         Tests for module 'unictype/joininggroup-name'.
24200         * modules/unictype/joininggroup-name-tests: New file.
24201         * tests/unictype/test-joininggroup_name.c: New file.
24202
24203         New module 'unictype/joininggroup-name'.
24204         * modules/unictype/joininggroup-name: New file.
24205         * lib/unictype/joininggroup_name.c: New file.
24206         * lib/unictype/joininggroup_name.h: New file.
24207
24208         New module 'unictype/joiningtype-all'.
24209         * modules/unictype/joiningtype-all: New file.
24210
24211         Tests for module 'unictype/joiningtype-of'.
24212         * modules/unictype/joiningtype-of-tests: New file.
24213         * tests/unictype/test-joiningtype_of.c: New file.
24214         * tests/unictype/test-joiningtype_of.h: New file, automatically
24215         generated by gen-uni-tables.
24216
24217         New module 'unictype/joiningtype-of'.
24218         * modules/unictype/joiningtype-of: New file.
24219         * lib/unictype/joiningtype_of.c: New file.
24220         * lib/unictype/joiningtype_of.h: New file, automatically generated by
24221         gen-uni-tables.
24222
24223         Tests for module 'unictype/joiningtype-byname'.
24224         * modules/unictype/joiningtype-byname-tests: New file.
24225         * tests/unictype/test-joiningtype_byname.c: New file.
24226
24227         New module 'unictype/joiningtype-byname'.
24228         * modules/unictype/joiningtype-byname: New file.
24229         * lib/unictype/joiningtype_byname.c: New file.
24230
24231         Tests for module 'unictype/joiningtype-name'.
24232         * modules/unictype/joiningtype-name-tests: New file.
24233         * tests/unictype/test-joiningtype_name.c: New file.
24234
24235         New module 'unictype/joiningtype-name'.
24236         * modules/unictype/joiningtype-name: New file.
24237         * lib/unictype/joiningtype_name.c: New file.
24238
24239         unictype: Add support for Arabic shaping properties.
24240         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
24241         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
24242         declarations.
24243         (UC_JOINING_GROUP_*): New enumeration values.
24244         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
24245         declarations.
24246         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
24247         (unicode_joining_type): New variable.
24248         (UC_JOINING_GROUP_*): New enumeration values.
24249         (unicode_joining_group): New variable.
24250         (fill_arabicshaping, joining_type_as_c_identifier,
24251         output_joining_type_test, output_joining_type,
24252         joining_group_as_c_identifier, output_joining_group_test,
24253         output_joining_group): New functions.
24254         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
24255         fill_arabicshaping and output_joining_type_test, output_joining_type,
24256         output_joining_group_test, output_joining_group.
24257         Reported by Simon Josefsson.
24258
24259 2011-03-21  Jim Meyering  <meyering@redhat.com>
24260
24261         strftime: fix a bug in yesterday's change
24262         * lib/strftime.c (add): Accommodate width's initial value of -1.
24263         Otherwise, nstrftime would copy uninitialized data into
24264         the result buffer.
24265
24266 2011-03-21  Jim Meyering  <meyering@redhat.com>
24267
24268         tests: add strftime-tests module
24269         * tests/test-strftime.c: New file.
24270         * modules/strftime-tests: New module.
24271
24272 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
24273
24274         strftime: don't assume a byte count fits in 'int'
24275         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
24276         found this problem by static analysis, using gcc -Wstrict-overflow
24277         (GCC 4.5.2, x86-64).  This reported an optimization that depended
24278         on an integer overflow having undefined behavior, but it turns out
24279         that the argument is a size, which might not fit in 'int' anyway,
24280
24281 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
24282
24283         stdio: don't require ignore_value around fwrite
24284
24285         This patch works around libc bug 11959
24286         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
24287         Without this patch, applications must often write
24288         ignore_value (fwrite (...)) even though the ignore_value is
24289         not helpful here.  It's common to write many objects, using
24290         fwrite/printf/etc., and then use ferror to detect output error.
24291
24292         I considered making this patch optional, but decided against it,
24293         because libc is obviously being inconsistent here: there is no
24294         reason libc should insist that user code must inspect fwrite
24295         return's value without also insisting that it inspect printf's,
24296         putchar's, etc.  If user code wants to have a strict style where
24297         all these functions' values are checked (so that ferror need not
24298         be checked), we could add support for that style in a new gnulib
24299         module, but in the meantime it's better to be consistent and to
24300         support common usage.
24301
24302         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
24303         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
24304         that we are compiling in checking mode, and if not C++, and
24305         if not already wrapping fwrite for some other reason.
24306         (fwrite): #define to rpl_fwrite if the latter is defined.
24307
24308 2011-03-20  Bruno Haible  <bruno@clisp.org>
24309
24310         verror: Fix compilation error introduced on 2011-02-13.
24311         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
24312         instead of __attribute__.
24313         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24314
24315 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
24316             Bruno Haible  <bruno@clisp.org>
24317
24318         socklen: do not depend on sys_socket
24319         While trying to modify Emacs to use gnulib's socklen module,
24320         I discovered a circular dependency: socklen depends on sys_socket
24321         and vice versa.  Emacs can use socklen, but it does not need
24322         sys_socket because it has its own substitute for sys/socket.h.
24323         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
24324         gl_TYPE_SOCKLEN_T.
24325         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
24326         gl_PREREQ_SYS_H_SOCKET.
24327         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
24328         gl_PREREQ_SYS_H_SOCKET.
24329         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
24330         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
24331         * modules/socklen (Depends-on): Do not depend on sys_socket.
24332         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
24333
24334 2011-03-20  Jim Meyering  <meyering@redhat.com>
24335
24336         maint.mk: sort file names *after* new transformation
24337         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
24338         prefix would have led to an unwarranted failure in GNU parted.
24339         Sort after that transformation.
24340
24341 2011-03-19  Jim Meyering  <meyering@redhat.com>
24342
24343         maint.mk: fix po-file syntax-check rule
24344         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
24345         Patch by Bruno Haible.
24346
24347 2011-03-19  Bruno Haible  <bruno@clisp.org>
24348
24349         socklen: Update comment.
24350         * m4/socklen.m4: Update comment about platforms.
24351
24352 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
24353             Bruno Haible  <bruno@clisp.org>
24354
24355         inet_ntop, inet_pton: Simplify.
24356         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
24357         documented to provide socklen_t and we already depend on sys_socket.
24358         * modules/inet_pton (Depends-on): Likewise.
24359         * lib/arpa_inet.in.h: Adjust comment.
24360
24361 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
24362             Bruno Haible  <bruno@clisp.org>
24363
24364         netdb: Simplify.
24365         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
24366         documented to provide socklen_t and we already depend on sys_socket.
24367         * lib/netdb.in.h: Adjust comment.
24368
24369 2011-03-19  Bruno Haible  <bruno@clisp.org>
24370
24371         sys_socket, netdb: Document problem with socklen_t.
24372         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
24373         platforms.
24374         * doc/posix-headers/netdb.texi: Likewise.
24375
24376 2011-03-18  Eric Blake  <eblake@redhat.com>
24377
24378         maint.mk: let po check work in VPATH build
24379         * top/maint.mk (po_file): Allow cfg.mk override.
24380         (sc_po_check): Allow VPATH use.
24381         Reported by Jiri Denemark.
24382
24383 2011-03-16  Jim Meyering  <meyering@redhat.com>
24384
24385         maint.mk: allow fine-grained syntax-check exclusion via Make variables
24386         Before, you would have had to create one .x-sc_ file per rule in order
24387         to exempt offending files.  Now, you may instead use a Make variable --
24388         usually defined in cfg.mk -- whose name identifies the affected rule.
24389         * top/maint.mk (_sc_excl): Define.
24390         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
24391         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
24392
24393 2011-03-13  Bruno Haible  <bruno@clisp.org>
24394
24395         ignore-value tests: Avoid warnings.
24396         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
24397         empty for gcc < 3.4.
24398
24399 2011-03-13  Bruno Haible  <bruno@clisp.org>
24400
24401         passfd: Fix link error on Solaris.
24402         * modules/passfd (Description): Correct.
24403         (Depends-on): Add socketlib.
24404         (Link): New section.
24405         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
24406
24407 2011-03-13  Bruno Haible  <bruno@clisp.org>
24408
24409         passfd: Fix link error on AIX 5.2.
24410         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
24411
24412 2011-03-13  Bruno Haible  <bruno@clisp.org>
24413
24414         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
24415         * lib/sys_socket.in.h: Include <stddef.h>.
24416         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
24417         CMSG_FIRSTHDR. Remove unused variable.
24418
24419 2011-03-13  Bruno Haible  <bruno@clisp.org>
24420
24421         passfd: Fix compilation error on OpenBSD.
24422         * lib/passfd.c: Include <sys/uio.h>.
24423
24424 2011-03-13  Bruno Haible  <bruno@clisp.org>
24425
24426         passfd test: Fix warnings.
24427         * tests/test-passfd.c: Include <sys/wait.h>.
24428         (main): Fix typo.
24429
24430 2011-03-13  Bruno Haible  <bruno@clisp.org>
24431
24432         passfd module, part 4, tweaks.
24433         * tests/test-passfd.c: Reorder includes.
24434         (main): Fix perror and printf calls.
24435
24436 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
24437
24438         passfd module, part 4.
24439         * modules/passfd-tests: New file.
24440         * tests/test-passfd.c: New file.
24441
24442 2011-03-13  Jim Meyering  <meyering@redhat.com>
24443
24444         Makefile: rely on GNU make; derive syntax-check rule names
24445         Rather than requiring that each sc_ rule be listed as a dependent
24446         of "check", use features of GNU make to derive the list.
24447         * Makefile (syntax-check-rules): Define.
24448         (check): Depend on the new variable, not the hard-coded list.
24449
24450 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
24451             Bruno Haible  <bruno@clisp.org>
24452
24453         passfd module, part 3.
24454         * lib/passfd.h (recvfd): Add a flags argument.
24455         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
24456         (recvfd): Add a flags argument.
24457         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
24458         exists.
24459         * modules/passfd (Depends-on): Add cloexec.
24460         Suggested by Eric Blake.
24461
24462 2011-03-13  Bruno Haible  <bruno@clisp.org>
24463
24464         passfd module, part 2, tweaks.
24465         * modules/passfd (Files): Reorder.
24466         (Depends-on): Remove errno.
24467         (Include): Remove <sys/socket.h>, <sys/un.h>.
24468         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
24469         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
24470         specification header. Include <sys/socket.h> always. Don't include
24471         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
24472         (sendfd): Clarify that it sets errno when it fails.
24473         (recvfd): Fix specification.
24474
24475 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
24476
24477         passfd module, part 2.
24478         * modules/passfd: New file.
24479         * lib/passfd.h: New file.
24480         * lib/passfd.c: New file.
24481
24482 2011-03-12  Bruno Haible  <bruno@clisp.org>
24483
24484         wcswidth, mbswidth: Avoid integer overflow.
24485         * lib/wcswidth.c: Include <limits.h>.
24486         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
24487         * lib/mbswidth.c: Include <limits.h>.
24488         (mbsnwidth): Avoid 'int' overflow.
24489         Reported by Jim Meyering.
24490
24491 2011-03-12  Bruno Haible  <bruno@clisp.org>
24492
24493         futimens, utimensat: Avoid endless recursion on Solaris 10.
24494         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
24495         Solaris.
24496         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
24497         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
24498
24499 2011-03-11  Jim Meyering  <meyering@redhat.com>
24500
24501         maint.mk: relax a regexp to accommodate other formatting styles
24502         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
24503         between "ngettext" and the following "(".
24504
24505 2011-03-11  Pádraig Brady <P@draigBrady.com>
24506
24507         maint.mk: suppress a false positive warning
24508         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
24509         diagnostics are marked with ngettext.
24510
24511 2011-03-10  Eric Blake  <eblake@redhat.com>
24512
24513         wchar: add explicit dependencies, for Tru64
24514         * modules/mbmemcasecoll (Depends-on): Add wchar.
24515         * modules/mbtowc (Depends-on): Likewise.
24516         * modules/vasnprintf (Depends-on): Likewise.
24517         * modules/unistdio/u-printf-args (Depends-on): Likewise.
24518         * modules/wctomb (Depends-on): Likewise.
24519         Reported by Peter O'Gorman.
24520
24521 2011-03-08  Bruno Haible  <bruno@clisp.org>
24522
24523         passfd module, part 1, tweaks.
24524         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
24525         Improve indentation. Improve AC_MSG_CHECKING messages.
24526         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
24527         gl_SOCKET_FAMILIES.
24528
24529 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
24530
24531         passfd module, part 1.
24532         * m4/afunix.m4: New file.
24533         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
24534         sockets.
24535
24536 2011-03-08  Bruno Haible  <bruno@clisp.org>
24537
24538         regex-quote: New API.
24539         * lib/regex-quote.h: Include <stdbool.h>.
24540         (struct regex_quote_spec): New type.
24541         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
24542         New declarations.
24543         (regex_quote_length, regex_quote_copy, regex_quote): Take a
24544         'const struct regex_quote_spec *' argument.
24545         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
24546         (pcre_special): New constant.
24547         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
24548         New functions.
24549         (regex_quote_length, regex_quote_copy, regex_quote): Take a
24550         'const struct regex_quote_spec *' argument.
24551         * modules/regex-quote (Depends-on): Add stdbool.
24552         * tests/test-regex-quote.c (check): Update for new API. Add test for
24553         anchored results.
24554         * NEWS: Mention the API change.
24555         Reported by Reuben Thomas and Eric Blake.
24556
24557 2011-03-06  Bruno Haible  <bruno@clisp.org>
24558
24559         regex-quote: Fix creation of POSIX extended regular expressions.
24560         * lib/regex-quote.c (ere_special): Add grouping and alternation
24561         operators.
24562
24563 2011-03-05  Bruno Haible  <bruno@clisp.org>
24564
24565         doc: Improve doc regarding autopoint vs. gnulib.
24566         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
24567         disable autopoint while running autoreconf.
24568         Suggested by Ralf Wildenhues.
24569
24570 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24571
24572         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
24573         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
24574
24575 2011-03-03  Bruce Korb  <bkorb@gnu.org>
24576
24577         parse-duration: remove xalloc.h dependency
24578         * lib/parse-duration.c (parse_period): handle NULL return from
24579         strdup instead of calling xstrdup().
24580         * modules/parse-duration: remove "xalloc" dependency
24581
24582 2011-03-03  Matthew Booth  <mbooth@redhat.com>
24583
24584         bootstrap: honor m4_base when running aclocal
24585         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
24586
24587 2011-03-02  Jim Meyering  <meyering@redhat.com>
24588
24589         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
24590         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
24591         on request from Matt Booth.
24592
24593 2011-03-01  Eric Blake  <eblake@redhat.com>
24594
24595         test-link: work on Hurd
24596         * tests/test-link.h (test_link): Hurd rejects linking directories
24597         with EISDIR instead of the POSIX-mandated EPERM.
24598
24599 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
24600
24601         stdio: simplify by moving files to printf-posix, sigpipe
24602         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
24603         since this symbol is needed only if printf is replaced.
24604         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
24605         Require gl_ASM_SYMBOL_PREFIX.
24606         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
24607         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
24608         (Depends-on): Add 'raise'.
24609         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
24610         * modules/stdio (Files): Remove lib/stdio-write.c,
24611         m4/asm-underscore.m4.
24612         (Depends-on): Remove 'raise'.
24613
24614         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
24615         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
24616         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
24617         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
24618
24619 2011-02-28  Bruno Haible  <bruno@clisp.org>
24620
24621         localcharset: Assume ANSI C behaviour of free().
24622         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
24623         calling free().
24624         Suggested by Simon Josefsson <simon@josefsson.org>.
24625
24626 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
24627             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
24628             Bruno Haible  <bruno@clisp.org>  (tiny change)
24629
24630         On Cygwin, use /proc file system instead of win32 API.
24631         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
24632         Win32 file names.
24633         (DllMain): Simplify by removing Cygwin specific code.
24634         (find_shared_library_fullname): Use Linux specific implementation also
24635         for Cygwin.
24636         (get_shared_library_fullname): Update accordingly.
24637         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
24638         Win32 file names.
24639         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
24640         Cygwin specific code.
24641
24642 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
24643             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
24644
24645         Fix OpenMP flag detection for various Fortran compilers.
24646         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
24647         OpenMP-conditional compilation construct, to force compile
24648         failure with missing OpenMP flag.
24649         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
24650
24651 2011-02-25  Eric Blake  <eblake@redhat.com>
24652
24653         strstr: expand test coverage
24654         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
24655         compilation.
24656         * tests/test-memmem.c (main): Duplicate tests.
24657         * tests/test-strcasestr.c (main): Likewise.
24658         * tests/test-c-strcasestr.c (main): Likewise.
24659
24660 2011-02-25  Jim Meyering  <meyering@redhat.com>
24661
24662         maint.mk: detect missing-NL-at-EOF, too
24663         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
24664         it also detects when a file lacks a newline at EOF.
24665         (require_exactly_one_NL_at_EOF_): Renamed from
24666         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
24667         since people may well have .x-sc_... file names tied to the
24668         existing name.  Suggested by Eric Blake.
24669
24670 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
24671
24672         dirname: move m4/dos.m4 functionality into lib/dosname.h
24673
24674         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
24675         extracts symbols from it, puts them into config.h; but it's much
24676         easier to use the symbols directly.  filename.h already does this,
24677         but it disagrees with dos.m4 in some respects.  This patch
24678         introduces a different include file dosname.h that packages up
24679         dos.m4, and then later we can work on merging filename.h and
24680         dosname.h.  Applications that need only the easy-to-configure
24681         symbols should consider including dosname.h rather than dirname.h.
24682         * NEWS: Mention incompatible changes.
24683         * m4/dos.m4: Remove.
24684         * lib/dosname.h, modules/dosname: New files.
24685         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
24686         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
24687         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
24688         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
24689         Include dosname.h, not dirname.h.
24690         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
24691         Include dosname.h, for definitions of symbols like ISSLASH
24692         that used to be in config.h.
24693         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
24694         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
24695         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
24696         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
24697         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
24698         * modules/rmdir (Files): Likewise.
24699         * modules/stat (Files): Likewise.
24700         * modules/unlink (Files): Likewise.
24701         * modules/dirname-lgpl (Depends-on): Add dosname.
24702         * modules/lstat (Depends-on): Likewise.
24703         * modules/openat (Depends-on): Likewise.
24704         * modules/rmdir (Depends-on): Likewise.
24705         * modules/savewd (Depends-on): Likewise.
24706         * modules/stat (Depends-on): Likewise.
24707         * modules/unlink (Depends-on): Likewise.
24708         * modules/openat (Depends-on): Remove dirname-lgpl.
24709         * modules/savewd (Depends-on): Likewise.
24710         * tests/test-dirname.c: Do not use removed symbols like
24711         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
24712         the remaining symbols, e.g., ISSLASH ('\\').
24713
24714 2011-02-25  Eric Blake  <eblake@redhat.com>
24715
24716         strstr: revert patches that introduced bug and pessimization
24717         * lib/str-two-way.h: Add another reference.
24718         (two_way_short_needle, two_way_long_needle): Revert changes from
24719         2011-02-24; they pessimize search speed.
24720         (critical_factorization): Partially revert changes from
24721         2010-06-22; they violate the requirement that the left half of the
24722         needle be smaller than the period of the needle.
24723
24724 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
24725
24726         filenamecat: remove unnecessary dependency on dirname-lgpl
24727         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
24728         is no direct dependency, just an indirect one via filenamecat-lgpl.
24729
24730         remove: remove unnecessary use of m4/dos.m4
24731         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
24732         * modules/remove (FILES): Remove m4/dos.m4.
24733
24734         * lib/openat-proc.c: Don't include dirname.h; not needed.
24735
24736         backupfile: remove unnecessary use of m4/dos.m4
24737         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
24738         of its symbols are used by the backupfile code.  backupfile.c does
24739         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
24740         for the rare case of programs that want all their backup file
24741         names to live within 8+3 limits, and dos.m4 doesn't address that.
24742         * modules/backupfile (Files): Remove m4/dos.m4.
24743
24744 2011-02-24  Jim Meyering  <meyering@redhat.com>
24745
24746         strstr: fix a bug whereby strstr would mistakenly return NULL
24747         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
24748         in period calculation.
24749         (two_way_long_needle): Likewise.
24750         The original problem was reported by Mike Stump in
24751         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
24752         Ralf Wildenhues provided the short needle and haystack.
24753         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
24754         Add a more involved test to trigger the bug in two_way_long_needle.
24755
24756 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
24757
24758         gnulib-tool: remove use of bold display in help screen
24759         * gnulib-tool (func_usage): Do not use bold display anymore in the
24760         help screen.  That was just meant to be a temporary emphasis for a
24761         backward-incompatible change.
24762
24763 2011-02-23  Bruno Haible  <bruno@clisp.org>
24764
24765         Fix misindentation of preprocessor directives.
24766         * lib/argp-namefrob.h: Reindent preprocessor directives.
24767         * lib/getopt_int.h (struct _getopt_data): Likewise.
24768         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
24769         * lib/vasnprintf.c (decode_long_double): Likewise.
24770         * tests/test-argmatch.c: Insert blank lines, for clarity.
24771         * tests/test-exclude.c: Likewise.
24772
24773 2011-02-22  Bruno Haible  <bruno@clisp.org>
24774
24775         ioctl: Fix for MacOS X in 64-bit mode.
24776         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
24777         value.
24778         Suggested by Eric Blake.
24779         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
24780
24781 2011-02-22  Jim Meyering  <meyering@redhat.com>
24782
24783         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
24784         * Makefile (sc_cpp_indent_check): Don't limit the check to files
24785         in lib/.
24786
24787 2011-02-22  Eric Blake  <eblake@redhat.com>
24788
24789         maint: avoid any CDPATH issue
24790         * Makefile (sc_cpp_indent_check): Anchor cd argument.
24791
24792         maint: adjust cpp indentation for my modules, as well
24793         * Makefile (sc_cpp_indent_check): Add my name.
24794         * lib/fbufmode.c: Filter through cppi.
24795         * lib/fpurge.c: Likewise.
24796         * lib/freadable.c: Likewise.
24797         * lib/freading.c: Likewise.
24798         * lib/fwritable.c: Likewise.
24799         * lib/fwriting.c: Likewise.
24800         * lib/sigaction.c: Likewise.
24801
24802 2011-02-22  Jim Meyering  <meyering@redhat.com>
24803
24804         maint: adjust cpp indentation to reflect nesting depth
24805         I.e., in a block of code that begins with an unnested "#if",
24806         put one space between the "#" in column 1 and following token.
24807         For example,
24808         -#include <sys/vfs.h>
24809         +# include <sys/vfs.h>
24810         Do this only in .c files that are part of a module I maintain.
24811         * lib/linkat.c: Filter through cppi.
24812         * lib/nanosleep.c: Likewise.
24813         * lib/openat.c: Likewise.
24814         * lib/openat-die.c: Likewise.
24815         * lib/dup3.c: Likewise.
24816         * lib/fchownat.c: Likewise.
24817         * lib/flock.c: Likewise.
24818         * lib/fsync.c: Likewise.
24819         * lib/fts.c: Likewise.
24820         * lib/getpass.c: Likewise.
24821         * lib/gettimeofday.c: Likewise.
24822         * lib/userspec.c: Likewise.
24823         * Makefile (sc_cpp_indent_check): New rule, to check this.
24824
24825 2011-02-22  Bruno Haible  <bruno@clisp.org>
24826
24827         New module 'wctomb'.
24828         * lib/stdlib.in.h (wctomb): New declaration.
24829         * lib/wctomb.c: New file.
24830         * lib/wctomb-impl.h: New file.
24831         * m4/wctomb.m4: New file.
24832         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
24833         REPLACE_WCTOMB.
24834         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
24835         REPLACE_WCTOMB.
24836         * modules/wctomb: New file.
24837         * tests/test-stdlib-c++.cc: Test signature of wctomb.
24838         * doc/posix-functions/wctomb.texi: Mention the new module.
24839         * modules/wctob (Depends-on): Add wctomb.
24840
24841 2011-02-22  Bruno Haible  <bruno@clisp.org>
24842
24843         New module 'mbtowc'.
24844         * lib/stdlib.in.h (mbtowc): New declaration.
24845         * lib/mbtowc.c: New file.
24846         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
24847         * m4/mbtowc.m4: New file.
24848         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
24849         REPLACE_MBTOWC.
24850         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
24851         REPLACE_MBTOWC.
24852         * modules/mbtowc: New file.
24853         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
24854         * doc/posix-functions/mbtowc.texi: Mention the new module.
24855         * modules/btowc (Depends-on): Add mbtowc.
24856
24857 2011-02-22  Bruno Haible  <bruno@clisp.org>
24858
24859         wcrtomb: Add more tests for native Windows platforms.
24860         * tests/test-wcrtomb-w32-1.sh: New file.
24861         * tests/test-wcrtomb-w32-2.sh: New file.
24862         * tests/test-wcrtomb-w32-3.sh: New file.
24863         * tests/test-wcrtomb-w32-4.sh: New file.
24864         * tests/test-wcrtomb-w32-5.sh: New file.
24865         * tests/test-wcrtomb-w32.c: New file.
24866         * modules/wcrtomb-tests (Files): Add them.
24867         (Makefile.am): Arrange to run these tests.
24868         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
24869         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
24870
24871 2011-02-20  Bruno Haible  <bruno@clisp.org>
24872
24873         wcrtomb: Enhance test.
24874         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
24875
24876 2011-02-20  Bruno Haible  <bruno@clisp.org>
24877
24878         mbrtowc: Tiny optimization.
24879         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
24880
24881 2011-02-20  Jim Meyering  <meyering@redhat.com>
24882
24883         test-exclude.c: remove unmatched #endif
24884         * tests/test-exclude.c: Remove stray #endif, left over from
24885         the change of a week ago.
24886
24887 2011-02-19  Jim Meyering  <meyering@redhat.com>
24888
24889         git-version-gen: skip "-dirty" check when appropriate
24890         * build-aux/git-version-gen: Don't run any git commands when the
24891         version string comes from .tarball-version.  Prior to this, we
24892         would run git update-index --refresh even from a just-unpacked
24893         tarball directory, and that could affect a .git/ directory in a
24894         parent of the build directory.  Reported by Mike Frysinger.
24895
24896 2011-02-19  Bruno Haible  <bruno@clisp.org>
24897
24898         unictype/property-byname: Reduce the size of the 'data' segment.
24899         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
24900
24901 2011-02-19  Bruno Haible  <bruno@clisp.org>
24902
24903         unictype/scripts: Reduce the size of the 'data' segment.
24904         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
24905         '%pic'.
24906         * lib/unictype/scripts_byname.gperf: Regenerated.
24907
24908 2011-02-19  Bruno Haible  <bruno@clisp.org>
24909
24910         stdint: Update documentation.
24911         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
24912
24913 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
24914
24915         stdint: omit redundant check for wchar.h
24916         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
24917         always tests whether wchar.h exists, so remove the now-redundant test.
24918
24919 2011-02-18  Bruno Haible  <bruno@clisp.org>
24920
24921         stdint: Cut dependency to module 'wchar'.
24922         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
24923         include the necessary prerequisites.
24924         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
24925         * modules/stdint (Depends-on): Remove wchar.
24926         (Makefile.am): Substitute HAVE_WCHAR_H.
24927         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
24928
24929 2011-02-18  Eric Blake  <eblake@redhat.com>
24930
24931         longlong: skip, rather than fail, on cross-compilation
24932         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
24933         when cross-compiling; regression from 2011-02-16.
24934
24935 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
24936
24937         * NEWS: Mention 2011-02-08 change to stdlib.
24938
24939 2011-02-17  Bruno Haible  <bruno@clisp.org>
24940
24941         getloadavg: Add comments about platforms.
24942         * m4/getloadavg.m4: Add comment.
24943         * lib/getloadavg.c: Likewise.
24944
24945 2011-02-17  Bruno Haible  <bruno@clisp.org>
24946
24947         getloadavg: Fix link error on Solaris 2.6.
24948         * modules/getloadavg (Link): New section.
24949         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
24950         linking test-getloadavg.
24951         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
24952         getloadavg.
24953
24954 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
24955
24956         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
24957         It was 'int', but this doesn't match the IRIX 6.5 manual.
24958         Suggested by Bruno Haible in
24959         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
24960
24961 2011-02-17  Bruno Haible  <bruno@clisp.org>
24962
24963         havelib: Fix comments.
24964         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
24965         change.
24966
24967 2011-02-17  Bruno Haible  <bruno@clisp.org>
24968
24969         havelib: Update config.rpath.
24970         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
24971
24972 2011-02-17  Bruno Haible  <bruno@clisp.org>
24973
24974         getloadavg test: Add some plausibility checks.
24975         * tests/test-getloadavg.c (check_avg): Print a warning when the value
24976         is improbable.
24977
24978 2011-02-16  Eric Blake  <eblake@redhat.com>
24979
24980         maintainer-makefile: make syntax-check a no-op from tarballs
24981         * top/maint.mk (no-vc-detected): New rule.
24982         (local-checks-available): Use it to avoid hanging if someone tries
24983         'make syntax-check' from a tarball.  Also append to any non-syntax
24984         checks already defined in cfg.mk.
24985
24986 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
24987
24988         longlong: tune, particularly for common case of c99
24989
24990         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
24991         or running anything if c99, or if unsigned long long int does not
24992         work.  In either case, we know the answer without further tests.
24993         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
24994         it at most once, and use its results for both long long int and
24995         unsigned long long int.  This is more likely to be efficient in
24996         the common case where the program wants to check for both long
24997         long int and unsigned long long int.
24998         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
24999         since the answer is already known.
25000
25001 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
25002
25003         getloadavg: set errno
25004         * lib/getloadavg.c: Set errno when returning -1.  If no other
25005         error number looks appropriate, set it to ENOSYS if the getloadavg
25006         looks like it can't possibly ever work, ENOTSUP otherwise.
25007         Suggested by Bruno Haible in
25008         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
25009
25010         getloadavg: trim unused parts and speed up 'configure'
25011         * NEWS: Document this.
25012         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
25013         always compiled if getloadavg is absent.
25014         Move test code to ...
25015         * tests/test-getloadavg.c: New file, containing previous
25016         contents of test from lib/getloadavg.c.  It also contains
25017         suggestions by Bruno Haible in
25018         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
25019         * modules/getloadavg-tests: New file.
25020         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
25021         Do tests in the same order as they're needed for getloadavg.c.
25022         Omit setgid-related tests that generate symbols KMEM_GROUP,
25023         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
25024         Do only the tests that are needed to see whether the system has
25025         getloadavg, moving the other tests into ...
25026         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
25027         NLIST_NAME_UNION; nobody should be using it.  Do not define
25028         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
25029         relevant, as the user of this module shouldn't care how getloadavg
25030         is implemented.
25031
25032         getloadavg: omit unused var
25033         * lib/getloadavg.c (getloadavg): Omit unused local variable.
25034
25035 2011-02-15  Jim Meyering  <meyering@redhat.com>
25036
25037         doc: update users.txt
25038         * users.txt: Update iwhd's URL.
25039
25040 2011-02-13  Bruno Haible  <bruno@clisp.org>
25041
25042         Consistent macro naming for macros that use GCC __attribute__.
25043         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
25044         _ATTRIBUTE_NONNULL_.
25045         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
25046         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
25047         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
25048         ATTRIBUTE_DEPRECATED.
25049         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
25050         ATTRIBUTE_NORETURN.
25051         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
25052         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
25053         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
25054         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
25055         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
25056         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
25057         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
25058         ATTRIBUTE_SENTINEL.
25059         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
25060         ATTRIBUTE_RETURN_CHECK.
25061         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
25062         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
25063         ATTRIBUTE_NORETURN.
25064         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
25065         Reported by Paul Eggert.
25066
25067 2011-02-13  Bruno Haible  <bruno@clisp.org>
25068
25069         Don't interfere with a program's definition of __attribute__.
25070         * lib/argp.h (__attribute__): Remove definition.
25071         (_GL_ATTRIBUTE_FORMAT): New macro.
25072         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
25073         * lib/argp-fmtstream.h (__attribute__): Remove definition.
25074         (_GL_ATTRIBUTE_FORMAT): New macro.
25075         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
25076         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
25077         GCC 3 or newer.
25078         * lib/error.h (__attribute__): Remove definition.
25079         (_GL_ATTRIBUTE_FORMAT): New macro.
25080         (error, error_at_line): Use it.
25081         * lib/hash.h (__attribute__): Remove definition.
25082         (ATTRIBUTE_WUR): Update definition. Define always.
25083         * lib/openat.h (__attribute__): Remove definition.
25084         (ATTRIBUTE_NORETURN): Update definition. Define always.
25085         * lib/sigpipe-die.h (__attribute__): Remove definition.
25086         (ATTRIBUTE_NORETURN): Update definition. Define always.
25087         * lib/vasnprintf.h (__attribute__): Remove definition.
25088         (_GL_ATTRIBUTE_FORMAT): New macro.
25089         (asnprintf, vasnprintf): Use it.
25090         * lib/xalloc.h (__attribute__): Remove definition.
25091         (ATTRIBUTE_NORETURN): Update definition. Define always.
25092         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
25093         * lib/xmemdup0.h (__attribute__): Remove definition.
25094         (ATTRIBUTE_NORETURN): Update definition. Define always.
25095         * lib/xprintf.h (__attribute__): Remove definition.
25096         (_GL_ATTRIBUTE_FORMAT): New macro.
25097         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
25098         * lib/xstrtol.h (__attribute__): Remove definition.
25099         (ATTRIBUTE_NORETURN): Update definition. Define always.
25100         * lib/xvasprintf.h (__attribute__): Remove definition.
25101         (_GL_ATTRIBUTE_FORMAT): New macro.
25102         (xasprintf, xvasprintf): Use it.
25103         * tests/test-argmatch.c (__attribute__): Remove definition.
25104         (ATTRIBUTE_NORETURN): Update definition. Define always.
25105         * tests/test-exclude.c (__attribute__): Remove definition.
25106         (ATTRIBUTE_NORETURN): Update definition. Define always.
25107         Reported by Paul Eggert.
25108
25109 2011-02-13  Bruno Haible  <bruno@clisp.org>
25110
25111         mbrtowc: Add more tests for native Windows platforms.
25112         * tests/test-mbrtowc-w32-1.sh: New file.
25113         * tests/test-mbrtowc-w32-2.sh: New file.
25114         * tests/test-mbrtowc-w32-3.sh: New file.
25115         * tests/test-mbrtowc-w32-4.sh: New file.
25116         * tests/test-mbrtowc-w32-5.sh: New file.
25117         * tests/test-mbrtowc-w32.c: New file.
25118         * modules/mbrtowc-tests (Files): Add them.
25119         (Makefile.am): Arrange to run these tests.
25120         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
25121         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
25122
25123 2011-02-13  Bruno Haible  <bruno@clisp.org>
25124
25125         mbrtowc: Work around native Windows bug.
25126         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
25127         guess when no suitable locale for testing was found.
25128         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
25129
25130 2011-02-13  Bruno Haible  <bruno@clisp.org>
25131
25132         mbsinit: Work around mingw bug.
25133         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
25134         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
25135         Windows.
25136         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
25137
25138 2011-02-13  Bruno Haible  <bruno@clisp.org>
25139
25140         mbsinit: Don't crash for a NULL argument.
25141         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
25142         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
25143
25144 2011-02-13  Bruno Haible  <bruno@clisp.org>
25145
25146         Don't interfere with a program's definition of __attribute__.
25147         * lib/stdio.in.h (__attribute__): Remove definition.
25148         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
25149         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
25150         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
25151         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
25152         * lib/string.in.h (__attribute__): Remove definition.
25153         Reported by Paul Eggert.
25154
25155 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
25156
25157         stdlib: don't get in the way of non-GCC __attribute__
25158         See thread starting at
25159         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
25160         Revert previous stdlib change, installing the following instead:
25161         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
25162         to get in the way of a non-GCC compiler that supports __attribute__.
25163         (_GL_ATTRIBUTE_RETURN): New macro.
25164         (_Exit): Use it instead of __attribute__.
25165
25166 2011-02-12  Bruno Haible  <bruno@clisp.org>
25167
25168         quotearg test: Avoid test failure on mingw.
25169         * tests/test-quotearg.sh: Convert the locale identifier from native
25170         Windows syntax to Unix syntax.
25171
25172 2011-02-12  Bruno Haible  <bruno@clisp.org>
25173
25174         setlocale: Prefer gnulib's override over libintl's override.
25175         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
25176         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
25177         GNULIB_defined_setlocale is set.
25178
25179 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
25180
25181         stdlib: support non-GCC __attribute__
25182
25183         Fix a serious and tricky problem encountered when attempting to
25184         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
25185         5.5, but it crashed due to memory corruption on Solaris 10 with
25186         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
25187         bits that are otherwise zero.  This tagging is optional inside
25188         Emacs but is preferred and is used when __attribute__ ((__aligned
25189         (8))) works, as it does with both recent-enough GCC and with Sun C
25190         5.11.  However, Sun C 5.11 is not GCC and does not #define
25191         __GNUC__ and __GNUC_MINOR__.
25192
25193         When I added the getloadavg module to Emacs, it brought in
25194         stdlib.in.h, which contained this fragment:
25195
25196            #ifndef __attribute__
25197            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
25198            #  define __attribute__(Spec)   /* empty */
25199            # endif
25200            #endif
25201
25202         When files that include <stdlib.h> were compiled with Sun C 5.11,
25203         the above code disabled __attribute__ ((__aligned (8))), which
25204         caused variables to not be properly aligned, which eventually led
25205         to the pointer corruption mentioned above.  (This was a bit hard
25206         to diagnose, unfortunately.)
25207
25208         Several "#define __attribute__(X) /* empty */" code snippets need
25209         to be eradicated from Gnulib to work with non-GCC compilers that
25210         support __attribute__.  The Autoconf way to do this is to test for
25211         each kind of attribute that we want support for, and selectively
25212         enable that in source code.
25213
25214         Fix this problem just for stdlib.h, by adding a test for the
25215         __noreturn__ attribute, and change stdlib.in.h to use that test
25216         when needed.  This technique can be easily generalized to the
25217         other *.in.h files and attributes, and a similar technique can be
25218         used for *.h and *.c files.  This patch is enough to solve the
25219         problem for Emacs + getloadavg, and I thought I'd publish it for
25220         feedback before undertaking further, similar fixes in other
25221         modules.
25222
25223         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
25224         because it's not needed for stdlib.h.  It merely substitutes the
25225         value directly into stdlib.h.  We may well need to #define it, or
25226         similar symbols, for other modules, but it's nice to also have an
25227         option to not #define it for applications like Emacs that do not
25228         need it.
25229
25230         * lib/stdlib.in.h (__attribute__): Do not #define.
25231         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
25232         be defined only if the _Exit module is also used.
25233         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
25234         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
25235         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
25236         platforms.
25237         * modules/_Exit (Files): Add m4/attribute.m4.
25238         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
25239         * m4/attribute.m4: New file.
25240
25241 2011-02-12  Bruno Haible  <bruno@clisp.org>
25242
25243         wcsrtombs: Work around bug on native Windows.
25244         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
25245         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
25246         instead of len.
25247         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
25248
25249 2011-02-12  Bruno Haible  <bruno@clisp.org>
25250
25251         mbsrtowcs: Work around bug on native Windows.
25252         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
25253         against mingw bug.
25254         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
25255
25256 2011-02-12  Bruno Haible  <bruno@clisp.org>
25257
25258         Avoid setlocale bugs in tests.
25259         * modules/btowc (Dependencies): Add setlocale.
25260         * modules/c-strcase (Dependencies): Likewise.
25261         * modules/mbmemcasecmp (Dependencies): Likewise.
25262         * modules/mbmemcasecoll (Dependencies): Likewise.
25263         * modules/mbrtowc (Dependencies): Likewise.
25264         * modules/mbscasecmp (Dependencies): Likewise.
25265         * modules/mbscasestr (Dependencies): Likewise.
25266         * modules/mbschr (Dependencies): Likewise.
25267         * modules/mbscspn (Dependencies): Likewise.
25268         * modules/mbsinit (Dependencies): Likewise.
25269         * modules/mbsncasecmp (Dependencies): Likewise.
25270         * modules/mbsnrtowcs (Dependencies): Likewise.
25271         * modules/mbspbrk (Dependencies): Likewise.
25272         * modules/mbspcasecmp (Dependencies): Likewise.
25273         * modules/mbsrchr (Dependencies): Likewise.
25274         * modules/mbsrtowcs (Dependencies): Likewise.
25275         * modules/mbsspn (Dependencies): Likewise.
25276         * modules/mbsstr (Dependencies): Likewise.
25277         * modules/nl_langinfo (Dependencies): Likewise.
25278         * modules/quotearg (Dependencies): Likewise.
25279         * modules/unicase/locale-language (Dependencies): Likewise.
25280         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
25281         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
25282         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
25283         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
25284         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
25285         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
25286         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
25287         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
25288         * modules/vasnprintf-posix (Dependencies): Likewise.
25289         * modules/wcrtomb (Dependencies): Likewise.
25290         * modules/wcsnrtombs (Dependencies): Likewise.
25291         * modules/wcsrtombs (Dependencies): Likewise.
25292
25293 2011-02-12  Bruno Haible  <bruno@clisp.org>
25294
25295         setlocale: Workaround native Windows bug.
25296         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
25297         succeeds but sets LC_CTYPE to "C", report a failure.
25298         * tests/test-setlocale2.sh: New file.
25299         * tests/test-setlocale2.c: New file.
25300         * modules/setlocale-tests (Files): Add the new files.
25301         (Makefile.am): Enable test-setlocale2.sh test.
25302         * doc/posix-functions/setlocale.texi: Mention workaround.
25303
25304 2011-02-11  Bruno Haible  <bruno@clisp.org>
25305
25306         Tests for module 'setlocale'.
25307         * modules/setlocale-tests: New file.
25308         * tests/test-setlocale1.sh: New file.
25309         * tests/test-setlocale1.c: New file.
25310
25311         New module 'setlocale'.
25312         * lib/locale.in.h (setlocale): New declaration.
25313         * lib/setlocale.c: New file, based on
25314         gettext/gettext-runtime/intl/setlocale.c.
25315         * m4/setlocale.m4: New file.
25316         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
25317         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
25318         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
25319         REPLACE_SETLOCALE.
25320         * modules/setlocale: New file.
25321         * tests/test-locale-c++.cc: Test the declaration of setlocale.
25322         * doc/posix-functions/setlocale.texi: Mention the new module.
25323
25324 2011-02-11  Bruno Haible  <bruno@clisp.org>
25325
25326         Prepare for locale dependent tests on mingw.
25327         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
25328         because it has the wrong locale encoding.
25329         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
25330         French_France.1252 instead of "fr".
25331         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
25332         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
25333         because it has the wrong locale encoding.
25334         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
25335         native Windows, try Turkish_Turkey.65001.
25336         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
25337         Chinese_China.54936.
25338
25339         Prepare for locale dependent tests on mingw.
25340         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
25341         differently.
25342         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
25343         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
25344         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
25345         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
25346
25347 2011-02-11  Eric Blake  <eblake@redhat.com>
25348
25349         strptime: avoid compiler warnings
25350         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
25351         compiler warnings about dead code.
25352         Reported by Daniel P. Berrange.
25353
25354 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
25355
25356         doc: update users.txt
25357         * users.txt: Add rcs.
25358
25359 2011-02-10  John W. Eaton  <jwe@gnu.org>
25360
25361         doc: update users.txt
25362         * users.txt: Add octave.
25363
25364 2011-02-10  Jim Meyering  <meyering@redhat.com>
25365
25366         doc: update users.txt
25367         * users.txt: Add iwhd.
25368
25369 2011-02-09  Bruno Haible  <bruno@clisp.org>
25370
25371         gnulib-tool: Make copyright notice adjustment more robust.
25372         * gnulib-tool (func_import): In sed_transform_main_lib_file,
25373         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
25374         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
25375         License".
25376         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
25377
25378 2011-02-06  Bruno Haible  <bruno@clisp.org>
25379
25380         New module 'towctrans'.
25381         * modules/towctrans: New file.
25382         * lib/wctype.in.h (towctrans): New declaration.
25383         * lib/towctrans.c: New file.
25384         * lib/towctrans-impl.h: New file.
25385         * m4/towctrans.m4: New file.
25386         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
25387         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
25388         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
25389         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
25390         * doc/posix-functions/towctrans.texi: Mention the new module.
25391
25392 2011-02-06  Bruno Haible  <bruno@clisp.org>
25393
25394         New module 'wctrans'.
25395         * modules/wctrans: New file.
25396         * lib/wctype.in.h (wctrans): New declaration.
25397         * lib/wctrans.c: New file.
25398         * lib/wctrans-impl.h: New file.
25399         * m4/wctrans.m4: New file.
25400         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
25401         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
25402         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
25403         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
25404         * doc/posix-functions/wctrans.texi: Mention the new module.
25405
25406 2011-02-06  Bruno Haible  <bruno@clisp.org>
25407
25408         New module 'iswctype'.
25409         * modules/iswctype: New file.
25410         * lib/wctype.in.h (iswctype): New declaration.
25411         * lib/iswctype.c: New file.
25412         * lib/iswctype-impl.h: New file.
25413         * m4/iswctype.m4: New file.
25414         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
25415         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
25416         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
25417         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
25418         * doc/posix-functions/iswctype.texi: Mention the new module and the
25419         HP-UX 11.00 problem.
25420
25421 2011-02-06  Bruno Haible  <bruno@clisp.org>
25422
25423         New module 'wctype'.
25424         * modules/wctype: Change to represent the wctype() substitute.
25425         * lib/wctype.in.h (wctype): New declaration.
25426         * lib/wctype.c: New file.
25427         * lib/wctype-impl.h: New file.
25428         * m4/wctype.m4: New file.
25429         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
25430         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
25431         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
25432         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
25433         * doc/posix-functions/wctype.texi: Mention the new module and the
25434         HP-UX 11.00 problem.
25435
25436 2011-02-06  Bruno Haible  <bruno@clisp.org>
25437
25438         wctype-h: Ensure wctype_t and wctrans_t are defined.
25439         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
25440         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
25441         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
25442         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
25443         HAVE_WCTRANS_T.
25444         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
25445
25446 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
25447
25448         flock: fix license typo
25449
25450         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
25451         omitted.
25452
25453 2011-02-08  Bruno Haible  <bruno@clisp.org>
25454
25455         Split large sed scripts, for HP-UX sed.
25456         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
25457         to avoid HP-UX limit of 99 commands, in the near future.
25458         * modules/stdlib (Makefile.am): Likewise.
25459         * modules/unistd (Makefile.am): Likewise.
25460         * modules/wchar (Makefile.am): Likewise.
25461         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
25462         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
25463         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
25464
25465 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
25466             Bruno Haible  <bruno@clisp.org>
25467
25468         stdlib: improve random_r modularization
25469         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
25470         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
25471         you also need the random_r module to get this material right.
25472         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
25473         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
25474         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
25475
25476 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
25477
25478         stdlib: don't depend on stdint
25479         * lib/stdlib.in.h: Don't include <stdint.h> merely because
25480         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
25481         be independent of whether stdint.h is needed.
25482         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
25483         here, instead of ...
25484         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
25485         struct random_data should be using the random_r module, not just
25486         the stdlib module (which wouldn't make sense: what package needs
25487         just struct random_data without also needing random_r?).
25488         * modules/stdlib (Depends-on): Remove stdint.
25489
25490         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
25491         See the thread rooted at
25492         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
25493         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
25494         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
25495         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
25496         __VMS)); previously it was always included (via fcntl--.h).
25497         (getloadavg): Do not use c_strtod.  Instead, approximate it by
25498         hand; this is good enough for load averages.  Also, do not use
25499         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
25500         flags directly if available and don't bother otherwise.  (Packages
25501         that need the extra reliability should use the modules that define
25502         these flags on older platforms that lack them.)
25503         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
25504         fcntl-safer.
25505
25506 2011-02-08  Jim Meyering  <meyering@redhat.com>
25507
25508         di-set.h, ino-map.h: add multiple-inclusion guard
25509         Technically, the guard is required only for ino-map.h, due to its
25510         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
25511         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
25512         * lib/ino-map.h: Likewise.
25513
25514 2011-02-06  Bruno Haible  <bruno@clisp.org>
25515
25516         iswblank: Ensure declaration on glibc systems.
25517         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
25518         * modules/iswblank (Dependencies): Add 'extensions'.
25519         * doc/posix-functions/iswblank.texi: Document the glibc problem.
25520
25521 2011-02-06  Bruno Haible  <bruno@clisp.org>
25522
25523         New module 'iswblank'.
25524         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
25525         * modules/iswblank: New file.
25526         * modules/wctype-h (Files): Remove lib/iswblank.c.
25527         (Makefile.am): Substitute GNULIB_ISWBLANK.
25528         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
25529         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
25530         (gl_WCTYPE_H_DEFAULTS): New macro.
25531         (gl_WCTYPE_H): Require it. Remove iswblank related code.
25532         * modules/iswblank-tests: New file.
25533         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
25534         * tests/test-wctype-h.c (main): Remove iswblank tests.
25535         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
25536         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
25537         of 'wctype-h'.
25538         * NEWS: Mention the change.
25539         * modules/mbchar (Depends-on): Add iswblank.
25540
25541 2011-02-08  Bruno Haible  <bruno@clisp.org>
25542
25543         di-set tests: Refactor.
25544         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
25545         unnecessary includes.
25546         (ASSERT): Remove macro.
25547         (main): Make C90 compliant by avoiding variable declaration after
25548         statement.
25549         * modules/di-set-tests (Files): Add tests/macros.h.
25550
25551 2011-02-08  Bruno Haible  <bruno@clisp.org>
25552
25553         ino-map tests: Refactor.
25554         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
25555         unnecessary includes.
25556         (ASSERT): Remove macro.
25557         (main): Make C90 compliant by avoiding variable declaration after
25558         statement.
25559         * modules/ino-map-tests (Files): Add tests/macros.h.
25560
25561 2011-02-08  Jim Meyering  <meyering@redhat.com>
25562
25563         di-set: add "const" to a cast
25564         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
25565         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
25566
25567 2011-02-06  Bruno Haible  <bruno@clisp.org>
25568
25569         Rename module 'wctype' to 'wctype-h'.
25570         * modules/wctype-h: Renamed from modules/wctype.
25571         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
25572         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
25573         (Files, Depends-on, Makefile.am): Update.
25574         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
25575         (Files, Makefile.am): Update.
25576         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
25577         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
25578         * doc/posix-headers/wctype.texi: Update.
25579         * doc/posix-functions/iswalnum.texi: Update.
25580         * doc/posix-functions/iswalpha.texi: Update.
25581         * doc/posix-functions/iswblank.texi: Update.
25582         * doc/posix-functions/iswcntrl.texi: Update.
25583         * doc/posix-functions/iswdigit.texi: Update.
25584         * doc/posix-functions/iswgraph.texi: Update.
25585         * doc/posix-functions/iswlower.texi: Update.
25586         * doc/posix-functions/iswprint.texi: Update.
25587         * doc/posix-functions/iswpunct.texi: Update.
25588         * doc/posix-functions/iswspace.texi: Update.
25589         * doc/posix-functions/iswupper.texi: Update.
25590         * doc/posix-functions/iswxdigit.texi: Update.
25591         * doc/posix-functions/towlower.texi: Update.
25592         * doc/posix-functions/towupper.texi: Update.
25593         * NEWS: Mention the change.
25594         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
25595         * modules/mbchar (Dependencies): Likewise.
25596         * modules/mbswidth (Dependencies): Likewise.
25597         * modules/quotearg (Dependencies): Likewise.
25598         * modules/regex (Dependencies): Likewise.
25599         * modules/wcscasecmp (Dependencies): Likewise.
25600         * modules/wcsncasecmp (Dependencies): Likewise.
25601         * modules/wcwidth (Dependencies): Likewise.
25602
25603 2011-02-06  Bruno Haible  <bruno@clisp.org>
25604
25605         New module 'wcswidth'.
25606         * modules/wcswidth: New file.
25607         * lib/wchar.in.h (wcswidth): New declaration.
25608         * lib/wcswidth.c: New file.
25609         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
25610         * m4/wcswidth.m4: New file.
25611         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
25612         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
25613         REPLACE_WCSWIDTH.
25614         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
25615         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
25616         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
25617         * doc/posix-functions/wcswidth.texi: Mention the new module.
25618
25619 2011-02-06  Bruno Haible  <bruno@clisp.org>
25620
25621         New module 'wcstok'.
25622         * modules/wcstok: New file.
25623         * lib/wchar.in.h (wcstok): New declaration.
25624         * lib/wcstok.c: New file.
25625         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
25626         * m4/wcstok.m4: New file.
25627         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
25628         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
25629         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
25630         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
25631         * doc/posix-functions/wcstok.texi: Mention the new module.
25632
25633 2011-02-06  Bruno Haible  <bruno@clisp.org>
25634
25635         New module 'wcsstr'.
25636         * modules/wcsstr: New file.
25637         * lib/wchar.in.h (wcsstr): New declaration.
25638         * lib/wcsstr.c: New file.
25639         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
25640         * m4/wcsstr.m4: New file.
25641         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
25642         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
25643         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
25644         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
25645         * doc/posix-functions/wcsstr.texi: Mention the new module.
25646
25647 2011-02-06  Bruno Haible  <bruno@clisp.org>
25648
25649         New module 'wcspbrk'.
25650         * modules/wcspbrk: New file.
25651         * lib/wchar.in.h (wcspbrk): New declaration.
25652         * lib/wcspbrk.c: New file.
25653         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
25654         * m4/wcspbrk.m4: New file.
25655         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
25656         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
25657         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
25658         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
25659         * doc/posix-functions/wcspbrk.texi: Mention the new module.
25660
25661 2011-02-06  Bruno Haible  <bruno@clisp.org>
25662
25663         New module 'wcsspn'.
25664         * modules/wcsspn: New file.
25665         * lib/wchar.in.h (wcsspn): New declaration.
25666         * lib/wcsspn.c: New file.
25667         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
25668         * m4/wcsspn.m4: New file.
25669         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
25670         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
25671         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
25672         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
25673         * doc/posix-functions/wcsspn.texi: Mention the new module.
25674
25675 2011-02-06  Bruno Haible  <bruno@clisp.org>
25676
25677         New module 'wcscspn'.
25678         * modules/wcscspn: New file.
25679         * lib/wchar.in.h (wcscspn): New declaration.
25680         * lib/wcscspn.c: New file.
25681         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
25682         * m4/wcscspn.m4: New file.
25683         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
25684         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
25685         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
25686         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
25687         * doc/posix-functions/wcscspn.texi: Mention the new module.
25688
25689 2011-02-06  Bruno Haible  <bruno@clisp.org>
25690
25691         New module 'wcsrchr'.
25692         * modules/wcsrchr: New file.
25693         * lib/wchar.in.h (wcsrchr): New declaration.
25694         * lib/wcsrchr.c: New file.
25695         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
25696         * m4/wcsrchr.m4: New file.
25697         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
25698         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
25699         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
25700         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
25701         * doc/posix-functions/wcsrchr.texi: Mention the new module.
25702
25703 2011-02-06  Bruno Haible  <bruno@clisp.org>
25704
25705         New module 'wcschr'.
25706         * modules/wcschr: New file.
25707         * lib/wchar.in.h (wcschr): New declaration.
25708         * lib/wcschr.c: New file.
25709         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
25710         * m4/wcschr.m4: New file.
25711         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
25712         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
25713         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
25714         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
25715         * doc/posix-functions/wcschr.texi: Mention the new module.
25716
25717 2011-02-06  Bruno Haible  <bruno@clisp.org>
25718
25719         New module 'wcsdup'.
25720         * modules/wcsdup: New file.
25721         * lib/wchar.in.h (wcsdup): New declaration.
25722         * lib/wcsdup.c: New file.
25723         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
25724         * m4/wcsdup.m4: New file.
25725         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
25726         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
25727         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
25728         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
25729         * doc/posix-functions/wcsdup.texi: Mention the new module.
25730
25731 2011-02-06  Bruno Haible  <bruno@clisp.org>
25732
25733         New module 'wcsxfrm'.
25734         * modules/wcsxfrm: New file.
25735         * lib/wchar.in.h (wcsxfrm): New declaration.
25736         * lib/wcsxfrm.c: New file.
25737         * lib/wcsxfrm-impl.h: New file.
25738         * m4/wcsxfrm.m4: New file.
25739         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
25740         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
25741         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
25742         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
25743         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
25744
25745 2011-02-06  Bruno Haible  <bruno@clisp.org>
25746
25747         New module 'wcscoll'.
25748         * modules/wcscoll: New file.
25749         * lib/wchar.in.h (wcscoll): New declaration.
25750         * lib/wcscoll.c: New file.
25751         * lib/wcscoll-impl.h: New file.
25752         * m4/wcscoll.m4: New file.
25753         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
25754         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
25755         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
25756         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
25757         * doc/posix-functions/wcscoll.texi: Mention the new module.
25758
25759 2011-02-06  Bruno Haible  <bruno@clisp.org>
25760
25761         New module 'wcsncasecmp'.
25762         * modules/wcsncasecmp: New file.
25763         * lib/wchar.in.h (wcsncasecmp): New declaration.
25764         * lib/wcsncasecmp.c: New file.
25765         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
25766         * m4/wcsncasecmp.m4: New file.
25767         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
25768         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
25769         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
25770         HAVE_WCSNCASECMP.
25771         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
25772         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
25773
25774 2011-02-06  Bruno Haible  <bruno@clisp.org>
25775
25776         New module 'wcscasecmp'.
25777         * modules/wcscasecmp: New file.
25778         * lib/wchar.in.h (wcscasecmp): New declaration.
25779         * lib/wcscasecmp.c: New file.
25780         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
25781         * m4/wcscasecmp.m4: New file.
25782         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
25783         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
25784         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
25785         HAVE_WCSCASECMP.
25786         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
25787         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
25788
25789 2011-02-05  Bruno Haible  <bruno@clisp.org>
25790
25791         New module 'wcsncmp'.
25792         * modules/wcsncmp: New file.
25793         * lib/wchar.in.h (wcsncmp): New declaration.
25794         * lib/wcsncmp.c: New file.
25795         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
25796         * m4/wcsncmp.m4: New file.
25797         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
25798         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
25799         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
25800         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
25801         * doc/posix-functions/wcsncmp.texi: Mention the new module.
25802
25803 2011-02-05  Bruno Haible  <bruno@clisp.org>
25804
25805         New module 'wcscmp'.
25806         * modules/wcscmp: New file.
25807         * lib/wchar.in.h (wcscmp): New declaration.
25808         * lib/wcscmp.c: New file.
25809         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
25810         * m4/wcscmp.m4: New file.
25811         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
25812         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
25813         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
25814         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
25815         * doc/posix-functions/wcscmp.texi: Mention the new module.
25816
25817 2011-02-05  Bruno Haible  <bruno@clisp.org>
25818
25819         New module 'wcsncat'.
25820         * modules/wcsncat: New file.
25821         * lib/wchar.in.h (wcsncat): New declaration.
25822         * lib/wcsncat.c: New file.
25823         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
25824         * m4/wcsncat.m4: New file.
25825         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
25826         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
25827         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
25828         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
25829         * doc/posix-functions/wcsncat.texi: Mention the new module.
25830
25831 2011-02-05  Bruno Haible  <bruno@clisp.org>
25832
25833         New module 'wcscat'.
25834         * modules/wcscat: New file.
25835         * lib/wchar.in.h (wcscat): New declaration.
25836         * lib/wcscat.c: New file.
25837         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
25838         * m4/wcscat.m4: New file.
25839         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
25840         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
25841         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
25842         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
25843         * doc/posix-functions/wcscat.texi: Mention the new module.
25844
25845 2011-02-05  Bruno Haible  <bruno@clisp.org>
25846
25847         New module 'wcpncpy'.
25848         * modules/wcpncpy: New file.
25849         * lib/wchar.in.h (wcpncpy): New declaration.
25850         * lib/wcpncpy.c: New file.
25851         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
25852         * m4/wcpncpy.m4: New file.
25853         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
25854         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
25855         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
25856         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
25857         * doc/posix-functions/wcpncpy.texi: Mention the new module.
25858
25859 2011-02-05  Bruno Haible  <bruno@clisp.org>
25860
25861         New module 'wcsncpy'.
25862         * modules/wcsncpy: New file.
25863         * lib/wchar.in.h (wcsncpy): New declaration.
25864         * lib/wcsncpy.c: New file.
25865         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
25866         * m4/wcsncpy.m4: New file.
25867         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
25868         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
25869         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
25870         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
25871         * doc/posix-functions/wcsncpy.texi: Mention the new module.
25872
25873 2011-02-05  Bruno Haible  <bruno@clisp.org>
25874
25875         New module 'wcpcpy'.
25876         * modules/wcpcpy: New file.
25877         * lib/wchar.in.h (wcpcpy): New declaration.
25878         * lib/wcpcpy.c: New file.
25879         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
25880         * m4/wcpcpy.m4: New file.
25881         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
25882         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
25883         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
25884         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
25885         * doc/posix-functions/wcpcpy.texi: Mention the new module.
25886
25887 2011-02-05  Bruno Haible  <bruno@clisp.org>
25888
25889         New module 'wcscpy'.
25890         * modules/wcscpy: New file.
25891         * lib/wchar.in.h (wcscpy): New declaration.
25892         * lib/wcscpy.c: New file.
25893         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
25894         * m4/wcscpy.m4: New file.
25895         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
25896         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
25897         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
25898         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
25899         * doc/posix-functions/wcscpy.texi: Mention the new module.
25900
25901 2011-02-05  Bruno Haible  <bruno@clisp.org>
25902
25903         New module 'wcsnlen'.
25904         * modules/wcsnlen: New file.
25905         * lib/wchar.in.h (wcsnlen): New declaration.
25906         * lib/wcsnlen.c: New file.
25907         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
25908         * m4/wcsnlen.m4: New file.
25909         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
25910         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
25911         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
25912         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
25913         * doc/posix-functions/wcsnlen.texi: Mention the new module.
25914
25915 2011-02-05  Bruno Haible  <bruno@clisp.org>
25916
25917         New module 'wcslen'.
25918         * modules/wcslen: New file.
25919         * lib/wchar.in.h (wcslen): New declaration.
25920         * lib/wcslen.c: New file.
25921         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
25922         * m4/wcslen.m4: New file.
25923         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
25924         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
25925         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
25926         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
25927         * doc/posix-functions/wcslen.texi: Mention the new module.
25928
25929 2011-02-05  Bruno Haible  <bruno@clisp.org>
25930
25931         New module 'wmemset'.
25932         * modules/wmemset: New file.
25933         * lib/wchar.in.h (wmemset): New declaration.
25934         * lib/wmemset.c: New file.
25935         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
25936         * m4/wmemset.m4: New file.
25937         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
25938         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
25939         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
25940         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
25941         * doc/posix-functions/wmemset.texi: Mention the new module.
25942
25943 2011-02-05  Bruno Haible  <bruno@clisp.org>
25944
25945         New module 'wmemmove'.
25946         * modules/wmemmove: New file.
25947         * lib/wchar.in.h (wmemmove): New declaration.
25948         * lib/wmemmove.c: New file.
25949         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
25950         * m4/wmemmove.m4: New file.
25951         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
25952         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
25953         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
25954         HAVE_WMEMMOVE.
25955         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
25956         * doc/posix-functions/wmemmove.texi: Mention the new module.
25957
25958 2011-02-05  Bruno Haible  <bruno@clisp.org>
25959
25960         New module 'wmemcpy'.
25961         * modules/wmemcpy: New file.
25962         * lib/wchar.in.h (wmemcpy): New declaration.
25963         * lib/wmemcpy.c: New file.
25964         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
25965         * m4/wmemcpy.m4: New file.
25966         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
25967         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
25968         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
25969         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
25970         * doc/posix-functions/wmemcpy.texi: Mention the new module.
25971
25972 2011-02-05  Bruno Haible  <bruno@clisp.org>
25973
25974         New module 'wmemcmp'.
25975         * modules/wmemcmp: New file.
25976         * lib/wchar.in.h (wmemcmp): New declaration.
25977         * lib/wmemcmp.c: New file.
25978         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
25979         * m4/wmemcmp.m4: New file.
25980         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
25981         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
25982         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
25983         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
25984         * doc/posix-functions/wmemcmp.texi: Mention the new module.
25985
25986 2011-02-07  Jim Meyering  <meyering@redhat.com>
25987
25988         di-set, ino-map: new modules, from coreutils
25989         * lib/di-set.c: New file.
25990         * lib/di-set.h: Likewise.
25991         * lib/ino-map.c: Likewise.
25992         * lib/ino-map.h: Likewise.
25993         * modules/di-set: Likewise.
25994         * modules/di-set-tests: Likewise.
25995         * modules/ino-map: Likewise.
25996         * modules/ino-map-tests: Likewise.
25997         * tests/test-di-set.c: Likewise.
25998         * tests/test-ino-map.c: Likewise.
25999
26000 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
26001
26002         getloadavg: merge minor changes from Emacs
26003
26004         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
26005         (getloadavg): Use memset, not bzero.
26006
26007         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
26008         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
26009         clash (bug#86).
26010
26011 2010-11-14  Bruno Haible  <bruno@clisp.org>
26012
26013         Allow multiple gnulib generated replacements to coexist.
26014         * lib/getopt.in.h (struct option): Avoid identical redefinition.
26015         * lib/inttypes.in.h (imaxdiv_t): Likewise.
26016         * lib/langinfo.in.h (nl_item): Likewise.
26017         * lib/math.in.h (_NaN, NAN): Likewise.
26018         * lib/netdb.in.h (struct addrinfo): Likewise.
26019         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
26020         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
26021         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
26022         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
26023         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
26024         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
26025         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
26026         pthread_mutexattr_init, pthread_mutexattr_settype,
26027         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
26028         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
26029         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
26030         pthread_spin_trylock, pthread_spin_unlock): Likewise.
26031         * lib/sched.in.h (struct sched_param): Likewise.
26032         * lib/se-selinux.in.h (security_class_t, security_context_t,
26033         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
26034         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
26035         lsetfilecon, fsetfilecon, security_check_context,
26036         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
26037         Likewise.
26038         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
26039         Likewise.
26040         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
26041         _gl_function_taking_int_returning_void_t, union sigval,
26042         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
26043         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
26044         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
26045         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
26046         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
26047         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
26048         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
26049         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
26050         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
26051         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
26052         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
26053         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
26054         socklen_t, rpl_fd_isset): Likewise.
26055         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
26056         * lib/sys_time.in.h (struct timeval): Likewise.
26057         * lib/sys_times.in.h (struct tms): Likewise.
26058         * lib/sys_utsname.in.h (struct utsname):
26059         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
26060         * lib/unistd.in.h (getpagesize): Likewise.
26061         * lib/wchar.in.h (mbstate_t): Likewise.
26062         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
26063         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
26064         towlower, towupper): Likewise.
26065         Reported by Sam Steingold <sds@gnu.org>.
26066
26067 2011-02-05  Eric Blake  <eblake@redhat.com>
26068
26069         unsetenv: work around Haiku issues
26070         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
26071         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
26072
26073 2010-12-30  Bruce Korb  <bkorb@gnu.org>
26074
26075         libposix: avoid calling error() within libposix
26076         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
26077         is defined.
26078
26079 2011-02-05  Eric Blake  <eblake@redhat.com>
26080
26081         strerror_r-posix: port to cygwin
26082         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
26083         implementation.
26084         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
26085         * tests/test-strerror_r.c (main): Fix test.
26086         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
26087         issue.
26088
26089 2011-02-05  Bruno Haible  <bruno@clisp.org>
26090
26091         New module 'wmemchr'.
26092         * modules/wmemchr: New file.
26093         * lib/wchar.in.h (wmemchr): New declaration.
26094         * lib/wmemchr.c: New file.
26095         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
26096         * m4/wmemchr.m4: New file.
26097         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
26098         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
26099         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
26100         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
26101         * doc/posix-functions/wmemchr.texi: Mention the new module.
26102
26103 2011-02-04  Eric Blake  <eblake@redhat.com>
26104
26105         fdopendir: detect FreeBSD bug
26106         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
26107         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
26108
26109 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
26110
26111         stdbool: do not define HAVE_STDBOOL_H
26112         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
26113         AC_HEADER_STDBOOL.  All uses changed.  Do not define
26114         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
26115         imported from the latest Autoconf git.  It was motivated by Emacs,
26116         which uses gnulib but does not need HAVE_STDBOOL_H.
26117
26118 2011-02-04  Bruno Haible  <bruno@clisp.org>
26119
26120         wcsnrtombs: Prepare for new module wwcsnrtombs.
26121         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
26122         * lib/wcsnrtombs.c: Include it.
26123         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
26124
26125         wcsrtombs: Prepare for new module wwcsrtombs.
26126         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
26127         * lib/wcsrtombs.c: Include it.
26128         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
26129
26130         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
26131         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
26132         * lib/mbsnrtowcs.c: Include it.
26133         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
26134
26135         mbsrtowcs: Prepare for new module mbsrtowwcs.
26136         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
26137         * lib/mbsrtowcs.c: Include it.
26138         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
26139
26140 2011-02-04  Bruno Haible  <bruno@clisp.org>
26141
26142         vasnprintf: Reduce use of malloc for small format strings.
26143         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
26144         (arguments): Add room for the first 7 arguments.
26145         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
26146         (char_directives, u8_directives, u16_directives, u32_directives): Add
26147         room for the first 7 directives.
26148         * lib/printf-parse.c: Include <string.h>.
26149         (PRINTF_PARSE): Change memory handling code so that it uses the first
26150         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
26151         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
26152         Reported by Pádraig Brady <P@draigbrady.com>.
26153
26154 2011-01-31  Eric Blake  <eblake@redhat.com>
26155
26156         dup2: work around Haiku bug
26157         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
26158         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
26159         * doc/posix-functions/dup2.texi (dup2): Document the bug.
26160         * tests/test-dup2.c (main): Enhance test.
26161
26162 2011-01-31  Simon Josefsson  <simon@josefsson.org>
26163
26164         doc: off_t is not available in eglibc 2.11.2 stdio.h.
26165         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
26166         declared by eglibc 2.11.2.
26167         * lib/stdio.in.h: Likewise.
26168
26169 2011-01-31  Eric Blake  <eblake@redhat.com>
26170
26171         ignore-value: add missing test dependency
26172         * tests/test-ignore-value.c: Revert previous change; stdio.h
26173         provides off_t.
26174         * modules/ignore-value-tests (Depends-on): Add missing dependency.
26175
26176 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
26177
26178         mktime: clarify long_int width checking
26179         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
26180         the top level, to make it clearer that the assumption about
26181         long_int width is being checked.  See
26182         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
26183
26184 2011-01-30  Simon Josefsson  <simon@josefsson.org>
26185
26186         ignore-value: Fix self-test.
26187         * tests/test-ignore-value.c: Include sys/types.h for off_t.
26188
26189 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
26190
26191         TYPE_MAXIMUM: avoid theoretically undefined behavior
26192         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
26193         negative number, which the C Standard says has undefined behavior.
26194         In practice this is not a problem, but might as well do it by the book.
26195         Reported by Rich Felker and Eric Blake; see
26196         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
26197         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
26198         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
26199         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
26200         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
26201         * m4/stdint.m4 (gl_STDINT_H): Likewise.
26202         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
26203
26204         mktime: #undef mktime before #defining it
26205         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
26206
26207         mktime: systematically normalize tm_isdst comparisons
26208         * lib/mktime.c (isdst_differ): New function.
26209         (__mktime_internal): Use it systematically for all isdst comparisons.
26210         This completes the fix for libc BZ #6723, and removes the need for
26211         normalizing tm_isdst.  See
26212         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
26213         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
26214
26215         mktime: fix some integer overflow issues and sidestep the rest
26216
26217         This was prompted by a bug report by Benjamin Lindner for MinGW
26218         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
26219         His bug is due to signed integer overflow (0 - INT_MIN), and I
26220         I scanned through mktime.c looking for other integer overflow
26221         problems, fixing all the bugs I found.
26222
26223         Although the C Standard says the resulting code is still not safe
26224         in the presence of integer overflow, in practice it should be good
26225         enough for all real-world two's-complement implementations, except
26226         for debugging environments that deliberately trap on integer
26227         overflow (e.g., gcc -ftrapv).
26228
26229         * lib/mktime.c (WRAPV): New macro.
26230         (SHR): Also check that long_int and time_t shift right in the
26231         usual way, before using the fast-but-unportable method.
26232         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
26233         used.  The code already assumed two's complement, so there's
26234         no need to test for alternatives.  All uses removed.
26235         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
26236         the C standard.  Problem reported by Rich Felker in
26237         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
26238         (twos_complement_arithmetic): Also check long_int and time_t.
26239         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
26240         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
26241         (__mktime_internal): Avoid integer overflow with unary subtraction
26242         in two instances where -1 - X is an adequate replacement for -X,
26243         since the calculations are approximate.
26244
26245 2011-01-29  Eric Blake  <eblake@redhat.com>
26246
26247         mktime: avoid infinite loop
26248         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
26249         type; behavior is still undefined but portable to all known targets.
26250         Reported by Rich Felker.
26251
26252 2011-01-29  Simon Josefsson  <simon@josefsson.org>
26253
26254         rename, unlink, same-inode: Relicense.
26255         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
26256         * modules/unlink (License): Likewise.
26257         * modules/same-inode (License): Likewise.
26258
26259 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
26260
26261         mktime: avoid problems on NetBSD 5 / i386
26262         * lib/mktime.c (long_int): New type.  This works around a problem
26263         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
26264         but time_t is 64 bits, and where I expect the existing code is
26265         wrong in some cases.
26266         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
26267         (ydhms_diff): Bring back the compile-time check for wide-enough
26268         year and yday.
26269
26270         mktime: fix misspelling in comment
26271         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
26272         This merges all recent glibc changes of importance.
26273
26274 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26275
26276         move-if-change: cope with concurrent mv of identical file.
26277         * build-aux/move-if-change (CMPPROG): Accept environment
26278         variable as an override for `cmp'.
26279         (usage): Document CMPPROG.
26280         Adjust comparison to drop stdout.  Cope with failure of mv if
26281         the target file exists and is identical to the source, for
26282         parallel builds.
26283         Report from H.J. Lu against binutils in PR binutils/12283.
26284
26285 2011-01-28  Bruce Korb  <bkorb@gnu.org>
26286
26287         * users.txt: Mention sharutils.
26288
26289 2011-01-28  Simon Josefsson  <simon@josefsson.org>
26290
26291         * users.txt: Mention OATH Toolkit.
26292
26293 2011-01-27  Bruno Haible  <bruno@clisp.org>
26294
26295         Prepare for supporting FreeBSD 10.
26296         * build-aux/config.libpath: Remove handling of freebsd1*.
26297
26298 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
26299
26300         Prepare for supporting FreeBSD 10.
26301         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
26302         match FreeBSD 10.0.
26303
26304 2011-01-27  Bruno Haible  <bruno@clisp.org>
26305
26306         vma-iter, get-rusage-as: Add OpenBSD support.
26307         * modules/vma-iter (configure.ac): Test for mquery.
26308         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
26309         * lib/vma-iter.c: Include <sys/mman.h>.
26310         (vma_iterate): Add an implementation based on mquery().
26311         * lib/resource-ext.h (get_rusage_as): Update comments.
26312         * lib/get-rusage-as.c: Likewise.
26313         * lib/get-rusage-data.c: Likewise.
26314
26315 2011-01-26  Karl Berry  <karl@gnu.org>
26316
26317         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
26318         variables to make it easier to override the makeinfo program used.
26319
26320 2011-01-26  Eric Blake  <eblake@redhat.com>
26321
26322         fcntl: work around Haiku F_DUPFD bugs
26323         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
26324         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
26325         cloexec bit on duplication.
26326         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
26327
26328 2011-01-26  Bruno Haible  <bruno@clisp.org>
26329
26330         Enable memory leak tests on AIX.
26331         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
26332         * tests/test-fprintf-posix3.c (main): Likewise.
26333
26334 2011-01-26  Bruno Haible  <bruno@clisp.org>
26335
26336         Tests for module 'get-rusage-data'.
26337         * modules/get-rusage-data-tests: New file.
26338         * tests/test-get-rusage-data.c: New file.
26339
26340         New module 'get-rusage-data'.
26341         * lib/resource-ext.h (get_rusage_data): New declaration.
26342         * lib/get-rusage-data.c: New file.
26343         * modules/get-rusage-data: New file.
26344
26345 2011-01-25  Bruno Haible  <bruno@clisp.org>
26346
26347         get-rusage-as: Allow for easier testing.
26348         * lib/resource-ext.h (get_rusage_as): Add comment.
26349         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
26350         (main): New function for interactive testing.
26351
26352 2011-01-25  Bruno Haible  <bruno@clisp.org>
26353
26354         vma-iter: Treat Haiku like BeOS.
26355         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
26356         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
26357
26358 2011-01-25  Eric Blake  <eblake@redhat.com>
26359
26360         c-stack: fix regression on cygwin when libsigsegv is present
26361         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
26362
26363 2011-01-24  Bruno Haible  <bruno@clisp.org>
26364
26365         vma-iter: Avoid empty intervals.
26366         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
26367         on an empty interval.
26368
26369 2011-01-24  Jim Meyering  <meyering@redhat.com>
26370
26371         u64: remove unnecessary #include
26372         * lib/u64.h: Don't include <stddef.h>.  It was not used.
26373
26374 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
26375
26376         Allow the user to avoid the HAVE_RAW_DECL_* macros.
26377         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
26378
26379 2011-01-23  Bruno Haible  <bruno@clisp.org>
26380
26381         New module 'vma-iter'.
26382         * lib/vma-iter.h: New file.
26383         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
26384         * modules/vma-iter: New file.
26385         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
26386         for get_rusage_as_via_iterator.
26387         (vma_iterate_callback): New function.
26388         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
26389         * modules/get-rusage-as (Depends-on): Add vma-iter.
26390
26391 2011-01-23  Bruno Haible  <bruno@clisp.org>
26392
26393         uninorm: Tweak includes.
26394         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
26395         Reported by Jim Meyering.
26396
26397 2011-01-23  Bruno Haible  <bruno@clisp.org>
26398
26399         get-rusage-as: Improve on NetBSD.
26400         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
26401         /proc, like on FreeBSD.
26402
26403 2011-01-23  Jim Meyering  <meyering@redhat.com>
26404
26405         xreadlink.h: remove unnecessary #include
26406         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
26407
26408         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
26409         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
26410
26411 2011-01-23  Bruno Haible  <bruno@clisp.org>
26412
26413         get-rusage-as: Fix bug.
26414         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
26415         original limit when aborting the first loop.
26416
26417 2011-01-23  Bruno Haible  <bruno@clisp.org>
26418
26419         wctype: Ensure valid C syntax.
26420         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
26421         unconditionally, instead of gl_NEXT_HEADERS conditionally.
26422
26423 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
26424
26425         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
26426         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
26427         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
26428         as they are needed only for configure's test case.
26429         This removes two unnecessary symbols from config.h.
26430
26431         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
26432         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
26433         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
26434         AC_CHECK_HEADERS_ONCE on a header that we also invoke
26435         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
26436         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
26437         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
26438         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
26439         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
26440         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
26441         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
26442         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26443         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
26444         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
26445         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
26446         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
26447         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
26448         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
26449
26450 2011-01-21  Eric Blake  <eblake@redhat.com>
26451
26452         maintainer-makefile: work with older git for submodule check
26453         * top/maint.mk (public-submodule-commit): Rewrite to avoid
26454         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
26455         Reported by Matthias Bolte.
26456
26457         bootstrap: minor portability fixes
26458         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
26459         (usage): Omit leading capital and trailing . on help phrases, per
26460         GNU Coding Standards.
26461         (check_versions, top level): Prefix messages with script name.
26462
26463 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
26464
26465         bootstrap: support --no-git option
26466         * build-aux/bootstrap: Add --no-git option, to be used when
26467         --gnulib-srcdir points to the exact desired checkout.
26468
26469 2011-01-21  Eric Blake  <eblake@redhat.com>
26470
26471         strerror_r-posix: work with glibc 2.13
26472         * lib/strerror_r.c (strerror_r): Fix return type.
26473
26474 2011-01-21  Pádraig Brady  <P@draigBrady.com>
26475             Bruno Haible  <bruno@clisp.org>
26476
26477         uN_strstr: New unit tests.
26478         * modules/unistr/u8-strstr-tests: New file.
26479         * modules/unistr/u16-strstr-tests: New file.
26480         * modules/unistr/u32-strstr-tests: New file.
26481         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
26482         * tests/unistr/test-u8-strstr.c: New file.
26483         * tests/unistr/test-u16-strstr.c: New file.
26484         * tests/unistr/test-u32-strstr.c: New file.
26485
26486 2011-01-21  Pádraig Brady  <P@draigBrady.com>
26487             Bruno Haible  <bruno@clisp.org>
26488
26489         Make uN_strstr functions O(n) worst-case.
26490         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
26491         16-bit and 32-bit unit cases, use the unibyte algorithm from
26492         lib/mbsstr.c.
26493         * lib/unistr/u8-strstr.c: Include <string.h>.
26494         (UNIT_IS_UINT8_T): New macro.
26495         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
26496         (U_STRLEN, U_STRNLEN): New macros.
26497         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
26498         (U_STRLEN, U_STRNLEN): New macros.
26499         * modules/unistr/u8-strstr (Depends-on): Add strstr.
26500         (configure.ac): Update required libunistring version.
26501         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
26502         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
26503         malloca.
26504         (configure.ac): Update required libunistring version.
26505         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
26506         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
26507         malloca.
26508         (configure.ac): Update required libunistring version.
26509
26510 2011-01-21  Pádraig Brady  <P@draigBrady.com>
26511             Bruno Haible  <bruno@clisp.org>
26512
26513         Prepare for faster uN_strstr functions.
26514         * lib/str-kmp.h: Support definable UNITs.
26515         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
26516         needle_len argument.
26517         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
26518         * lib/mbscasestr.c (mbscasestr): Likewise.
26519
26520 2011-01-21  Pádraig Brady <P@draigBrady.com>
26521
26522         malloca-tests: make faster by unsetting MALLOC_PERTURB_
26523         * tests/test-malloca.c (main): Unset the environment variable
26524         to greatly speed up the test.
26525         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
26526         * modules/malloca-tests: Depend on unsetenv.
26527
26528 2011-01-21  Pádraig Brady <P@draigBrady.com>
26529
26530         ignore-value: remove stdint dependency
26531         * lib/ignore-value.h: Remove <stdint.h>
26532         * modules/ignore-value: Remove stdint dependency.
26533
26534 2011-01-21  Jim Meyering  <meyering@redhat.com>
26535
26536         maint.mk: adjust variable name to be consistent with other gl_ vars
26537         * top/maint.mk (gl_public_submodule_commit): Rename the variable
26538         to be lower case.
26539
26540 2011-01-20  Jim Meyering  <meyering@redhat.com>
26541
26542         maint.mk: make "check" depend on public-submodule-commit by default
26543         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
26544
26545 2011-01-20  Bruno Haible  <bruno@clisp.org>
26546
26547         mbfile, mbiter: Complete change from 2008-12-21.
26548         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
26549         * m4/mbiter.m4 (gl_MBITER): Likewise.
26550
26551 2011-01-20  Jim Meyering  <meyering@redhat.com>
26552
26553         init.sh: insert space between each function name and "()"
26554         * tests/init.sh: Make it a little easier to see that a function's
26555         name is "warn_", and not "warn" when looking at the first part of
26556         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
26557
26558 2011-01-20  Jim Meyering  <meyering@redhat.com>
26559
26560         mountlist: clean up code formatting
26561         * lib/mountlist.c (read_file_system_list): Split a long line,
26562         correct bracing style, use NULL in place of "(struct statfs *)0",
26563         don't parenthesize return value, add spaces around "=" and after
26564         ";-in-for-stmt".
26565
26566 2011-01-14  Markus Duft <mduft@gentoo.org>
26567
26568         mountlist: add support for Interix
26569         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
26570         Apply statvfs to all entries of /dev/fs.
26571         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
26572         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
26573
26574 2011-01-20  Jim Meyering  <meyering@redhat.com>
26575
26576         maint.mk: improve the public-submodule-commit rule
26577         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
26578         to suppress printing of its commands... unless V=1.
26579         Add git submodule's --quiet option to suppress printing of e.g.,
26580         "Entering gnulib" output.
26581         "cd" into $(srcdir) before running git submodule.
26582
26583 2011-01-20  Bruno Haible  <bruno@clisp.org>
26584
26585         include_next: Fix bug introduced on 2011-01-18.
26586         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
26587         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
26588         ac_cv_header_... variable if the second argument is not 'check'.
26589         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
26590         gl_NEXT_HEADERS_INTERNAL.
26591
26592 2011-01-20  Bruno Haible  <bruno@clisp.org>
26593
26594         Allow the user to avoid the GNULIB_TEST_* macros.
26595         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
26596         Suggested by Paul Eggert.
26597
26598 2011-01-14  Jim Meyering  <meyering@redhat.com>
26599
26600         bootstrap: avoid failure when there is no .gitmodules file
26601         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
26602         has been assigned to, even when its value is the empty string.
26603         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
26604         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
26605         Reported by John W. Eaton <jwe@gnu.org>.
26606
26607 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
26608
26609         assume <ctype.h>, ..., <time.h> exist
26610         For years gnulib has been assuming the existence of the headers
26611         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
26612         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
26613         them, since they don't appear to be needed.
26614         * README (Portability guidelines): Document this.
26615         * lib/flock.c: Assume <fcntl.h> exists.
26616         * lib/regex_internal.h: Assume <locale.h> exists.
26617         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
26618         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
26619         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
26620         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
26621         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
26622         * m4/regex.m4 (gl_REGEX): Likewise.
26623         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
26624         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
26625         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
26626         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
26627         * tests/test-argp.c: Likewise.
26628         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
26629
26630         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
26631         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
26632         AA_APPLE_UNIVERSAL_BUILD.  See
26633         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
26634         * NEWS: Document this.
26635
26636 2011-01-19  Eric Blake  <eblake@redhat.com>
26637
26638         c-stack: assume stack overflow if SA_SIGINFO unsupported
26639         * lib/c-stack.c (SIGACTION_WORKS): Rename...
26640         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
26641         sigaction will work.
26642         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
26643         behavior match Linux.
26644         * tests/test-c-stack.c (main): Prefer NULL for pointers.
26645
26646         stdbool-tests: accommodate Haiku
26647         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
26648
26649         binary-io: fix O_TEXT on Haiku
26650         * modules/binary-io (Depends-on): Add fcntl-h.
26651         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
26652         than blindly undefining O_TEXT.
26653         Reported by Scott McCreary.
26654
26655 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
26656
26657         include_next: do not check for standard headers like stddef.h
26658
26659         I found this problem when modifying Emacs to use gnulib.
26660         I noticed that it added HAVE_STDDEF_H to config.h, even though
26661         gnulib always assumes <stddef.h> exists as per README and this
26662         symbol is unnecessary.
26663         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
26664         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
26665         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
26666         faster for headers like stddef.h that are known to exist.
26667         (gl_CHECK_NEXT_HEADERS): Use it.
26668         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
26669         rather than gl_CHECK_NEXT_HEADERS.
26670         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
26671         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
26672
26673 2011-01-18  Eric Blake  <eblake@redhat.com>
26674
26675         ansi-c++-opt: skip C++ dependency style if C++ is unused
26676         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
26677         tests when we know C++ compilation is not desired.
26678         Reported by Scott McCreary.
26679
26680 2011-01-18  Bruno Haible  <bruno@clisp.org>
26681
26682         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
26683         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
26684         (main): Perform test also when getrlimit and setrlimit don't exist or
26685         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
26686         limiting the address space size using setrlimit, compare the address
26687         space size before and after the the test.
26688         * tests/test-dprintf-posix2.c: Likewise.
26689         * tests/test-fprintf-posix3.sh: Update skip messages.
26690         * tests/test-dprintf-posix2.sh: Likewise.
26691         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
26692         * modules/dprintf-posix-tests (Depends-on): Likewise.
26693         Reported by Bruce Korb <bkorb@gnu.org> and
26694         Gary V. Vaughan <gary@gnu.org>.
26695
26696 2011-01-18  Bruno Haible  <bruno@clisp.org>
26697
26698         get-rusage-as: Improvement for Cygwin.
26699         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
26700         areas that are merely reserved.
26701
26702 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
26703
26704         strftime: remove dependencies on multibyte modules
26705
26706         strftime depended on mbrlen, mbsinit, and wchar, but these modules
26707         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
26708         only if __osf__ is defined, and I suspect OSF doesn't need these
26709         other modules.  If my guess is wrong, we'll need to come up with a
26710         variant of strftime that doesn't need the multibyte modules.
26711
26712         I discovered this problem when attempting modify Emacs to use the
26713         strftime module.  With the previous gnulib, this caused Emacs to
26714         need 31 new files, ranging from lib/config.charset to
26715         m4/wint_t.m4.  This was overkill and I expect would be offputting
26716         to the Emacs maintainers.  After this change, only 6 new files are
26717         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
26718         stdbool.m4, and tm_gmtoff.m4.
26719
26720         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
26721         Suggested by Bruno Haible in
26722         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
26723         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
26724         and do not check for wchar.h.
26725         * modules/strftime (Files): Remove m4/mbstate_t.m4.
26726         (Depends-on): Remove mbrlen, mbsinit, wchar.
26727
26728 2011-01-18  Bruno Haible  <bruno@clisp.org>
26729
26730         Tests for module 'get-rusage-as'.
26731         * modules/get-rusage-as-tests: New file.
26732         * tests/test-get-rusage-as.c: New file.
26733
26734         New module 'get-rusage-as'.
26735         * modules/get-rusage-as: New file.
26736         * lib/resource-ext.h: New file.
26737         * lib/get-rusage-as.c: New file.
26738
26739 2011-01-17  Eric Blake  <eblake@redhat.com>
26740
26741         sigaction: relax license from LGPLv3+ to LGPLv2+
26742         * modules/sigaction (License): Relax to LGPLv2+.
26743
26744 2011-01-14  Bruno Haible  <bruno@clisp.org>
26745
26746         filemode: Make function declarations usable in C++ mode.
26747         * lib/filemode.h: Enclose function declarations in extern "C" block.
26748         Reported by John W. Eaton <jwe@gnu.org>.
26749
26750 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
26751
26752         save-cwd: no longer include "xgetcwd.h"
26753         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
26754         This avoids a compilation failure in projects that use save-cwd
26755         without also using the xgetcwd module.
26756
26757 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
26758
26759         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
26760         This is so that a program like Emacs, which needs only dtoastr,
26761         does not have to bother with distributing and compiling ftoastr
26762         and ldtoastr.
26763         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
26764         * modules/dtoastr, modules/ldtoastr: New files.
26765         * modules/ftoastr: Now works just for 'float'.
26766         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
26767         (Makefile.am): Remove ftoastr.h (not needed and no effect),
26768         dtoastr.c, ldtoastr.c.
26769
26770 2011-01-11  Jim Meyering  <meyering@redhat.com>
26771
26772         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
26773         There is no need to work around the lack of the fchdir function,
26774         since gnulib can now provide a replacement when required.
26775         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
26776         * modules/save-cwd (Depends-on): Add fchdir.
26777
26778 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
26779
26780         openat, save-cwd: avoid xmalloc
26781
26782         This removes a direct (but undocumented) dependency of openat on
26783         xalloc, along with an indirect dependency via save-cwd.  It also
26784         removes a dependency of save-cwd on xgetcwd, and thereby
26785         indirectly on xalloc.  This change causes the openat substitute
26786         to fall back on save_cwd when memory is tight, and for save_cwd to
26787         fail instead of dying when memory is tight, but that's good enough.
26788         Problem and initial idea for fix reported by Bastien Roucaries in
26789         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
26790
26791         * lib/openat-proc.c: Include stdlib.h (for malloc), not
26792         xalloc.h (for xmalloc).
26793         (openat_proc_name): Use malloc, not xmalloc.
26794         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
26795         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
26796
26797         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
26798         This avoids heap allocation for file names whose lengths are in
26799         the range 512..1023, with the upper bound increasing to at most
26800         4031 depending on the platform's PATH_MAX.  (We do not want
26801         pathmax.h here as it might supply a non-constant PATH_MAX.)
26802         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
26803         Perhaps they should be moved to malloca.h?
26804         (OPENAT_BUFFER_SIZE): Use them.
26805
26806 2011-01-10  Bruno Haible  <bruno@clisp.org>
26807
26808         doc: Update users.txt.
26809         * users.txt: Add recutils.
26810
26811 2011-01-09  Karl Berry  <karl@gnu.org>
26812
26813         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
26814
26815         * doc/configmake.texi: New file.
26816         * doc/gnulib.texi: Include it.
26817         * modules/configmake: Move documentation from here.
26818
26819 2011-01-09  Bruno Haible  <bruno@clisp.org>
26820
26821         Update to Unicode 6.0.0.
26822         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
26823         (get_lbp): Update for Unicode 6.0.0.
26824         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
26825         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
26826         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
26827         U+11001, U+11038..U+11046. Remove U+06DE.
26828         (uc_width): Fix bounds of planes.
26829         * tests/uniwidth/test-uc_width2.sh: Same updates as in
26830         lib/uniwidth/width.c.
26831         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
26832         trailing whitespace removed.
26833         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
26834         without comments, but with the original copyright notice.
26835         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
26836         * lib/unicase/ignorable.h: Likewise.
26837         * lib/unicase/tocasefold.h: Likewise.
26838         * lib/unicase/tolower.h: Likewise.
26839         * lib/unicase/totitle.h: Likewise.
26840         * lib/unicase/toupper.h: Likewise.
26841         * lib/unictype/bidi_of.h: Likewise.
26842         * lib/unictype/blocks.h: Likewise.
26843         * lib/unictype/categ_C.h: Likewise.
26844         * lib/unictype/categ_Cn.h: Likewise.
26845         * lib/unictype/categ_L.h: Likewise.
26846         * lib/unictype/categ_Ll.h: Likewise.
26847         * lib/unictype/categ_Lm.h: Likewise.
26848         * lib/unictype/categ_Lo.h: Likewise.
26849         * lib/unictype/categ_Lu.h: Likewise.
26850         * lib/unictype/categ_M.h: Likewise.
26851         * lib/unictype/categ_Mc.h: Likewise.
26852         * lib/unictype/categ_Me.h: Likewise.
26853         * lib/unictype/categ_Mn.h: Likewise.
26854         * lib/unictype/categ_N.h: Likewise.
26855         * lib/unictype/categ_Nd.h: Likewise.
26856         * lib/unictype/categ_No.h: Likewise.
26857         * lib/unictype/categ_P.h: Likewise.
26858         * lib/unictype/categ_Po.h: Likewise.
26859         * lib/unictype/categ_S.h: Likewise.
26860         * lib/unictype/categ_Sc.h: Likewise.
26861         * lib/unictype/categ_Sk.h: Likewise.
26862         * lib/unictype/categ_Sm.h: Likewise.
26863         * lib/unictype/categ_So.h: Likewise.
26864         * lib/unictype/categ_of.h: Likewise.
26865         * lib/unictype/combining.h: Likewise.
26866         * lib/unictype/ctype_alnum.h: Likewise.
26867         * lib/unictype/ctype_alpha.h: Likewise.
26868         * lib/unictype/ctype_graph.h: Likewise.
26869         * lib/unictype/ctype_lower.h: Likewise.
26870         * lib/unictype/ctype_print.h: Likewise.
26871         * lib/unictype/ctype_punct.h: Likewise.
26872         * lib/unictype/ctype_upper.h: Likewise.
26873         * lib/unictype/decdigit.h: Likewise.
26874         * lib/unictype/digit.h: Likewise.
26875         * lib/unictype/numeric.h: Likewise.
26876         * lib/unictype/pr_alphabetic.h: Likewise.
26877         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
26878         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
26879         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
26880         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
26881         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
26882         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
26883         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
26884         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
26885         * lib/unictype/pr_case_ignorable.h: Likewise.
26886         * lib/unictype/pr_cased.h: Likewise.
26887         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
26888         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
26889         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
26890         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
26891         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
26892         * lib/unictype/pr_combining.h: Likewise.
26893         * lib/unictype/pr_composite.h: Likewise.
26894         * lib/unictype/pr_currency_symbol.h: Likewise.
26895         * lib/unictype/pr_decimal_digit.h: Likewise.
26896         * lib/unictype/pr_deprecated.h: Likewise.
26897         * lib/unictype/pr_format_control.h: Likewise.
26898         * lib/unictype/pr_grapheme_base.h: Likewise.
26899         * lib/unictype/pr_grapheme_extend.h: Likewise.
26900         * lib/unictype/pr_grapheme_link.h: Likewise.
26901         * lib/unictype/pr_id_continue.h: Likewise.
26902         * lib/unictype/pr_id_start.h: Likewise.
26903         * lib/unictype/pr_ideographic.h: Likewise.
26904         * lib/unictype/pr_lowercase.h: Likewise.
26905         * lib/unictype/pr_math.h: Likewise.
26906         * lib/unictype/pr_numeric.h: Likewise.
26907         * lib/unictype/pr_other_alphabetic.h: Likewise.
26908         * lib/unictype/pr_other_id_continue.h: Likewise.
26909         * lib/unictype/pr_other_math.h: Likewise.
26910         * lib/unictype/pr_punctuation.h: Likewise.
26911         * lib/unictype/pr_sentence_terminal.h: Likewise.
26912         * lib/unictype/pr_terminal_punctuation.h: Likewise.
26913         * lib/unictype/pr_unassigned_code_value.h: Likewise.
26914         * lib/unictype/pr_unified_ideograph.h: Likewise.
26915         * lib/unictype/pr_uppercase.h: Likewise.
26916         * lib/unictype/pr_xid_continue.h: Likewise.
26917         * lib/unictype/pr_xid_start.h: Likewise.
26918         * lib/unictype/scripts.h: Likewise.
26919         * lib/unictype/scripts_byname.gperf: Likewise.
26920         * lib/unictype/sy_java_ident.h: Likewise.
26921         * lib/unigbrk/gbrkprop.h: Likewise.
26922         * lib/unilbrk/lbrkprop1.h: Likewise.
26923         * lib/unilbrk/lbrkprop2.h: Likewise.
26924         * lib/uninorm/decomposition-table2.h: Likewise.
26925         * lib/uniwbrk/wbrkprop.h: Likewise.
26926         * tests/unicase/test-cased.c: Likewise.
26927         * tests/unicase/test-ignorable.c: Likewise.
26928         * tests/unicase/test-uc_tolower.c: Likewise.
26929         * tests/unicase/test-uc_totitle.c: Likewise.
26930         * tests/unicase/test-uc_toupper.c: Likewise.
26931         * tests/unictype/test-categ_C.c: Likewise.
26932         * tests/unictype/test-categ_Cn.c: Likewise.
26933         * tests/unictype/test-categ_L.c: Likewise.
26934         * tests/unictype/test-categ_Ll.c: Likewise.
26935         * tests/unictype/test-categ_Lm.c: Likewise.
26936         * tests/unictype/test-categ_Lo.c: Likewise.
26937         * tests/unictype/test-categ_Lu.c: Likewise.
26938         * tests/unictype/test-categ_M.c: Likewise.
26939         * tests/unictype/test-categ_Mc.c: Likewise.
26940         * tests/unictype/test-categ_Me.c: Likewise.
26941         * tests/unictype/test-categ_Mn.c: Likewise.
26942         * tests/unictype/test-categ_N.c: Likewise.
26943         * tests/unictype/test-categ_Nd.c: Likewise.
26944         * tests/unictype/test-categ_No.c: Likewise.
26945         * tests/unictype/test-categ_P.c: Likewise.
26946         * tests/unictype/test-categ_Po.c: Likewise.
26947         * tests/unictype/test-categ_S.c: Likewise.
26948         * tests/unictype/test-categ_Sc.c: Likewise.
26949         * tests/unictype/test-categ_Sk.c: Likewise.
26950         * tests/unictype/test-categ_Sm.c: Likewise.
26951         * tests/unictype/test-categ_So.c: Likewise.
26952         * tests/unictype/test-ctype_alnum.c: Likewise.
26953         * tests/unictype/test-ctype_alpha.c: Likewise.
26954         * tests/unictype/test-ctype_graph.c: Likewise.
26955         * tests/unictype/test-ctype_lower.c: Likewise.
26956         * tests/unictype/test-ctype_print.c: Likewise.
26957         * tests/unictype/test-ctype_punct.c: Likewise.
26958         * tests/unictype/test-ctype_upper.c: Likewise.
26959         * tests/unictype/test-decdigit.h: Likewise.
26960         * tests/unictype/test-digit.h: Likewise.
26961         * tests/unictype/test-numeric.h: Likewise.
26962         * tests/unictype/test-pr_alphabetic.c: Likewise.
26963         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
26964         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
26965         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
26966         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
26967         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
26968         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
26969         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
26970         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
26971         * tests/unictype/test-pr_case_ignorable.c: Likewise.
26972         * tests/unictype/test-pr_cased.c: Likewise.
26973         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
26974         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
26975         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
26976         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
26977         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
26978         * tests/unictype/test-pr_combining.c: Likewise.
26979         * tests/unictype/test-pr_composite.c: Likewise.
26980         * tests/unictype/test-pr_currency_symbol.c: Likewise.
26981         * tests/unictype/test-pr_decimal_digit.c: Likewise.
26982         * tests/unictype/test-pr_deprecated.c: Likewise.
26983         * tests/unictype/test-pr_format_control.c: Likewise.
26984         * tests/unictype/test-pr_grapheme_base.c: Likewise.
26985         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
26986         * tests/unictype/test-pr_grapheme_link.c: Likewise.
26987         * tests/unictype/test-pr_id_continue.c: Likewise.
26988         * tests/unictype/test-pr_id_start.c: Likewise.
26989         * tests/unictype/test-pr_ideographic.c: Likewise.
26990         * tests/unictype/test-pr_lowercase.c: Likewise.
26991         * tests/unictype/test-pr_math.c: Likewise.
26992         * tests/unictype/test-pr_numeric.c: Likewise.
26993         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
26994         * tests/unictype/test-pr_other_id_continue.c: Likewise.
26995         * tests/unictype/test-pr_other_math.c: Likewise.
26996         * tests/unictype/test-pr_punctuation.c: Likewise.
26997         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
26998         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
26999         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
27000         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
27001         * tests/unictype/test-pr_uppercase.c: Likewise.
27002         * tests/unictype/test-pr_xid_continue.c: Likewise.
27003         * tests/unictype/test-pr_xid_start.c: Likewise.
27004         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
27005         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
27006         changes.
27007         * lib/unictype/categ_Cc.h: Likewise.
27008         * lib/unictype/categ_Cf.h: Likewise.
27009         * lib/unictype/categ_Co.h: Likewise.
27010         * lib/unictype/categ_Cs.h: Likewise.
27011         * lib/unictype/categ_Lt.h: Likewise.
27012         * lib/unictype/categ_Nl.h: Likewise.
27013         * lib/unictype/categ_Pc.h: Likewise.
27014         * lib/unictype/categ_Pd.h: Likewise.
27015         * lib/unictype/categ_Pe.h: Likewise.
27016         * lib/unictype/categ_Pf.h: Likewise.
27017         * lib/unictype/categ_Pi.h: Likewise.
27018         * lib/unictype/categ_Ps.h: Likewise.
27019         * lib/unictype/categ_Z.h: Likewise.
27020         * lib/unictype/categ_Zl.h: Likewise.
27021         * lib/unictype/categ_Zp.h: Likewise.
27022         * lib/unictype/categ_Zs.h: Likewise.
27023         * lib/unictype/ctype_blank.h: Likewise.
27024         * lib/unictype/ctype_cntrl.h: Likewise.
27025         * lib/unictype/ctype_digit.h: Likewise.
27026         * lib/unictype/ctype_space.h: Likewise.
27027         * lib/unictype/ctype_xdigit.h: Likewise.
27028         * lib/unictype/mirror.h: Likewise.
27029         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
27030         * lib/unictype/pr_bidi_block_separator.h: Likewise.
27031         * lib/unictype/pr_bidi_common_separator.h: Likewise.
27032         * lib/unictype/pr_bidi_control.h: Likewise.
27033         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
27034         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
27035         * lib/unictype/pr_bidi_european_digit.h: Likewise.
27036         * lib/unictype/pr_bidi_pdf.h: Likewise.
27037         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
27038         * lib/unictype/pr_bidi_whitespace.h: Likewise.
27039         * lib/unictype/pr_dash.h: Likewise.
27040         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
27041         * lib/unictype/pr_diacritic.h: Likewise.
27042         * lib/unictype/pr_extender.h: Likewise.
27043         * lib/unictype/pr_hex_digit.h: Likewise.
27044         * lib/unictype/pr_hyphen.h: Likewise.
27045         * lib/unictype/pr_ids_binary_operator.h: Likewise.
27046         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
27047         * lib/unictype/pr_ignorable_control.h: Likewise.
27048         * lib/unictype/pr_iso_control.h: Likewise.
27049         * lib/unictype/pr_join_control.h: Likewise.
27050         * lib/unictype/pr_left_of_pair.h: Likewise.
27051         * lib/unictype/pr_line_separator.h: Likewise.
27052         * lib/unictype/pr_logical_order_exception.h: Likewise.
27053         * lib/unictype/pr_non_break.h: Likewise.
27054         * lib/unictype/pr_not_a_character.h: Likewise.
27055         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
27056         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
27057         * lib/unictype/pr_other_id_start.h: Likewise.
27058         * lib/unictype/pr_other_lowercase.h: Likewise.
27059         * lib/unictype/pr_other_uppercase.h: Likewise.
27060         * lib/unictype/pr_paired_punctuation.h: Likewise.
27061         * lib/unictype/pr_paragraph_separator.h: Likewise.
27062         * lib/unictype/pr_pattern_syntax.h: Likewise.
27063         * lib/unictype/pr_pattern_white_space.h: Likewise.
27064         * lib/unictype/pr_private_use.h: Likewise.
27065         * lib/unictype/pr_quotation_mark.h: Likewise.
27066         * lib/unictype/pr_radical.h: Likewise.
27067         * lib/unictype/pr_soft_dotted.h: Likewise.
27068         * lib/unictype/pr_space.h: Likewise.
27069         * lib/unictype/pr_titlecase.h: Likewise.
27070         * lib/unictype/pr_variation_selector.h: Likewise.
27071         * lib/unictype/pr_white_space.h: Likewise.
27072         * lib/unictype/pr_zero_width.h: Likewise.
27073         * lib/unictype/sy_c_ident.h: Likewise.
27074         * lib/unictype/sy_c_whitespace.h: Likewise.
27075         * lib/unictype/sy_java_whitespace.h: Likewise.
27076         * lib/uninorm/composition-table.gperf: Likewise.
27077         * lib/uninorm/decomposition-table1.h: Likewise.
27078         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
27079         LB8.
27080         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
27081         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
27082         * modules/unictype/*: Bump version number of expected libunistring
27083         version.
27084
27085 2011-01-09  Bruno Haible  <bruno@clisp.org>
27086
27087         Update to Unicode 5.2.0.
27088         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
27089         trailing whitespace removed.
27090
27091 2011-01-09  Bruno Haible  <bruno@clisp.org>
27092
27093         New Unicode character properties, from Unicode 5.2.0.
27094         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
27095         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
27096         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
27097         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
27098         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
27099         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
27100         uc_is_property_cased, uc_is_property_case_ignorable,
27101         uc_is_property_changes_when_lowercased,
27102         uc_is_property_changes_when_uppercased,
27103         uc_is_property_changes_when_titlecased,
27104         uc_is_property_changes_when_casefolded,
27105         uc_is_property_changes_when_casemapped): New declarations.
27106         * lib/unictype/pr_byname.gperf: Add the new properties.
27107         * modules/unictype/property-byname (Depends-on): Depend on the new
27108         properties modules.
27109         * modules/unictype/property-all (Depends-on): Likewise.
27110         * MODULES.html.sh (Unicode string functions): Add
27111         unictype/property-case-ignorable, unictype/property-cased,
27112         unictype/property-changes-when-casefolded,
27113         unictype/property-changes-when-casemapped,
27114         unictype/property-changes-when-lowercased,
27115         unictype/property-changes-when-titlecased,
27116         unictype/property-changes-when-uppercased.
27117
27118         New module 'unictype/property-changes-when-casemapped'.
27119         * modules/unictype/property-changes-when-casemapped: New file.
27120         * lib/unictype/pr_changes_when_casemapped.c: New file.
27121         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
27122         generated by gen-uni-tables.
27123         * modules/unictype/property-changes-when-casemapped-tests: New file.
27124         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
27125         automatically generated by gen-uni-tables.
27126
27127         New module 'unictype/property-changes-when-casefolded'.
27128         * modules/unictype/property-changes-when-casefolded: New file.
27129         * lib/unictype/pr_changes_when_casefolded.c: New file.
27130         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
27131         generated by gen-uni-tables.
27132         * modules/unictype/property-changes-when-casefolded-tests: New file.
27133         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
27134         automatically generated by gen-uni-tables.
27135
27136         New module 'unictype/property-changes-when-titlecased'.
27137         * modules/unictype/property-changes-when-titlecased: New file.
27138         * lib/unictype/pr_changes_when_titlecased.c: New file.
27139         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
27140         generated by gen-uni-tables.
27141         * modules/unictype/property-changes-when-titlecased-tests: New file.
27142         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
27143         automatically generated by gen-uni-tables.
27144
27145         New module 'unictype/property-changes-when-uppercased'.
27146         * modules/unictype/property-changes-when-uppercased: New file.
27147         * lib/unictype/pr_changes_when_uppercased.c: New file.
27148         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
27149         generated by gen-uni-tables.
27150         * modules/unictype/property-changes-when-uppercased-tests: New file.
27151         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
27152         automatically generated by gen-uni-tables.
27153
27154         New module 'unictype/property-changes-when-lowercased'.
27155         * modules/unictype/property-changes-when-lowercased: New file.
27156         * lib/unictype/pr_changes_when_lowercased.c: New file.
27157         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
27158         generated by gen-uni-tables.
27159         * modules/unictype/property-changes-when-lowercased-tests: New file.
27160         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
27161         automatically generated by gen-uni-tables.
27162
27163         New module 'unictype/property-case-ignorable'.
27164         * modules/unictype/property-case-ignorable: New file.
27165         * lib/unictype/pr_case_ignorable.c: New file.
27166         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
27167         by gen-uni-tables.
27168         * modules/unictype/property-case-ignorable-tests: New file.
27169         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
27170         generated by gen-uni-tables.
27171
27172         New module 'unictype/property-cased'.
27173         * modules/unictype/property-cased: New file.
27174         * lib/unictype/pr_cased.c: New file.
27175         * lib/unictype/pr_cased.h: New file, automatically generated by
27176         gen-uni-tables.
27177         * modules/unictype/property-cased-tests: New file.
27178         * tests/unictype/test-pr_cased.c: New file, automatically generated by
27179         gen-uni-tables.
27180
27181 2011-01-09  Bruno Haible  <bruno@clisp.org>
27182
27183         Update to Unicode 5.2.0.
27184         * lib/gen-uni-tables.c (output_predicate, output_category,
27185         output_combclass, output_bidi_category, output_decimal_digit_test,
27186         output_decimal_digit, output_digit_test, output_digit,
27187         output_numeric_test, output_numeric, output_mirror, output_scripts,
27188         output_scripts_byname, output_blocks, output_ident_category): Fix
27189         comment header.
27190         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
27191         get_wbp.
27192         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
27193         items.
27194         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
27195         Changes_When_Lowercased, Changes_When_Uppercased,
27196         Changes_When_Titlecased, Changes_When_Casefolded,
27197         Changes_When_Casemapped.
27198         (is_property_alphabetic, is_property_default_ignorable_code_point):
27199         Update for Unicode 5.2.0.
27200         (is_property_cased, is_property_case_ignorable,
27201         is_property_changes_when_lowercased,
27202         is_property_changes_when_uppercased,
27203         is_property_changes_when_titlecased,
27204         is_property_changes_when_casefolded,
27205         is_property_changes_when_casemapped): New functions.
27206         (output_properties): Output also the properties cased, case_ignorable,
27207         changes_when_lowercased, changes_when_uppercased,
27208         changes_when_titlecased, changes_when_casefolded,
27209         changes_when_casemapped.
27210         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
27211         Unicode TR#11 revision 17 -> 19.
27212         (LBP_CP): New enumeration value.
27213         (LBP_*): Adjust values accordingly.
27214         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
27215         TR#14 revision 22 -> 24.
27216         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
27217         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
27218         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
27219         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
27220         is_WBP_MIDLETTER.
27221         (output_composition_tables): Allow for 24 bits instead of 16 bits in
27222         the code1 and code2 of each composition rule.
27223         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
27224         * lib/unicase/ignorable.h: Likewise.
27225         * lib/unicase/tocasefold.h: Likewise.
27226         * lib/unicase/tolower.h: Likewise.
27227         * lib/unicase/totitle.h: Likewise.
27228         * lib/unicase/toupper.h: Likewise.
27229         * lib/unictype/bidi_of.h: Likewise.
27230         * lib/unictype/blocks.h: Likewise.
27231         * lib/unictype/categ_C.h: Likewise.
27232         * lib/unictype/categ_Cf.h: Likewise.
27233         * lib/unictype/categ_Cn.h: Likewise.
27234         * lib/unictype/categ_L.h: Likewise.
27235         * lib/unictype/categ_Ll.h: Likewise.
27236         * lib/unictype/categ_Lm.h: Likewise.
27237         * lib/unictype/categ_Lo.h: Likewise.
27238         * lib/unictype/categ_Lu.h: Likewise.
27239         * lib/unictype/categ_M.h: Likewise.
27240         * lib/unictype/categ_Mc.h: Likewise.
27241         * lib/unictype/categ_Mn.h: Likewise.
27242         * lib/unictype/categ_N.h: Likewise.
27243         * lib/unictype/categ_Nd.h: Likewise.
27244         * lib/unictype/categ_Nl.h: Likewise.
27245         * lib/unictype/categ_No.h: Likewise.
27246         * lib/unictype/categ_P.h: Likewise.
27247         * lib/unictype/categ_Pd.h: Likewise.
27248         * lib/unictype/categ_Po.h: Likewise.
27249         * lib/unictype/categ_S.h: Likewise.
27250         * lib/unictype/categ_Sc.h: Likewise.
27251         * lib/unictype/categ_So.h: Likewise.
27252         * lib/unictype/categ_of.h: Likewise.
27253         * lib/unictype/combining.h: Likewise.
27254         * lib/unictype/ctype_alnum.h: Likewise.
27255         * lib/unictype/ctype_alpha.h: Likewise.
27256         * lib/unictype/ctype_graph.h: Likewise.
27257         * lib/unictype/ctype_lower.h: Likewise.
27258         * lib/unictype/ctype_print.h: Likewise.
27259         * lib/unictype/ctype_punct.h: Likewise.
27260         * lib/unictype/ctype_upper.h: Likewise.
27261         * lib/unictype/decdigit.h: Likewise.
27262         * lib/unictype/digit.h: Likewise.
27263         * lib/unictype/numeric.h: Likewise.
27264         * lib/unictype/pr_alphabetic.h: Likewise.
27265         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
27266         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
27267         * lib/unictype/pr_bidi_european_digit.h: Likewise.
27268         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
27269         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
27270         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
27271         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
27272         * lib/unictype/pr_combining.h: Likewise.
27273         * lib/unictype/pr_composite.h: Likewise.
27274         * lib/unictype/pr_currency_symbol.h: Likewise.
27275         * lib/unictype/pr_dash.h: Likewise.
27276         * lib/unictype/pr_decimal_digit.h: Likewise.
27277         * lib/unictype/pr_deprecated.h: Likewise.
27278         * lib/unictype/pr_diacritic.h: Likewise.
27279         * lib/unictype/pr_extender.h: Likewise.
27280         * lib/unictype/pr_grapheme_base.h: Likewise.
27281         * lib/unictype/pr_grapheme_extend.h: Likewise.
27282         * lib/unictype/pr_grapheme_link.h: Likewise.
27283         * lib/unictype/pr_id_continue.h: Likewise.
27284         * lib/unictype/pr_id_start.h: Likewise.
27285         * lib/unictype/pr_ideographic.h: Likewise.
27286         * lib/unictype/pr_ignorable_control.h: Likewise.
27287         * lib/unictype/pr_logical_order_exception.h: Likewise.
27288         * lib/unictype/pr_lowercase.h: Likewise.
27289         * lib/unictype/pr_numeric.h: Likewise.
27290         * lib/unictype/pr_other_alphabetic.h: Likewise.
27291         * lib/unictype/pr_punctuation.h: Likewise.
27292         * lib/unictype/pr_sentence_terminal.h: Likewise.
27293         * lib/unictype/pr_terminal_punctuation.h: Likewise.
27294         * lib/unictype/pr_unassigned_code_value.h: Likewise.
27295         * lib/unictype/pr_unified_ideograph.h: Likewise.
27296         * lib/unictype/pr_uppercase.h: Likewise.
27297         * lib/unictype/pr_xid_continue.h: Likewise.
27298         * lib/unictype/pr_xid_start.h: Likewise.
27299         * lib/unictype/pr_zero_width.h: Likewise.
27300         * lib/unictype/scripts.h: Likewise.
27301         * lib/unictype/scripts_byname.gperf: Likewise.
27302         * lib/unictype/sy_java_ident.h: Likewise.
27303         * lib/unigbrk/gbrkprop.h: Likewise.
27304         * lib/unilbrk/lbrkprop1.h: Likewise.
27305         * lib/unilbrk/lbrkprop2.h: Likewise.
27306         * lib/unilbrk/lbrktables.h: Likewise.
27307         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
27308         LBP_CP. Implement rule LB30.
27309         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
27310         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
27311         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
27312         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
27313         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
27314         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
27315         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
27316         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
27317         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
27318         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
27319         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
27320         bits instead of 16 bits in the code1 and code2 of each composition
27321         rule.
27322         (uc_composition): Update for Unicode 5.2.0.
27323         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
27324         * lib/uninorm/decomposition-table2.h: Likewise.
27325         * lib/uniwbrk/wbrkprop.h: Likewise.
27326         * tests/unicase/test-cased.c: Likewise.
27327         * tests/unicase/test-ignorable.c: Likewise.
27328         * tests/unicase/test-uc_tolower.c: Likewise.
27329         * tests/unicase/test-uc_totitle.c: Likewise.
27330         * tests/unicase/test-uc_toupper.c: Likewise.
27331         * tests/unictype/test-categ_C.c: Likewise.
27332         * tests/unictype/test-categ_Cf.c: Likewise.
27333         * tests/unictype/test-categ_Cn.c: Likewise.
27334         * tests/unictype/test-categ_L.c: Likewise.
27335         * tests/unictype/test-categ_Ll.c: Likewise.
27336         * tests/unictype/test-categ_Lm.c: Likewise.
27337         * tests/unictype/test-categ_Lo.c: Likewise.
27338         * tests/unictype/test-categ_Lu.c: Likewise.
27339         * tests/unictype/test-categ_M.c: Likewise.
27340         * tests/unictype/test-categ_Mc.c: Likewise.
27341         * tests/unictype/test-categ_Mn.c: Likewise.
27342         * tests/unictype/test-categ_N.c: Likewise.
27343         * tests/unictype/test-categ_Nd.c: Likewise.
27344         * tests/unictype/test-categ_Nl.c: Likewise.
27345         * tests/unictype/test-categ_No.c: Likewise.
27346         * tests/unictype/test-categ_P.c: Likewise.
27347         * tests/unictype/test-categ_Pd.c: Likewise.
27348         * tests/unictype/test-categ_Po.c: Likewise.
27349         * tests/unictype/test-categ_S.c: Likewise.
27350         * tests/unictype/test-categ_Sc.c: Likewise.
27351         * tests/unictype/test-categ_So.c: Likewise.
27352         * tests/unictype/test-ctype_alnum.c: Likewise.
27353         * tests/unictype/test-ctype_alpha.c: Likewise.
27354         * tests/unictype/test-ctype_graph.c: Likewise.
27355         * tests/unictype/test-ctype_lower.c: Likewise.
27356         * tests/unictype/test-ctype_print.c: Likewise.
27357         * tests/unictype/test-ctype_punct.c: Likewise.
27358         * tests/unictype/test-ctype_upper.c: Likewise.
27359         * tests/unictype/test-decdigit.h: Likewise.
27360         * tests/unictype/test-digit.h: Likewise.
27361         * tests/unictype/test-numeric.h: Likewise.
27362         * tests/unictype/test-pr_alphabetic.c: Likewise.
27363         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
27364         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
27365         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
27366         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
27367         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
27368         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
27369         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
27370         * tests/unictype/test-pr_combining.c: Likewise.
27371         * tests/unictype/test-pr_composite.c: Likewise.
27372         * tests/unictype/test-pr_currency_symbol.c: Likewise.
27373         * tests/unictype/test-pr_dash.c: Likewise.
27374         * tests/unictype/test-pr_decimal_digit.c: Likewise.
27375         * tests/unictype/test-pr_deprecated.c: Likewise.
27376         * tests/unictype/test-pr_diacritic.c: Likewise.
27377         * tests/unictype/test-pr_extender.c: Likewise.
27378         * tests/unictype/test-pr_grapheme_base.c: Likewise.
27379         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
27380         * tests/unictype/test-pr_grapheme_link.c: Likewise.
27381         * tests/unictype/test-pr_id_continue.c: Likewise.
27382         * tests/unictype/test-pr_id_start.c: Likewise.
27383         * tests/unictype/test-pr_ideographic.c: Likewise.
27384         * tests/unictype/test-pr_ignorable_control.c: Likewise.
27385         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
27386         * tests/unictype/test-pr_lowercase.c: Likewise.
27387         * tests/unictype/test-pr_numeric.c: Likewise.
27388         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
27389         * tests/unictype/test-pr_punctuation.c: Likewise.
27390         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
27391         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
27392         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
27393         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
27394         * tests/unictype/test-pr_uppercase.c: Likewise.
27395         * tests/unictype/test-pr_xid_continue.c: Likewise.
27396         * tests/unictype/test-pr_xid_start.c: Likewise.
27397         * tests/unictype/test-pr_zero_width.c: Likewise.
27398         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
27399         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
27400         changed behaviour: line breaking is now disallowed between a letter
27401         or '=' and '('.
27402         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
27403         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
27404         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
27405         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
27406         * tests/uniwidth/test-uc_width2.sh: Same updates as in
27407         lib/uniwidth/width.c.
27408         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
27409         without comments, but with the original copyright notice.
27410         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
27411         changes.
27412         * lib/unictype/categ_Cc.h: Likewise.
27413         * lib/unictype/categ_Co.h: Likewise.
27414         * lib/unictype/categ_Cs.h: Likewise.
27415         * lib/unictype/categ_Lt.h: Likewise.
27416         * lib/unictype/categ_Me.h: Likewise.
27417         * lib/unictype/categ_Pc.h: Likewise.
27418         * lib/unictype/categ_Pe.h: Likewise.
27419         * lib/unictype/categ_Pf.h: Likewise.
27420         * lib/unictype/categ_Pi.h: Likewise.
27421         * lib/unictype/categ_Ps.h: Likewise.
27422         * lib/unictype/categ_Sk.h: Likewise.
27423         * lib/unictype/categ_Sm.h: Likewise.
27424         * lib/unictype/categ_Z.h: Likewise.
27425         * lib/unictype/categ_Zl.h: Likewise.
27426         * lib/unictype/categ_Zp.h: Likewise.
27427         * lib/unictype/categ_Zs.h: Likewise.
27428         * lib/unictype/ctype_blank.h: Likewise.
27429         * lib/unictype/ctype_cntrl.h: Likewise.
27430         * lib/unictype/ctype_digit.h: Likewise.
27431         * lib/unictype/ctype_space.h: Likewise.
27432         * lib/unictype/ctype_xdigit.h: Likewise.
27433         * lib/unictype/mirror.h: Likewise.
27434         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
27435         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
27436         * lib/unictype/pr_bidi_block_separator.h: Likewise.
27437         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
27438         * lib/unictype/pr_bidi_common_separator.h: Likewise.
27439         * lib/unictype/pr_bidi_control.h: Likewise.
27440         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
27441         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
27442         * lib/unictype/pr_bidi_pdf.h: Likewise.
27443         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
27444         * lib/unictype/pr_bidi_whitespace.h: Likewise.
27445         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
27446         * lib/unictype/pr_format_control.h: Likewise.
27447         * lib/unictype/pr_hex_digit.h: Likewise.
27448         * lib/unictype/pr_hyphen.h: Likewise.
27449         * lib/unictype/pr_ids_binary_operator.h: Likewise.
27450         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
27451         * lib/unictype/pr_iso_control.h: Likewise.
27452         * lib/unictype/pr_join_control.h: Likewise.
27453         * lib/unictype/pr_left_of_pair.h: Likewise.
27454         * lib/unictype/pr_line_separator.h: Likewise.
27455         * lib/unictype/pr_math.h: Likewise.
27456         * lib/unictype/pr_non_break.h: Likewise.
27457         * lib/unictype/pr_not_a_character.h: Likewise.
27458         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
27459         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
27460         * lib/unictype/pr_other_id_continue.h: Likewise.
27461         * lib/unictype/pr_other_id_start.h: Likewise.
27462         * lib/unictype/pr_other_lowercase.h: Likewise.
27463         * lib/unictype/pr_other_math.h: Likewise.
27464         * lib/unictype/pr_other_uppercase.h: Likewise.
27465         * lib/unictype/pr_paired_punctuation.h: Likewise.
27466         * lib/unictype/pr_paragraph_separator.h: Likewise.
27467         * lib/unictype/pr_pattern_syntax.h: Likewise.
27468         * lib/unictype/pr_pattern_white_space.h: Likewise.
27469         * lib/unictype/pr_private_use.h: Likewise.
27470         * lib/unictype/pr_quotation_mark.h: Likewise.
27471         * lib/unictype/pr_radical.h: Likewise.
27472         * lib/unictype/pr_soft_dotted.h: Likewise.
27473         * lib/unictype/pr_space.h: Likewise.
27474         * lib/unictype/pr_titlecase.h: Likewise.
27475         * lib/unictype/pr_variation_selector.h: Likewise.
27476         * lib/unictype/pr_white_space.h: Likewise.
27477         * lib/unictype/sy_c_ident.h: Likewise.
27478         * lib/unictype/sy_c_whitespace.h: Likewise.
27479         * lib/unictype/sy_java_whitespace.h: Likewise.
27480         * modules/uni*/*: Bump version number of expected libunistring version.
27481         Reported by Simon Josefsson.
27482
27483 2011-01-09  Karl Heuer  <kwzh@gnu.org>
27484
27485         useless-if-before-free: fix typo in --help and make the internal,
27486         automatic version date update process work once again.
27487         --help output contained a NUL character instead of the
27488         backslash-zero that was intended.  Also, the "must lie within
27489         the first 8 lines" line is on line 9, and hence not getting
27490         automatically updated.
27491         * build-aux/useless-if-before-free: Fix the former by adding a
27492         backslash, and the latter by condensing the three lines of what-it-does
27493         to a single line, leaving one line of slack for the future.
27494
27495 2011-01-09  Bruno Haible  <bruno@clisp.org>
27496
27497         uniwidth/width: Fix width of U+1D173..U+1D17A.
27498         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
27499         symbolic_width, output_width_property_test): New functions.
27500         (main): Invoke output_nonspacing_property, output_width_property_test.
27501         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
27502         U+1D173..U+1D17A.
27503         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
27504         1.
27505         * modules/uniwidth/*: Bump version number of expected libunistring
27506         version.
27507         * modules/unilbrk/*: Likewise.
27508
27509 2011-01-08  Bruno Haible  <bruno@clisp.org>
27510
27511         uninorm tests: Preserve copyright of Unicode data file.
27512         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
27513         Mention modifications.
27514
27515 2011-01-08  Bruno Haible  <bruno@clisp.org>
27516
27517         gen-uni-tables: Prepare for Unicode 5.2.0.
27518         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
27519         (debug_output_lbp, output_lbp): Update.
27520
27521 2011-01-08  Bruno Haible  <bruno@clisp.org>
27522
27523         unilbrk: Clarify gen-uni-tables.c code.
27524         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
27525         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
27526         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
27527
27528 2011-01-07  Bruno Haible  <bruno@clisp.org>
27529
27530         strtod: Restore errno when successfully parsing Infinity or NaN.
27531         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
27532         restore the original errno.
27533
27534 2011-01-07  Bruno Haible  <bruno@clisp.org>
27535
27536         remove test: Avoid failure on HP-UX 11.
27537         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
27538
27539 2011-01-07  Bruno Haible  <bruno@clisp.org>
27540
27541         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
27542         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
27543         error code.
27544
27545 2011-01-07  Pádraig Brady <P@draigBrady.com>
27546
27547         ignore-value: fixup comments, and add Eric Blake
27548         as an author since he rewrote the macros.
27549         * lib/ignore-value.h (ignore_value):  State that
27550         we now support aggregates.  Also specify exactly
27551         when the GCC warn_unused_result feature was added.
27552
27553 2011-01-06  Eric Blake  <eblake@redhat.com>
27554
27555         ignore-value: support aggregate types
27556         * lib/ignore-value.h (ignore_value): Provide separate gcc
27557         definition.
27558         * modules/ignore-value-tests: New test module.
27559         * tests/test-ignore-value.c: New test.
27560
27561         maint.mk: improve sc_prohibit_strcmp regex
27562         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
27563         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
27564         definition of STRNEQ.
27565
27566         signal: work around Haiku issue with SIGBUS
27567         * lib/siglist.h: Add comment.
27568         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
27569         strsignal's favoring of SIGSEGV.
27570         * tests/test-signal.c (main): Avoid test failure.
27571         * doc/posix-headers/signal.texi (signal.h): Document the issue.
27572         Reported by Scott McCreary.
27573
27574         maint.mk: add pre-release check to ensure submodule commits are public
27575         * top/maint.mk (public-submodule-commit): New rule.
27576         (submodule-checks): New variable.
27577         (alpha beta stable): Depend on the variable.
27578
27579 2011-01-05  Pádraig Brady <P@draigBrady.com>
27580         and Jim Meyering  <meyering@redhat.com>
27581
27582         ignore-value: make ignore_value more generic; deprecate ignore_ptr
27583         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
27584         (ATTRIBUTE_DEPRECATED): Define.
27585         (_ignore_case): New function.
27586         (ignore_value): New macro, to replace the old function.
27587         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
27588         * modules/ignore-value (Depends-on): Add stdint.
27589
27590 2011-01-04  Eric Blake  <eblake@redhat.com>
27591
27592         doc: regenerate INSTALL
27593         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
27594         @firstparagraphindent support, now that autoconf dropped it.
27595         (INSTALL_PRELUDE): Reinstate old macro.
27596         * doc/install.texi: Resync from autoconf.
27597         * doc/INSTALL: Reflect recent autoconf update.
27598         * doc/INSTALL.ISO: Likewise.
27599         * doc/INSTALL.UTF-8: Likewise.
27600         Reported by Karl Berry.
27601
27602 2011-01-04  Bruce Korb  <address@hidden>
27603
27604         git-version-gen: avoid a sub-shell
27605         * build-aux/git-version-gen: Redirect stderr in `...` via
27606         "exec 2>...", rather than via an added sub-shell.
27607
27608 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
27609
27610         git-version-gen: use (...) rather than sh -c '...'
27611         * build-aux/git-version-gen: Rather than hard-coding a shell's name
27612         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
27613
27614 2011-01-03  Jim Meyering  <meyering@redhat.com>
27615
27616         git-version-gen: convert leading TABs to spaces
27617         * build-aux/git-version-gen: Expand leading TABs.
27618
27619         git-version-gen: handle failed "git rev-list"
27620         * build-aux/git-version-gen: Rather than leaking a "fatal" error
27621         from git and proceeding as if it had succeeded but printed no SHA1
27622         checksums, suppress the diagnostic and handle the failure.
27623         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
27624
27625         git-version-gen: include command name in one more diagnostic
27626         * build-aux/git-version-gen: When the required .tarball-version file
27627         was missing or unreadable, you might see the diagnostic from "cat",
27628         but no trace of the name of the invoking script.  Now, you still see
27629         the diagnostic from cat, but also get one from "git-version-gen: ".
27630         Inspired by a patch from Bruce Korb.
27631
27632         update-copyright: adjust test to match changed code
27633         * tests/test-update-copyright.sh: Change test's expected output
27634         to match new actual output.
27635
27636 2011-01-02  Bruno Haible  <bruno@clisp.org>
27637
27638         getlogin_r: Avoid test failure on HP-UX 11.
27639         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
27640         ERANGE when the second argument is zero.
27641         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
27642         portability problem.
27643
27644 2011-01-02  Bruce Korb  <bkorb@gnu.org>
27645
27646         * build-aux/update-copyright: doc Simon's changes
27647
27648 2011-01-02  Simon Josefsson  <simon@josefsson.org>
27649
27650         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
27651         environment variable.
27652
27653 2011-01-02  Bruno Haible  <bruno@clisp.org>
27654
27655         unigbrk: Avoid gcc warnings.
27656         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
27657         unused variable.
27658         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
27659         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
27660         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
27661         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
27662         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
27663         Change type of first argument to 'const char *'.
27664         (main): Remove unused variable.
27665         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
27666         type of first argument to 'const char *'.
27667         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
27668         Likewise.
27669         (main): Change type of variable 's'.
27670         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
27671         to 'int'.
27672
27673 2011-01-02  Bruno Haible  <bruno@clisp.org>
27674
27675         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
27676         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
27677         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
27678         bug.
27679         * lib/pwrite.c: Undo 2010-12-31 patch.
27680         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
27681
27682 2011-01-02  Bruno Haible  <bruno@clisp.org>
27683
27684         pread: Fix test whether it works.
27685         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
27686
27687 2011-01-02  Bruno Haible  <bruno@clisp.org>
27688
27689         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
27690         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
27691         ends in "6". Don't require a specific month name. Try also the locale
27692         names found on HP-UX 11 and Solaris 7.
27693
27694 2011-01-02  Bruno Haible  <bruno@clisp.org>
27695
27696         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
27697         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
27698         C linkage.
27699         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
27700
27701 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
27702
27703         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
27704         for consistency, since the "cluster" term is not used elsewhere.
27705         * lib/unigbrk.in.h: Update name.
27706         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
27707         * lib/unigbrk/u16-grapheme-next.c: Update name.
27708         * lib/unigbrk/u16-grapheme-prev.c: Update name.
27709         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
27710         * lib/unigbrk/u32-grapheme-next.c: Update name.
27711         * lib/unigbrk/u32-grapheme-prev.c: Update name.
27712         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
27713         * lib/unigbrk/u8-grapheme-next.c: Update name.
27714         * lib/unigbrk/u8-grapheme-prev.c: Update name.
27715         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
27716         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
27717         Suggested by Bruno Haible.
27718
27719 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
27720
27721         Remove module 'u8-grapheme-len' as too redundant with
27722         'u8-grapheme-next'.
27723         * modules/unigbrk/u8-grapheme-len: Delete file.
27724         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
27725         * lib/unigbrk.in.h: Remove prototype for deleted function.
27726         * lib/unigbrk/u8-grapheme-len.c: Delete file.
27727         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
27728
27729         Remove module 'u16-grapheme-len' as too redundant with
27730         'u16-grapheme-next'.
27731         * modules/unigbrk/u16-grapheme-len: Delete file.
27732         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
27733         * lib/unigbrk.in.h: Remove prototype for deleted function.
27734         * lib/unigbrk/u16-grapheme-len.c: Delete file.
27735         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
27736
27737         Remove module 'u32-grapheme-len' as too redundant with
27738         'u32-grapheme-next'.
27739         * modules/unigbrk/u32-grapheme-len: Delete file.
27740         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
27741         * lib/unigbrk.in.h: Remove prototype for deleted function.
27742         * lib/unigbrk/u32-grapheme-len.c: Delete file.
27743         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
27744
27745         Suggested by Bruno Haible.
27746
27747 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
27748
27749         * unigbrk.in.h: Fix typo: "ben" => "been".
27750         Reported by Bruno Haible.
27751
27752 2011-01-01  Jim Meyering  <meyering@redhat.com>
27753
27754         maint: update almost all copyright ranges to include 2011
27755         Run the new "make update-copyright" rule.
27756
27757 2011-01-01  Jim Meyering  <meyering@redhat.com>
27758
27759         maint: update-copyright: exempt doc/INSTALL*
27760         * Makefile (update-copyright): Also exclude doc/INSTALL*,
27761         since they are generated.  Suggested by Bruno Haible.
27762
27763 2011-01-01  Jim Meyering  <meyering@redhat.com>
27764
27765         maint: refine the update-copyright rule
27766         * Makefile (update-copyright): Also exclude any file that includes
27767         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
27768         code that merely generates the comment.
27769
27770 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
27771
27772         New module 'u8-grapheme-len'.
27773         * modules/unigbrk/u8-grapheme-len: New file.
27774         * modules/unigbrk/u8-grapheme-len-tests: New file.
27775         * lib/unigbrk.in.h: Add prototype for new function.
27776         * lib/unigbrk/u8-grapheme-len.c: New file.
27777         * tests/unigbrk/test-u8-grapheme-len.c: New file.
27778
27779         New module 'u16-grapheme-len'.
27780         * modules/unigbrk/u16-grapheme-len: New file.
27781         * modules/unigbrk/u16-grapheme-len-tests: New file.
27782         * lib/unigbrk.in.h: Add prototype for new function.
27783         * lib/unigbrk/u16-grapheme-len.c: New file.
27784         * tests/unigbrk/test-u16-grapheme-len.c: New file.
27785
27786         New module 'u32-grapheme-len'.
27787         * modules/unigbrk/u32-grapheme-len: New file.
27788         * modules/unigbrk/u32-grapheme-len-tests: New file.
27789         * lib/unigbrk.in.h: Add prototype for new function.
27790         * lib/unigbrk/u32-grapheme-len.c: New file.
27791         * tests/unigbrk/test-u32-grapheme-len.c: New file.
27792
27793         New module 'u8-grapheme-next'.
27794         * modules/unigbrk/u8-grapheme-next: New file.
27795         * modules/unigbrk/u8-grapheme-next-tests: New file.
27796         * lib/unigbrk.in.h: Add prototype for new function.
27797         * lib/unigbrk/u8-grapheme-next.c: New file.
27798         * tests/unigbrk/test-u8-grapheme-next.c: New file.
27799
27800         New module 'u16-grapheme-next'.
27801         * modules/unigbrk/u16-grapheme-next: New file.
27802         * modules/unigbrk/u16-grapheme-next-tests: New file.
27803         * lib/unigbrk.in.h: Add prototype for new function.
27804         * lib/unigbrk/u16-grapheme-next.c: New file.
27805         * tests/unigbrk/test-u16-grapheme-next.c: New file.
27806
27807         New module 'u32-grapheme-next'.
27808         * modules/unigbrk/u32-grapheme-next: New file.
27809         * modules/unigbrk/u32-grapheme-next-tests: New file.
27810         * lib/unigbrk.in.h: Add prototype for new function.
27811         * lib/unigbrk/u32-grapheme-next.c: New file.
27812         * tests/unigbrk/test-u32-grapheme-next.c: New file.
27813
27814         New module 'u8-grapheme-prev'.
27815         * modules/unigbrk/u8-grapheme-prev: New file.
27816         * modules/unigbrk/u8-grapheme-prev-tests: New file.
27817         * lib/unigbrk.in.h: Add prototype for new function.
27818         * lib/unigbrk/u8-grapheme-prev.c: New file.
27819         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
27820
27821         New module 'u16-grapheme-prev'.
27822         * modules/unigbrk/u16-grapheme-prev: New file.
27823         * modules/unigbrk/u16-grapheme-prev-tests: New file.
27824         * lib/unigbrk.in.h: Add prototype for new function.
27825         * lib/unigbrk/u16-grapheme-prev.c: New file.
27826         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
27827
27828         New module 'u32-grapheme-prev'.
27829         * modules/unigbrk/u32-grapheme-prev: New file.
27830         * modules/unigbrk/u32-grapheme-prev-tests: New file.
27831         * lib/unigbrk.in.h: Add prototype for new function.
27832         * lib/unigbrk/u32-grapheme-prev.c: New file.
27833         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
27834
27835         New module 'u8-grapheme-breaks'.
27836         * modules/unigbrk/u8-grapheme-breaks: New file.
27837         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
27838         * lib/unigbrk.in.h: Add prototype for new function.
27839         * lib/unigbrk/u8-grapheme-breaks.c: New file.
27840         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
27841
27842         New module 'u16-grapheme-breaks'.
27843         * modules/unigbrk/u16-grapheme-breaks: New file.
27844         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
27845         * lib/unigbrk.in.h: Add prototype for new function.
27846         * lib/unigbrk/u16-grapheme-breaks.c: New file.
27847         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
27848
27849         New module 'u32-grapheme-breaks'.
27850         * modules/unigbrk/u32-grapheme-breaks: New file.
27851         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
27852         * lib/unigbrk.in.h: Add prototype for new function.
27853         * lib/unigbrk/u32-grapheme-breaks.c: New file.
27854         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
27855
27856         New module 'ulc-grapheme-breaks'.
27857         * modules/unigbrk/ulc-grapheme-breaks: New file.
27858         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
27859         * m4/locale-ar.m4: New file.
27860         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
27861         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
27862         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
27863
27864 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
27865
27866         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
27867         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
27868         modified how this file was generated before I initially submitted
27869         the module, but failed to regenerate it.  This meant that several
27870         of the level2 entries were wrong.
27871         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
27872         Remove the division-by-2 that is folded into the table now that
27873         gbrkprop.h has been regenerated properly.  Now -1 entries are
27874         handled correctly.
27875
27876         New module 'unigbrk/uc-gbrk-prop-tests'.
27877         * modules/unigbrk/uc-gbrk-prop-tests: New file.
27878         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
27879         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
27880         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
27881
27882 2011-01-01  Bruno Haible  <bruno@clisp.org>
27883
27884         Avoid use of hexadecimal escapes.
27885         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
27886         instead of hexadecimal escapes.
27887
27888 2011-01-01  Jim Meyering  <meyering@redhat.com>
27889
27890         maint: new rule to update copyright year ranges
27891         * Makefile (update-copyright): New rule.
27892
27893         maint: indent with TABs in Makefile
27894         * Makefile: Expand leading sequences of spaces to TABs
27895
27896         version-etc: update the copyright year it reports
27897         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
27898
27899 2010-12-31  Bruno Haible  <bruno@clisp.org>
27900
27901         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
27902         * lib/isfinite.c (zerof, zerod, zerol): New variables.
27903         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
27904         zero.
27905
27906 2010-12-31  Bruno Haible  <bruno@clisp.org>
27907
27908         pwrite: Work around HP-UX 11.11 bug.
27909         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
27910         works and set REPLACE_PWRITE if not.
27911         * lib/pwrite.c (pwrite): Add an implementation that uses the system
27912         function.
27913         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
27914
27915 2010-12-31  Bruno Haible  <bruno@clisp.org>
27916
27917         pread: Work around HP-UX 11 bugs.
27918         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
27919         and set REPLACE_PREAD if not.
27920         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
27921
27922 2010-12-31  Eric Blake  <eblake@redhat.com>
27923
27924         nl_langinfo: fix YESEXPR on Irix 6.5
27925         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
27926         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
27927         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
27928         it.
27929
27930 2010-12-31  Bruno Haible  <bruno@clisp.org>
27931
27932         iconv: Document HP-UX 11 bug.
27933         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
27934
27935 2010-12-31  Bruno Haible  <bruno@clisp.org>
27936
27937         ldexpl: Fix link error on HP-UX 11.
27938         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
27939         LDEXPL_LIBM, using $ISNANL_LIBM.
27940
27941 2010-12-31  Eric Blake  <eblake@redhat.com>
27942
27943         ftello: avoid compilation failure with SunStudio c89
27944         * lib/ftello.c (ftello): Use lseek, not llseek.
27945
27946         tests: avoid failing coreutils tests on cygwin
27947         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
27948         (create_exe_shims_): Return 0 when skipping.
27949
27950 2010-12-31  Bruno Haible  <bruno@clisp.org>
27951
27952         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
27953         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
27954
27955 2010-12-31  Bruno Haible  <bruno@clisp.org>
27956
27957         waitpid: Fix link error in C++ mode.
27958         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
27959
27960 2010-12-31  Bruno Haible  <bruno@clisp.org>
27961
27962         isnan: Use GCC built-ins when possible.
27963         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
27964         __builtin_isnan.
27965         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
27966         (isnan): Define using GCC built-ins for GCC >= 4.0.
27967
27968 2010-12-31  Bruno Haible  <bruno@clisp.org>
27969
27970         isnand: Fix mistake.
27971         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
27972         __builtin_isnand.
27973
27974 2010-12-31  Bruno Haible  <bruno@clisp.org>
27975
27976         open: Avoid C++ error on HP-UX 11.
27977         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
27978
27979 2010-12-31  Bruno Haible  <bruno@clisp.org>
27980
27981         time_r: Add missing declarations on HP-UX 11.
27982         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
27983         instead of HAVE_LOCALTIME_R.
27984         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
27985         HAVE_LOCALTIME_R always.
27986         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
27987         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
27988         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
27989         HAVE_LOCALTIME_R.
27990         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
27991         * doc/posix-functions/localtime_r.texi: Likewise.
27992
27993 2010-12-29  Eric Blake  <eblake@redhat.com>
27994
27995         mountlist: tweak previous commit
27996         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
27997         Reported by Paul Eggert.
27998
27999         mountlist: fix local drive detection on cygwin
28000         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
28001         that works for cygwin.
28002
28003 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
28004
28005         ftoastr, snprintf: ftoastr + snprintf module
28006         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
28007         since the snprintf module now should be good enough here.
28008         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
28009         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
28010         and gl_MODULE_INDICATOR([snprintf]), but the former enables
28011         GNULIB_SNPRINTF only for the test directory, and the latter
28012         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
28013         seems to suffice by itself.
28014
28015 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
28016
28017         alloca: one step towards thread-safety
28018         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
28019         need for a static variable.  All callers changed.  This does not
28020         make the alloca replacement thread-safe, but it's one step.
28021
28022         tests: minor indenting change
28023         * tests/init.sh: Sync from coreutils housekeeping patch
28024         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
28025         to keep lines within 80 columns.
28026
28027 2010-12-28  Jim Meyering  <meyering@redhat.com>
28028
28029         regex: don't infloop on persistent failing calloc
28030         * lib/regexec.c (build_trtable): Return failure indication upon
28031         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
28032         In glibc, this was fixed for version 2.13:
28033         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
28034
28035 2010-12-28  Bruno Haible  <bruno@clisp.org>
28036             Paul Eggert <eggert@cs.ucla.edu>
28037
28038         linkat: Make implementation robust against system behaviour variations.
28039         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
28040         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
28041         way, and to -2 if it needs a generic runtime test.
28042         * lib/linkat.c (solaris_optimized_link_immediate,
28043         solaris_optimized_link_follow): New functions.
28044         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
28045         (check_same_link): Use it.
28046
28047 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
28048
28049         New module 'unigbrk/base'.
28050         * modules/unigbrk/base: New file.
28051         * lib/unigbrk.in.h: New file.
28052
28053         New module 'unigbrk/uc-gbrk-prop'.
28054         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
28055         * modules/unigbrk/uc-gbrk-prop: New file.
28056         * lib/unigbrk/gbrkprop.h: New file.
28057         * lib/unigbrk/uc-gbrk-prop.c: New file.
28058
28059         New module 'unigbrk/uc-is-grapheme-break'.
28060         * modules/unigbrk/uc-is-grapheme-break: New file.
28061         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
28062         * lib/unigbrk/uc-is-grapheme-break.c: New file.
28063         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
28064         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
28065         * tests/unigbrk/GraphemeBreakTest.txt: New file.
28066
28067         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
28068
28069 2010-12-27  Bruno Haible  <bruno@clisp.org>
28070
28071         linkat test: Avoid failure on Solaris 11 2010-11.
28072         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
28073
28074 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
28075
28076         utimens: work around glibc rounding bug on more platforms
28077         * lib/utimens.c (fdutimens): Work around rounding bug even if
28078         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
28079         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
28080
28081 2010-12-27  Bruno Haible  <bruno@clisp.org>
28082
28083         select tests: Improve comments.
28084         * tests/test-select.c (do_select): Add comments.
28085
28086 2010-12-27  Bruno Haible  <bruno@clisp.org>
28087
28088         select tests: Safer way of handling timeout.
28089         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
28090         at every invocation.
28091
28092 2010-12-27  Bruno Haible  <bruno@clisp.org>
28093
28094         select tests: Use 'bool' where appropriate.
28095         * tests/test-select.c (connect_to_socket): Change argument type to
28096         'bool'.
28097
28098 2010-12-27  Bruno Haible  <bruno@clisp.org>
28099
28100         select tests: Use existing modules.
28101         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
28102         (configure.ac): Don't test for unistd.h.
28103         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
28104         declared in <unistd.h>.
28105
28106 2010-12-27  Bruno Haible  <bruno@clisp.org>
28107
28108         mbrtowc: Work around a Solaris 7 bug.
28109         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
28110         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
28111         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
28112         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
28113         MBRTOWC_NULL_ARG1_BUG.
28114         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
28115         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
28116         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
28117         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
28118
28119 2010-12-27  Jim Meyering  <meyering@redhat.com>
28120
28121         read-file.c: tweak syntax
28122         * lib/read-file.c (fread_file): Remove space after "*" in function
28123         definitions.
28124
28125 2010-12-27  Bruno Haible  <bruno@clisp.org>
28126
28127         times test: Avoid gcc warnings on OSF/1.
28128         * tests/test-times.c (main): Cast printf arguments from clock_t to
28129         'long int'.
28130
28131 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
28132
28133         utimens: work around glibc rounding bug on older Linux kernels
28134         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
28135         on Linux with a glibc whose utimes might not work, then work
28136         around a longstanding glibc bug involving rounding rather than
28137         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
28138         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
28139
28140 2010-12-26  Bruno Haible  <bruno@clisp.org>
28141
28142         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
28143         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
28144         _GL_CXXALIAS_SYS.
28145         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28146
28147 2010-12-26  Bruno Haible  <bruno@clisp.org>
28148
28149         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
28150         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
28151         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
28152         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
28153         looking for the declaration.
28154         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
28155         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
28156         problem.
28157         * doc/posix-functions/inet_pton.texi: Likewise.
28158
28159 2010-12-26  Bruno Haible  <bruno@clisp.org>
28160
28161         arpa_inet: Use the common idioms with C++ support.
28162         * lib/arpa_inet.in.h: Include c++defs.h.
28163         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
28164         support.
28165         * modules/arpa_inet (Depends-on): Add c++defs.
28166         (Makefile.am): Substitute the contents of c++defs.h.
28167         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
28168         * modules/arpa_inet-c++-tests: New file.
28169         * tests/test-arpa_inet-c++.cc: New file.
28170
28171 2010-12-25  Bruno Haible  <bruno@clisp.org>
28172
28173         Fix more C++ link errors on Solaris 8.
28174         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
28175         $(LIB_EACCESS).
28176         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
28177         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
28178         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
28179         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
28180         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
28181
28182 2010-12-25  Bruno Haible  <bruno@clisp.org>
28183
28184         printf-posix: Fix link error when a non-GCC compiler is used.
28185         * lib/stdio.in.h (printf): When not using GCC, override printf
28186         correctly.
28187         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28188
28189 2010-12-25  Bruno Haible  <bruno@clisp.org>
28190
28191         strerror_r-posix: Update doc.
28192         * doc/posix-functions/strerror_r.texi: Update doc about the return
28193         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
28194
28195 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
28196
28197         utimens: simplify the logic of the previous change
28198         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
28199         This should not affect whether the test succeeds or fails.
28200
28201         utimens: configure better on hosts with NFS clock skew
28202         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
28203         uses the clock of the local host.  It might use the clock of the
28204         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
28205         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
28206
28207 2010-12-25  Bruno Haible  <bruno@clisp.org>
28208
28209         ptsname test: Avoid failure on Solaris.
28210         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
28211         open a pseudo-terminal; don't use BSD-style ptys.
28212         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
28213
28214 2010-12-25  Bruno Haible  <bruno@clisp.org>
28215
28216         ptsname: Avoid ERANGE failure on some systems.
28217         * lib/ptsname.c (buffer): Increase size.
28218
28219 2010-12-25  Bruno Haible  <bruno@clisp.org>
28220
28221         rename, renameat: Avoid test failures at NFS mounted locations.
28222         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
28223         so that subsequent mkdir calls succeed.
28224
28225 2010-12-25  Bruno Haible  <bruno@clisp.org>
28226
28227         iswblank: Fix C++ link error on Solaris 8.
28228         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
28229         _GL_FUNCDECL_SYS.
28230
28231 2010-12-25  Bruno Haible  <bruno@clisp.org>
28232
28233         unistd: Fix C++ link error on Solaris 8.
28234         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
28235
28236 2010-12-25  Bruno Haible  <bruno@clisp.org>
28237
28238         readlink doc: Mention an old glibc bug.
28239         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
28240
28241 2010-12-25  Bruno Haible  <bruno@clisp.org>
28242
28243         fcntl-h: Fix for use of C++ on glibc systems.
28244         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
28245         also on glibc systems in C++ mode.
28246         Reported by Gary V. Vaughan <gary@gnu.org>.
28247
28248 2010-12-25  Bruno Haible  <bruno@clisp.org>
28249
28250         roundl-ieee: Make it work on OSF/1 5.1 with cc.
28251         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
28252
28253 2010-12-25  Bruno Haible  <bruno@clisp.org>
28254
28255         truncl-ieee: Make it work on OSF/1 5.1 with cc.
28256         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
28257         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
28258         test whether truncl works according to ISO C 99 with IEC 60559.
28259         * m4/truncl-ieee.m4: New file.
28260         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
28261         m4/signbit.m4.
28262         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
28263
28264 2010-12-25  Bruno Haible  <bruno@clisp.org>
28265
28266         ceill-ieee: Make it work on OSF/1 5.1 with cc.
28267         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
28268         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
28269         test whether ceill works according to ISO C 99 with IEC 60559.
28270         * m4/ceill-ieee.m4: New file.
28271         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
28272         m4/signbit.m4.
28273         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
28274
28275 2010-12-25  Bruno Haible  <bruno@clisp.org>
28276
28277         Ensure all prerequisites of <wchar.h> are included.
28278         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
28279         before <wchar.h>.
28280         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
28281         gl_MBRLEN_NUL_RETVAL): Likewise.
28282         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
28283         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
28284         AC_FUNC_MBRTOWC): Likewise.
28285         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
28286         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
28287         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
28288         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
28289         Likewise.
28290         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
28291         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
28292         (gl_WCHAR_H): Improve comments.
28293         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
28294
28295 2010-12-25  Bruno Haible  <bruno@clisp.org>
28296
28297         strtok_r: Fix C syntax error in autoconf macro.
28298         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
28299         characters in test program.
28300
28301 2010-12-24  Bruno Haible  <bruno@clisp.org>
28302
28303         ceil, trunc, round: Fix gcc warnings.
28304         * lib/ceil.c (MIN): Undefine before redefining.
28305         * lib/trunc.c (MIN): Likewise.
28306         * lib/round.c (MIN): Likewise.
28307         Include <math.h> first.
28308
28309 2010-12-24  Bruno Haible  <bruno@clisp.org>
28310
28311         select tests: Avoid failures on OSF/1 5.1.
28312         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
28313         failure of closing the last socket; it may fail with ECONNRESET.
28314
28315 2010-12-24  Eric Blake  <eblake@redhat.com>
28316
28317         stdint: avoid HP-UX 10.20 preprocessor bug
28318         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
28319         than #if.
28320         * tests/test-floor2.c (main): Likewise.
28321         Reported by Peter O'Gorman.
28322
28323         pipe: make obsoletion transition easier
28324         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
28325         * modules/pipe (Files): Include revived file.
28326         (Include): Drop reference, to mirror getdate's behavior.
28327
28328 2010-12-24  Bruno Haible  <bruno@clisp.org>
28329
28330         sys_socket: Hide mismatch of declarations on NonStop Kernel.
28331         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
28332         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
28333         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28334
28335 2010-12-24  Bruno Haible  <bruno@clisp.org>
28336
28337         gethostname: Ensure declaration on NonStop Kernel.
28338         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
28339         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28340
28341 2010-12-24  Bruno Haible  <bruno@clisp.org>
28342
28343         sys_select: Ensure all necessary types on NonStop Kernel.
28344         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
28345         include <sys/time.h>.
28346         * doc/posix-headers/sys_select.texi: Mention that it's missing on
28347         NonStop Kernel.
28348         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28349
28350 2010-12-24  Bruno Haible  <bruno@clisp.org>
28351
28352         sys_select: Remove unneeded include.
28353         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
28354         have <sys/select.h>.
28355
28356 2010-12-24  Bruno Haible  <bruno@clisp.org>
28357
28358         gethostname: Provide a fallback for HOST_NAME_MAX.
28359         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
28360         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
28361         instead.
28362         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28363
28364 2010-12-24  Bruno Haible  <bruno@clisp.org>
28365
28366         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
28367         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
28368         (SA_RESTART): Likewise.
28369         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28370
28371 2010-12-24  Bruno Haible  <bruno@clisp.org>
28372
28373         signal: Define NSIG.
28374         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
28375         * tests/test-signal.c (nsig): New variable.
28376         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28377
28378 2010-12-24  Bruno Haible  <bruno@clisp.org>
28379
28380         rename, renameat: Avoid test failures on OSF/1 5.1.
28381         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
28382         alternative error codes.
28383         * tests/test-renameat.c (main): Likewise.
28384
28385 2010-12-24  Bruno Haible  <bruno@clisp.org>
28386
28387         *printf: Detect large precisions bug on Solaris 10/SPARC.
28388         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
28389         by Paul Eggert.
28390         * tests/test-snprintf-posix.h (test_function): Add this test code here
28391         too.
28392         * tests/test-sprintf-posix.h (test_function): Likewise.
28393         * tests/test-vasnprintf-posix.c (test_function): Likewise.
28394         * tests/test-vasprintf-posix.c (test_function): Likewise.
28395         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
28396         around by gnulib.
28397         * doc/posix-functions/printf.texi: Likewise.
28398         * doc/posix-functions/snprintf.texi: Likewise.
28399         * doc/posix-functions/sprintf.texi: Likewise.
28400         * doc/posix-functions/vfprintf.texi: Likewise.
28401         * doc/posix-functions/vprintf.texi: Likewise.
28402         * doc/posix-functions/vsnprintf.texi: Likewise.
28403         * doc/posix-functions/vsprintf.texi: Likewise.
28404         * doc/posix-functions/dprintf.texi: Undo last commit.
28405         * doc/posix-functions/vdprintf.texi: Likewise.
28406
28407 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
28408
28409         tests: port test-fdutimensat.c to Solaris 8
28410         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
28411         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
28412         On Solaris 8, it fails with errno == ENOSYS, because there is no
28413         futimens (so it can't use the fd), and there is no lutimens (so it
28414         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
28415
28416         vsnprintf: make more consistent with snprintf; doc fixes
28417
28418         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
28419         the byte count return problem was promoted from the snprintf-posix
28420         to the snprintf module.
28421         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
28422         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
28423         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
28424         * tests/test-snprintf.c (main): Check the byte count returned.
28425         * tests/test-vsnprintf.c (main): Likewise.
28426
28427 2010-12-23  Eric Blake  <eblake@redhat.com>
28428
28429         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
28430         * modules/sigpipe (License): Relax license.
28431
28432 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
28433
28434         doc: document Solaris printf bug with large float precisions
28435         * doc/posix-functions/dprintf.texi (dprintf):
28436         * doc/posix-functions/fprintf.texi (fprintf):
28437         * doc/posix-functions/printf.texi (printf):
28438         * doc/posix-functions/snprintf.texi (snprintf):
28439         * doc/posix-functions/sprintf.texi (sprintf):
28440         * doc/posix-functions/vdprintf.texi (vdprintf):
28441         * doc/posix-functions/vfprintf.texi (vfprintf):
28442         * doc/posix-functions/vprintf.texi (vprintf):
28443         * doc/posix-functions/vsnprintf.texi (vsnprintf):
28444         * doc/posix-functions/vsprintf.texi (vsprintf):
28445         Mention that these functions mishandle large floating point
28446         precisions on Solaris 10.  The same bug is also present in Solaris
28447         8, and I assume earlier.  This causes "cd gnulib-tests; make
28448         check" to fail on Solaris 8 (and I assume, later) when building
28449         the latest coreutils, in test-vasprintf-posix's call to
28450         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
28451         the wide flavors (e.g., wprintf) so this patch just updates the
28452         documentation for the narrow ones.
28453
28454         test-posixtm.c: add two tests
28455         * tests/test-posixtm.c: Add two tests, to highlight the
28456         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
28457         around this bug; this is merely to document it.
28458
28459 2010-12-22  Bruno Haible  <bruno@clisp.org>
28460
28461         getlogin_r: Work around portability problem on OSF/1.
28462         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
28463         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
28464         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
28465         test for a truncated result.
28466         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
28467         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
28468         * modules/getlogin_r (Depends-on): Add memchr.
28469         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
28470
28471 2010-12-22  Bruno Haible  <bruno@clisp.org>
28472
28473         ptsname: Avoid test failure on OSF/1 5.1.
28474         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
28475         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
28476         (same_slave): New function.
28477         (main): Use it to compare ptsname's result with the expected file name.
28478
28479 2010-12-22  Bruno Haible  <bruno@clisp.org>
28480
28481         Port extended stdio modules to HP NonStop Kernel.
28482         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
28483         macros.
28484         * lib/fbufmode.c: Update comments.
28485         * lib/fflush.c: Likewise.
28486         * lib/fpurge.c: Likewise.
28487         * lib/freadable.c: Likewise.
28488         * lib/freadahead.c: Likewise.
28489         * lib/freading.c: Likewise.
28490         * lib/freadptr.c: Likewise.
28491         * lib/freadseek.c: Likewise.
28492         * lib/fseeko.c: Likewise.
28493         * lib/fseterr.c: Likewise.
28494         * lib/fwritable.c: Likewise.
28495         * lib/fwriting.c: Likewise.
28496         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28497
28498 2010-12-22  Bruno Haible  <bruno@clisp.org>
28499
28500         ttyname_r: Work around bug on OSF/1 5.1.
28501         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
28502         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
28503         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
28504         present.
28505         * lib/ttyname_r.c (ttyname_r): Update comments.
28506
28507 2010-12-22  Bruno Haible  <bruno@clisp.org>
28508
28509         round: Implement result sign according to IEEE 754.
28510         * lib/round.c (MIN, MINUS_ZERO): New macros.
28511         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
28512         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
28513         * tests/test-round-ieee.c (main): Likewise.
28514         * tests/test-roundl-ieee.c (main): Likewise.
28515
28516         trunc: Implement result sign according to IEEE 754.
28517         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
28518         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
28519         * tests/test-trunc2.c: Include minus-zero.h.
28520         (MINUS_ZERO): New macro.
28521         (trunc_reference): Keep in sync with lib/trunc.c.
28522         * tests/test-truncf2.c: Include minus-zero.h.
28523         (MINUS_ZERO): New macro.
28524         (truncf_reference): Keep in sync with lib/trunc.c.
28525         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
28526         * tests/test-trunc-ieee.c (main): Likewise.
28527         * tests/test-truncl-ieee.c (main): Likewise.
28528
28529         ceil: Implement result sign according to IEEE 754.
28530         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
28531         (FUNC): Return -0.0 for -1 < x < 0.
28532         * tests/test-ceil2.c: Include minus-zero.h.
28533         (MINUS_ZERO): New macro.
28534         (ceil_reference): Keep in sync with lib/ceil.c.
28535         * tests/test-ceilf2.c: Include minus-zero.h.
28536         (MINUS_ZERO): New macro.
28537         (ceilf_reference): Keep in sync with lib/ceil.c.
28538         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
28539         * tests/test-ceil-ieee.c (main): Likewise.
28540         * tests/test-ceill-ieee.c (main): Likewise.
28541
28542         floor: Implement result sign according to IEEE 754.
28543         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
28544         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
28545         * tests/test-floorf2.c (floorf_reference): Likewise.
28546         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
28547         * tests/test-floor-ieee.c (main): Likewise.
28548         * tests/test-floorl-ieee.c (main): Likewise.
28549
28550 2010-12-22  Bruno Haible  <bruno@clisp.org>
28551
28552         getaddrinfo: Update doc.
28553         * doc/posix-functions/gai_strerror.texi: Return type is also different
28554         on AIX and HP-UX.
28555
28556 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
28557
28558         getaddrinfo, inet_ntop: Update doc for Solaris.
28559         * doc/posix-functions/gai_strerror.texi: Return type is also an
28560         issue on Solaris 9 and earlier.
28561         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
28562         on Solaris 10 and earlier.
28563
28564 2010-12-21  Bruno Haible  <bruno@clisp.org>
28565
28566         New module 'roundl-ieee'.
28567         * modules/roundl-ieee: New file.
28568         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
28569         test whether roundl works according to ISO C 99 with IEC 60559.
28570         * m4/roundl-ieee.m4: New file.
28571         * modules/roundl-ieee-tests: New file.
28572         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
28573         * tests/test-roundl.c (main): Remove signbit tests.
28574         * modules/roundl-tests (Depends-on): Remove signbit.
28575         * doc/posix-functions/roundl.texi: Mention the new module.
28576
28577 2010-12-21  Bruno Haible  <bruno@clisp.org>
28578
28579         New module 'truncl-ieee'.
28580         * modules/truncl-ieee: New file.
28581         * modules/truncl-ieee-tests: New file.
28582         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
28583         * tests/test-truncl.c (main): Remove signbit tests.
28584         * modules/truncl-tests (Depends-on): Remove signbit.
28585         * doc/posix-functions/truncl.texi: Mention the new module.
28586
28587 2010-12-21  Bruno Haible  <bruno@clisp.org>
28588
28589         New module 'ceill-ieee'.
28590         * modules/ceill-ieee: New file.
28591         * modules/ceill-ieee-tests: New file.
28592         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
28593         * tests/test-ceill.c (main): Remove signbit tests.
28594         * modules/ceill-tests (Depends-on): Remove signbit.
28595         * doc/posix-functions/ceill.texi: Mention the new module.
28596
28597 2010-12-21  Bruno Haible  <bruno@clisp.org>
28598
28599         New module 'floorl-ieee'.
28600         * modules/floorl-ieee: New file.
28601         * modules/floorl-ieee-tests: New file.
28602         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
28603         * tests/test-floorl.c (main): Remove signbit tests.
28604         * modules/floorl-tests (Depends-on): Remove signbit.
28605         * doc/posix-functions/floorl.texi: Mention the new module.
28606
28607 2010-12-21  Bruno Haible  <bruno@clisp.org>
28608
28609         New module 'round-ieee'.
28610         * modules/round-ieee: New file.
28611         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
28612         whether round works according to ISO C 99 with IEC 60559.
28613         * m4/round-ieee.m4: New file.
28614         * modules/round-ieee-tests: New file.
28615         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
28616         * tests/test-round1.c (main): Remove signbit tests.
28617         * modules/round-tests (Depends-on): Remove 'signbit'.
28618         * doc/posix-functions/round.texi: Mention the new module.
28619
28620 2010-12-21  Bruno Haible  <bruno@clisp.org>
28621
28622         New module 'trunc-ieee'.
28623         * modules/trunc-ieee: New file.
28624         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
28625         whether trunc works according to ISO C 99 with IEC 60559.
28626         * m4/trunc-ieee.m4: New file.
28627         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
28628         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
28629         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
28630         * modules/trunc-ieee-tests: New file.
28631         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
28632         * tests/test-trunc1.c (main): Remove signbit tests.
28633         * modules/trunc-tests (Depends-on): Remove 'signbit'.
28634         * doc/posix-functions/trunc.texi: Mention the new module.
28635
28636 2010-12-21  Bruno Haible  <bruno@clisp.org>
28637
28638         New module 'ceil-ieee'.
28639         * modules/ceil-ieee: New file.
28640         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
28641         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
28642         ISO C 99 with IEC 60559.
28643         * m4/ceil-ieee.m4: New file.
28644         * modules/ceil (Files): Add lib/ceil.c.
28645         (Depends-on): Add 'float'.
28646         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
28647         * lib/math.in.h (ceil): New declaration.
28648         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
28649         REPLACE_CEIL.
28650         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
28651         * modules/ceil-ieee-tests: New file.
28652         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
28653         * tests/test-math-c++.cc: Check the signature of 'ceil'.
28654         * doc/posix-functions/ceil.texi: Mention the new module.
28655
28656 2010-12-21  Bruno Haible  <bruno@clisp.org>
28657
28658         New module 'floor-ieee'.
28659         * modules/floor-ieee: New file.
28660         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
28661         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
28662         ISO C 99 with IEC 60559.
28663         * m4/floor-ieee.m4: New file.
28664         * modules/floor (Files): Add lib/floor.c.
28665         (Depends-on): Add 'float'.
28666         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
28667         * lib/math.in.h (floor): New declaration.
28668         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
28669         REPLACE_FLOOR.
28670         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
28671         * modules/floor-ieee-tests: New file.
28672         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
28673         * tests/test-math-c++.cc: Check the signature of 'floor'.
28674         * doc/posix-functions/floor.texi: Mention the new module.
28675
28676 2010-12-21  Bruno Haible  <bruno@clisp.org>
28677
28678         New module 'roundf-ieee'.
28679         * modules/roundf-ieee: New file.
28680         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
28681         test whether roundf works according to ISO C 99 with IEC 60559.
28682         * m4/roundf-ieee.m4: New file.
28683         * modules/roundf-ieee-tests: New file.
28684         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
28685         * tests/test-roundf1.c (main): Remove signbit tests.
28686         * modules/roundf-tests (Depends-on): Remove 'signbit'.
28687         * doc/posix-functions/roundf.texi: Mention the new module.
28688
28689 2010-12-21  Bruno Haible  <bruno@clisp.org>
28690
28691         New module 'truncf-ieee'.
28692         * modules/truncf-ieee: New file.
28693         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
28694         test whether truncf works according to ISO C 99 with IEC 60559.
28695         * m4/truncf-ieee.m4: New file.
28696         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
28697         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
28698         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
28699         * modules/truncf-ieee-tests: New file.
28700         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
28701         * tests/test-truncf1.c (main): Remove signbit tests.
28702         * modules/truncf-tests (Depends-on): Remove 'signbit'.
28703         * doc/posix-functions/truncf.texi: Mention the new module.
28704
28705 2010-12-21  Bruno Haible  <bruno@clisp.org>
28706
28707         New module 'ceilf-ieee'.
28708         * modules/ceilf-ieee: New file.
28709         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
28710         test whether ceilf works according to ISO C 99 with IEC 60559.
28711         * m4/ceilf-ieee.m4: New file.
28712         * modules/ceilf-ieee-tests: New file.
28713         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
28714         * tests/test-ceilf1.c (main): Remove signbit tests.
28715         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
28716         * doc/posix-functions/ceilf.texi: Mention the new module.
28717
28718 2010-12-21  Bruno Haible  <bruno@clisp.org>
28719
28720         New module 'floorf-ieee'.
28721         * modules/floorf-ieee: New file.
28722         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
28723         test whether floorf works according to ISO C 99 with IEC 60559.
28724         * m4/floorf-ieee.m4: New file.
28725         * modules/floorf-ieee-tests: New file.
28726         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
28727         * tests/test-floorf1.c (main): Remove signbit tests.
28728         * modules/floorf-tests (Depends-on): Remove 'signbit'.
28729         * doc/posix-functions/floorf.texi: Mention the new module.
28730
28731 2010-12-21  Bruno Haible  <bruno@clisp.org>
28732
28733         Support for minus zero in autoconf macros.
28734         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
28735         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
28736         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
28737         * tests/minus-zero.h: Update comments.
28738
28739 2010-12-21  Bruno Haible  <bruno@clisp.org>
28740
28741         Tests for module 'ceil'.
28742         * modules/ceil-tests: New file.
28743         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
28744         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
28745
28746 2010-12-21  Bruno Haible  <bruno@clisp.org>
28747
28748         Tests for module 'floor'.
28749         * modules/floor-tests: New file.
28750         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
28751         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
28752
28753 2010-12-21  Bruno Haible  <bruno@clisp.org>
28754
28755         math: Fix indentation.
28756         * lib/math.in.h (floorf): Fix indentation.
28757
28758 2010-12-21  Bruno Haible  <bruno@clisp.org>
28759
28760         Fix cross-compilation guesses on Solaris.
28761         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
28762         not match "solaris2.10".
28763         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
28764         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
28765         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
28766
28767 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
28768
28769         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
28770         This fixes a problem observed with the latest coreutils snapshot
28771         that caused a test to fail on Solaris 8.  src/csplit.c's call
28772         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
28773         earlier, instead of returning the number of bytes that would have
28774         been generated; this causes csplit to incorrectly report memory
28775         exhaustion.
28776         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
28777         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
28778         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
28779         comments to match.
28780         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
28781         Fix typo in matching older versions of Solaris: "solaris2.10"
28782         is matched by the shell pattern "solaris2.[0-9]*".  This matters
28783         only for guessing while cross-compiling.
28784         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
28785
28786 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
28787
28788         ftoastr: fix comment again
28789         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
28790         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
28791         Also, simplify example a bit by using flags = 0.
28792
28793 2010-12-20  Bruno Haible  <bruno@clisp.org>
28794
28795         round*, trunc*: Update documentation regarding glibc.
28796         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
28797         * doc/posix-functions/round.texi: Likewise.
28798         * doc/posix-functions/roundl.texi: Likewise.
28799         * doc/posix-functions/truncf.texi: Likewise.
28800         * doc/posix-functions/trunc.texi: Likewise.
28801         * doc/posix-functions/truncl.texi: Likewise.
28802
28803 2010-12-20  Bruno Haible  <bruno@clisp.org>
28804
28805         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
28806         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
28807         * doc/posix-functions/round.texi: Likewise.
28808         * doc/posix-functions/roundl.texi: Likewise.
28809
28810 2010-12-20  Bruno Haible  <bruno@clisp.org>
28811
28812         ttyname_r: Add missing declaration on HP-UX 11.
28813         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
28814         HAVE_TTYNAME_R.
28815         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
28816         declared. Set HAVE_TTYNAME_R always.
28817         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28818         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
28819         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
28820         HAVE_TTYNAME_R.
28821         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
28822
28823 2010-12-20  Bruno Haible  <bruno@clisp.org>
28824
28825         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
28826         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
28827         * doc/posix-functions/getlogin_r.texi: Likewise.
28828         * tests/test-getlogin.c: Include <errno.h>.
28829         (main): Avoid test failure on HP-UX 11.11.
28830         * tests/test-getlogin_r.c (main): Likewise.
28831
28832 2010-12-20  Bruno Haible  <bruno@clisp.org>
28833
28834         getlogin_r: Add missing declaration on HP-UX 11.
28835         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
28836         declared also when it exists as a function.
28837         * doc/posix-functions/getlogin_r.texi: Document this workaround.
28838
28839 2010-12-20  Bruno Haible  <bruno@clisp.org>
28840
28841         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
28842         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
28843         through wcrtomb.
28844
28845 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
28846
28847         ftoastr: fix comment
28848         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
28849         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
28850
28851 2010-12-19  Bruno Haible  <bruno@clisp.org>
28852
28853         isnan: Ensure it is a macro.
28854         * lib/math.in.h (isnan): Define as a macro if not already a macro.
28855         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
28856         Solaris.
28857
28858 2010-12-19  Bruno Haible  <bruno@clisp.org>
28859
28860         ldexpl test: Fix link error on OSF/1 5.1.
28861         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
28862
28863 2010-12-19  Bruno Haible  <bruno@clisp.org>
28864
28865         wctype: Make it work in C++ mode on OSF/1 5.1.
28866         * lib/wctype.in.h (iswblank): Declare but not define here.
28867         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
28868         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
28869         * modules/wctype (Files): Add lib/iswblank.c.
28870
28871 2010-12-19  Bruno Haible  <bruno@clisp.org>
28872
28873         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
28874         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
28875         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
28876
28877 2010-12-19  Bruno Haible  <bruno@clisp.org>
28878
28879         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
28880         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
28881         _POSIX_PII_SOCKET.
28882         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
28883         * doc/posix-functions/recvfrom.texi: Likewise.
28884         * doc/posix-functions/send.texi: Likewise.
28885         * doc/posix-functions/sendto.texi: Likewise.
28886
28887 2010-12-19  Bruno Haible  <bruno@clisp.org>
28888
28889         tcgetsid: Add missing declaration on OSF/1 5.1.
28890         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
28891         HAVE_TCGETSID.
28892         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
28893         Don't set HAVE_TCGETSID.
28894         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
28895         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
28896         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
28897         HAVE_TCGETSID.
28898         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
28899
28900 2010-12-19  Bruno Haible  <bruno@clisp.org>
28901
28902         stdio: Fix problem with popen() declaration on OSF/1 5.1.
28903         * lib/stdio.in.h: During the include_next statement, let recursive
28904         includes of this file include only the system header file.
28905
28906 2010-12-19  Bruno Haible  <bruno@clisp.org>
28907
28908         iconv_open: Fix regression from 2010-12-04.
28909         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
28910         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
28911
28912 2010-12-19  Bruno Haible  <bruno@clisp.org>
28913
28914         stdbool test: Avoid a gcc warning.
28915         * tests/test-stdbool.c (main): Fail if e1 is false.
28916         Reported by Jim Meyering.
28917
28918 2010-12-19  Jim Meyering  <meyering@redhat.com>
28919
28920         setenv: restore to working order
28921         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
28922         mistakenly removed.
28923         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
28924         HAVE_SETENV.
28925         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
28926         HAVE_SETENV.
28927
28928 2010-12-19  Bruno Haible  <bruno@clisp.org>
28929
28930         Document some different function declarations on OSF/1 5.1.
28931         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
28932         * doc/posix-functions/inet_ntop.texi: Likewise.
28933         * doc/posix-functions/gethostname.texi: Likewise.
28934         * lib/unistd.in.h (gethostname): Update comment.
28935
28936 2010-12-19  Bruno Haible  <bruno@clisp.org>
28937
28938         doc: Mention vasprintf-posix module.
28939         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
28940         the 'vasprintf-posix' module.
28941         * doc/glibc-functions/vasprintf.texi: Likewise.
28942
28943 2010-12-19  Bruno Haible  <bruno@clisp.org>
28944
28945         unsetenv: Add missing declaration on OSF/1 5.1.
28946         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
28947         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
28948         Don't set HAVE_UNSETENV. In the test program, set _BSD.
28949         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
28950         not HAVE_UNSETENV.
28951         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
28952         HAVE_UNSETENV.
28953         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
28954
28955 2010-12-19  Bruno Haible  <bruno@clisp.org>
28956
28957         setenv: Add missing declaration on OSF/1 5.1.
28958         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
28959         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
28960         declared. Don't set HAVE_SETENV.
28961         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
28962         not HAVE_SETENV.
28963         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
28964         HAVE_SETENV.
28965         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
28966
28967 2010-12-19  Bruno Haible  <bruno@clisp.org>
28968
28969         nl_langinfo tests: Avoid gcc warning.
28970         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
28971
28972 2010-12-19  Bruno Haible  <bruno@clisp.org>
28973
28974         mknod: Avoid error in C++ mode on OSF/1 with GCC.
28975         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
28976         _GL_CXXALIAS_SYS.
28977
28978 2010-12-19  Bruno Haible  <bruno@clisp.org>
28979
28980         stdbool: Relax test.
28981         * tests/test-stdbool.c (e): Don't require that casts from a variable's
28982         address to 'bool' work in static initializer, for compilers other than
28983         GCC.
28984
28985 2010-12-19  Bruno Haible  <bruno@clisp.org>
28986
28987         ftello: Add missing declaration on OSF/1 5.1.
28988         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
28989         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
28990         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
28991         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
28992         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
28993
28994 2010-12-19  Bruno Haible  <bruno@clisp.org>
28995
28996         fseeko: Add missing declaration on OSF/1 5.1.
28997         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
28998         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
28999         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
29000         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
29001         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
29002
29003 2010-12-19  Bruno Haible  <bruno@clisp.org>
29004
29005         fchdir: Add missing declaration on OSF/1 5.1.
29006         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
29007         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
29008         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
29009         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
29010         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
29011
29012 2010-12-19  Bruno Haible  <bruno@clisp.org>
29013
29014         relocatable-prog-wrapper: Separate from relocatable-prog.
29015         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
29016         uninstall-relocwrapper rule here.
29017         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
29018         Reported by Ian Beckwith <ianb@erislabs.net>.
29019
29020 2010-12-19  Bruno Haible  <bruno@clisp.org>
29021
29022         unistr/u8-mbsnlen: Add missing dependency.
29023         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
29024         Reported by Ian Beckwith <ianb@erislabs.net>.
29025
29026 2010-12-19  Bruno Haible  <bruno@clisp.org>
29027
29028         iconv: Make it possible again to use this module without 'iconv-h'.
29029         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
29030         if it is not defined.
29031         Reported by Ian Beckwith <ianb@erislabs.net>.
29032
29033 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
29034
29035         acl: port to Solaris 8 when copying from tmpfs to ufs
29036         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
29037         error number.  Problem observed on Solaris 8 with latest
29038         coreutils, with "mv A B", where A is on a tmpfs file system and B
29039         is on a ufs file system.  This caused coreutils' mv/part-symlink
29040         test to fail.
29041
29042         tests: set fail=0 at start
29043         * tests/init.sh (setup_): Move fail=0 initialization here ...
29044         (mktempd_): ... from here, so that tests can rely on fail being
29045         set to 0 initially.  This fixes a problem in coreutils; see:
29046         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
29047
29048 2010-12-18  Bruno Haible  <bruno@clisp.org>
29049
29050         memmem-simple: Stylistic changes.
29051         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
29052         Fix preprocessor directive indentation.
29053
29054 2010-12-15  Pádraig Brady <P@draigBrady.com>
29055
29056         memmem, memmem-simple: reorganize and expand empty needle check
29057         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
29058         functional checks to memmem-simple so that one has a fully functional
29059         memmem by using just this module.
29060         Restrict the performance only check to the memmem module.
29061         Also expand the empty needle check to ensure the correct
29062         pointer is returned, not just a non NULL pointer.
29063         * doc/glibc-functions/memmem.texi: Rearrange the portability
29064         documentation to correlate with the rearranged checks.
29065         Clarify exactly how the memmem and memmem-simple modules
29066         relate to each other.
29067
29068 2010-12-15  Pádraig Brady <P@draigBrady.com>
29069             Bruno Haible  <bruno@clisp.org>
29070
29071         Improve cross-compilation guesses for uClibc.
29072         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
29073         that uClibc does not have the glibc bug.
29074         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
29075         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
29076
29077 2010-12-14  Eric Blake  <eblake@redhat.com>
29078
29079         configmake: provide fallbacks for oldest supported autotools
29080         * m4/configmake.m4: New file.
29081         * modules/configmake (Files): Ship it.
29082         (configure.ac): Use it to guarantee fallbacks.
29083
29084 2010-12-13  Pádraig Brady <P@draigBrady.com>
29085
29086         read-file: Improve handling of large files
29087         * lib/read-file.c (fread_file): Minimize realloc()s
29088         for regular files, and better manage sizes around SIZE_MAX.
29089
29090 2010-12-13  Eric Blake  <eblake@redhat.com>
29091
29092         cloexec, fcntl: relax license
29093         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
29094         consent from all contributors.
29095         * modules/fcntl (License): Likewise.
29096
29097 2010-12-10  Bruno Haible  <bruno@clisp.org>
29098
29099         Tests for module 'pipe-posix'.
29100         * modules/pipe-posix-tests: New file.
29101         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
29102
29103 2010-12-10  Bruno Haible  <bruno@clisp.org>
29104
29105         pipe-posix: Make it work in C++ mode.
29106         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
29107         (pipe): Use common idiom, not a macro definition.
29108         * lib/pipe.c: New file.
29109         * m4/pipe.m4: New file.
29110         * modules/pipe-posix (Description): Enhance.
29111         (Files): Add lib/pipe.c, m4/pipe.m4.
29112         (configure.ac): Invoke gl_FUNC_PIPE.
29113         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
29114         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
29115         * tests/test-unistd-c++.cc: Check the signature of pipe.
29116
29117 2010-12-10  Bruno Haible  <bruno@clisp.org>
29118
29119         Rename module 'pipe' to 'spawn-pipe'.
29120         * modules/spawn-pipe: New file, renamed from modules/pipe.
29121         (Files, configure.ac, Makefile.am): Update.
29122         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
29123         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
29124         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
29125         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
29126         "spawn-pipe.h" instead of "pipe.h".
29127         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
29128         to gl_SPAWN_PIPE.
29129         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
29130         (Files, Makefile.am): Update.
29131         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
29132         Update.
29133         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
29134         Include "spawn-pipe.h" instead of "pipe.h".
29135         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
29136         * lib/javacomp.c: Likewise.
29137         * lib/javaversion.c: Likewise.
29138         * lib/pipe-filter-gi.c: Likewise.
29139         * lib/pipe-filter-ii.c: Likewise.
29140         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
29141         * modules/javacomp (Depends-on): Likewise.
29142         * modules/javaversion (Depends-on): Likewise.
29143         * modules/pipe-filter-gi (Depends-on): Likewise.
29144         * modules/pipe-filter-ii (Depends-on): Likewise.
29145         * MODULES.html.sh (Executing programs): Update.
29146         * NEWS: Mention the change.
29147
29148 2010-12-10  Eric Blake  <eblake@redhat.com>
29149
29150         pipe-posix: new module
29151         * modules/pipe-posix: New file.
29152         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
29153         (gl_UNISTD_H): Check for declaration.
29154         * modules/unistd (Makefile.am): Substitute it.
29155         * lib/unistd.in.h (pipe): Provide it for mingw.
29156         * doc/posix-functions/pipe.texi (pipe): Update documentation.
29157         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
29158
29159 2010-12-07  Bruno Haible  <bruno@clisp.org>
29160
29161         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
29162         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
29163         u8_strcmp_gnu.
29164         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
29165
29166 2010-12-06  Bruno Haible  <bruno@clisp.org>
29167
29168         Update internal documentation.
29169         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
29170
29171 2010-12-04  Bruno Haible  <bruno@clisp.org>
29172
29173         Put more information about failed tests into the test return codes.
29174         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
29175         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
29176         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
29177         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
29178         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
29179         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
29180         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
29181         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
29182         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
29183         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
29184         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
29185         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
29186         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
29187         * m4/stdint.m4 (gl_STDINT_H): Likewise.
29188         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
29189         returns a bit mask.
29190         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
29191         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
29192         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
29193         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
29194         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
29195         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
29196         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
29197         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
29198         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
29199         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
29200         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
29201         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
29202         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
29203         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
29204         * m4/link.m4 (gl_FUNC_LINK): Likewise.
29205         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
29206         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
29207         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
29208         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
29209         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
29210         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
29211         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
29212         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
29213         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
29214         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
29215         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
29216         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
29217         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
29218         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
29219         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
29220         gl_PRINTF_PRECISION): Likewise.
29221         * m4/regex.m4 (gl_REGEX): Likewise.
29222         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
29223         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
29224         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
29225         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
29226         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
29227         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
29228         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
29229         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
29230         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
29231         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
29232         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
29233         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
29234         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
29235         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
29236         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
29237         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
29238         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
29239         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
29240         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
29241         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
29242         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
29243         enumerated value.
29244         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
29245
29246 2010-12-04  Bruno Haible  <bruno@clisp.org>
29247
29248         Update for Solaris 11 2010-11.
29249         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
29250         Express, released in November 2010.
29251
29252 2010-12-04  Bruno Haible  <bruno@clisp.org>
29253
29254         nproc: Relax license.
29255         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
29256         and Paul Eggert.
29257         Requested by Ludovic Courtès <ludo@gnu.org>.
29258
29259 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
29260
29261         utimecmp: fine-grained src to nearby coarse-grained dest
29262
29263         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
29264         and the source is on a file system with higher-resolution time
29265         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
29266         not work, and the time stamps are close together, the algorithm to
29267         determine the exact resolution from the read-back mtime was buggy:
29268         it had a "!=" where it should have had an "==".  This bug has been
29269         in the code ever since it was introduced to gnulib.
29270         Problem reported by Dan Jacobson in
29271         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
29272
29273 2010-11-30  Bruno Haible  <bruno@clisp.org>
29274
29275         strerror_r-posix: Fix autoconf test.
29276         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
29277
29278 2010-11-28  Bruno Haible  <bruno@clisp.org>
29279             Paul Eggert  <eggert@cs.ucla.edu>
29280
29281         Tests for module 'getdomainname'.
29282         * modules/getdomainname-tests: New file.
29283         * tests/test-getdomainname.c: New file, based on
29284         tests/test-gethostname.c.
29285
29286 2010-11-28  Bruno Haible  <bruno@clisp.org>
29287             Paul Eggert  <eggert@cs.ucla.edu>
29288
29289         getdomainname: Use the system function when possible.
29290         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
29291         (getdomainname): Replace if needed. Provide the declaration if it is
29292         missing. Don't use _GL_CXXALIAS_SYS_CAST.
29293         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
29294         (getdomainname): When the system has getdomainname, call the system
29295         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
29296         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
29297         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
29298         found in libnsl. Look for the declaration also in <netdb.h>. Replace
29299         the function if its second argument is of type 'int' or if it is found
29300         in libnsl.
29301         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
29302         <sys/systeminfo.h> and sysinfo().
29303         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
29304         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29305         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
29306         HAVE_GETDOMAINNAME.
29307         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
29308         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
29309         * doc/glibc-functions/getdomainname.texi: Document the problems with
29310         the getdomainname declaration.
29311
29312 2010-11-28  Bruno Haible  <bruno@clisp.org>
29313
29314         sys_socket: Ensure ss_family field on AIX.
29315         * lib/sys_socket.in.h (ss_family): New macro definition.
29316         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
29317         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
29318         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
29319         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
29320         * modules/sys_socket (Makefile.am): Substitute
29321         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
29322         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
29323
29324 2010-11-27  Bruno Haible  <bruno@clisp.org>
29325
29326         readline: Improve configure output.
29327         * m4/readline.m4 (gl_FUNC_READLINE): Make the
29328         "checking for readline..." result understandable.
29329
29330 2010-11-27  Bruno Haible  <bruno@clisp.org>
29331
29332         *printf-posix: Detect a bug on Solaris 10/x86.
29333         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
29334         for floating-point output.
29335         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
29336         directive.
29337         * tests/test-snprintf-posix.h (test_function): Likewise.
29338         * tests/test-sprintf-posix.h (test_function): Likewise.
29339         * tests/test-vasprintf-posix.c (test_function): Likewise.
29340         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
29341         * doc/posix-functions/printf.texi: Likewise.
29342         * doc/posix-functions/snprintf.texi: Likewise.
29343         * doc/posix-functions/sprintf.texi: Likewise.
29344         * doc/posix-functions/vfprintf.texi: Likewise.
29345         * doc/posix-functions/vprintf.texi: Likewise.
29346         * doc/posix-functions/vsnprintf.texi: Likewise.
29347         * doc/posix-functions/vsprintf.texi: Likewise.
29348         * doc/glibc-functions/obstack_printf.texi: Likewise.
29349         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
29350
29351 2010-11-27  Bruno Haible  <bruno@clisp.org>
29352
29353         Fix link error when module libunistring-optional is in use.
29354         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
29355         * modules/striconveha-tests (Makefile.am): Likewise.
29356
29357 2010-11-27  Bruno Haible  <bruno@clisp.org>
29358
29359         regex: Mention link dependencies.
29360         * modules/regex (Link): New section.
29361         * modules/rpmatch (Link): Likewise.
29362         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
29363
29364 2010-11-27  Bruno Haible  <bruno@clisp.org>
29365
29366         ftoastr: Fix compilation error on Solaris.
29367         * lib/ftoastr.c: Include <config.h>.
29368
29369 2010-11-27  Bruno Haible  <bruno@clisp.org>
29370
29371         getloadavg: Update documentation.
29372         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
29373
29374 2010-11-27  Bruno Haible  <bruno@clisp.org>
29375
29376         sys_socket: Fix test whether the functions are declared.
29377         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
29378         not <sys/select.h>.
29379
29380 2010-11-27  Bruno Haible  <bruno@clisp.org>
29381
29382         getpass: Make sure to get system declaration on some platforms.
29383         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
29384         gl_USE_SYSTEM_EXTENSIONS.
29385         * modules/getpass (Depends-on): Add extensions.
29386
29387 2010-11-26  Bruno Haible  <bruno@clisp.org>
29388
29389         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
29390         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
29391         'iconv' module is present.
29392         (ICONV_CONST): New macro.
29393         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
29394         ICONV_CONST.
29395         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
29396         set ICONV_CONST.
29397         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
29398         here.
29399         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
29400         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
29401         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
29402         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
29403         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
29404         present.
29405
29406 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
29407
29408         ftoastr: comment fix
29409         * lib/ftoastr.c: "little" -> "little or no" in comment
29410
29411 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
29412
29413         stdint: port to GCC 4.3 + OSX + Octave
29414         On this platform, stdint.h is buggy and defines int64_t to long
29415         long int.  The replacement defined it to long int, causing
29416         problems with C++ style name mangling.  Instead, trust the system
29417         definition if INT64_MAX is defined, and likewise for the unsigned
29418         variant.   Problem reported by Jarno Rajahalme in
29419         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
29420         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
29421         and don't mess with int64_t and INT64_MAX in this case.
29422         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
29423
29424 2010-11-24  Bruno Haible  <bruno@clisp.org>
29425
29426         doc: Corrections regarding MacOS X 10.4 and 10.5.
29427         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
29428         MacOS X.
29429         Reported by Simon Josefsson.
29430
29431 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
29432
29433         Uninstall ".bin" files installed by relocwrapper.
29434         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
29435         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
29436         unless it is already there.
29437
29438 2010-11-21  Bruno Haible  <bruno@clisp.org>
29439
29440         Update for NetBSD 5.0.
29441         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
29442         NetBSD; the test fails on NetBSD 5.0.
29443         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
29444         about NetBSD.
29445
29446 2010-11-21  Bruno Haible  <bruno@clisp.org>
29447
29448         Update for HP-UX 11.23 and HP-UX 11.31.
29449         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
29450         HP-UX.
29451
29452 2010-11-21  Bruno Haible  <bruno@clisp.org>
29453
29454         Update for MacOS X 10.5.
29455         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
29456         MacOS X; the test fails on MacOS X 10.5.8.
29457         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
29458         about MacOS X.
29459
29460 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
29461
29462         bootstrap: add bootstrap_sync option.
29463         See discussion at
29464         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
29465         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
29466         * build-aux/bootstrap: Accept --bootstrap-sync to update
29467         bootstrap if it is not identical to the local gnulib's
29468         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
29469         enable this by default.  Accept --no-bootstrap-sync to disable
29470         it.
29471
29472 2010-11-20  Bruno Haible  <bruno@clisp.org>
29473
29474         Ensure that <features.h> is included before __GLIBC__ is tested.
29475         * lib/printf-parse.h: Include <features.h>.
29476         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
29477         Reported by Mike Frysinger <vapier@gentoo.org>.
29478
29479         Ensure that <features.h> is included before __GLIBC__ is tested.
29480         * lib/wchar.in.h: Include <features.h>.
29481         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
29482         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
29483         Reported by Mike Frysinger <vapier@gentoo.org>.
29484
29485         Ensure that <features.h> is included before __GLIBC__ is tested.
29486         * lib/arpa_inet.in.h: Include <features.h>.
29487         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
29488         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
29489         Reported by Mike Frysinger <vapier@gentoo.org>.
29490
29491         Ensure that <features.h> is included before __GLIBC__ is tested.
29492         * build-aux/link-warning.h: Include <features.h>.
29493         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
29494         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
29495         Reported by Mike Frysinger <vapier@gentoo.org>.
29496
29497         Ensure that <features.h> is included before __GLIBC__ is tested.
29498         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
29499         Reported by Mike Frysinger <vapier@gentoo.org>.
29500
29501 2010-11-20  Bruno Haible  <bruno@clisp.org>
29502
29503         memmem: Fix autoconf test.
29504         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
29505
29506 2010-11-20  Bruno Haible  <bruno@clisp.org>
29507
29508         Port to uClibc.
29509         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
29510         * lib/fcntl.in.h: Likewise.
29511         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
29512         * lib/mbrtowc.c (mbrtowc): Likewise.
29513         * lib/relocatable.c (find_shared_library_fullname): Likewise.
29514         * lib/strerror_r.c: Likewise.
29515         * lib/unistr/u8-strnlen.c: Likewise.
29516         * lib/vasnprintf.c (decimal_point_char): Likewise.
29517         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
29518         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
29519         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
29520         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
29521         * tests/test-sigaction.c (handler, main): Likewise.
29522         * lib/freading.h: Treat uClibc like a non-glibc platform.
29523         * lib/freading.c: Likewise.
29524         * lib/gettext.h: Likewise.
29525         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
29526         Likewise.
29527         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
29528         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
29529         * lib/propername.c (proper_name_utf8): Likewise.
29530         * lib/spawn.in.h: Likewise.
29531         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
29532         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
29533         mem_cd_iconveh_internal): Likewise.
29534         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
29535         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
29536         strstr, strcasestr): Likewise.
29537         * lib/unicodeio.c (unicode_to_mb): Likewise.
29538         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
29539         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
29540         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
29541         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
29542         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
29543         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
29544         * lib/unistr/u8-stpncpy.c: Likewise.
29545         * lib/vasnprintf.c (VASNPRINTF): Likewise.
29546         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
29547         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
29548         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
29549         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
29550         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
29551         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
29552         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
29553         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
29554         Likewise.
29555         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
29556         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
29557         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
29558         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29559         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
29560         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
29561         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
29562         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
29563         * tests/test-getopt.h (OPTIND_MIN): Likewise.
29564         * tests/test-striconveha.c (main): Likewise.
29565         * tests/test-vasnprintf-posix.c (test_function): Likewise.
29566         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
29567         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
29568         * doc/posix-functions/getline.texi: Likewise.
29569         Reported by Mike Frysinger <vapier@gentoo.org>.
29570
29571 2010-11-20  Bruno Haible  <bruno@clisp.org>
29572
29573         nproc: Fix condition.
29574         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
29575         HAVE_PTHREAD_AFFINITY_NP.
29576
29577 2010-11-20  Bruno Haible  <bruno@clisp.org>
29578
29579         Fix a comment.
29580         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
29581
29582 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
29583
29584         ftoastr: don't assume snprintf
29585         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
29586         Implement a subset of snprintf here, by using sprintf safely.
29587         * modules/ftoastr (Depends-on): Remove snprintf.
29588
29589 2010-11-19  Jim Meyering  <meyering@redhat.com>
29590
29591         test-rename.h: fix compilation failure
29592         * tests/test-rename.h (test_rename): Add omitted "}".
29593
29594 2010-11-17  Jim Meyering  <meyering@redhat.com>
29595
29596         maint.mk: add a URL discussing the no-@acronym policy
29597         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
29598
29599 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
29600
29601         ftoastr: depend on snprintf, improve comments
29602         * lib/ftoastr.c: Also mention Loitsch's draft.
29603         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
29604         needed in the current implementation, but it might simplify
29605         speeding up the code later.
29606         * modules/ftoastr: Depend on snprintf; this improves portability.
29607         Suggested by Bruno Haible in the same email.
29608
29609         ftoastr: port to hosts lacking strtof and strtold
29610         Problem reported by Bruno Haible in
29611         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
29612         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
29613         environment and strtold (and presumably strtof) are not available.
29614         * modules/ftoastr (Files): Add m4/c-strtod.m4.
29615         (configure.ac): Require gl_C99_STRTOLD.
29616
29617 2010-11-18  Bruno Haible  <bruno@clisp.org>
29618
29619         c-strtold: Avoid link error on AIX 7.
29620         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
29621         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
29622         (gl_C_STRTOLD): Test whether strtold_l exists.
29623         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
29624
29625 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
29626
29627         intprops: new macro INT_BITS_STRLEN_BOUND
29628         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
29629         ftoastr.h.  This exposes an internal of intprops.h that was formerly
29630         not exposed.  Also, it uses a slightly tighter bound than before;
29631         though this makes no practical difference, we might as well be as
29632         tight as we easily can.
29633
29634         ftoastr: new module, for lossless conversion of floats to short strings
29635         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
29636         * modules/ftoastr: New files.
29637
29638 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
29639
29640         bootstrap: port to Solaris sed
29641         * build-aux/bootstrap (get_version): Port to Solaris sed.
29642         See Ralf Wildenhues's note in
29643         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
29644
29645 2010-11-14  Jim Meyering  <meyering@redhat.com>
29646
29647         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
29648         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
29649         and move definition closer to sole use.
29650
29651 2010-11-13  Jim Meyering  <meyering@redhat.com>
29652
29653         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
29654         Now we require at least autoconf-2.59, which means the work-around
29655         is no longer needed.
29656         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
29657         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
29658         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
29659         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
29660         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
29661
29662 2010-11-13  Bruno Haible  <bruno@clisp.org>
29663
29664         rename, renameat: Avoid test failures at NFS mounted locations.
29665         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
29666         functions.
29667         (test_rename): Use assert_nonexistent.
29668         * tests/test-rename.c: Include <dirent.h>.
29669         * tests/test-renameat.c: Likewise.
29670         Reported by Gary V. Vaughan <gary@gnu.org>.
29671
29672         rename, renameat: Document Linux bug with NFS
29673         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
29674         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
29675         * doc/posix-functions/renameat.texi: Likewise.
29676         Suggested by Eric Blake.
29677
29678 2010-11-13  Bruno Haible  <bruno@clisp.org>
29679
29680         rename test: Add comments.
29681         * tests/test-rename.h (test_rename): Add structure and comments.
29682
29683 2010-11-13  Eric Blake  <eblake@redhat.com>
29684
29685         maintainer-makefile: cover a few more files
29686         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
29687         scripts generated within C files, for libvirt.
29688
29689 2010-11-13  Bruno Haible  <bruno@clisp.org>
29690
29691         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
29692         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
29693         character, return the number of bytes that belong together, not always
29694         1.
29695         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
29696         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
29697         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
29698         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
29699         number of bytes of an invalid character.
29700         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
29701         (main): Invoke it.
29702         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
29703         results.
29704         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
29705         malformed byte sequences.
29706         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
29707         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
29708         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
29709         Reported by Ben Pfaff and Paolo Bonzini.
29710
29711 2010-11-13  Bruno Haible  <bruno@clisp.org>
29712
29713         openat: Work around glibc bug with fchownat() and empty file names.
29714         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
29715         (gl_FUNC_FCHOWNAT): Invoke it.
29716         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
29717         * doc/posix-functions/fchownat.texi: Document the glibc bug.
29718         Reported by Gary V. Vaughan <gary@gnu.org>.
29719
29720 2010-11-13  Bruno Haible  <bruno@clisp.org>
29721
29722         openat: Ensure autoconf macro ordering.
29723         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
29724         gl_USE_SYSTEM_EXTENSIONS.
29725         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
29726
29727 2010-11-13  Bruno Haible  <bruno@clisp.org>
29728
29729         Update comments.
29730         * lib/unistr/u8-check.c: Update file name in comments.
29731         * lib/unistr/u8-mblen.c: Likewise.
29732         * lib/unistr/u8-prev.c: Likewise.
29733         * lib/unistr/u8-strmblen.c: Likewise.
29734         * lib/unistr/u8-strmbtouc.c: Likewise.
29735
29736 2010-11-13  Jim Meyering  <meyering@redhat.com>
29737
29738         tests: avoid test failure on Solaris 10 due to lack of PATH export
29739         * tests/test-update-copyright.sh: Don't forget to export PATH.
29740
29741         init.sh: ensure that IFS is defined, just in case...
29742         * tests/init.sh (setup_): Ensure that IFS is defined,
29743         so that saving and restoring it works as expected.  This
29744         appears to be useful at least for an old version of dash
29745         from a long time ago (RH 6).  See here for details:
29746         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
29747
29748         maint.mk: tighten "test a == b" check
29749         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
29750         test to files that contain something like #!/bin/sh.
29751         Without this, coreutils would get two false positives in
29752         the comments of C source files.
29753
29754 2010-11-12  Eric Blake  <eblake@redhat.com>
29755
29756         bootstrap: fix typo in previous attempt
29757         * build-aux/bootstrap (buildreq): Correct the grouping.
29758         Reported by Paul Eggert.
29759
29760         maintainer-makefile: prohibit test x == x
29761         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
29762         Based on a report by Matthias Bolte.
29763
29764         bootstrap: allow FreeBSD gzip
29765         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
29766         which has no '.' and goes to stderr.
29767         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
29768         Reported by Matthias Bolte.
29769
29770         maintainer-makefile: check for i18n setup
29771         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
29772         will likely work.
29773
29774 2010-11-12  Bruno Haible  <bruno@clisp.org>
29775
29776         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
29777         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
29778         * lib/nanosleep.c (nanosleep): Likewise.
29779
29780 2010-11-11  Bruno Haible  <bruno@clisp.org>
29781
29782         fcntl-h: Fix for use of C++ on glibc systems.
29783         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
29784         also on glibc systems in C++ mode.
29785         Reported by Gary V. Vaughan <gary@gnu.org>.
29786
29787 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
29788
29789         mknod: avoid false failure with dash
29790         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
29791
29792 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
29793
29794         unlink: Fix "is it should" typo in diagnostic.
29795         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
29796         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
29797
29798 2010-11-11  Bruno Haible  <bruno@clisp.org>
29799
29800         Tests for module 'strerror_r-posix'.
29801         * modules/strerror_r-posix-tests: New file.
29802         * tests/test-strerror_r.c: New file.
29803         * tests/test-string-c++.cc: Check the signature of strerror_r.
29804
29805         New module 'strerror_r-posix'.
29806         * lib/string.in.h (strerror_r): New declaration.
29807         * lib/strerror_r.c: New file.
29808         * m4/strerror_r.m4: New file.
29809         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
29810         of strerror_r.
29811         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
29812         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
29813         * modules/strerror_r-posix: New file.
29814         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
29815         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
29816         * doc/posix-functions/strerror_r.texi: Mention the new module and the
29817         portability problems.
29818
29819 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
29820
29821         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
29822         line is also considered for output. Quoted function name in shell
29823         command, so temporary files for functions like MyClass::operator()
29824         are removed correctly without errors.
29825
29826 2010-11-09  Bruno Haible  <bruno@clisp.org>
29827
29828         * doc/posix-functions/strerror.texi: List more failing platforms.
29829
29830         * doc/posix-functions/strerror.texi: Add a comment.
29831
29832 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
29833
29834         fdopendir: fix bug on MacOS X when low on file descriptors
29835
29836         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
29837         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
29838         All callers changed.
29839         (fdopendir): Invoke save_cwd at the top level, not after using
29840         multiple dup() calls to use up file descriptors.  Then retry
29841         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
29842         less than the maximum number of open file descriptors, because
29843         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
29844         on Mac OS X 10.6.4 for tar 1.24
29845         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
29846         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
29847         and for tar 1.25
29848         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
29849
29850 2010-11-07  Bruno Haible  <bruno@clisp.org>
29851
29852         vasnprintf: Support I flag on glibc systems.
29853         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
29854         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
29855         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
29856         snprintf function.
29857         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
29858         glibc systems.
29859         * tests/test-vasnprintf-posix3.c: New file.
29860         * modules/vasnprintf-posix-tests (Files): Add it.
29861         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
29862
29863 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
29864
29865         [html] Fix copy/paste bug: Use unique name for compiler warnings.
29866         * MODULES.html.sh: For compiler warnings, use name
29867         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
29868
29869 2010-11-05  Eric Blake  <eblake@redhat.com>
29870
29871         ceil, floor: avoid spurious failure with icc
29872         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
29873         [denormals-as-zero] when optimizing without -mieee-fp option.
29874         * tests/test-floorf2.c (floorf_reference): Likewise.
29875         * tests/test-ceilf1.c (dummy): New function.
29876         (main): Use it to outsmart icc's optimization.
29877         * tests/test-floorf1.c (dummy, main): Likewise.
29878
29879         tests: require working signbit
29880         * modules/ceilf-tests (Depends-on): Add signbit.
29881         * modules/ceill-tests (Depends-on): Likewise.
29882         * modules/floorf-tests (Depends-on): Likewise.
29883         * modules/floorl-tests (Depends-on): Likewise.
29884         * modules/round-tests (Depends-on): Likewise.
29885         * modules/roundf-tests (Depends-on): Likewise.
29886         * modules/roundl-tests (Depends-on): Likewise.
29887         * modules/trunc-tests (Depends-on): Likewise.
29888         * modules/truncf-tests (Depends-on): Likewise.
29889         * modules/truncl-tests (Depends-on): Likewise.
29890
29891         strtod: work around icc bug
29892         * lib/strtod.c (minus_zero): Define to working value.
29893         (strtod): Use it to avoid icc bug.
29894
29895         copysign: enhance tests
29896         * modules/copysign-tests (Files): Add minus-zero.h.
29897         * tests/test-copysign.c (main): Also test zeros.
29898
29899 2010-11-04  Eric Blake  <eblake@redhat.com>
29900
29901         ceil, floor, round, trunc: enhance tests of -0
29902         * tests/test-ceilf1.c (main): Ensure correct sign of result.
29903         * tests/test-ceill.c (main): Likewise.
29904         * tests/test-floorf1.c (main): Likewise.
29905         * tests/test-floorl.c (main): Likewise.
29906         * tests/test-round1.c (main): Likewise.
29907         * tests/test-roundf1.c (main): Likewise.
29908         * tests/test-roundl.c (main): Likewise.
29909         * tests/test-trunc1.c (main): Likewise.
29910         * tests/test-truncf1.c (main): Likewise.
29911         * tests/test-truncl.c (main): Likewise.
29912
29913 2010-11-04  Eric Blake  <eblake@redhat.com>
29914
29915         frexp, tests: work around ICC bug with -zero
29916         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
29917         works with more compilers.
29918         * tests/minus-zero.h: New file.
29919         * modules/ceilf-tests (Files): Include it.
29920         * modules/ceill-tests (Files): Likewise.
29921         * modules/floorf-tests (Files): Likewise.
29922         * modules/floorl-tests (Files): Likewise.
29923         * modules/frexp-nolibm-tests (Files): Likewise.
29924         * modules/frexp-tests (Files): Likewise.
29925         * modules/frexpl-nolibm-tests (Files): Likewise.
29926         * modules/frexpl-tests (Files): Likewise.
29927         * modules/isnan-tests (Files): Likewise.
29928         * modules/isnand-nolibm-tests (Files): Likewise.
29929         * modules/isnand-tests (Files): Likewise.
29930         * modules/isnanf-nolibm-tests (Files): Likewise.
29931         * modules/isnanf-tests (Files): Likewise.
29932         * modules/isnanl-nolibm-tests (Files): Likewise.
29933         * modules/isnanl-tests (Files): Likewise.
29934         * modules/round-tests (Files): Likewise.
29935         * modules/roundf-tests (Files): Likewise.
29936         * modules/roundl-tests (Files): Likewise.
29937         * modules/ldexpl-tests (Files): Likewise.
29938         * modules/signbit-tests (Files): Likewise.
29939         * modules/snprintf-posix-tests (Files): Likewise.
29940         * modules/sprintf-posix-tests (Files): Likewise.
29941         * modules/strtod-tests (Files): Likewise.
29942         * modules/trunc-tests (Files): Likewise.
29943         * modules/truncf-tests (Files): Likewise.
29944         * modules/truncl-tests (Files): Likewise.
29945         * modules/vsnprintf-posix-tests (Files): Likewise.
29946         * modules/vsprintf-posix-tests (Files): Likewise.
29947         * modules/vasnprintf-posix-tests (Files): Likewise.
29948         * modules/vasprintf-posix-tests (Files): Likewise.
29949         * tests/test-ceilf1.c (main): Use it.
29950         * tests/test-ceill.c (main): Likewise.
29951         * tests/test-floorf1.c (main): Likewise.
29952         * tests/test-floorl.c (main): Likewise.
29953         * tests/test-frexp.c (main): Likewise.
29954         * tests/test-frexpl.c (main): Likewise.
29955         * tests/test-isnan.c (main): Likewise.
29956         * tests/test-isnand.h (main): Likewise.
29957         * tests/test-isnanf.h (main): Likewise.
29958         * tests/test-isnanl.h (main): Likewise.
29959         * tests/test-ldexpl.c (main): Likewise.
29960         * tests/test-round.c (main): Likewise.
29961         * tests/test-roundf.c (main): Likewise.
29962         * tests/test-roundl.c (main): Likewise.
29963         * tests/test-signbit.c (test_signbitf, test_signbitd)
29964         (test_signbitl): Likewise.
29965         * tests/test-snprintf-posix.h (test_function): Likewise.
29966         * tests/test-sprintf-posix.h (test_function): Likewise.
29967         * tests/test-strtod.c (main): Likewise.
29968         * tests/test-trunc1.c (main): Likewise.
29969         * tests/test-truncf1.c (main): Likewise.
29970         * tests/test-truncl.c (main): Likewise.
29971
29972         isnanl: work around icc bug
29973         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
29974
29975 2010-11-03  Eric Blake  <eblake@redhat.com>
29976
29977         tests: fix compiler warnings
29978         * tests/test-getopt.h (test_getopt): Fix condition.
29979         * tests/test-getopt_long.h (test_getopt_long): Likewise.
29980         * tests/test-pipe2.c (main): Likewise.
29981         * tests/test-quotearg-simple.c (main): Avoid icc warning.
29982
29983         utimens: fix broken m4 test
29984         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
29985
29986 2010-10-28  Bruno Haible  <bruno@clisp.org>
29987
29988         posix_spawn*, getdtablesize: Relax license.
29989         * modules/posix_spawn (License): Change to LGPLv2+.
29990         * modules/posix_spawnp (License): Likewise.
29991         * modules/posix_spawn-internal (License): Likewise.
29992         * modules/posix_spawnattr_init (License): Likewise.
29993         * modules/posix_spawnattr_getflags (License): Likewise.
29994         * modules/posix_spawnattr_setflags (License): Likewise.
29995         * modules/posix_spawnattr_getpgroup (License): Likewise.
29996         * modules/posix_spawnattr_setpgroup (License): Likewise.
29997         * modules/posix_spawnattr_getschedparam (License): Likewise.
29998         * modules/posix_spawnattr_setschedparam (License): Likewise.
29999         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
30000         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
30001         * modules/posix_spawnattr_getsigdefault (License): Likewise.
30002         * modules/posix_spawnattr_setsigdefault (License): Likewise.
30003         * modules/posix_spawnattr_getsigmask (License): Likewise.
30004         * modules/posix_spawnattr_setsigmask (License): Likewise.
30005         * modules/posix_spawnattr_destroy (License): Likewise.
30006         * modules/posix_spawn_file_actions_init (License): Likewise.
30007         * modules/posix_spawn_file_actions_addclose (License): Likewise.
30008         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
30009         * modules/posix_spawn_file_actions_addopen (License): Likewise.
30010         * modules/posix_spawn_file_actions_destroy (License): Likewise.
30011         * modules/getdtablesize (License): Likewise.
30012         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
30013
30014 2010-10-26  Bruno Haible  <bruno@clisp.org>
30015
30016         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
30017         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
30018         Cygwin and mingw.
30019         Suggested by Eric Blake.
30020
30021 2010-10-26  Bruno Haible  <bruno@clisp.org>
30022
30023         stdio: Work around compilation error due to renameat() on Solaris 10.
30024         * lib/stdio.in.h: Include <unistd.h> on Solaris.
30025         * lib/renameat.c: Don't include <unistd.h> here.
30026         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
30027         Reported by Paul Eggert and Eric Blake.
30028
30029 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
30030
30031         renameat: port to Solaris 10, which declares renameat in unistd.h
30032
30033         * lib/renameat.c: Include unistd.h before stdio.h, because
30034         Solaris 10 declares renameat in unistd.h.  Problem encountered
30035         when building GNU tar 1.24 on Solaris 10.
30036
30037 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
30038
30039         fdopendir: fix C89 compilation
30040         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
30041         compilers.
30042
30043 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
30044
30045         inttostr: simplify by removing unnecessary redundancy
30046         * lib/anytostr.c: Don't include verify.h.
30047         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
30048         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
30049         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
30050         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
30051         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
30052         Likewise.
30053         * modules/inttostr (Depends-on): Remove 'verify'.
30054
30055 2010-10-23  Bruno Haible  <bruno@clisp.org>
30056
30057         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
30058         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
30059         Reported by Eric Blake.
30060
30061 2010-10-23  Bruno Haible  <bruno@clisp.org>
30062
30063         Tests: Fix LOCALE_JA on MirBSD 10.
30064         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
30065         to an UTF-8 locale.
30066         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
30067         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
30068         Reported by Eric Blake.
30069
30070 2010-10-21  Bruno Haible  <bruno@clisp.org>
30071
30072         nl_langinfo test: Avoid test failure on NetBSD 5.
30073         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
30074         Reported by Eric Blake.
30075
30076 2010-10-21  Eric Blake  <eblake@redhat.com>
30077
30078         c-stack: work around libsigsegv 2.8 bug
30079         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
30080         overflow on at least PowerPC64.
30081
30082 2010-10-17  Bruno Haible  <bruno@clisp.org>
30083
30084         userspec: Drop redundant file.
30085         * modules/userspec (Files): Remove lib/inttostr.h.
30086
30087 2010-10-17  Bruno Haible  <bruno@clisp.org>
30088
30089         nl_langinfo tests: Silence some warnings.
30090         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
30091         Reported by Jim Meyering.
30092
30093 2010-10-17  Bruno Haible  <bruno@clisp.org>
30094
30095         Make use of GCC's attribute __alloc_size__.
30096         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
30097         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
30098         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
30099         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
30100         __alloc_size__.
30101         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
30102         Suggested by Jim Meyering.
30103
30104 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
30105
30106         bootstrap: anchor .gitignore entries.
30107         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
30108         with...
30109         (insert_vc_ignore): ... this new function, which prepends `/' to
30110         all .gitignore entries before passing them to
30111         insert_sorted_if_absent.
30112
30113 2010-10-16  Bruno Haible  <bruno@clisp.org>
30114
30115         nextafter: Fix configure check.
30116         * modules/nextafter (configure.ac): Correct expected prototype.
30117
30118 2010-10-16  Bruno Haible  <bruno@clisp.org>
30119
30120         termios: Update documentation.
30121         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
30122
30123 2010-10-16  Bruno Haible  <bruno@clisp.org>
30124
30125         tests: Make them compile with TinyCC.
30126         * tests/test-strstr.c (main): Remove parentheses around array
30127         initializer.
30128
30129 2010-10-15  Eric Blake  <eblake@redhat.com>
30130
30131         ignore-value: make header idempotent
30132         * lib/ignore-value.h: Add double-inclusion guards.
30133         Reported by Stefan Berger.
30134
30135 2010-10-15  Jim Meyering  <meyering@redhat.com>
30136
30137         GNUmakefile: handle "stable" target, not "major"
30138         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
30139         lists in maint.mk and announce-gen.  Without this, "make stable"
30140         would fail to ensure that $(VERSION) is up to date.
30141
30142 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
30143
30144         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
30145         & co.
30146
30147 2010-10-14  Bruno Haible  <bruno@clisp.org>
30148
30149         vasnprintf: Don't set errno to 0.
30150         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
30151         block that sets it to 0.
30152         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
30153
30154 2010-10-14  Bruno Haible  <bruno@clisp.org>
30155
30156         socketlib: Fix.
30157         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
30158         gl_PREREQ_SYS_H_WINSOCK2.
30159         Reported by Ian Beckwith <ianb@erislabs.net>.
30160
30161 2010-10-13  Jim Meyering  <meyering@redhat.com>
30162
30163         test-select-stdin.c: avoid warn_unused_result warnings
30164         * tests/test-select-stdin.c: Include "macros.h".
30165         ASSERT that read and fflush succeed.
30166
30167 2010-10-13  Jim Meyering  <meyering@redhat.com>
30168
30169         git-version-gen: do require git-VC'd files in cwd
30170         * build-aux/git-version-gen: Reject a git version string
30171         if there are no commits associated with the current directory.
30172         This avoids an unlikely false-positive (unrelated dir whose parent
30173         repository also contains a tag matching v*), as pointed out
30174         by Giuseppe Scrivano in
30175         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
30176
30177 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
30178
30179         argv-iter: omit nonconforming declaration
30180         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
30181         enum arg_iter_err declaration, which doesn't conform to C99.
30182         Solaris 10 cc warns about this.
30183
30184 2010-10-13  Eric Blake  <eblake@redhat.com>
30185
30186         termios: fix compilation on mingw
30187         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
30188         (gl_TERMIOS_H): Adjust it on mingw.
30189         * modules/termios (Makefile.am): Substitute new key.
30190         * lib/termios.in.h (includes): Make include_next conditional.
30191         * doc/posix-headers/termios.texi (termios.h): Update
30192         documentation.
30193         Reported by Daniel P. Berrange.
30194
30195 2010-10-13  Jim Meyering  <meyering@redhat.com>
30196
30197         git-version-gen: don't require that .git/ be in the current dir
30198         * build-aux/git-version-gen: Adjust this script so that it works
30199         when run from any working directory beneath the top-level .git/-
30200         containing directory.  Inspired by a patch from Giuseppe Scrivano,
30201         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
30202
30203         test-select: avoid warn_unused_result warnings
30204         * tests/test-select.c: Include "macros.h".
30205         ASSERT that each call to read, write, and pipe succeeds.
30206         While not technically required, also check each "close".
30207         * modules/select-tests (Files): Add tests/macros.h.
30208
30209         test-symlinkat: remove declaration of unused local
30210         * tests/test-symlinkat.c (main): Remove unused local, "buf".
30211
30212         test-inttostr: avoid shadowing warnings
30213         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
30214         and use malloc rather than the stack for the same reason as
30215         mentioned in the comment justifying the other allocation.
30216
30217 2010-10-11  Bruno Haible  <bruno@clisp.org>
30218
30219         stdlib: Allow multiple gnulib generated replacements to coexist.
30220         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
30221         Reported by Sam Steingold <sds@gnu.org>.
30222
30223 2010-10-11  Jim Meyering  <meyering@redhat.com>
30224
30225         fix a documentation typo
30226         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
30227
30228 2010-10-11  Eric Blake  <eblake@redhat.com>
30229
30230         futimens: work around Solaris 11 bug
30231         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
30232         * tests/test-futimens.h (test_futimens): Enhance, rather than
30233         weaken test.
30234         * doc/posix-functions/futimens.texi (futimens): Document the bug.
30235
30236 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
30237
30238         Indentation.
30239         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
30240         higher-level operators more to the left.
30241
30242 2010-10-11  Jim Meyering  <meyering@redhat.com>
30243
30244         test-futimens: avoid unwarranted test failure on Solaris 5.11
30245         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
30246         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
30247         because it tries to dereference the NULL name argument.
30248
30249 2010-10-11  Bruno Haible  <bruno@clisp.org>
30250
30251         Indentation.
30252         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
30253         indentation.
30254
30255 2010-10-11  Jim Meyering  <meyering@redhat.com>
30256
30257         spawn.in.h: make indentation consistent with parentheses
30258         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
30259         Make indentation consistent with parentheses.
30260
30261 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
30262
30263         Fix mismatched parens in previous commit
30264         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
30265         parens.
30266
30267 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
30268
30269         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
30270
30271         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
30272         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
30273         * lib/malloca.c: Include "verify.h".
30274         (verify1): Remove, replacing with a verify call.
30275         * lib/relocwrapper.c (verify1): Likewise.
30276         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
30277         Likewise.
30278         * modules/malloca (Depends-on): Add 'verify'.
30279         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
30280         * modules/vasnprintf (Depends-on): Add 'verify'.
30281         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
30282         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
30283         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
30284         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
30285         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
30286         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
30287         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
30288
30289         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
30290
30291         Formerly the style was sometimes 2*X - 1, because the C standard
30292         was wrongly thought to disallow ?: in integral constant expressions.
30293         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
30294         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
30295         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
30296         * lib/stdint.in.h (_verify_intmax_size): Likewise.
30297         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
30298         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
30299         verify that time_t cannot be floating.
30300
30301 2010-10-08  Eric Blake  <eblake@redhat.com>
30302
30303         time: enforce recent POSIX ruling that time_t is integral
30304         * lib/time.in.h (__time_t_must_be_integral): Detect any
30305         problematic systems, allowing the rest of gnulib to assume POSIX.
30306
30307 2010-10-08  Jim Meyering  <meyering@redhat.com>
30308
30309         fdopendir: fix a bug on systems lacking openat and /proc support
30310         OpenBSD 4.7 is one such system.  The most noticeable effect was
30311         failure of any application making nontrivial use of fts: rm, du,
30312         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
30313           ./rm: traversal failed: `a': Bad file descriptor
30314         Debugging that, you see that even though FD 6 was closed just
30315         prior to the opendir call in fd_clone_opendir, its resulting
30316         dir->dd_fd was 8, rather than the expected value of 6:
30317
30318         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
30319         93                close (fd);
30320         (gdb) n
30321         94                dir = fd_clone_opendir (dupfd);
30322         (gdb) n
30323         95                saved_errno = errno;
30324         (gdb) p dir->dd_fd
30325         $11 = 8
30326
30327         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
30328         The problem is that on OpenBSD, fd_clone_opendir has to resort
30329         to using the old-style save/restore CWD mechanism, due to its
30330         lack of openat/proc support, and *that* would steal the FD (6)
30331         that opendir was supposed to use.
30332
30333         The fix is to squirrel away the desired FD so that save_cwd uses a
30334         different one, and then free the dest FD right before calling opendir.
30335         That guarantees opendir will use the required file descriptor.
30336
30337         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
30338
30339 2010-10-08  Bruno Haible  <bruno@clisp.org>
30340
30341         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
30342         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
30343
30344 2010-10-08  Bruno Haible  <bruno@clisp.org>
30345
30346         nanosleep: Make replacement POSIX compliant.
30347         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
30348         is out of range.
30349         Reported by Jim Meyering.
30350
30351 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
30352
30353         bootstrap: add hook for altering gnulib.mk, for Bison
30354         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
30355         the Bison bootstrapping process can rewrite file names and variables
30356         in this file before later parts of 'bootstrap' use the file.
30357         Bison wants to include lib/gnulib.mk from the top-level makefile,
30358         so it needs the file names in this file to be relative to the top
30359         level, not relative to lib; plus it needs variable names to be
30360         rewritten.
30361         (slurp): Use the new function.
30362
30363         bootstrap: reformat for readability
30364         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
30365
30366 2010-10-08  Eric Blake  <eblake@redhat.com>
30367
30368         docs: update cygwin progress
30369         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
30370         1.7.7.
30371         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
30372         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
30373         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
30374         * doc/posix-functions/carg.texi (carg): Likewise.
30375         * doc/posix-functions/cargf.texi (cargf): Likewise.
30376         * doc/posix-functions/casin.texi (casin): Likewise.
30377         * doc/posix-functions/casinf.texi (casinf): Likewise.
30378         * doc/posix-functions/casinh.texi (casinh): Likewise.
30379         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
30380         * doc/posix-functions/catan.texi (catan): Likewise.
30381         * doc/posix-functions/catanf.texi (catanf): Likewise.
30382         * doc/posix-functions/catanh.texi (catanh): Likewise.
30383         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
30384         * doc/posix-functions/ccos.texi (ccos): Likewise.
30385         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
30386         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
30387         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
30388         * doc/posix-functions/cexp.texi (cexp): Likewise.
30389         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
30390         * doc/posix-functions/cimag.texi (cimag): Likewise.
30391         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
30392         * doc/posix-functions/clog.texi (clog): Likewise.
30393         * doc/posix-functions/clogf.texi (clogf): Likewise.
30394         * doc/posix-functions/conj.texi (conj): Likewise.
30395         * doc/posix-functions/conjf.texi (conjf): Likewise.
30396         * doc/posix-functions/cpow.texi (cpow): Likewise.
30397         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
30398         * doc/posix-functions/cproj.texi (cproj): Likewise.
30399         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
30400         * doc/posix-functions/creal.texi (creal): Likewise.
30401         * doc/posix-functions/crealf.texi (crealf): Likewise.
30402         * doc/posix-functions/csin.texi (csin): Likewise.
30403         * doc/posix-functions/csinf.texi (csinf): Likewise.
30404         * doc/posix-functions/csinh.texi (csinh): Likewise.
30405         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
30406         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
30407         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
30408         * doc/posix-functions/ctan.texi (ctan): Likewise.
30409         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
30410         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
30411         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
30412         * doc/posix-headers/complex.texi (complex.h): Likewise.
30413
30414 2010-10-07  Jim Meyering  <meyering@redhat.com>
30415
30416         parse-datetime: avoid compilation failure on OpenBSD 4.7
30417         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
30418         This works around a compilation failure on OpenBSD 4.7:
30419         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
30420
30421 2010-10-07  Eric Blake  <eblake@redhat.com>
30422
30423         docs: update cygwin progress
30424         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
30425         1.7.6.
30426         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
30427         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
30428         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
30429         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
30430         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
30431         Likewise.
30432         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
30433         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
30434         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
30435         Likewise.
30436         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
30437         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
30438         Likewise.
30439         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
30440         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
30441         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
30442         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
30443         Likewise.
30444         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
30445         Likewise.
30446         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
30447
30448         docs: update parse-datetime history
30449         * doc/parse-datetime.texi (Authors of parse_datetime): Better
30450         documentation of this function's history and alternatives.
30451
30452         cygwin: use more robust version check
30453         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
30454         exclude an eventual cygwin 1.9.1.
30455         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
30456         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
30457         (gl_FUNC_STRCASESTR): Likewise.
30458         Reported by Bruno Haible.
30459
30460 2010-10-06  Bruno Haible  <bruno@clisp.org>
30461
30462         string, sys_select: Avoid #including large headers unless necessary.
30463         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
30464         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
30465         OSF/1, BeOS, Haiku.
30466         Reported by Jim Meyering.
30467
30468 2010-10-05  Eric Blake  <eblake@redhat.com>
30469
30470         memmem, strstr, strcasestr: fix bug with long periodic needle
30471         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
30472         periodic needle having false positive.
30473         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
30474         and cygwin 1.7.7.
30475         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
30476         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
30477         (gl_FUNC_STRCASESTR): Likewise.
30478         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
30479         * tests/test-memmem.c (main): Expose the bug.
30480         * tests/test-strcasestr.c (main): Likewise.
30481         * tests/test-strstr.c (main): Likewise.
30482         * tests/test-c-strcasestr.c (main): Likewise.
30483         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
30484         * doc/posix-functions/strstr.texi (strstr): Likewise.
30485         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
30486         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
30487
30488 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
30489
30490         parse-datetime: do some more renaming
30491         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
30492         parse_datetime, not get_date.  Mention the renaming.
30493         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
30494         in comments.
30495         * m4/bison.m4: Likewise.
30496
30497 2010-10-05  Eric Blake  <eblake@redhat.com>
30498
30499         parse-datetime: better name than get_date
30500         * NEWS: Reword the deprecation notice.
30501         * modules/get_date: Rename to modules/parse-datetime.
30502         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
30503         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
30504         * lib/get_date.y: Rename to lib/parse-datetime.y.
30505         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
30506         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
30507         * doc/getdate.texi: Provide fallback wrapper.
30508         * lib/getdate.h: Move guts, and wrap...
30509         * lib/parse-datetime.h: ...new file.
30510         * lib/parse-datetime.y (get_date): Rename...
30511         (parse_datetime): ...to this.
30512         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
30513         (gl_PARSE_DATETIME): ...to this.
30514         * doc/posix-functions/getdate.texi (get_date): Provide fallback
30515         documentation.
30516         * modules/getdate (Files): Provide fallback docs and header.
30517         (Notice, Depends-on): Update references.
30518         * tests/test-parse-datetime.c: Likewise.
30519         * DEPENDENCIES: Likewise.
30520         * MODULES.html.sh (Date and time <time.h>): Likewise.
30521         * doc/parse-datetime.texi (Date input formats)
30522         (Authors of parse_datetime): Likewise.
30523         * modules/parse-datetime (Files, configure.ac, Makefile.am)
30524         (Include): Likewise.
30525         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
30526         * gnulib-tool: Likewise.
30527         * m4/bison.m4 (gl_BISON): Likewise.
30528         Suggested by Bruno Haible.
30529
30530 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
30531
30532         more ports to Solaris tr, which needs [] around ranges
30533         * gnulib-tool: Solaris tr needs [] around ranges.
30534         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
30535         * tests/test-pipe-filter-gi1.c (main): Likewise.
30536         * tests/test-pipe-filter-ii1.c (main): Likewise.
30537
30538 2010-10-05  Eric Blake  <eblake@redhat.com>
30539
30540         bootstrap: fix Solaris regression
30541         * build-aux/bootstrap (check_versions): Solaris tr still needs []
30542         around ranges.
30543         Reported by Pádraig Brady.
30544
30545         bootstrap: work with pkg-config
30546         * build-aux/bootstrap (check_versions): Also transliterate - in
30547         prerequisite name.
30548         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
30549         prerequisites that were already found, to avoid confusion.
30550         Reported by Justin Clift.
30551
30552         faccessat: remove unused wrappers
30553         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
30554         presence of these wrappers dragged in -lgen on Solaris.
30555         Reported by Clemens Brogi; fix suggested by Paul Eggert.
30556
30557 2010-10-05  Jim Meyering  <meyering@redhat.com>
30558
30559         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
30560         * Makefile (sc_pragma_columns): New syntax-check rule.
30561
30562 2010-10-04  Bruno Haible  <bruno@clisp.org>
30563
30564         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
30565         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
30566         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
30567         Reported by Bruce Korb and Eric Blake.
30568
30569 2010-10-04  Bruno Haible  <bruno@clisp.org>
30570
30571         threadlib: Make option --with-libpth-prefix work.
30572         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
30573         use $LIBPTH, not just -lpth.
30574
30575 2010-10-04  Bruno Haible  <bruno@clisp.org>
30576
30577         Avoid line length limitation from HP NonStop system header files.
30578         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
30579         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
30580         * lib/ctype.in.h: Likewise.
30581         * lib/dirent.in.h: Likewise.
30582         * lib/errno.in.h: Likewise.
30583         * lib/fcntl.in.h: Likewise.
30584         * lib/float.in.h: Likewise.
30585         * lib/getopt.in.h: Likewise.
30586         * lib/iconv.in.h: Likewise.
30587         * lib/inttypes.in.h: Likewise.
30588         * lib/langinfo.in.h: Likewise.
30589         * lib/locale.in.h: Likewise.
30590         * lib/math.in.h: Likewise.
30591         * lib/netdb.in.h: Likewise.
30592         * lib/netinet_in.in.h: Likewise.
30593         * lib/poll.in.h: Likewise.
30594         * lib/pthread.in.h: Likewise.
30595         * lib/pty.in.h: Likewise.
30596         * lib/sched.in.h: Likewise.
30597         * lib/se-selinux.in.h: Likewise.
30598         * lib/search.in.h: Likewise.
30599         * lib/signal.in.h: Likewise.
30600         * lib/spawn.in.h: Likewise.
30601         * lib/stdarg.in.h: Likewise.
30602         * lib/stddef.in.h: Likewise.
30603         * lib/stdint.in.h: Likewise.
30604         * lib/stdio.in.h: Likewise.
30605         * lib/stdlib.in.h: Likewise.
30606         * lib/string.in.h: Likewise.
30607         * lib/strings.in.h: Likewise.
30608         * lib/sys_file.in.h: Likewise.
30609         * lib/sys_ioctl.in.h: Likewise.
30610         * lib/sys_select.in.h: Likewise.
30611         * lib/sys_socket.in.h: Likewise.
30612         * lib/sys_stat.in.h: Likewise.
30613         * lib/sys_time.in.h: Likewise.
30614         * lib/sys_times.in.h: Likewise.
30615         * lib/sys_utsname.in.h: Likewise.
30616         * lib/sys_wait.in.h: Likewise.
30617         * lib/sysexits.in.h: Likewise.
30618         * lib/termios.in.h: Likewise.
30619         * lib/time.in.h: Likewise.
30620         * lib/unistd.in.h: Likewise.
30621         * lib/wchar.in.h: Likewise.
30622         * lib/wctype.in.h: Likewise.
30623         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
30624         * modules/ctype (Makefile.am): Likewise.
30625         * modules/dirent (Makefile.am): Likewise.
30626         * modules/errno (Makefile.am): Likewise.
30627         * modules/fcntl-h (Makefile.am): Likewise.
30628         * modules/float (Makefile.am): Likewise.
30629         * modules/getopt-posix (Makefile.am): Likewise.
30630         * modules/iconv-h (Makefile.am): Likewise.
30631         * modules/inttypes (Makefile.am): Likewise.
30632         * modules/langinfo (Makefile.am): Likewise.
30633         * modules/locale (Makefile.am): Likewise.
30634         * modules/math (Makefile.am): Likewise.
30635         * modules/netdb (Makefile.am): Likewise.
30636         * modules/netinet_in (Makefile.am): Likewise.
30637         * modules/poll-h (Makefile.am): Likewise.
30638         * modules/pthread (Makefile.am): Likewise.
30639         * modules/pty (Makefile.am): Likewise.
30640         * modules/sched (Makefile.am): Likewise.
30641         * modules/search (Makefile.am): Likewise.
30642         * modules/selinux-h (Makefile.am): Likewise.
30643         * modules/signal (Makefile.am): Likewise.
30644         * modules/spawn (Makefile.am): Likewise.
30645         * modules/stdarg (Makefile.am): Likewise.
30646         * modules/stddef (Makefile.am): Likewise.
30647         * modules/stdint (Makefile.am): Likewise.
30648         * modules/stdio (Makefile.am): Likewise.
30649         * modules/stdlib (Makefile.am): Likewise.
30650         * modules/string (Makefile.am): Likewise.
30651         * modules/strings (Makefile.am): Likewise.
30652         * modules/sys_file (Makefile.am): Likewise.
30653         * modules/sys_ioctl (Makefile.am): Likewise.
30654         * modules/sys_select (Makefile.am): Likewise.
30655         * modules/sys_socket (Makefile.am): Likewise.
30656         * modules/sys_stat (Makefile.am): Likewise.
30657         * modules/sys_time (Makefile.am): Likewise.
30658         * modules/sys_times (Makefile.am): Likewise.
30659         * modules/sys_utsname (Makefile.am): Likewise.
30660         * modules/sys_wait (Makefile.am): Likewise.
30661         * modules/sysexits (Makefile.am): Likewise.
30662         * modules/termios (Makefile.am): Likewise.
30663         * modules/time (Makefile.am): Likewise.
30664         * modules/unistd (Makefile.am): Likewise.
30665         * modules/wchar (Makefile.am): Likewise.
30666         * modules/wctype (Makefile.am): Likewise.
30667
30668 2010-10-04  Bruno Haible  <bruno@clisp.org>
30669
30670         read-file tests: Avoid a test failure on NonStop Kernel.
30671         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
30672         a regular file.
30673         Reported by Joachim Schmitz <schmitz@hp.com>.
30674
30675 2010-10-03  Bruno Haible  <bruno@clisp.org>
30676
30677         gnulib-tool: Fixes for --create-testdir with --libtool.
30678         * gnulib-tool (func_get_automake_snippet): Don't augment
30679         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
30680         an executable.
30681         (func_create_testdir): Handle module 'alloca' like func_import.
30682         Reported by Bruce Korb <bruce.korb@gmail.com>.
30683
30684 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
30685
30686         Avoid some lines longer than 80 characters.
30687         * lib/stdint.in.h: Break long comment lines.
30688         * lib/math.in.h: Likewise.
30689         (_GL_NUM_UINT_WORDS): New macro, for readability.
30690         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
30691         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
30692         * lib/stdlib.in.h: Likewise.
30693         * lib/spawn.in.h: Likewise.
30694         * lib/sys_socket.in.h: Update an URL.
30695         * lib/sys_stat.in.h: Break long line.
30696
30697 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
30698
30699         Improve pmccabe2html.
30700         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
30701         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
30702         when the sources change. Remove the line in the HTML about "Used
30703         ranges" (which implied that there might be other unused ranges),
30704         rename "Resume" to "Summary" (easier to understand for more users).
30705         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
30706         styles, and some unnecessary blank lines.
30707
30708 2010-10-03  Bruno Haible  <bruno@clisp.org>
30709             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
30710
30711         acl: Add support for ACLs on NonStop Kernel.
30712         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
30713         Check whether the function aclsort() exists.
30714         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
30715         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
30716         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
30717         (acl_nontrivial [HAVE_ACLSORT]: New function.
30718         (file_has_acl): Implement for NonStop Kernel.
30719         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
30720         (qset_acl): Implement for NonStop Kernel.
30721         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
30722         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
30723         (main): Implement for NonStop Kernel.
30724         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
30725         Kernel. Handle this flavor.
30726         * tests/test-set-mode-acl.sh: Likewise.
30727         * tests/test-copy-acl.sh: Likewise.
30728         * tests/test-copy-file.sh: Likewise.
30729
30730 2010-10-03  Bruno Haible  <bruno@clisp.org>
30731
30732         Info about ACLs on NonStop Kernel.
30733         * doc/acl-resources.txt: Add info about NonStop Kernel.
30734         References by Joachim Schmitz <schmitz@hp.com>.
30735
30736 2010-10-02  Bruno Haible  <bruno@clisp.org>
30737
30738         Define missing EDQUOT on NonStop Kernel.
30739         * lib/errno.in.h (EDQUOT): Assign a value if missing.
30740         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
30741         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
30742         missing.
30743         * doc/posix-headers/errno.texi: Mention the NSK bug.
30744         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
30745         Reported by Joachim Schmitz <schmitz@hp.com>.
30746
30747 2010-10-02  Bruno Haible  <bruno@clisp.org>
30748
30749         Update doc for POSIX:2008.
30750         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
30751         Update URL of POSIX specification.
30752
30753 2010-10-02  Bruno Haible  <bruno@clisp.org>
30754
30755         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
30756         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
30757         from gnulib, not from Automake.
30758
30759 2010-10-02  Bruno Haible  <bruno@clisp.org>
30760
30761         New module 'system-posix'.
30762         * modules/system-posix: New file.
30763         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
30764         module is present.
30765         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
30766         GNULIB_SYSTEM_POSIX.
30767         * modules/stdlib (Depends-on): Remove sys_wait.
30768         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
30769         * doc/posix-functions/system.texi: Mention the new module.
30770         * doc/posix-headers/stdlib.texi: Likewise.
30771         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
30772         define test_sys_wait_macros to a no-op.
30773         Reported by Sam Steingold <sds@gnu.org>.
30774
30775 2010-09-30  Bruno Haible  <bruno@clisp.org>
30776
30777         More renaming from 'getdate' to 'get_date'.
30778         * doc/get_date.texi: Renamed from doc/getdate.texi.
30779         * modules/get_date (Files): Update.
30780         * MODULES.html.sh (Date and time <time.h>): Update.
30781         * DEPENDENCIES: Update.
30782         * gnulib-tool: Update comment.
30783         * m4/bison.m4 (gl_BISON): Likewise.
30784         * m4/get_date.m4 (gl_GET_DATE): Likewise.
30785
30786 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
30787
30788         bootstrap: support ACLOCAL_FLAGS during aclocal
30789         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
30790         can add additional -I dir for third-party .m4 files.
30791
30792 2010-09-30  Eric Blake  <eblake@redhat.com>
30793
30794         bootstrap: use glibtoolize on MacOS
30795         * build-aux/bootstrap (check_versions): Convert libtool into
30796         libtoolize.
30797         (tool search): Move libtool check earlier, and look for
30798         glibtoolize for MacOS.
30799         (gnulib_tool_options): Auto-add --libtool when appropriate.
30800         Reported by Justin Clift.
30801
30802         poll: fix typo that broke test on MacOS
30803         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
30804         Reported by Justin Clift.
30805
30806         getdate: rename to get_date
30807         Note: getdate.h is not renamed, to minimize client impact.
30808         * modules/getdate: Mark obsolete.  Move old contents...
30809         * modules/get_date: ...to new module name.
30810         * modules/getdate-tests: Move...
30811         * modules/get_date-tests: ...here.
30812         * m4/getdate.m4: Move...
30813         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
30814         * lib/getdate.y: Move...
30815         * lib/get_date.y: ...here.
30816         * tests/test-getdate.c: Move...
30817         * tests/test-get_date.c: ...here.
30818         * doc/posix-functions/getdate.texi (getdate): Update name.
30819         * NEWS: Mention the change.
30820
30821 2010-09-29  Bruno Haible  <bruno@clisp.org>
30822
30823         Separate the module 'waitpid' from the module 'sys_wait'.
30824         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
30825         present.
30826         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
30827         gl_MODULE_INDICATOR_FOR_TESTS.
30828         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
30829         * modules/sys_wait (Depends-on): Remove waitpid.
30830         (Makefile.am): Substitute GNULIB_WAITPID.
30831         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
30832         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
30833         signature only if the 'waitpid' module is present.
30834         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
30835         * NEWS: Mention the change.
30836         * modules/grantpt (Depends-on): Add waitpid.
30837         * modules/wait-process (Depends-on): Likewise.
30838
30839 2010-09-29  Bruno Haible  <bruno@clisp.org>
30840
30841         More tests for module 'sys_wait'.
30842         * modules/sys_wait-c++-tests: New file.
30843         * tests/test-sys_wait-c++.cc: New file.
30844         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
30845         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
30846
30847 2010-09-29  Bruno Haible  <bruno@clisp.org>
30848
30849         New module 'waitpid'.
30850         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
30851         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
30852         Don't include <process.h>.
30853         (waitpid): Declare only, using modern idiom.
30854         * m4/waitpid.m4: New file.
30855         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
30856         * modules/waitpid: New file.
30857         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
30858         (Makefile.am): Update.
30859         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
30860
30861 2010-09-28  Bruno Haible  <bruno@clisp.org>
30862
30863         poll: Assume ANSI C.
30864         * lib/poll.c (poll): Use an ANSI C declaration.
30865
30866 2010-09-28  Bruno Haible  <bruno@clisp.org>
30867
30868         poll-h: Create poll.h on all platforms.
30869         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
30870         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
30871         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
30872         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
30873         (gl_REPLACE_POLL_H): Don't set POLL_H.
30874         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
30875         * modules/poll-h (Depends-on): Add include_next.
30876         (Makefile.am): Create poll.h unconditionally. Substitute also
30877         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
30878
30879 2010-09-28  Bruno Haible  <bruno@clisp.org>
30880
30881         Tests for module 'poll-h'.
30882         * modules/poll-h-c++-tests: New file.
30883         * tests/test-poll-h-c++.cc: New file.
30884
30885         Tests for module 'poll-h'.
30886         * modules/poll-h-tests: New file.
30887         * tests/test-poll-h.c: New file.
30888
30889 2010-09-28  Bruno Haible  <bruno@clisp.org>
30890
30891         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
30892         * modules/poll-h (Depends-on): Add 'extensions'.
30893
30894 2010-09-28  Bruno Haible  <bruno@clisp.org>
30895
30896         New module 'poll-h'.
30897         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
30898         (poll): Use modern idiom.
30899         * modules/poll-h: New file.
30900         * modules/poll (Files): Remove lib/poll.in.h.
30901         (Depends-on): Add poll-h.
30902         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
30903         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
30904         * m4/poll_h.m4: New file.
30905         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
30906         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
30907         and invoke gl_REPLACE_POLL_H.
30908         * lib/poll.c: Use common idiom.
30909         * tests/test-poll.c: Likewise.
30910         * doc/posix-headers/poll.texi: Mention the poll-h module.
30911         Suggested by Eric Blake.
30912
30913 2010-09-26  Bruno Haible  <bruno@clisp.org>
30914
30915         sys_wait: Implement WSTOPSIG.
30916         * lib/sys_wait.in.h (WSTOPSIG): New macro.
30917         Reported by Simon Josefsson.
30918
30919 2010-09-26  Simon Josefsson  <simon@josefsson.org>
30920
30921         stdlib, sys_wait: Avoid compilation error on mingw.
30922         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
30923
30924 2010-09-26  Bruno Haible  <bruno@clisp.org>
30925
30926         stdlib tests: Avoid code duplication.
30927         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
30928         * modules/sys_wait-tests (Files): Likewise.
30929         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
30930         * tests/test-stdlib.c: Include test-sys_wait.h.
30931         (main): Invoke test_sys_wait_macros.
30932         * tests/test-sys_wait.c: Include test-sys_wait.h.
30933         (main): Invoke test_sys_wait_macros.
30934
30935 2010-09-25  Simon Josefsson  <simon@josefsson.org>
30936
30937         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
30938         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
30939         sure Windows sockets are working before calling getaddrinfo.
30940         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
30941         * doc/gnulib.texi (Windows sockets): Fix typo.
30942
30943 2010-09-25  Bruno Haible  <bruno@clisp.org>
30944
30945         Tests for module 'regex-quote'.
30946         * modules/regex-quote-tests: New file.
30947         * tests/test-regex-quote.c: New file.
30948
30949         New module 'regex-quote'.
30950         * lib/regex-quote.h: New file.
30951         * lib/regex-quote.c: New file.
30952         * modules/regex-quote: New file.
30953         Suggested by Reuben Thomas <rrt@sc3d.org>.
30954
30955 2010-09-24  Bruno Haible  <bruno@clisp.org>
30956
30957         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
30958         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
30959
30960 2010-09-23  Bruno Haible  <bruno@clisp.org>
30961
30962         setenv: Relax license.
30963         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
30964         Blake.
30965         Requested by Eric Blake.
30966
30967 2010-09-22  Bruno Haible  <bruno@clisp.org>
30968
30969         termios: Relax license.
30970         * modules/termios (License): Change to LGPLv2+.
30971         Requested by Eric Blake.
30972
30973 2010-09-22  Bruno Haible  <bruno@clisp.org>
30974
30975         threadlib: Allow the package to change the default to 'no'.
30976         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
30977         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
30978         Reported by Paul Eggert.
30979
30980 2010-09-22  Pádraig Brady  <P@draigbrady.com>
30981             Bruno Haible  <bruno@clisp.org>
30982
30983         Fix endless loop in mbmemcasecoll.
30984         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
30985         byte.
30986         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
30987
30988 2010-09-22  Bruno Haible  <bruno@clisp.org>
30989
30990         Tests for module 'memcoll'.
30991         * modules/memcoll-tests: New file.
30992         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
30993
30994         memcoll, xmemcoll: Clarify size vs. length.
30995         * modules/memcoll.c (memcoll0): Clarify specification.
30996         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
30997         passed to collate_error.
30998
30999 2010-09-22  Bruno Haible  <bruno@clisp.org>
31000
31001         Tests for module 'memcasecmp'.
31002         * modules/memcasecmp-tests: New file.
31003         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
31004
31005 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
31006
31007         * lib/pthread.in.h: Add split double-inclusion guard, and include
31008         system <pthread.h> if there is one.  Use @@-style as in other
31009         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
31010         pthread.h doesn't.
31011         (pthread_mutexattr_destroy, pthread_mutexattr_init):
31012         (pthread_mutexattr_settype, pthread_mutex_trylock):
31013         New static inline functions, if there's no system <pthread.h>.
31014         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
31015         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
31016         Approximate with mutexes if the system lacks spinlocks, as in
31017         MacOS.
31018         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
31019         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
31020         @@-style.  Check for spinlocks separately.
31021         (gl_PTHREAD_DEFAULTS): New macro.
31022         * modules/pthread: Redo to use a more typical style for in.h files.
31023
31024 2010-09-21  Eric Blake  <eblake@redhat.com>
31025
31026         net_if: enhance tests
31027         * tests/test-net_if.c (main): Move signature checks earlier.
31028         Print failures to stderr.
31029         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
31030         Document the bug that we do not yet fix.
31031
31032 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
31033
31034         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
31035         about gnulib, not GSS.
31036
31037 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
31038
31039         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
31040         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
31041         for Emacs.
31042         * build-aux/pmccabe2html: Make Makefile.am example code more
31043         cut-and-paste friendly.
31044
31045 2010-09-21  Simon Josefsson  <simon@josefsson.org>
31046
31047         * tests/test-net_if.c: New file.
31048         * modules/net_if-tests: New file.
31049
31050 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
31051
31052         pthread: add pthread_spin_destroy
31053         * lib/pthread.in.h (pthread_spin_destroy): New function.
31054
31055 2010-09-19  Bruno Haible  <bruno@clisp.org>
31056
31057         gnulib-tool: Fix --help output.
31058         * gnulib-tool (func_usage): Fix help message.
31059         Reported by Reuben Thomas <rrt@sc3d.org>.
31060
31061 2010-09-18  Jim Meyering  <meyering@redhat.com>
31062
31063         maint.mk: avoid unexpanded \n in two diagnostics
31064         * top/maint.mk (sc_prohibit_always_true_header_tests):
31065         Don't use a literal \n in a halt=... assignment.  It would not be
31066         expanded, and the two \n bytes would appear in the diagnostic output
31067         rather than the desired newline.  Use halt=$$(printf ... instead.
31068         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
31069
31070 2010-09-18  Bruno Haible  <bruno@clisp.org>
31071
31072         netinet_in: Doc tweak.
31073         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
31074         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
31075
31076 2010-09-18  Jim Meyering  <meyering@redhat.com>
31077
31078         init.sh: correct an outdated comment
31079         * tests/init.sh (create_exe_shims_):  s/function/alias/
31080
31081         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
31082         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
31083         a file named "*.exe" is removed between the glob expansion and the
31084         processing of that oddly named file.
31085
31086 2010-09-17  Eric Blake  <eblake@redhat.com>
31087
31088         mirbsd: add some more support
31089         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
31090         in BSD family.
31091         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
31092         devices as OpenBSD.
31093         * m4/host-os.m4 (mirbsd): Add MirBSD.
31094
31095         tests: fix unportable assumption on sys/wait.h
31096         * tests/test-sys_wait.c (main): Relax test.
31097         * tests/test-stdlib.c (main): Likewise.
31098
31099         init.sh: accommodate directory with no .exes
31100         * tests/init.sh: Accomodate directory containing only scripts.
31101
31102         tests: avoid compiler warning
31103         * tests/test-stdlib.c (main): Use the variable.
31104
31105         fdutimens, fdutimensat: update signature, again
31106         * lib/utimens.h (gl_futimens): Delete, and move signature...
31107         (fdutimens): ...here.
31108         (fdutimensat): Rearrange signature.
31109         (lutimensat): Rename variable for clarity.
31110         * lib/fdutimensat.c (fdutimensat): Update signature.
31111         * lib/utimens.c (fdutimens): Likewise.
31112         (gl_futimens): Delete.
31113         (utimens, lutimens): Update callers.
31114         * lib/futimens.c (futimens): Likewise.
31115         * tests/test-fdutimensat.c: Likewise.
31116         * tests/test-utimens.c: Likewise.
31117         * tests/test-futimens.h: Update comment.
31118         * NEWS: Mention this.
31119         Suggested by Paul Eggert.
31120
31121 2010-09-17  Bruno Haible  <bruno@clisp.org>
31122
31123         Take over the maintenance of some older macros from Autoconf.
31124         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
31125         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
31126         GNU Autoconf.
31127         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
31128         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
31129
31130 2010-09-17  Eric Blake  <eblake@redhat.com>
31131
31132         fdutimensat: drop atflag validation
31133         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
31134         with valid fd, to close a race scenario where futimens is
31135         unsupported and FILE was replaced by a symlink.
31136         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
31137         accordingly.
31138         Suggested by Paul Eggert.
31139
31140 2010-09-16  Bruno Haible  <bruno@clisp.org>
31141
31142         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
31143         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
31144
31145 2010-09-16  Bruno Haible  <bruno@clisp.org>
31146
31147         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
31148         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
31149         login_tty exists.
31150         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
31151
31152 2010-09-16  Bruno Haible  <bruno@clisp.org>
31153
31154         login_tty: Make the replacement code work on BSD systems.
31155         * lib/login_tty.c: Include <sys/ioctl.h>.
31156         (login_tty): Use ioctl TIOCSCTTY when available.
31157         * modules/login_tty (Depends-on): Add sys_ioctl.
31158         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
31159
31160 2010-09-16  Bruno Haible  <bruno@clisp.org>
31161
31162         login_tty: Stricter unit test.
31163         * modules/login_tty-tests (Depends-on): Add tcgetsid.
31164         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
31165         and tcgetsid() after login_tty.
31166         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
31167
31168 2010-09-16  Bruno Haible  <bruno@clisp.org>
31169
31170         New module 'tcgetsid'.
31171         * lib/tcgetsid.c: New file.
31172         * m4/tcgetsid.m4: New file.
31173         * modules/tcgetsid: New file.
31174         * modules/termios (Depends-on): Add c++defs, warn-on-use.
31175         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
31176         GNULIB_TCGETSID, HAVE_TCGETSID.
31177         * lib/termios.in.h: Include <sys/types.h>.
31178         (tcgetsid): New declaration.
31179         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
31180         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
31181         * doc/posix-functions/tcgetsid.texi: Mention the new module.
31182         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
31183
31184 2010-09-16  Bruno Haible  <bruno@clisp.org>
31185
31186         Tests for module 'termios'.
31187         * modules/termios-c++-tests: New file.
31188         * modules/termios-tests: New file.
31189         * tests/test-termios-c++.cc: New file.
31190         * tests/test-termios.c: New file.
31191
31192         New module 'termios'.
31193         * modules/termios: New file.
31194         * lib/termios.in.h: New file.
31195         * m4/termios_h.m4: New file.
31196         * doc/posix-headers/termios.texi: Mention the new module.
31197
31198 2010-09-16  Eric Blake  <eblake@redhat.com>
31199
31200         fdutimensat: add an atflag parameter
31201         * lib/fdutimensat.c (fdutimensat): Add new parameter.
31202         * lib/utimens.h (fdutimensat): Update prototype.
31203         * tests/test-fdutimensat.c: Adjust test to match.
31204         * NEWS: Document the change.
31205         Suggested by Paul Eggert.
31206
31207 2010-09-16  Bruno Haible  <bruno@clisp.org>
31208
31209         Fix typos in comments.
31210         * lib/striconveh.h: Fix typo in comment.
31211         * lib/login_tty.c (login_tty): Likewise.
31212
31213 2010-09-15  Bruno Haible  <bruno@clisp.org>
31214
31215         stdlib: clarify MirBSD WEXITSTATUS bug
31216         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
31217         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
31218
31219 2010-09-15  Eric Blake  <eblake@redhat.com>
31220
31221         stdlib: work around MirBSD WEXITSTATUS bug
31222         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
31223         * modules/stdlib (Depends-on): Add sys_wait.
31224         * tests/test-sys_wait.c (main): Enhance test.
31225         * tests/test-stdlib.c (main): Likewise.
31226         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
31227
31228         docs: mention MacOS issue with WEXITSTATUS(constant)
31229         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
31230         issue.
31231         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
31232
31233         strnlen: add tests
31234         * modules/strnlen-tests: New file.
31235         * tests/test-strnlen.c: Likewise.
31236
31237 2010-09-14  Bruno Haible  <bruno@clisp.org>
31238
31239         unistr/base: Avoid link errors when module 'libunistring' is also used.
31240         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
31241         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
31242         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
31243         Declare also when HAVE_LIBUNISTRING is set.
31244         Reported by Pádraig Brady <P@draigbrady.com>.
31245
31246 2010-09-14  Eric Blake  <eblake@redhat.com>
31247
31248         test-rawmemchr: make more robust
31249         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
31250         (Depends-on, configure.ac): Add needed prerequisites to use it.
31251         * modules/memchr-tests (Files, Depends-on, configure.ac):
31252         Likewise, to avoid implicit reliance on memchr module prereqs.
31253         * tests/test-memchr.c (main): Ensure proper masking.
31254         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
31255         reads.
31256
31257         memchr: detect glibc Alpha bug
31258         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
31259         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
31260         Alpha.
31261         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
31262         * tests/test-memchr.c (main): Enhance test.
31263         Reported by Nelson H. F. Beebe.
31264
31265 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
31266
31267         fts, getcwd, glob: audit for dirfd returning -1
31268         * lib/fts.c (opendir): Remove #define; no longer used.
31269         (opendirat): New arg PDIR_FD.  All callers changed.
31270         (fts_build, _opendir2): Use new opendirat to avoid the need for
31271         dirfd, or for checking whether dirfd returns a negative value.
31272         Don't use opendir; always use openat followed by fdopendir.
31273         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
31274         it.
31275         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
31276         returns -1 here.
31277         * modules/fts (Depends-on): Remove dirfd.
31278         * modules/getcwd (Depends-on): Likewise.
31279
31280 2010-09-13  Eric Blake  <eblake@redhat.com>
31281
31282         float: fix broken MirBSD header
31283         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
31284         * doc/posix-headers/float.texi (float.h): Document it.
31285
31286 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
31287
31288         fts: use O_NOFOLLOW to avoid race condition when opening a directory
31289         * lib/fts.c (opendirat): New arg extra_flags.
31290         (__opendir2): Use it to avoid following symlinks when opening
31291         a directory, if symlinks are not supposed to be followed.  See
31292         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
31293
31294         fdopendir: preserve argument fd before returning
31295         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
31296         (fdopendir_with_dup, fd_clone_opendir): New static functions.
31297         (fdopendir): Use them, arranging for FD to be open to the same
31298         directory that it was when it started.  (It might be temporarily
31299         closed while fdopendir is running, so this not thread- or
31300         signal-safe.)  Be careful to do the right thing even when file
31301         descriptors are scarce and dup fails with errno == EMFILE.  See
31302         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
31303
31304 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
31305
31306         regex: Pass the system regex if its only problem is 32-bit regoff_t.
31307         * NEWS: Document change.
31308         * m4/regex.m4: Disable test for regoff_t size.
31309
31310 2010-09-13  Jim Meyering  <meyering@redhat.com>
31311
31312         fts: don't operate on an invalid file descriptor after failed dup
31313         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
31314         negative file descriptor.
31315
31316 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
31317
31318         savedir: add streamsavedir, deprecate fdsavedir
31319         * NEWS: Mention deprecation of fdsavedir.
31320         * lib/savedir.c (streamsavedir): New extern function, whose name
31321         ends in "savedir" to be consistent with the others.  This differs
31322         from savedirstream in that it doesn't close its argument.  The
31323         next version of GNU tar will use this instead of fdsavedir, to
31324         avoid some race conditions and conserve file descriptors.
31325         (savedirstream): Reimplement as a wrapper around streamsavedir.
31326         (fdsavedir): Add a comment deprecating this function.  As far as
31327         I know, only GNU tar used it, and GNU tar doesn't need it any more.
31328         * lib/savedir.h (streamsavedir): New decl.
31329         (fdsavedir): Add a comment deprecating this.
31330
31331 2010-09-10  Bruno Haible  <bruno@clisp.org>
31332
31333         langinfo: Fix last commit.
31334         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
31335         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
31336         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31337
31338 2010-09-10  Bruno Haible  <bruno@clisp.org>
31339
31340         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
31341         * lib/progreloc.c (O_EXEC): Define fallback.
31342
31343 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
31344
31345         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
31346         * NEWS: Document recent changes to fcntl-h.
31347         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
31348         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
31349         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
31350         Similarly for O_SEARCH; this last was already true, but not documented.
31351         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
31352         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
31353         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
31354         Likewise.
31355         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
31356         is zero, not whether it is defined.
31357         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
31358         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
31359         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
31360
31361 2010-09-10  Bruno Haible  <bruno@clisp.org>
31362
31363         langinfo, nl_langinfo: Fix for IRIX 5.3.
31364         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
31365         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
31366         HAVE_LANGINFO_YESEXPR.
31367         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
31368         HAVE_LANGINFO_YESEXPR.
31369         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
31370         HAVE_LANGINFO_T_FMT_AMPM is 0.
31371         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
31372         HAVE_LANGINFO_YESEXPR is 0.
31373         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
31374         NOEXPR.
31375         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
31376         * doc/posix-functions/nl_langinfo.texi: Likewise.
31377         Reported by Eric Blake.
31378
31379 2010-09-10  Bruno Haible  <bruno@clisp.org>
31380
31381         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
31382         * doc/glibc-functions/login_tty.texi: Mention the include file problem
31383         on FreeBSD 8.0 and OpenBSD 4.6.
31384         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
31385         * m4/pty_h.m4 (gl_PTY_H): Likewise.
31386         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
31387         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
31388         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
31389         ac_includes_default.
31390         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
31391
31392 2010-09-09  Eric Blake  <eblake@redhat.com>
31393
31394         strsignal: work around NetBSD bug
31395         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
31396         * lib/string.in.h (includes): Likewise.
31397         * doc/posix-functions/strsignal.texi (strsignal): Document the
31398         bug.
31399         Reported by Nelson H. F. Beebe.
31400
31401         gnulib-tool: work with NetBSD /bin/sh
31402         * gnulib-tool (func_cache_var, func_cache_lookup_module)
31403         (func_get_description, func_get_comment, func_get_status)
31404         (func_get_notice, func_get_applicability, func_get_filelist)
31405         (func_get_dependencies, func_get_autoconf_early_snippet)
31406         (func_get_autoconf_snippet, func_get_automake_snippet)
31407         (func_get_include_directive, func_get_link_directive)
31408         (func_get_license, func_get_maintainer, func_import): Avoid
31409         shell syntax errors from parsing syntax extensions.
31410
31411 2010-09-09  Bruno Haible  <bruno@clisp.org>
31412
31413         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
31414         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
31415         a reliable way to determine whether the 'alias' command works.
31416
31417 2010-09-08  Jim Meyering  <meyering@redhat.com>
31418
31419         init.sh: penalize a set-x-impaired shell; don't disqualify it
31420         * tests/init.sh: Too many shells corrupt application stderr when
31421         you set -x, so we can't afford to disqualify them, since at least
31422         on Irix-6.5, that would disqualify all bourne shells.
31423         Instead, use a two-pass approach.
31424         On the first pass, try to find a shell that meets the stricter
31425         condition that set -x does not corrupt stderr.
31426         If no shell meets the stricter condition, retest each candidate
31427         shell, but without that extra condition.  Finally, when
31428         VERBOSE=yes is requested and set -x might cause trouble, simply
31429         issue a warning and refrain from enabling debug output.
31430
31431 2010-09-08  Eric Blake  <eblake@redhat.com>
31432
31433         unsetenv: fix OpenBSD bug
31434         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
31435         * doc/posix-functions/unsetenv.texi (unsetenv): Update
31436         documentation.
31437         Reported by Jim Meyering.
31438
31439         strtod: work around IRIX 6.5 bug
31440         * lib/strtod.c (strtod): Reparse number on shorter string if
31441         exponent parse was invalid.
31442         * tests/test-strtod.c (main): Add check for "0x1p 2".
31443         Reported by Tom G. Christensen.
31444
31445         getopt: optimize previous patch
31446         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
31447         empty variable.  Speed up awk script.
31448         Reported by Paolo Bonzini.
31449
31450 2010-09-08  Jim Meyering  <meyering@redhat.com>
31451
31452         test.sh: disqualify shells for which set -x corrupts stderr
31453         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
31454         and OpenBSD 4.7.  They make it so with "set -x", environment settings
31455         appear in stderr output.  For example, this command:
31456             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
31457         prints "P=1" on those two systems:
31458
31459 2010-09-08  Bruno Haible  <bruno@clisp.org>
31460
31461         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
31462         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
31463         commands, because some shells ignore redirections when there is an
31464         error in the command lookup.
31465         Reported by Eric Blake.
31466
31467 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
31468
31469         * lib/regex.h: Fix a mention of `regex_compile' (should be
31470         `re_compile_pattern').
31471         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
31472         (re_set_registers): Correct name of parameter in comment.
31473
31474         * doc/regex.texi: Add documentation for missing syntax flags.
31475         Remove commented-out documentation of defunct syntax option
31476         RE_NO_EMPTY_ALTS.
31477         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
31478         Add documentation of re_set_registers.
31479         Document trick to re-use a pattern buffer by setting fastmap manually.
31480         Update documentation of struct re_pattern_buffer per public members.
31481         Uncomment documentation of equivalence class operators and
31482         collating symbol operators, since they are now implemented,
31483         Explain leftmost-longest matching in relation to alternatives.
31484         Tidy documentation of substring matching.
31485         Remove POSIX documentation, which is done better in
31486         glibc, and refer the reader there. Keep BSD API documentation, as
31487         that is not readily available elsewhere.
31488
31489 2010-09-07  Eric Blake  <eblake@redhat.com>
31490
31491         getopt: handle POSIXLY_CORRECT set but not exported
31492         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
31493         export state of POSIXLY_CORRECT, due to bash set -o posix.
31494         Reported by Dustin J. Mitchell.
31495
31496 2010-09-05  Bruno Haible  <bruno@clisp.org>
31497
31498         gnulib-tool: Highlight the changed options.
31499         * gnulib-tool (func_usage): Display the --import, --add-import,
31500         --remove-import explanations in bold font.
31501
31502 2010-09-06  Karl Berry  <karl@gnu.org>
31503
31504         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
31505
31506 2010-09-05  Bruno Haible  <bruno@clisp.org>
31507
31508         uniwidth/width: Update comment.
31509         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
31510         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
31511
31512 2010-09-05  Bruno Haible  <bruno@clisp.org>
31513
31514         isinf, isnan: Relax license.
31515         * modules/isinf (License): Change from GPL to LGPL, with consent from
31516         Ben Pfaff.
31517         * modules/isnan (License): Likewise.
31518         Requested by Ludovic Courtès.
31519
31520 2010-09-04  Bruno Haible  <bruno@clisp.org>
31521
31522         gnulib-tool: Help migration from --import to --add-import or --update.
31523         * gnulib-tool: Emit a verbose error message when --import is used
31524         without any module name.
31525
31526 2010-09-04  Bruno Haible  <bruno@clisp.org>
31527
31528         Update doc about gnulib-tool.
31529         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
31530         'gnulib-tool --update' in more detail.
31531         Reported by Eric Blake.
31532
31533 2010-09-04  Bruno Haible  <bruno@clisp.org>
31534
31535         gnulib-tool: Change --import. New options --add/remove-import.
31536         * gnulib-tool: New options --add-import, --remove-import.
31537         (func_usage): Document them.
31538         (have_associative): Define always.
31539         (func_import): In import mode, don't merge the specified settings with
31540         the cached settings. Implement remove-import mode.
31541         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
31542         Explain when to use them versus --import.
31543         (Simple update): Use --add-import instead of --import.
31544         * NEWS: Mention the change.
31545
31546 2010-09-04  Bruno Haible  <bruno@clisp.org>
31547
31548         * doc/gnulib-tool.texi (Initial import): Update paragraph about
31549         separate gnulib.mk.
31550
31551 2010-09-04  Bruno Haible  <bruno@clisp.org>
31552
31553         gnulib-tool: Don't talk about CVS any more.
31554         * gnulib-tool (func_usage, func_import): Write "version control"
31555         instead of CVS.
31556
31557 2010-09-04  Jim Meyering  <meyering@redhat.com>
31558
31559         maint.mk: avoid obscure sc_copyright_check failure in coreutils
31560         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
31561         false positives (whose names may be ill-chosen) when searching
31562         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
31563         would cause a false-positive.
31564
31565         avoid coreutils "make distcheck" failure
31566         Coreutils tests with an absolute build directory name that contains
31567         a space.  Not quoting this directory name caused a failure.
31568         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
31569         * tests/test-vc-list-files-cvs.sh: Likewise.
31570
31571 2010-09-04  Bruno Haible  <bruno@clisp.org>
31572
31573         gnulib-tool: Avoid error when run in a package without Makefile.am.
31574         * gnulib-tool: When collecting the m4dirs in a package that does not
31575         have a Makefile.am, eliminate those directories that contain no
31576         gnulib-cache.m4. Fix expression that counts these directories.
31577
31578 2010-09-04  Bruno Haible  <bruno@clisp.org>
31579
31580         update-copyright test: Improve output when perl is missing or too old.
31581         * tests/test-update-copyright.sh: Move test of Perl version down after
31582         the test whether Perl exists. Provide an explanation relating Perl's
31583         error message to Automake's SKIP: message.
31584
31585 2010-09-04  Bruno Haible  <bruno@clisp.org>
31586
31587         Don't augment PATH in TESTS_ENVIRONMENT.
31588         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
31589         set abs_aux_dir instead of augmenting PATH.
31590         * modules/vc-list-files-tests (Makefile.am): Likewise.
31591         * tests/test-update-copyright.sh: Augment PATH here.
31592         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
31593         path_prepend_.
31594         * tests/test-vc-list-files-git.sh: Likewise.
31595
31596 2010-09-04  Jim Meyering  <meyering@redhat.com>
31597
31598         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
31599         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
31600
31601 2010-09-04  Bruno Haible  <bruno@clisp.org>
31602
31603         strdup: Fix compilation error in C++ mode.
31604         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
31605         the macro.
31606
31607 2010-09-04  Bruno Haible  <bruno@clisp.org>
31608
31609         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
31610         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
31611         macro into a function.
31612         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31613
31614 2010-09-04  Bruno Haible  <bruno@clisp.org>
31615
31616         Set PATH_SEPARATOR the same way autoconf does.
31617         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
31618         the value of PATH_SEPARATOR the same way autoconf-generated configure
31619         scripts do.
31620         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
31621         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
31622
31623 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
31624
31625         Set PATH_SEPARATOR the same way autoconf does.
31626         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
31627         the same way autoconf-generated configure scripts do.
31628         * posix-modules: Likewise.
31629
31630 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
31631
31632         hash: fix safe_hasher const typo
31633         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
31634         const; otherwise, there is a type error later.
31635
31636 2010-09-02  Jim Meyering  <meyering@redhat.com>
31637
31638         test-update-copyright.sh: require perl 5.8.0
31639         * tests/test-update-copyright.sh: Require 5.8.0,
31640         which Tom G. Christensen has confirmed is adequate,
31641         while 5.6.1 is not.
31642
31643 2010-09-02  Eric Blake  <eblake@redhat.com>
31644
31645         tests: init.sh improvements for re-exec'ing with zsh
31646         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
31647         -vx through shell re-exec.
31648         Reported by Tom G. Christensen.
31649
31650         wctype: fix typo in previous commit
31651         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
31652         Reported by Ludovic Courtès.
31653
31654 2010-09-02  Jim Meyering  <meyering@redhat.com>
31655
31656         test-update-copyright.sh: skip test if Perl is too old
31657         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
31658         Reported by Tom G. Christensen.
31659
31660 2010-09-02  Bruno Haible  <bruno@clisp.org>
31661
31662         wctype: Avoid compilation error on IRIX 6.5.30.
31663         * lib/wctype.in.h (iswblank): Declare with a replacement if
31664         REPLACE_ISWBLANK is set.
31665         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
31666         declared. Set REPLACE_ISWBLANK.
31667         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
31668         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
31669         * doc/posix-headers/wctype.texi: Likewise.
31670         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31671
31672 2010-09-01  Bruno Haible  <bruno@clisp.org>
31673
31674         New module 'socketlib'.
31675         * modules/socketlib: New file.
31676         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
31677         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
31678         * modules/sockets (Depends-on): Add socketlib.
31679         Suggested by Sam Steingold <sds@gnu.org>.
31680
31681 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
31682
31683         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
31684
31685         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
31686         when one needs search access to a directory but not read access.
31687         On systems where it is available, it works in some cases where
31688         O_RDONLY does not, namely on directories that are searchable but
31689         not readable, and which need only to be searchable.  If O_SEARCH
31690         is not available, fall back to the traditional method of using
31691         O_RDONLY.
31692
31693         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
31694         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
31695         when opening a directory that needs only to be searchable.
31696         * lib/chdir-safer.c (chdir_no_follow): Likewise.
31697         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
31698         * lib/openat-proc.c (openat_proc_name): Likewise.
31699         * lib/openat.c (openat_needs_fchdir): Likewise.
31700         * lib/save-cwd.c (save_cwd): Likewise.
31701         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
31702
31703 2010-08-28  Bruno Haible  <bruno@clisp.org>
31704
31705         New module 'host-cpu-c-abi'.
31706         * modules/host-cpu-c-abi: New file.
31707         * m4/host-cpu-c-abi.m4: New file, based on part of
31708         clisp/src/m4/general.m4.
31709         Requested by Sam Steingold <sds@gnu.org>.
31710
31711 2010-08-31  Eric Blake  <eblake@redhat.com>
31712         and Jim Meyering  <meyering@redhat.com>
31713
31714         hash: factor, and guard against misbehaving hasher function
31715         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
31716         of table->hasher's return value.  Also protect against a hash value
31717         so large that adding it to table->bucket results in a NULL pointer.
31718         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
31719         Use it in place of open-coded check-and-abort.
31720
31721 2010-08-30  Bruno Haible  <bruno@clisp.org>
31722
31723         hash: silence spurious clang warning
31724         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
31725         Reported by Eric Blake.
31726
31727 2010-08-30  Eric Blake  <eblake@redhat.com>
31728
31729         strstr, memmem, strcasestr: avoid leaked shell message
31730         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
31731         FreeBSD.
31732         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
31733         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
31734
31735         tests: silence clang warning
31736         * tests/test-malloca.c (do_allocation): Avoid dead store.
31737
31738 2010-08-29  Bruno Haible  <bruno@clisp.org>
31739
31740         gettext: Fix recent mistake.
31741         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
31742
31743 2010-08-29  Bruno Haible  <bruno@clisp.org>
31744
31745         selinux-h: Offer a --without-selinux option.
31746         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
31747         --without-selinux was specified, skip all tests and define
31748         HAVE_SELINUX_SELINUX_H to 0.
31749         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
31750         set LIB_SELINUX to empty.
31751         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
31752         gl_LIBSELINUX. If --without-selinux was specified, replace
31753         selinux/context.h.
31754         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
31755
31756 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31757             Bruno Haible  <bruno@clisp.org>
31758
31759         Make the module 'realloc-gnu' work again on AIX and OSF/1.
31760         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
31761         of HAVE_REALLOC.
31762         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
31763         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
31764         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
31765         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
31766
31767 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31768             Bruno Haible  <bruno@clisp.org>
31769
31770         Make the module 'calloc-gnu' work again on AIX and OSF/1.
31771         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
31772         HAVE_CALLOC.
31773         * lib/xmalloc.c: Update accordingly.
31774         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
31775         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
31776         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
31777
31778 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31779             Bruno Haible  <bruno@clisp.org>
31780
31781         Make the module 'malloc-gnu' work again on AIX and OSF/1.
31782         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
31783         HAVE_MALLOC.
31784         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
31785         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
31786         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
31787
31788 2010-08-29  Bruno Haible  <bruno@clisp.org>
31789
31790         Update modules list.
31791         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
31792         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
31793         (String handling <string.h>): Add astrxfrm.
31794         (File system functions): Add readlinkat.
31795
31796 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31797
31798         Tests for module 'realloc-gnu'.
31799         * modules/realloc-gnu-tests: New file.
31800         * tests/test-realloc-gnu.c: New file.
31801
31802         Tests for module 'calloc-gnu'.
31803         * modules/calloc-gnu-tests: New file.
31804         * tests/test-calloc-gnu.c: New file.
31805
31806         Tests for module 'malloc-gnu'.
31807         * modules/malloc-gnu-tests: New file.
31808         * tests/test-malloc-gnu.c: New file.
31809
31810 2010-08-28  Bruno Haible  <bruno@clisp.org>
31811
31812         Rename module 'realloc' -> 'realloc-gnu'.
31813         * modules/realloc-gnu: New file, copied from modules/realloc.
31814         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
31815         obsolete.
31816         * modules/mgetgroups (Depends-on): Update.
31817         * doc/posix-functions/realloc.texi: Update.
31818         * NEWS: Mention the change.
31819
31820         Rename module 'calloc' -> 'calloc-gnu'.
31821         * modules/calloc-gnu: New file, copied from modules/calloc.
31822         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
31823         obsolete.
31824         * doc/posix-functions/calloc.texi: Update.
31825         * NEWS: Mention the change.
31826
31827         Rename module 'malloc' -> 'malloc-gnu'.
31828         * modules/malloc-gnu: New file, copied from modules/malloc.
31829         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
31830         obsolete.
31831         * modules/argp (Depends-on): Update.
31832         * modules/regex (Depends-on): Update.
31833         * doc/posix-functions/malloc.texi: Update.
31834         * NEWS: Mention the change.
31835
31836 2010-08-28  Eric Blake  <eblake@redhat.com>
31837
31838         pread, pwrite: add missing dependency
31839         * modules/pread (Depends-on): Add extensions.
31840         * modules/pwrite (Depends-on): Likewise.
31841
31842 2010-08-28  Bruno Haible  <bruno@clisp.org>
31843
31844         unistr/u*-strchr: Fix tests dependencies.
31845         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
31846         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
31847         Reported by Ian Beckwith <ianb@erislabs.net>.
31848
31849 2010-08-28  Bruno Haible  <bruno@clisp.org>
31850
31851         read-file: Don't occupy too much unused memory.
31852         * lib/read-file.c (fread_file): Shrink the buffer at the end.
31853
31854 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
31855             Eric Blake  <eblake@redhat.com>
31856             Bruno Haible  <bruno@clisp.org>
31857
31858         read-file: Avoid memory reallocations with regular files.
31859         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
31860         (fread_file): With regular files, use the remaining length as the
31861         initial buffer size.  Check against overflow.
31862         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
31863         sys_stat.
31864
31865 2010-08-28  Bruno Haible  <bruno@clisp.org>
31866
31867         ftello: Relax license.
31868         * modules/ftello (License): Relax to LGPLv2+.
31869         Reported by Eric Blake.
31870
31871 2010-08-28  Bruno Haible  <bruno@clisp.org>
31872
31873         Avoid relocwrapper link errors due to gnulib replacement functions.
31874         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
31875         function.
31876         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31877
31878 2010-08-28  Bruno Haible  <bruno@clisp.org>
31879
31880         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
31881         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
31882         defined.
31883         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
31884         Suggested by Eric Blake.
31885
31886 2010-08-28  Bruno Haible  <bruno@clisp.org>
31887
31888         sys_socket, netdb: Ensure socklen_t gets defined.
31889         * modules/sys_socket (Depends-on): Add socklen.
31890         * modules/netdb (Depends-on): Likewise.
31891         * modules/getaddrinfo (Depends-on): Remove socklen.
31892         * modules/getsockopt (Depends-on): Likewise.
31893         * modules/setsockopt (Depends-on): Likewise.
31894         * tests/test-sys_socket.c: Check that socklen_t is defined.
31895         * tests/test-netdb.c: Likewise.
31896         * m4/socklen.m4: Update comments.
31897         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31898
31899 2010-08-27  Eric Blake  <eblake@redhat.com>
31900
31901         login_tty: add missing dependency
31902         * modules/login_tty (Depends-on): Add pty.
31903
31904 2010-08-26  Eric Blake  <eblake@redhat.com>
31905
31906         lib-symbol-versions: fix m4 quoting
31907         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
31908         format for AC_LINK_IFELSE.
31909
31910         glob: fix compile test
31911         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
31912
31913         btowc: fix missing file
31914         * modules/btowc (Files): Also ship locale-fr.m4.
31915
31916         lseek: fix link test
31917         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
31918         AC_LINK_IFELSE.
31919
31920         include_next: silence autoconf 2.68 warning
31921         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
31922         AC_COMPILE_IFELSE as special.
31923         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
31924         autoconf < 2.68.
31925
31926         acl: fix compilation test
31927         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
31928         AC_COMPILE_IFELSE.
31929
31930 2010-08-26  Bruno Haible  <bruno@clisp.org>
31931
31932         Modernize AC_TRY_RUN invocations.
31933         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
31934         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
31935         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
31936         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
31937         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
31938         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
31939         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
31940         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
31941         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
31942         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
31943         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
31944         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
31945         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
31946         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
31947         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
31948         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
31949         gl_MBRLEN_NUL_RETVAL): Likewise.
31950         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
31951         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
31952         Likewise.
31953         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
31954         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
31955         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
31956         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
31957         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
31958         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
31959         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
31960         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
31961         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
31962         Likewise.
31963         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
31964         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
31965         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
31966         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
31967         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
31968         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
31969         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
31970         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
31971         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
31972         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
31973
31974 2010-08-26  Bruno Haible  <bruno@clisp.org>
31975
31976         Modernize AC_TRY_LINK invocations.
31977         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
31978         AC_TRY_LINK.
31979         * m4/argp.m4 (gl_ARGP): Likewise.
31980         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
31981         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
31982         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
31983         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
31984         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
31985         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
31986         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
31987         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
31988         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
31989         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
31990         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
31991         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
31992         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
31993         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
31994         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
31995         * m4/hostent.m4 (gl_HOSTENT): Likewise.
31996         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
31997         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
31998         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
31999         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
32000         Likewise.
32001         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
32002         Likewise.
32003         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
32004         Likewise.
32005         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
32006         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
32007         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
32008         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
32009         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
32010         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
32011         * m4/servent.m4 (gl_SERVENT): Likewise.
32012         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
32013         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
32014         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
32015         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
32016         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
32017         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
32018         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
32019         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
32020         * modules/tsearch-tests (configure.ac): Likewise.
32021
32022 2010-08-26  Bruno Haible  <bruno@clisp.org>
32023
32024         Modernize AC_TRY_COMPILE invocations.
32025         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
32026         AC_TRY_COMPILE.
32027         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
32028         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
32029         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
32030         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
32031         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
32032         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
32033         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
32034         * m4/lock.m4 (gl_LOCK): Likewise.
32035         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
32036         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
32037         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
32038         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
32039         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
32040         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
32041         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
32042         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
32043         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
32044         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
32045         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
32046         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
32047         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
32048         extraneous semicolon.
32049
32050 2010-08-26  Jim Meyering  <meyering@redhat.com>
32051
32052         stat-time: relax license LGPL
32053         * modules/stat-time (License): Change from GPL to LGPL,
32054         with consent from all contributors, for use in libguile.
32055         Requested by Ludovic Courtès.
32056
32057 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
32058
32059         poll: return immediately on POLLHUP.
32060         * lib/poll.c (poll): Always set timeout before wait_timeout is
32061         computed.
32062
32063 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32064
32065         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
32066         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
32067         rmdir ("dir/.//"), unlinkat.
32068
32069 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
32070
32071         stdbool: avoid spurious failure with modern xlc
32072         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
32073
32074 2010-08-24  Bruno Haible  <bruno@clisp.org>
32075
32076         getloadavg: simplify code
32077         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
32078         gl_have_func. Update comments.
32079
32080 2010-08-24  Eric Blake  <eblake@redhat.com>
32081
32082         getloadavg: don't define SVR4 on cygwin
32083         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
32084         only define SVR4 when -lkvm is required.
32085         Reported by Yaakov Selkowitz.
32086
32087 2010-08-24  Bruno Haible  <bruno@clisp.org>
32088
32089         priv-set: fix comment
32090         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
32091
32092 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
32093
32094         priv-set: fix comments
32095         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
32096         to match code, as suggested by David Bartley in:
32097         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
32098
32099 2010-08-23  Eric Blake  <eblake@redhat.com>
32100
32101         stdbool: avoid rejecting clang
32102         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
32103         * tests/test-stdbool.c: Enable more tests if using the system
32104         <stdbool.h> instead of the gnulib replacement.
32105         (main): Move xlc bug test to a runtime test for all compilers.
32106         Reported by Anders Kaseorg.
32107
32108         argz: fix shell quoting issue
32109         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
32110         Reported by Charles Wilson.
32111
32112 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
32113             Erik Faye-Lund <kusmabite@gmail.com>
32114
32115         poll, select: handle ERROR_BROKEN_PIPE.
32116         * lib/poll.c (win32_compute_revents): Return POLLHUP when
32117         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
32118         * lib/select.c (win32_compute_revents): Do not mark a pipe
32119         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
32120
32121 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
32122
32123         fts: allow compilation with C++
32124         * lib/fts_.h: Specify extern "C" linkage with C++.
32125
32126 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32127
32128         Fix gnulib-tool sed script de-commentation for AIX sed.
32129         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
32130         sed.
32131
32132 2010-08-17  Eric Blake  <eblake@redhat.com>
32133
32134         test-stddef: test for (some) offsetof bugs
32135         * tests/test-stddef.c: Enhance test to ensure correct type of
32136         offsetof.
32137         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
32138         that we are not fixing at this time.
32139
32140 2010-08-15  Bruno Haible  <bruno@clisp.org>
32141
32142         stpncpy: Allow stpncpy to be defined as a macro.
32143         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
32144         if it's already correctly declared.
32145         * lib/string.in.h (stpncpy): Undefine before redefining.
32146         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
32147
32148 2010-08-14  Bruno Haible  <bruno@clisp.org>
32149
32150         Rename module 'memxfrm' to 'amemxfrm'.
32151         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
32152         (amemxfrm): Renamed from memxfrm.
32153         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
32154         (amemxfrm): Renamed from memxfrm.
32155         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
32156         * NEWS: Mention the change.
32157         * MODULES.html.sh (String handling <string.h>): Update.
32158         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
32159         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
32160         * lib/unicase/u16-casexfrm.c: Likewise.
32161         * lib/unicase/u32-casexfrm.c: Likewise.
32162         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
32163         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
32164         * lib/uninorm/u16-normxfrm.c: Likewise.
32165         * lib/uninorm/u32-normxfrm.c: Likewise.
32166         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
32167         memxfrm.
32168         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
32169         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
32170         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
32171         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
32172         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
32173         Suggested by Paul Eggert.
32174
32175 2010-08-14  Bruno Haible  <bruno@clisp.org>
32176
32177         Tests for module 'astrxfrm'.
32178         * modules/astrxfrm-tests: New file.
32179         * tests/test-astrxfrm.c: New file.
32180
32181         New module 'astrxfrm'.
32182         * lib/astrxfrm.h: New file.
32183         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
32184         * modules/astrxfrm: New file.
32185
32186 2010-08-14  Reuben Thomas <rrt@sc3d.org>
32187
32188         regex: Tweak doc.
32189         * doc/regex.texi (Overview): Don't mention regex.c.
32190         (GNU Regular Expression Compiling): Likewise.
32191         (Match-end-of-line Operator): Mention 'not_eol'.
32192
32193 2010-08-14  Brian Gough  <bjg@gnu.org>
32194             Bruno Haible  <bruno@clisp.org>
32195
32196         git-merge-changelog: add doc relating to use with bzr and hg.
32197         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
32198
32199 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
32200
32201         pthread: fix pthread.h creation for srcdir != builddir
32202         * modules/pthread (Makefile.am): Fix the rule to work also in a
32203         non-srcdir build.
32204
32205 2010-08-13  Karl Berry  <karl@gnu.org>
32206
32207         * doc/regex.texi (Predefined Syntaxes): @smallexample.
32208         * doc/posix-*/*: force line break before @url of POSIX
32209         specifications.
32210         Suggested by Werner Lemberg.
32211
32212 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
32213
32214         strtod: fix const diagnostic
32215         * lib/strtod.c (strtod): Don't assign const char * to char *,
32216         as this elicits a warning from GCC when warnings are enabled.
32217
32218 2010-08-10  Pádraig Brady <P@draigbrady.com>
32219         and Eric Blake  <eblake@redhat.com>
32220
32221         copy-acl: ignore ENOTSUP on HP-UX
32222         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
32223         so that it is available for HP-UX.
32224         * lib/copy-acl.c (qcopy_acl): Use it.
32225         Reported by Patrick M. Callahan.
32226
32227 2010-08-10  Eric Blake  <eblake@redhat.com>
32228
32229         open, chown: relax license
32230         * modules/open (License): Change to LGPLv2+, with consent by all
32231         authors, for use in augeas.
32232         * modules/chown (License): Likewise.
32233         * modules/lchown (Likewise): Likewise.
32234         Requested by Adam Stokes.
32235
32236 2010-08-09  Karl Berry  <karl@gnu.org>
32237
32238         * build-aux/ar-lib: new file, import from Automake.
32239         * config/srclist.txt: autocheck for updates.
32240
32241 2010-08-09  Eric Blake  <eblake@redhat.com>
32242
32243         readlinkat: adjust client modules
32244         * modules/areadlinkat (Depends-on): Use readlinkat, not
32245         symlinkat.
32246         * modules/areadlinkat-with-size (Depends-on): Likewise.
32247
32248         mknod: be more vocal about danger of running tests as root
32249         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
32250         root, since that is just asking for problems.
32251         Suggested by Bruno Haible, based on a report by Rainer Tammer.
32252
32253         readlinkat: split into its own module
32254         * modules/symlinkat: Split readlinkat...
32255         * modules/readlinkat: ...into separate module.
32256         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
32257         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
32258         * lib/symlinkat.c (readlinkat): Move...
32259         * lib/readlinkat.c: ...into new file.
32260         * modules/symlinkat-tests: Split readlinkat test...
32261         * modules/readlinkat-tests: ...into separate module.
32262         * tests/test-symlinkat.c: Split...
32263         * tests/test-readlinkat.c: ...into new file.
32264         * NEWS: Document the split.
32265         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
32266         * lib/unistd.in.h (readlinkat): Likewise.
32267         Suggested by Bruno Haible.
32268
32269 2010-08-08  Bruno Haible  <bruno@clisp.org>
32270
32271         memxfrm: Speed up.
32272         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
32273         that usually only one call to strxfrm is necessary for each string
32274         part.
32275         Reported by Paul Eggert <eggert@cs.ucla.edu>.
32276
32277 2010-08-07  Karl Berry  <karl@gnu.org>
32278
32279         * doc/posix-headers/limits.texi,
32280         * doc/posix-functions/malloc.texi,
32281         * doc/posix-functions/strsignal.texi: missing @item.
32282         * doc/ld-version-script.texi: spurious leading i.
32283         * doc/regex.texi (Interval Operators): no commas inside @var.
32284
32285 2010-08-01  Bruno Haible  <bruno@clisp.org>
32286
32287         Integrate the regex documentation.
32288         * doc/gnulib.texi: Define 'cn' index.
32289         (Regular expressions): New a chapter that includes regex.texi and
32290         regexprops-generic.texi.
32291         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
32292         syntax.
32293
32294         Whitespace cleanup.
32295         * doc/regex.texi: Remove trailing spaces.
32296
32297         Add regex documentation.
32298         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
32299         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
32300         Written by Kathy A. Hargreaves and Karl Berry.
32301
32302 2010-08-01  Bruno Haible  <bruno@clisp.org>
32303
32304         link: Update documentation.
32305         * doc/posix-functions/link.texi: Update regarding Solaris.
32306
32307 2010-07-31  Bruno Haible  <bruno@clisp.org>
32308
32309         Update modules list.
32310         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
32311         (String handling <string.h>): Add memcmp2, memxfrm.
32312         (Container data structures): Add xlist, xsublist, xoset.
32313         (Core language properties): Add alignof, unused-parameter.
32314         (Process control, Numeric conversion functions <stdlib.h>): Renamed
32315         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
32316         (Unibyte characters <ctype.h>): New section.
32317         (String handling <string.h>): New section.
32318         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
32319         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
32320         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
32321         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
32322         tan, tanh, tanl, y0, y1, yn.
32323         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
32324         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
32325         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
32326         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
32327         unlockpt, vdprintf, vdprintf-posix.
32328         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
32329         (File system functions): Add concat-filename, sys_file, sys_ioctl,
32330         xconcat-filename.
32331         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
32332         getdtablesize, pipe2, pipe2-safer.
32333         (Security): New section.
32334         (Networking functions): Add accept4.
32335         (Signal handling): Add sigpipe.
32336         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
32337         mbmemcasecoll.
32338         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
32339         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
32340         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
32341         pipe-filter-ii.
32342         (Misc): Add argp-version-etc, login_tty, parse-duration.
32343
32344 2010-07-31  Bruno Haible  <bruno@clisp.org>
32345
32346         Improve doc in MODULES.html.
32347         * modules/linkat (Description): Add the word "function".
32348         * modules/mkfifo (Description): Likewise.
32349         * modules/mknod (Description): Likewise.
32350         * modules/remove (Description): Likewise.
32351         * modules/renameat (Description): Likewise.
32352         * modules/stat (Description): Likewise.
32353         * modules/symlink (Description): Likewise.
32354         * modules/unlink (Description): Likewise.
32355
32356 2010-07-31  Bruno Haible  <bruno@clisp.org>
32357
32358         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
32359         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
32360         option --enable/disable-c++ instead of --enable/disable-cxx.
32361         * NEWS: Mention the change.
32362
32363 2010-07-31  Bruno Haible  <bruno@clisp.org>
32364
32365         readlink, areadlink: Relax test a bit.
32366         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
32367         alternative to ENOTDIR.
32368         * tests/test-areadlink.h (test_areadlink): Likewise.
32369         Reported by Rainer Tammer.
32370
32371 2010-07-31  Bruno Haible  <bruno@clisp.org>
32372
32373         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
32374         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
32375         character, perform the search using U_STRCHR.
32376         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
32377         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
32378         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
32379         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
32380         Suggested by Paolo Bonzini.
32381
32382 2010-07-31  Bruno Haible  <bruno@clisp.org>
32383
32384         unistr/u*-strstr: Fix dependencies.
32385         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
32386         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
32387         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
32388
32389 2010-07-31  Bruno Haible  <bruno@clisp.org>
32390
32391         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
32392         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
32393         the beginning of the loop.
32394         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
32395         cases in 'switch' statement.
32396
32397         unistr/u8-strchr: Fix several bugs.
32398         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
32399         the string. When not found, return NULL, not a pointer near the end.
32400
32401         More tests for unistr/u8-strchr.
32402         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
32403         that the function does not read past the first occurrence of the byte
32404         being searched.
32405         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
32406         * tests/unistr/test-u16-strchr.c (main): New function.
32407         * tests/unistr/test-u32-strchr.c (main): New function.
32408
32409 2010-07-31  Bruno Haible  <bruno@clisp.org>
32410
32411         posix-modules: Ignore backup files of documentation files.
32412         * posix-modules: grep only through files named *.texi.
32413
32414 2010-07-31  Bruno Haible  <bruno@clisp.org>
32415
32416         symlinkat: Fix documentation.
32417         * doc/posix-functions/readlinkat.texi: Fix module name.
32418
32419 2010-07-31  Bruno Haible  <bruno@clisp.org>
32420
32421         fchownat: Replace also when chown has the trailing slash bug.
32422         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
32423         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
32424         introduced on 2010-04-10.
32425         Reported by Rainer Tammer.
32426
32427 2010-07-31  Bruno Haible  <bruno@clisp.org>
32428
32429         linkat: Work around AIX 7.1 bug.
32430         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
32431         whether linkat handles trailing slash correctly. If not, replace linkat
32432         and define LINKAT_TRAILING_SLASH_BUG.
32433         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
32434         check whether (fd1,file1) points to a directory if file1 or file2 ends
32435         in a slash. Code taken from lib/link.c.
32436         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
32437         Reported by Rainer Tammer.
32438
32439 2010-07-31  Bruno Haible  <bruno@clisp.org>
32440
32441         Correctly determine whether pow is available in libc on AIX 7 with xlc.
32442         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
32443         This disables an xlc optimization that was causing wrong test results.
32444         Reported by Rainer Tammer.
32445
32446 2010-07-31  Bruno Haible  <bruno@clisp.org>
32447
32448         iconv: Work around AIX 6.1..7.1 bug.
32449         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
32450         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
32451         cross-compiling, guess no on all versions of AIX.
32452         Reported by Rainer Tammer.
32453
32454 2010-07-31  Bruno Haible  <bruno@clisp.org>
32455
32456         readlink: Relax test a bit.
32457         * tests/test-readlink.h (test_readlink): Allow different errno value
32458         when readlink is called with a file name that ends in / and refers to
32459         a file.
32460         Suggested by Eric Blake.
32461         Reported by Rainer Tammer.
32462
32463 2010-07-31  Bruno Haible  <bruno@clisp.org>
32464
32465         copysign: Does not require -lm on glibc systems.
32466         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
32467         gl_COMMON_DOUBLE_MATHFUNC.
32468         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
32469
32470 2010-07-31  Bruno Haible  <bruno@clisp.org>
32471
32472         duplocale: Work around AIX 7.1 bug.
32473         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
32474         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
32475         * lib/duplocale.c (rpl_duplocale): Update comment.
32476         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
32477         Reported by Rainer Tammer.
32478
32479 2010-07-30  Bruno Haible  <bruno@clisp.org>
32480
32481         dirfd: Avoid link error on AIX 7.1.
32482         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
32483         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
32484         exist, set REPLACE_DIRFD.
32485         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
32486         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
32487         * doc/posix-functions/dirfd.texi: Update.
32488         Reported by Rainer Tammer.
32489
32490 2010-07-30  Eric Blake  <eblake@redhat.com>
32491
32492         strtod: next round of AIX fixes
32493         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
32494         exponent.
32495         * tests/test-strtod.c (main): Enhance tests.
32496         * doc/posix-functions/strtod.texi (strtod): Document next bug.
32497         Reported by Rainer Tammer.
32498
32499         futimens: fix configure check
32500         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
32501         Reported by Bruno Haible.
32502
32503 2010-07-30  Bruno Haible  <bruno@clisp.org>
32504
32505         getline: Update regarding AIX.
32506         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
32507         Reported by Rainer Tammer.
32508
32509 2010-07-30  Bruno Haible  <bruno@clisp.org>
32510
32511         wcwidth: Drop replacement on AIX 7.
32512         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): 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         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
32519         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
32520         a 'char *'.
32521         Reported by Rainer Tammer.
32522
32523 2010-07-30  Bruno Haible  <bruno@clisp.org>
32524
32525         unlink: Update regarding AIX.
32526         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
32527         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
32528         Reported by Rainer Tammer.
32529
32530 2010-07-30  Bruno Haible  <bruno@clisp.org>
32531
32532         symlink: Update regarding AIX.
32533         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
32534         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
32535         Reported by Rainer Tammer.
32536
32537 2010-07-30  Bruno Haible  <bruno@clisp.org>
32538
32539         strndup: Update regarding AIX.
32540         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
32541         AIX 7.
32542         Reported by Rainer Tammer.
32543
32544 2010-07-30  Bruno Haible  <bruno@clisp.org>
32545
32546         stat: Update regarding AIX.
32547         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
32548         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
32549         Reported by Rainer Tammer.
32550
32551 2010-07-30  Bruno Haible  <bruno@clisp.org>
32552
32553         truncl: Fix autoconf test.
32554         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
32555         whether truncl works.
32556         Reported by Rainer Tammer.
32557
32558 2010-07-30  Bruno Haible  <bruno@clisp.org>
32559
32560         round: Update regarding AIX.
32561         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
32562         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
32563         Reported by Rainer Tammer.
32564
32565 2010-07-30  Bruno Haible  <bruno@clisp.org>
32566
32567         rename: Update regarding AIX.
32568         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
32569         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
32570         Reported by Rainer Tammer.
32571
32572 2010-07-30  Bruno Haible  <bruno@clisp.org>
32573
32574         printf.m4: Update regarding AIX.
32575         * m4/printf.m4: Update comments regarding AIX.
32576         Reported by Rainer Tammer.
32577
32578 2010-07-30  Bruno Haible  <bruno@clisp.org>
32579
32580         iconv: Update regarding AIX.
32581         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
32582         AIX 7.
32583         Reported by Rainer Tammer.
32584
32585 2010-07-30  Bruno Haible  <bruno@clisp.org>
32586
32587         getopt: Update regarding AIX.
32588         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
32589         no on AIX.
32590         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
32591         Reported by Rainer Tammer.
32592
32593 2010-07-30  Bruno Haible  <bruno@clisp.org>
32594
32595         ldexpl; Update regarding AIX.
32596         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
32597         on AIX 7.
32598         Reported by Rainer Tammer.
32599
32600 2010-07-30  Bruno Haible  <bruno@clisp.org>
32601
32602         frexpl: Update regarding AIX.
32603         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
32604         on AIX 7.
32605         Reported by Rainer Tammer.
32606
32607 2010-07-30  Bruno Haible  <bruno@clisp.org>
32608
32609         open, fopen: Update regarding AIX.
32610         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
32611         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
32612         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
32613         * doc/posix-functions/fopen.texi: Likewise.
32614         Reported by Rainer Tammer.
32615
32616 2010-07-30  Bruno Haible  <bruno@clisp.org>
32617
32618         chown: Update doc regarding AIX.
32619         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
32620         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
32621         Reported by Rainer Tammer.
32622
32623 2010-07-30  Eric Blake  <eblake@redhat.com>
32624
32625         strtod: fix bug in replacement function on AIX
32626         * lib/strtod.c (strtod): Special case broken "0x" parse in
32627         underlying strtod.
32628         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
32629         * doc/posix-functions/strtod.texi (strtod): Likewise.
32630         Reported by Rainer Tammer.
32631
32632 2010-07-30  Bruno Haible  <bruno@clisp.org>
32633
32634         mbrlen: Fix cross-compilation guess for AIX.
32635         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
32636         guess. Leftover from 2008-12-22.
32637
32638 2010-07-30  Bruno Haible  <bruno@clisp.org>
32639
32640         mbrtowc: Fix cross-compilation guess for AIX.
32641         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
32642         guess. Leftover from 2008-12-21.
32643
32644 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
32645
32646         init.sh: work around trap limitation of some shells
32647         * tests/init.sh (setup_): Move exit trap outside of shell function.
32648
32649 2010-07-29  Eric Blake  <eblake@redhat.com>
32650
32651         strtod: aid debugging
32652         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
32653         understanding why strtod is rejected.
32654
32655 2010-07-28  Bruno Haible  <bruno@clisp.org>
32656
32657         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
32658         * lib/unistr/u8-chr.c: Include <string.h>.
32659         * tests/unistr/test-u8-chr.c: Likewise.
32660         * tests/unistr/test-u16-chr.c: Likewise.
32661         * tests/unistr/test-u32-chr.c: Likewise.
32662         * tests/unistr/test-u8-strchr.c: Likewise.
32663         * tests/unistr/test-u16-strchr.c: Likewise.
32664         * tests/unistr/test-u32-strchr.c: Likewise.
32665         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
32666         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
32667         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
32668         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
32669
32670 2010-07-28  Bruno Haible  <bruno@clisp.org>
32671
32672         Use spaces for indentation, not tabs.
32673         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
32674
32675 2010-07-27  Bruno Haible  <bruno@clisp.org>
32676
32677         mbspcasecmp: Fix function specification.
32678         * lib/string.in.h (mbspcasecmp): Fix specification comment.
32679         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
32680         Reported by Eric Blake <eblake@redhat.com>.
32681
32682 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
32683
32684         timespec: use cast and not conditional, as truncation isn't possible
32685         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
32686         instead of a conditional.  Comment about the situation in more detail.
32687         This undoes most of the 2009-10-29 patch.
32688
32689 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
32690
32691         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
32692         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
32693         * lib/unistr/u8-strchr.c: Likewise.
32694         * modules/unistr/u8-chr: Depend on memchr.
32695
32696         unistr/u*-strchr: add tests
32697         * modules/unistr/u8-strchr-tests: New file.
32698         * modules/unistr/u16-strchr-tests: New file.
32699         * modules/unistr/u32-strchr-tests: New file.
32700         * tests/unistr/test-strchr.h: New file.
32701         * tests/unistr/test-u8-strchr.c: New file.
32702         * tests/unistr/test-u16-strchr.c: New file.
32703         * tests/unistr/test-u32-strchr.c: New file.
32704
32705         unistr/u*-chr: test multibyte sequences more
32706         * tests/unistr/test-chr.h: Do complete testing of the characters in the
32707         test vector.
32708         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
32709         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
32710         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
32711
32712         unistr/u*-chr: test multibyte sequences
32713         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
32714
32715         unistr/u*-chr: prepare for multibyte tests
32716         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
32717         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
32718         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
32719         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
32720         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
32721         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
32722
32723 2010-07-18  Bruno Haible  <bruno@clisp.org>
32724
32725         unistr/u8-strchr: Optimize non-ASCII argument case.
32726         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
32727         because the first byte often matches anyway.
32728         Reported by Pádraig Brady <P@draigbrady.com>.
32729
32730 2010-07-15  Karl Berry  <karl@gnu.org>
32731
32732         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
32733
32734 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
32735
32736         getcwd: on Solaris, work better if ancestors are inaccessible
32737         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
32738         buffer and size, try again with a large buffer.  This works better
32739         on Solaris, since its getcwd succeeds even if the path to the root
32740         is inaccessible, and this is helpful in common cases such as .zfs
32741         hidden directories.  Problem reported by J Chapman Flack in
32742         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
32743         Use system getcwd if it's declared, not merely if it's partly
32744         working; use the partly-working test only to avoid needless effort
32745         if the system getcwd fails.
32746         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
32747         comment that was already obsolete and is now even more obsolete.
32748         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
32749         now might call strdup.
32750
32751 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
32752
32753         pthread: Add enough so that coreutils/src/sort.c compiles.
32754         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
32755         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
32756         gnulib. Include <sched.h> and <time.h>, as per POSIX.
32757         Include <sys/types.h>, in case it defines pthread_t.
32758         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
32759         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
32760         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
32761         (pthread_rwlockattr_t, pthread_spinlock_t):
32762         New typedefs, if HAVE_PTHREAD_T is not defined.
32763         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
32764         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
32765         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
32766         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
32767         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
32768         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
32769         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
32770         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
32771         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
32772         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
32773         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
32774         New macros.
32775         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
32776         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
32777         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
32778         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
32779         (pthread_spin_unlock): New dummy functions.
32780         (pthread_create): Return EAGAIN; don't set errno.
32781         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
32782         require AC_C_INLINE.
32783         * modules/pthread (Depends-on): Add sched, time.
32784         (pthread.h): Use AM_V_GEN.
32785
32786 2010-07-13  Bruno Haible  <bruno@clisp.org>
32787
32788         striconveh: Don't malloc memory if the result buffer is sufficient.
32789         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
32790         buffer if its size is sufficient.
32791         Reported by Ludovic Courtès <ludo@gnu.org>.
32792
32793 2010-07-13  Bruno Haible  <bruno@clisp.org>
32794
32795         strtod: Add safety check.
32796         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
32797
32798 2010-07-12  Bruno Haible  <bruno@clisp.org>
32799
32800         Unify tests that set gl_cv_func_ldexpl_no_libm.
32801         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
32802         gl_FUNC_LDEXPL.
32803         (gl_FUNC_LDEXPL): Invoke it.
32804         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
32805
32806 2010-07-12  Bruno Haible  <bruno@clisp.org>
32807
32808         Unify tests that set gl_cv_func_ldexp_no_libm.
32809         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
32810         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
32811         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
32812         (configure.ac): Simply invoke gl_FUNC_LDEXP.
32813         * modules/strtod (Files): Add m4/ldexp.m4.
32814
32815 2010-07-12  Bruno Haible  <bruno@clisp.org>
32816
32817         Unify tests that set gl_cv_func_frexpl_no_libm.
32818         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
32819         gl_FUNC_FREXPL_NO_LIBM.
32820         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
32821         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
32822
32823 2010-07-12  Bruno Haible  <bruno@clisp.org>
32824
32825         Unify tests that set gl_cv_func_frexp_no_libm.
32826         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
32827         gl_FUNC_FREXP_NO_LIBM.
32828         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
32829         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
32830
32831 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
32832
32833         memcoll: clarify sizes versus lengths, document better, and tweak perf
32834         * lib/memcoll.c (strcoll_loop, memcoll0):
32835         Improve quality of descriptive comments.  Name variables
32836         consistently as to whether they are lengths (which do not include
32837         terminating null) versus sizes (which do).
32838         * lib/xmemcoll.c (xmemcoll0): Likewise.
32839         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
32840         returned when s1size == 0; this is easier to compile and saves
32841         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
32842
32843 2010-07-12  Bruno Haible  <bruno@clisp.org>
32844
32845         Tests for module '_Exit'.
32846         * modules/_Exit-tests: New file.
32847         * tests/test-_Exit.sh: New file.
32848         * tests/test-_Exit.c: New file.
32849
32850         New module '_Exit'.
32851         * lib/stdlib.in.h (__attribute__): New macro.
32852         (_Exit): New declaration.
32853         * lib/_Exit.c: New file.
32854         * m4/_Exit.m4: New file.
32855         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
32856         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
32857         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
32858         * modules/_Exit: New file.
32859         * tests/test-stdlib-c++.cc (_Exit): Check signature.
32860         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
32861
32862 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
32863
32864         strtod: make it more-accurate typically, and don't require libm
32865         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
32866         Include limits.h.  Don't include string.h.
32867         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
32868         (locale_isspace): New function, so that no casts are needed to
32869         check whether *s is a space.
32870         (ldexp): Provide an unused dummy if not available.
32871         (scale_radix_exp, parse_number, underlying_strtod): New functions.
32872         (strtod): Use them.  This implementation prefers to use the
32873         underlying strtod if available, falling back on our own code
32874         only to fix known bugs.  This is more likely to produce an
32875         accurate result.  Also, it avoids the use of libm functions.
32876         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
32877         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
32878         was absent, but it caused a test failure with coreutils.
32879         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
32880         with libm.
32881         * modules/strtod (Makefile.am, Link): libm is no longer needed.
32882         * modules/strtod-tests (Makefile.am): Likewise.
32883
32884 2010-07-11  Pádraig Brady  <P@draigBrady.com>
32885             Bruno Haible  <bruno@clisp.org>
32886
32887         unistr/u8-strchr: Optimize ASCII argument case.
32888         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
32889
32890 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
32891
32892         (x)memcoll: minor tweaks
32893         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
32894         is after the type that it qualifies.
32895         (memcoll0): Likewise.
32896         * lib/memcoll.h (memcoll0): Likewise.
32897         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
32898         * lib/xmemcoll.h (xmemcoll0): Likewise.
32899         * lib/memcoll.c (memcoll0): Correct the comment.  This function
32900         differs from memcoll in that the NUL byte is part of the argument.
32901         Omit the abort-checks, as performance is a real issue here.  Plus,
32902         the checks were wrong anyway (an off-by-one error).  Omit local
32903         variable 'diff', as it's a bit clearer that way.
32904         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
32905         no longer needed.
32906
32907 2010-07-08  Chen Guo <chenguo4@yahoo.com>
32908
32909         (x)memcoll: speedup when input is known to be NUL delimited
32910         * lib/memcoll.c: Include stdlib.
32911         (memcoll0): New function.
32912         (strcoll_loop): New function, refactored for use in both memcoll
32913         and memcoll0.
32914         * lib/memcoll.h (memcoll0): Add prototype.
32915         * lib/xmemcoll.c (xmemcoll0): New function.
32916         (collate_error): New function, refactored for use in both xmemcoll
32917         and xmemcoll0.
32918         * lib/xmemcoll.h (xmemcoll0): Add prototype.
32919         * m4/memcoll.m4: add inline invocation.
32920
32921 2010-07-06  Pádraig Brady  <P@draigBrady.com>
32922
32923         * build-aux/bootstrap: Remove any local translations
32924         from the translation project synchronization directory,
32925         so that local only translations are not distributed.
32926
32927 2010-07-04  Bruno Haible  <bruno@clisp.org>
32928
32929         fsusage: Clarify which code applies to which platforms.
32930         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
32931         platform.
32932         * lib/fsusage.c (get_fs_usage): Likewise.
32933
32934 2010-07-04  Bruno Haible  <bruno@clisp.org>
32935
32936         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
32937         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
32938         Reported by Martin Lambers <marlam@marlam.de>.
32939
32940 2010-07-04  Jim Meyering  <meyering@redhat.com>
32941
32942         hash: once again explicitly disallow insertion of NULL
32943         * lib/hash.c (hash_insert0): Reinstate just-removed test:
32944         inserting a NULL pointer cannot work with these functions.
32945         Add a comment with details.
32946         This reverts part of the 2010-07-01 commit, 5bef1a35
32947         "hash: extend module to deal with non-pointer keys".
32948
32949 2010-07-01  Bruno Haible  <bruno@clisp.org>
32950
32951         stdbool: Update doc.
32952         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
32953         Info from Christian Weisgerber <naddy@mips.inka.de>.
32954
32955 2010-07-01  Jim Meyering  <meyering@redhat.com>
32956
32957         hash: extend module to deal with non-pointer keys
32958         * lib/hash.c (hash_insert0): New interface, much like hash_insert
32959         but that allows insertion of non-pointer entries.
32960         Do not disallow an ENTRY value of NULL.
32961         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
32962         * lib/hash.h (hash_insert0): Declare.
32963
32964 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
32965
32966         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
32967         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
32968         not present (i.e. with autoconf 2.59 and when using gettextize, not
32969         gnulib), require AC_GNU_SOURCE instead.
32970
32971 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
32972
32973         idpriv-drop: Fix tests.
32974         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
32975         not to the test-idpriv-droptemp program.
32976
32977 2010-06-29  Bruno Haible  <bruno@clisp.org>
32978
32979         string: Fix syntax error with g++ 2.96.
32980         * lib/string.in.h (__pure__): Remove definition.
32981         (_GL_ATTRIBUTE_PURE): New macro.
32982         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
32983         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
32984         Reported by Christian Weisgerber <naddy@mips.inka.de>.
32985
32986 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
32987
32988         unitypes: Fix bug introduced on 2010-05-18.
32989         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
32990
32991 2010-06-22  Eric Blake  <eblake@redhat.com>
32992
32993         memmem: slight optimization
32994         * lib/str-two-way.h (critical_factorization): Update comments.
32995         Reduce work during factorization phase.
32996         Reported by Carlos Bueno <carlos@bueno.org>.
32997
32998 2010-06-21  Bruno Haible  <bruno@clisp.org>
32999
33000         Fix HAVE_CALLOC_POSIX misnomer.
33001         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
33002         !HAVE_CALLOC_POSIX.
33003         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
33004         HAVE_CALLOC_POSIX.
33005         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
33006         instead of HAVE_CALLOC_POSIX.
33007         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
33008         HAVE_CALLOC_POSIX.
33009
33010         Use modern idiom for calloc() replacement.
33011         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
33012         AC_FUNC_CALLOC.
33013         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
33014         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
33015         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
33016         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
33017         (gl_REPLACE_CALLOC): New macro.
33018
33019 2010-06-21  Bruno Haible  <bruno@clisp.org>
33020
33021         Fix HAVE_REALLOC_POSIX misnomer.
33022         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
33023         !HAVE_REALLOC_POSIX.
33024         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
33025         HAVE_REALLOC_POSIX.
33026         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
33027         instead of HAVE_REALLOC_POSIX.
33028         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
33029         HAVE_REALLOC_POSIX.
33030
33031         Use modern idiom for realloc() replacement.
33032         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
33033         AC_FUNC_REALLOC.
33034         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
33035         Autoconf's AC_FUNC_REALLOC.
33036         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
33037         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
33038         (gl_REPLACE_REALLOC): New macro.
33039         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
33040
33041 2010-06-21  Bruno Haible  <bruno@clisp.org>
33042
33043         Fix HAVE_MALLOC_POSIX misnomer.
33044         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
33045         !HAVE_MALLOC_POSIX.
33046         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
33047         HAVE_MALLOC_POSIX.
33048         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
33049         instead of HAVE_MALLOC_POSIX.
33050         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
33051         HAVE_MALLOC_POSIX.
33052
33053         Use modern idiom for malloc() replacement.
33054         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
33055         AC_FUNC_MALLOC.
33056         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
33057         Autoconf's AC_FUNC_MALLOC.
33058         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
33059         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
33060         (gl_REPLACE_MALLOC): New macro.
33061         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
33062
33063 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
33064
33065         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
33066         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
33067         This macro takes 3 arguments, not 4.
33068
33069 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
33070
33071         ipv6: fix detection under mingw
33072         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
33073         in6_addr.
33074
33075 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
33076
33077         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
33078         that strtod() works when cross-compiling to a glibc version known
33079         to work.
33080
33081 2010-06-15  Bruno Haible  <bruno@clisp.org>
33082
33083         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
33084
33085 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
33086
33087         select: Correct timeout.
33088         * lib/select.c (rpl_select): Compute wait_timeout correctly.
33089
33090 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
33091
33092         git-version-gen: init shell var to avoid env var influence
33093         * build-aux/git-version-gen (v): Init shell var to empty.
33094
33095 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
33096
33097         priv-set: Don't assume that priv.h exists merely because getppriv does.
33098         See Jan Andersen's bug report about AIX 5L in
33099         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
33100         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
33101         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
33102         * lib/priv-set.h: Likewise.
33103         * tests/test-priv-set.c: Likewise.
33104
33105 2010-06-13  Bruno Haible  <bruno@clisp.org>
33106
33107         relocatable: Make it easier to test whether to install wrappers.
33108         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
33109         RELOCATABLE_VIA_WRAPPER.
33110
33111 2010-06-13  Bruno Haible  <bruno@clisp.org>
33112
33113         gnulib-tool: Display specified modules and dependencies differently.
33114         * gnulib-tool (func_show_module_list): New function.
33115         (func_import, func_create_testdir): Invoke it.
33116         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
33117
33118 2010-06-13  Bruno Haible  <bruno@clisp.org>
33119
33120         gnulib-tool: Align code of func_import and func_create_testdir.
33121         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
33122         specified_modules.
33123
33124 2010-06-12  Jim Meyering  <meyering@redhat.com>
33125
33126         test-inttostr: avoid spurious failure on Solaris 9
33127         * tests/test-inttostr.c (main): Skip the test when snprintf fails
33128         to accept "%ju".  Reported by Bruno Haible.
33129
33130 2010-06-11  Jim Meyering  <meyering@redhat.com>
33131
33132         test-sys_socket: mark variables as used more readably
33133         * tests/test-sys_socket.c (main): Mark otherwise unused variables
33134         as "used" explicitly via (void) statement casts.  This is more
33135         readable than using them in an artificial return expression.
33136         Suggestion from Bruno Haible.
33137
33138 2010-06-11  Bruno Haible  <bruno@clisp.org>
33139
33140         Avoid some more warnings from "gcc -Wwrite-strings".
33141         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
33142         to 'const char *'.
33143         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
33144         * tests/test-c-strcasestr.c (main): Likewise.
33145         * tests/test-mbscasestr1.c (main): Likewise.
33146         * tests/test-mbscasestr2.c (main): Likewise.
33147         * tests/test-memmem.c (main): Likewise.
33148         * tests/test-strstr.c (main): Likewise.
33149         * tests/test-strcasestr.c (main): Likewise.
33150
33151 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33152
33153         init.sh: change framework_failure_ to fail with status 99, not 1
33154         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
33155         automake's parallel-tests rule that this is an unexpected failure,
33156         even if the test is listed in XFAIL_TESTS.
33157
33158 2010-06-11  Jim Meyering  <meyering@redhat.com>
33159
33160         test-inttostr: avoid warnings about 4-6KB literal strings
33161         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
33162         Include "macros.h", for its definition of ASSERT.
33163         (CK): s/assert/ASSERT/
33164         * modules/inttostr-tests (Files): Add macros.h.
33165
33166         init.sh: don't use $ME_ or skip_ before they are defined
33167         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
33168         their first uses.  Also hoist their companions: warn_, fail_,
33169         framework_failure_, $stderr_fileno.  Prompted by a patch from
33170         Stefano Lattarini.
33171
33172         test-sys_socket: avoid set-but-not-used warnings from gcc
33173         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
33174         avoid warning about set-but-not-used variables.
33175
33176         test-xvasprintf: avoid 'const' discard warnings
33177         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
33178         "const" when assigning from literal strings.
33179         (test_xasprintf): Add "void" in function argument list to placate
33180         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
33181
33182         tests: avoid compilation warnings in argmatch and exclude tests...
33183         in packages that define ARGMATCH_DIE_DECL, like coreutils.
33184         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
33185         Since it always exits, declare with the "noreturn" attribute.
33186         * tests/test-argmatch.c: Likewise.
33187
33188         tests: avoid 'const' discard warnings in mbsstr tests
33189         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
33190         * tests/test-mbsstr2.c (main): Likewise.
33191
33192         test-verify: avoid warning from gcc's -Wmissing-declarations
33193         * tests/test-verify.c (function): Declare to be static.
33194
33195         test-inttostr.c: include <string.h> for use of strcmp
33196         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
33197
33198         test-linkat: avoid failed assertion on "other" architectures
33199         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
33200         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
33201         sparc: https://bugs.launchpad.net/bugs/591968
33202
33203 2010-06-11  Jim Meyering  <meyering@redhat.com>
33204
33205         printf.m4: avoid autoconf's "Expanded Before Required" warning
33206         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
33207         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
33208         autoconf warning.
33209
33210 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
33211
33212         Replacement header templates are now named with ".in", not "_".
33213         * doc/gnulib-intro.texi: Correct.
33214
33215 2010-06-10  Jim Meyering  <meyering@redhat.com>
33216
33217         inttostr-tests: depend on snprintf, not snprintf-posix
33218         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
33219         snprintf-posix, to avoid this aclocal failure:
33220           missing file gnulib-tests/vasnprintf.c
33221           configure.ac:45: error: expected source file, required through \
33222           AC_LIBSOURCES, not found
33223
33224 2010-06-10  Jim Meyering  <meyering@redhat.com>
33225
33226         inttostr: add a new function, inttostr, and tests
33227         The namesake function was not available.  The existence of the
33228         template file, inttostr.c makes its addition nontrivial.
33229         * lib/anytostr.c: Rename from inttostr.c.
33230         (anytostr): Rename from inttostr.
33231         * lib/inttostr.c: New file.
33232         * modules/inttostr (Files): Add anytostr.c.
33233         (Makefile.am): Set lib_SOURCES instead of ...
33234         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
33235         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
33236         * lib/offtostr.c: Likewise.
33237         * lib/uinttostr.c: Likewise.
33238         * lib/umaxtostr.c: Likewise.
33239         * modules/inttostr-tests: New file.
33240         * tests/test-inttostr.c: New file.  Test these functions.
33241
33242 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
33243             Bruno Haible  <bruno@clisp.org>
33244
33245         Add "Extending Gnulib" chapter to manual.
33246         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
33247         chapter.
33248         (Extending Gnulib): New chapter.
33249         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
33250         chapter.
33251
33252 2010-06-09  Bruno Haible  <bruno@clisp.org>
33253
33254         Avoid relocwrapper link errors due to gnulib replacement functions.
33255         * lib/areadlink.c: Use the system's malloc, realloc functions.
33256         (areadlink): Set errno to ENOMEM explicitly.
33257         * modules/areadlink (Depends-on): Remove malloc-posix.
33258         Reported by Ben Pfaff <blp@cs.stanford.edu>.
33259
33260 2010-06-09  Bruno Haible  <bruno@clisp.org>
33261
33262         Avoid relocwrapper link errors due to gnulib replacement functions.
33263         * lib/canonicalize-lgpl.c: Use the system's malloc function.
33264         * lib/malloca.c: Likewise.
33265         * lib/relocatable.c: Likewise.
33266         * lib/progreloc.c: Use the system's malloc, sprintf functions.
33267         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
33268         * lib/setenv.c: Use the system's malloc, realloc functions.
33269         * lib/strerror.c: Use the system's sprintf function.
33270         Reported by Ben Pfaff <blp@cs.stanford.edu>.
33271
33272 2010-06-04  Bruno Haible  <bruno@clisp.org>
33273
33274         Prefer documented low-level autoconf macro names.
33275         * m4/lib-link.m4: Use m4_translit instead of translit.
33276         * m4/environ.m4: Likewise.
33277         * m4/mathfunc.m4: Likewise.
33278         * m4/onceonly.m4: Likewise.
33279         * m4/stdint.m4: Likewise.
33280         Suggested by Eric Blake.
33281
33282 2010-06-04  Martin Lambers  <marlam@marlam.de>
33283             Bruno Haible  <bruno@clisp.org>
33284
33285         havelib: Allow library names with '+' characters.
33286         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
33287         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
33288
33289 2010-06-09  Bruno Haible  <bruno@clisp.org>
33290
33291         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
33292         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
33293         realloc failed.
33294
33295 2010-06-08  Peter Simons  <simons@cryp.to>
33296
33297         maint.mk: make the news-check rule more configurable
33298         * top/maint.mk (news-check-lines-spec): New variable.
33299         (news-check): Use "sed -n 1,10p" in place of "head".
33300
33301 2010-06-07  Jim Meyering  <meyering@redhat.com>
33302
33303         do-release-commit-and-tag: fix typo in --help
33304         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
33305
33306         regex: avoid new dead-code warning with gcc-4.6.0
33307         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
33308         if-block containing a while-loop.  It's been unused for at least
33309         5 years.
33310
33311 2010-06-05  Bruno Haible  <bruno@clisp.org>
33312
33313         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
33314         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
33315
33316 2010-06-04  Bruno Haible  <bruno@clisp.org>
33317
33318         Update to GNU gettext 0.18.1.
33319         * modules/gettext (configure.ac): Require gettext infrastructure from
33320         version 0.18.1.
33321
33322 2010-06-03  Bruno Haible  <bruno@clisp.org>
33323
33324         Don't use AC_LIBOBJ with file names in subdirectories.
33325         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
33326         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
33327         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
33328         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
33329         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
33330         gl_LIBUNISTRING_LIBSOURCE.
33331         (Makefile.am): Augment lib_SOURCES here, conditionally.
33332         * NEWS: Drop requirement for Automake option 'subdir-objects'.
33333
33334 2010-06-03  Bruno Haible  <bruno@clisp.org>
33335
33336         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
33337         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
33338         expansion does not end with a newline.
33339         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
33340         unnecessary newline.
33341
33342 2010-06-03  Bruno Haible  <bruno@clisp.org>
33343
33344         Reduce dependencies.
33345         * tests/test-quotearg.h: New file, extracted from
33346         tests/test-quotearg.c.
33347         * tests/test-quotearg-simple.c: New file, extracted from
33348         tests/test-quotearg.c.
33349         * tests/test-quotearg.c: Don't include <ctype.h>.
33350         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
33351         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
33352         use_quote_double_quotes, use_quotearg_colon): Moved to
33353         tests/test-quotearg.h.
33354         (results_g, flag_results, custom_quotes, custom_results): Moved
33355         to tests/test-quotearg-simple.c.
33356         (main): Moved the part that does not depend on gettext to
33357         tests/test-quotearg-simple.c. Return 77 if the test cannot be
33358         performed.
33359         * modules/quotearg-simple: New file.
33360         * modules/quotearg-simple-tests: New file.
33361         * modules/quotearg (Depends-on): Add quotearg-simple.
33362         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
33363         (Files): Add tests/test-quotearg.h.
33364         Reported by Paolo Bonzini.
33365
33366 2010-06-03  Bruno Haible  <bruno@clisp.org>
33367
33368         Reduce dependencies.
33369         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
33370
33371 2010-06-03  Bruno Haible  <bruno@clisp.org>
33372
33373         time: Undefine more broken macros.
33374         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
33375         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
33376         Reported by Eric Blake.
33377
33378 2010-06-03  Bruno Haible  <bruno@clisp.org>
33379
33380         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
33381         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
33382         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
33383         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
33384         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
33385         Reported by Ludovic Courtès <ludo@gnu.org>.
33386
33387 2010-06-02  Eric Blake  <eblake@redhat.com>
33388
33389         time: work with mingw + pthreads-win32 library
33390         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
33391         if timespec is defined only in pthread.h.
33392         * modules/time (Makefile.am): Substitute it.
33393         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
33394         <pthread.h>, when needed.
33395         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
33396         from the library.
33397
33398 2010-05-31  Bruno Haible  <bruno@clisp.org>
33399
33400         Avoid expanding two macros in the wrong order.
33401         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
33402         gl_LIBUNISTRING if it is defined.
33403         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
33404         autoconf >= 2.64.
33405         Reported by Ludovic Courtès <ludo@gnu.org>.
33406
33407 2010-05-27  Jim Meyering  <meyering@redhat.com>
33408
33409         maint.mk: also prohibit "#undef" of always-defined symbols
33410         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
33411         Allow more than one space before the symbol name.
33412         (sc_prohibit_always-defined_macros): Use grep's -E, now that
33413         the regexp uses alternation.
33414
33415 2010-05-26  Eric Blake  <eblake@redhat.com>
33416
33417         maint.mk: avoid echo -e
33418         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
33419         Convert all uses of echo -* to printf.
33420         Reported by Matthias Bolte.
33421
33422 2010-05-25  Bruno Haible  <bruno@clisp.org>
33423
33424         Update to GNU gettext 0.18, part 2.
33425         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
33426         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
33427
33428 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33429
33430         Add missing include in test-pwrite.c.
33431         * tests/test-pwrite.c: Include string.h, for strcmp.
33432
33433 2010-05-24  Bruno Haible  <bruno@clisp.org>
33434
33435         * NEWS: Mention requirement for Automake option 'subdir-objects'.
33436
33437 2010-05-24  Bruno Haible  <bruno@clisp.org>
33438
33439         Don't use conversion with transliteration in u{8,16,32}_strcoll.
33440         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
33441         iconveh_error argument.
33442         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
33443         U_STRCONV_TO_LOCALE.
33444         * lib/unistr/u16-strcoll.c: Likewise.
33445         * lib/unistr/u32-strcoll.c: Likewise.
33446         * modules/unistr/u8-strcoll (Depends-on): Add
33447         uniconv/u8-strconv-to-enc, localcharset. Remove
33448         uniconv/u8-strconv-to-locale.
33449         (configure.ac): Bump version number.
33450         * modules/unistr/u16-strcoll (Depends-on): Add
33451         uniconv/u16-strconv-to-enc, localcharset. Remove
33452         uniconv/u16-strconv-to-locale.
33453         (configure.ac): Bump version number.
33454         * modules/unistr/u32-strcoll (Depends-on): Add
33455         uniconv/u32-strconv-to-enc, localcharset. Remove
33456         uniconv/u32-strconv-to-locale.
33457         (configure.ac): Bump version number.
33458
33459 2010-05-24  Bruno Haible  <bruno@clisp.org>
33460
33461         Avoid a test failure on NetBSD 5.0.
33462         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
33463         an iconv() bug.
33464
33465 2010-05-24  Bruno Haible  <bruno@clisp.org>
33466
33467         Adjust #include directive style.
33468         * modules/regex (Includes): Recommend to write <regex.h>.
33469
33470 2010-05-24  Bruno Haible  <bruno@clisp.org>
33471
33472         regex: Don't require alloca.
33473         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
33474         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
33475         only inside if (0).
33476
33477 2010-05-23  Jim Meyering  <meyering@redhat.com>
33478
33479         test-renameat.c: include <sys/stat.h>
33480         * tests/test-renameat.c: Include <sys/stat.h>; required for
33481         definition of S_IS* macros.
33482
33483 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
33484
33485         Update maintainer documentation for 'relocatable-prog' module.
33486         * doc/relocatable-maint.texi: Update.
33487         Comments by Bruno Haible.
33488
33489 2010-05-23  Bruno Haible  <bruno@clisp.org>
33490
33491         git-merge-changelog: Enable --split-merged-entry by default.
33492         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
33493         (usage): Don't mention this option any more.
33494         Reported by Ralf Wildenhues.
33495
33496 2010-05-23  Jim Meyering  <meyering@redhat.com>
33497
33498         test-pwrite: do not leave behind a test file named "out"
33499         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
33500         The trivial-looking use of init.sh is really necessary.
33501         It ensures that the temporary file, "out", is created in
33502         a temporary directory, and removed upon termination.
33503         * tests/test-pwrite.sh: Re-add file.
33504         * modules/pwrite-tests: Reference it.
33505
33506 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33507
33508         Fix output redirection buglet in init.sh.
33509         * tests/init.sh: Fix redirection of stderr.
33510
33511 2010-05-20  Simon Josefsson  <simon@josefsson.org>
33512
33513         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
33514
33515 2010-05-17  Simon Josefsson  <simon@josefsson.org>
33516
33517         * modules/valgrind-tests: New file.
33518         * m4/valgrind-tests.m4: New file.
33519         * doc/valgrind-tests.texi: New file.
33520         * doc/gnulib.texi (Running self-tests under valgrind): New
33521         section.
33522
33523 2010-05-19  Bruno Haible  <bruno@clisp.org>
33524
33525         Clean up dead code in recent commit.
33526         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
33527         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
33528         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
33529         Suggested by Paolo Bonzini.
33530
33531 2010-05-19  Bruno Haible  <bruno@clisp.org>
33532
33533         Avoid valgrind error reports from libunistring.
33534         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
33535         * modules/libunistring (Files): Add it.
33536         * modules/libunistring-optional (Files): Likewise.
33537
33538 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
33539             Bruno Haible  <bruno@clisp.org>
33540
33541         New module 'libunistring-optional'.
33542         * modules/libunistring-optional: New file.
33543         * m4/libunistring-base.m4: New file.
33544         * m4/libunistring-optional.m4: New file.
33545         * lib/unicase.in.h: Renamed from lib/unicase.h.
33546         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
33547         * lib/unictype.in.h: Renamed from lib/unictype.h.
33548         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
33549         * lib/uniname.in.h: Renamed from lib/uniname.h.
33550         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
33551         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
33552         * lib/unistr.in.h: Renamed from lib/unistr.h.
33553         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
33554         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
33555         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
33556         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
33557         gl_LIBUNISTRING. If the library was found, determine the installed
33558         version and set LIBUNISTRING_VERSION.
33559         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
33560         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
33561         handle a configuration option --with-included-libunistring.
33562         * modules/libunistring (Files): Add m4/absolute-header.m4.
33563         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
33564         Add m4/libunistring-base.m4.
33565         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33566         (Makefile.am): Build unicase.h from unicase.in.h.
33567         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
33568         Add m4/libunistring-base.m4.
33569         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33570         (Makefile.am): Build uniconv.h from uniconv.in.h.
33571         * modules/unictype/base (Files): Use unictype.in.h instead of
33572         unictype.h. Add m4/libunistring-base.m4.
33573         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33574         (Makefile.am): Build unictype.h from unictype.in.h.
33575         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
33576         Add m4/libunistring-base.m4.
33577         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33578         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
33579         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
33580         Add m4/libunistring-base.m4.
33581         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33582         (Makefile.am): Build uniname.h from uniname.in.h.
33583         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
33584         Add m4/libunistring-base.m4.
33585         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33586         (Makefile.am): Build uninorm.h from uninorm.in.h.
33587         * modules/unistdio/base (Files): Use unistdio.in.h instead of
33588         unistdio.h. Add m4/libunistring-base.m4.
33589         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33590         (Makefile.am): Build unistdio.h from unistdio.in.h.
33591         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
33592         Add m4/libunistring-base.m4.
33593         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33594         (Makefile.am): Build unistr.h from unistr.in.h.
33595         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
33596         Add m4/libunistring-base.m4.
33597         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33598         (Makefile.am): Build unitypes.h from unitypes.in.h.
33599         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
33600         Add m4/libunistring-base.m4.
33601         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33602         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
33603         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
33604         uniwidth.h. Add m4/libunistring-base.m4.
33605         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33606         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
33607         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
33608         instead of augmenting lib_SOURCES.
33609         * modules/unicase/empty-suffix-context: Likewise.
33610         * modules/unicase/locale-language: Likewise.
33611         * modules/unicase/tolower: Likewise.
33612         * modules/unicase/totitle: Likewise.
33613         * modules/unicase/toupper: Likewise.
33614         * modules/unicase/u8-casecmp: Likewise.
33615         * modules/unicase/u8-casecoll: Likewise.
33616         * modules/unicase/u8-casefold: Likewise.
33617         * modules/unicase/u8-casexfrm: Likewise.
33618         * modules/unicase/u8-ct-casefold: Likewise.
33619         * modules/unicase/u8-ct-tolower: Likewise.
33620         * modules/unicase/u8-ct-totitle: Likewise.
33621         * modules/unicase/u8-ct-toupper: Likewise.
33622         * modules/unicase/u8-is-cased: Likewise.
33623         * modules/unicase/u8-is-casefolded: Likewise.
33624         * modules/unicase/u8-is-lowercase: Likewise.
33625         * modules/unicase/u8-is-titlecase: Likewise.
33626         * modules/unicase/u8-is-uppercase: Likewise.
33627         * modules/unicase/u8-prefix-context: Likewise.
33628         * modules/unicase/u8-suffix-context: Likewise.
33629         * modules/unicase/u8-tolower: Likewise.
33630         * modules/unicase/u8-totitle: Likewise.
33631         * modules/unicase/u8-toupper: Likewise.
33632         * modules/unicase/u16-casecmp: Likewise.
33633         * modules/unicase/u16-casecoll: Likewise.
33634         * modules/unicase/u16-casefold: Likewise.
33635         * modules/unicase/u16-casexfrm: Likewise.
33636         * modules/unicase/u16-ct-casefold: Likewise.
33637         * modules/unicase/u16-ct-tolower: Likewise.
33638         * modules/unicase/u16-ct-totitle: Likewise.
33639         * modules/unicase/u16-ct-toupper: Likewise.
33640         * modules/unicase/u16-is-cased: Likewise.
33641         * modules/unicase/u16-is-casefolded: Likewise.
33642         * modules/unicase/u16-is-lowercase: Likewise.
33643         * modules/unicase/u16-is-titlecase: Likewise.
33644         * modules/unicase/u16-is-uppercase: Likewise.
33645         * modules/unicase/u16-prefix-context: Likewise.
33646         * modules/unicase/u16-suffix-context: Likewise.
33647         * modules/unicase/u16-tolower: Likewise.
33648         * modules/unicase/u16-totitle: Likewise.
33649         * modules/unicase/u16-toupper: Likewise.
33650         * modules/unicase/u32-casecmp: Likewise.
33651         * modules/unicase/u32-casecoll: Likewise.
33652         * modules/unicase/u32-casefold: Likewise.
33653         * modules/unicase/u32-casexfrm: Likewise.
33654         * modules/unicase/u32-ct-casefold: Likewise.
33655         * modules/unicase/u32-ct-tolower: Likewise.
33656         * modules/unicase/u32-ct-totitle: Likewise.
33657         * modules/unicase/u32-ct-toupper: Likewise.
33658         * modules/unicase/u32-is-cased: Likewise.
33659         * modules/unicase/u32-is-casefolded: Likewise.
33660         * modules/unicase/u32-is-lowercase: Likewise.
33661         * modules/unicase/u32-is-titlecase: Likewise.
33662         * modules/unicase/u32-is-uppercase: Likewise.
33663         * modules/unicase/u32-prefix-context: Likewise.
33664         * modules/unicase/u32-suffix-context: Likewise.
33665         * modules/unicase/u32-tolower: Likewise.
33666         * modules/unicase/u32-totitle: Likewise.
33667         * modules/unicase/u32-toupper: Likewise.
33668         * modules/unicase/ulc-casecmp: Likewise.
33669         * modules/unicase/ulc-casecoll: Likewise.
33670         * modules/unicase/ulc-casexfrm: Likewise.
33671         * modules/uniconv/u8-conv-from-enc: Likewise.
33672         * modules/uniconv/u8-conv-to-enc: Likewise.
33673         * modules/uniconv/u8-strconv-from-enc: Likewise.
33674         * modules/uniconv/u8-strconv-from-locale: Likewise.
33675         * modules/uniconv/u8-strconv-to-enc: Likewise.
33676         * modules/uniconv/u8-strconv-to-locale: Likewise.
33677         * modules/uniconv/u16-conv-from-enc: Likewise.
33678         * modules/uniconv/u16-conv-to-enc: Likewise.
33679         * modules/uniconv/u16-strconv-from-enc: Likewise.
33680         * modules/uniconv/u16-strconv-from-locale: Likewise.
33681         * modules/uniconv/u16-strconv-to-enc: Likewise.
33682         * modules/uniconv/u16-strconv-to-locale: Likewise.
33683         * modules/uniconv/u32-conv-from-enc: Likewise.
33684         * modules/uniconv/u32-conv-to-enc: Likewise.
33685         * modules/uniconv/u32-strconv-from-enc: Likewise.
33686         * modules/uniconv/u32-strconv-from-locale: Likewise.
33687         * modules/uniconv/u32-strconv-to-enc: Likewise.
33688         * modules/uniconv/u32-strconv-to-locale: Likewise.
33689         * modules/unictype/bidicategory-byname: Likewise.
33690         * modules/unictype/bidicategory-name: Likewise.
33691         * modules/unictype/bidicategory-of: Likewise.
33692         * modules/unictype/bidicategory-test: Likewise.
33693         * modules/unictype/block-list: Likewise.
33694         * modules/unictype/block-test: Likewise.
33695         * modules/unictype/category-C: Likewise.
33696         * modules/unictype/category-Cc: Likewise.
33697         * modules/unictype/category-Cf: Likewise.
33698         * modules/unictype/category-Cn: Likewise.
33699         * modules/unictype/category-Co: Likewise.
33700         * modules/unictype/category-Cs: Likewise.
33701         * modules/unictype/category-L: Likewise.
33702         * modules/unictype/category-Ll: Likewise.
33703         * modules/unictype/category-Lm: Likewise.
33704         * modules/unictype/category-Lo: Likewise.
33705         * modules/unictype/category-Lt: Likewise.
33706         * modules/unictype/category-Lu: Likewise.
33707         * modules/unictype/category-M: Likewise.
33708         * modules/unictype/category-Mc: Likewise.
33709         * modules/unictype/category-Me: Likewise.
33710         * modules/unictype/category-Mn: Likewise.
33711         * modules/unictype/category-N: Likewise.
33712         * modules/unictype/category-Nd: Likewise.
33713         * modules/unictype/category-Nl: Likewise.
33714         * modules/unictype/category-No: Likewise.
33715         * modules/unictype/category-P: Likewise.
33716         * modules/unictype/category-Pc: Likewise.
33717         * modules/unictype/category-Pd: Likewise.
33718         * modules/unictype/category-Pe: Likewise.
33719         * modules/unictype/category-Pf: Likewise.
33720         * modules/unictype/category-Pi: Likewise.
33721         * modules/unictype/category-Po: Likewise.
33722         * modules/unictype/category-Ps: Likewise.
33723         * modules/unictype/category-S: Likewise.
33724         * modules/unictype/category-Sc: Likewise.
33725         * modules/unictype/category-Sk: Likewise.
33726         * modules/unictype/category-Sm: Likewise.
33727         * modules/unictype/category-So: Likewise.
33728         * modules/unictype/category-Z: Likewise.
33729         * modules/unictype/category-Zl: Likewise.
33730         * modules/unictype/category-Zp: Likewise.
33731         * modules/unictype/category-Zs: Likewise.
33732         * modules/unictype/category-and: Likewise.
33733         * modules/unictype/category-and-not: Likewise.
33734         * modules/unictype/category-byname: Likewise.
33735         * modules/unictype/category-name: Likewise.
33736         * modules/unictype/category-none: Likewise.
33737         * modules/unictype/category-of: Likewise.
33738         * modules/unictype/category-or: Likewise.
33739         * modules/unictype/category-test: Likewise.
33740         * modules/unictype/combining-class: Likewise.
33741         * modules/unictype/ctype-alnum: Likewise.
33742         * modules/unictype/ctype-alpha: Likewise.
33743         * modules/unictype/ctype-blank: Likewise.
33744         * modules/unictype/ctype-cntrl: Likewise.
33745         * modules/unictype/ctype-digit: Likewise.
33746         * modules/unictype/ctype-graph: Likewise.
33747         * modules/unictype/ctype-lower: Likewise.
33748         * modules/unictype/ctype-print: Likewise.
33749         * modules/unictype/ctype-punct: Likewise.
33750         * modules/unictype/ctype-space: Likewise.
33751         * modules/unictype/ctype-upper: Likewise.
33752         * modules/unictype/ctype-xdigit: Likewise.
33753         * modules/unictype/decimal-digit: Likewise.
33754         * modules/unictype/digit: Likewise.
33755         * modules/unictype/mirror: Likewise.
33756         * modules/unictype/numeric: Likewise.
33757         * modules/unictype/property-alphabetic: Likewise.
33758         * modules/unictype/property-ascii-hex-digit: Likewise.
33759         * modules/unictype/property-bidi-arabic-digit: Likewise.
33760         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
33761         * modules/unictype/property-bidi-block-separator: Likewise.
33762         * modules/unictype/property-bidi-boundary-neutral: Likewise.
33763         * modules/unictype/property-bidi-common-separator: Likewise.
33764         * modules/unictype/property-bidi-control: Likewise.
33765         * modules/unictype/property-bidi-embedding-or-override: Likewise.
33766         * modules/unictype/property-bidi-eur-num-separator: Likewise.
33767         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
33768         * modules/unictype/property-bidi-european-digit: Likewise.
33769         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
33770         * modules/unictype/property-bidi-left-to-right: Likewise.
33771         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
33772         * modules/unictype/property-bidi-other-neutral: Likewise.
33773         * modules/unictype/property-bidi-pdf: Likewise.
33774         * modules/unictype/property-bidi-segment-separator: Likewise.
33775         * modules/unictype/property-bidi-whitespace: Likewise.
33776         * modules/unictype/property-byname: Likewise.
33777         * modules/unictype/property-combining: Likewise.
33778         * modules/unictype/property-composite: Likewise.
33779         * modules/unictype/property-currency-symbol: Likewise.
33780         * modules/unictype/property-dash: Likewise.
33781         * modules/unictype/property-decimal-digit: Likewise.
33782         * modules/unictype/property-default-ignorable-code-point: Likewise.
33783         * modules/unictype/property-deprecated: Likewise.
33784         * modules/unictype/property-diacritic: Likewise.
33785         * modules/unictype/property-extender: Likewise.
33786         * modules/unictype/property-format-control: Likewise.
33787         * modules/unictype/property-grapheme-base: Likewise.
33788         * modules/unictype/property-grapheme-extend: Likewise.
33789         * modules/unictype/property-grapheme-link: Likewise.
33790         * modules/unictype/property-hex-digit: Likewise.
33791         * modules/unictype/property-hyphen: Likewise.
33792         * modules/unictype/property-id-continue: Likewise.
33793         * modules/unictype/property-id-start: Likewise.
33794         * modules/unictype/property-ideographic: Likewise.
33795         * modules/unictype/property-ids-binary-operator: Likewise.
33796         * modules/unictype/property-ids-trinary-operator: Likewise.
33797         * modules/unictype/property-ignorable-control: Likewise.
33798         * modules/unictype/property-iso-control: Likewise.
33799         * modules/unictype/property-join-control: Likewise.
33800         * modules/unictype/property-left-of-pair: Likewise.
33801         * modules/unictype/property-line-separator: Likewise.
33802         * modules/unictype/property-logical-order-exception: Likewise.
33803         * modules/unictype/property-lowercase: Likewise.
33804         * modules/unictype/property-math: Likewise.
33805         * modules/unictype/property-non-break: Likewise.
33806         * modules/unictype/property-not-a-character: Likewise.
33807         * modules/unictype/property-numeric: Likewise.
33808         * modules/unictype/property-other-alphabetic: Likewise.
33809         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
33810         * modules/unictype/property-other-grapheme-extend: Likewise.
33811         * modules/unictype/property-other-id-continue: Likewise.
33812         * modules/unictype/property-other-id-start: Likewise.
33813         * modules/unictype/property-other-lowercase: Likewise.
33814         * modules/unictype/property-other-math: Likewise.
33815         * modules/unictype/property-other-uppercase: Likewise.
33816         * modules/unictype/property-paired-punctuation: Likewise.
33817         * modules/unictype/property-paragraph-separator: Likewise.
33818         * modules/unictype/property-pattern-syntax: Likewise.
33819         * modules/unictype/property-pattern-white-space: Likewise.
33820         * modules/unictype/property-private-use: Likewise.
33821         * modules/unictype/property-punctuation: Likewise.
33822         * modules/unictype/property-quotation-mark: Likewise.
33823         * modules/unictype/property-radical: Likewise.
33824         * modules/unictype/property-sentence-terminal: Likewise.
33825         * modules/unictype/property-soft-dotted: Likewise.
33826         * modules/unictype/property-space: Likewise.
33827         * modules/unictype/property-terminal-punctuation: Likewise.
33828         * modules/unictype/property-test: Likewise.
33829         * modules/unictype/property-titlecase: Likewise.
33830         * modules/unictype/property-unassigned-code-value: Likewise.
33831         * modules/unictype/property-unified-ideograph: Likewise.
33832         * modules/unictype/property-uppercase: Likewise.
33833         * modules/unictype/property-variation-selector: Likewise.
33834         * modules/unictype/property-white-space: Likewise.
33835         * modules/unictype/property-xid-continue: Likewise.
33836         * modules/unictype/property-xid-start: Likewise.
33837         * modules/unictype/property-zero-width: Likewise.
33838         * modules/unictype/scripts: Likewise.
33839         * modules/unictype/syntax-c-ident: Likewise.
33840         * modules/unictype/syntax-c-whitespace: Likewise.
33841         * modules/unictype/syntax-java-ident: Likewise.
33842         * modules/unictype/syntax-java-whitespace: Likewise.
33843         * modules/unilbrk/u8-possible-linebreaks: Likewise.
33844         * modules/unilbrk/u8-width-linebreaks: Likewise.
33845         * modules/unilbrk/u16-possible-linebreaks: Likewise.
33846         * modules/unilbrk/u16-width-linebreaks: Likewise.
33847         * modules/unilbrk/u32-possible-linebreaks: Likewise.
33848         * modules/unilbrk/u32-width-linebreaks: Likewise.
33849         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
33850         * modules/unilbrk/ulc-width-linebreaks: Likewise.
33851         * modules/uniname/uniname: Likewise.
33852         * modules/uninorm/canonical-decomposition: Likewise.
33853         * modules/uninorm/composition: Likewise.
33854         * modules/uninorm/decomposing-form: Likewise.
33855         * modules/uninorm/decomposition: Likewise.
33856         * modules/uninorm/filter: Likewise.
33857         * modules/uninorm/nfc: Likewise.
33858         * modules/uninorm/nfd: Likewise.
33859         * modules/uninorm/nfkc: Likewise.
33860         * modules/uninorm/nfkd: Likewise.
33861         * modules/uninorm/u8-normalize: Likewise.
33862         * modules/uninorm/u8-normcmp: Likewise.
33863         * modules/uninorm/u8-normcoll: Likewise.
33864         * modules/uninorm/u8-normxfrm: Likewise.
33865         * modules/uninorm/u16-normalize: Likewise.
33866         * modules/uninorm/u16-normcmp: Likewise.
33867         * modules/uninorm/u16-normcoll: Likewise.
33868         * modules/uninorm/u16-normxfrm: Likewise.
33869         * modules/uninorm/u32-normalize: Likewise.
33870         * modules/uninorm/u32-normcmp: Likewise.
33871         * modules/uninorm/u32-normcoll: Likewise.
33872         * modules/uninorm/u32-normxfrm: Likewise.
33873         * modules/unistdio/u8-asnprintf: Likewise.
33874         * modules/unistdio/u8-asprintf: Likewise.
33875         * modules/unistdio/u8-snprintf: Likewise.
33876         * modules/unistdio/u8-sprintf: Likewise.
33877         * modules/unistdio/u8-u8-asnprintf: Likewise.
33878         * modules/unistdio/u8-u8-asprintf: Likewise.
33879         * modules/unistdio/u8-u8-snprintf: Likewise.
33880         * modules/unistdio/u8-u8-sprintf: Likewise.
33881         * modules/unistdio/u8-u8-vasnprintf: Likewise.
33882         * modules/unistdio/u8-u8-vasprintf: Likewise.
33883         * modules/unistdio/u8-u8-vsnprintf: Likewise.
33884         * modules/unistdio/u8-u8-vsprintf: Likewise.
33885         * modules/unistdio/u8-vasnprintf: Likewise.
33886         * modules/unistdio/u8-vasprintf: Likewise.
33887         * modules/unistdio/u8-vsnprintf: Likewise.
33888         * modules/unistdio/u8-vsprintf: Likewise.
33889         * modules/unistdio/u16-asnprintf: Likewise.
33890         * modules/unistdio/u16-asprintf: Likewise.
33891         * modules/unistdio/u16-snprintf: Likewise.
33892         * modules/unistdio/u16-sprintf: Likewise.
33893         * modules/unistdio/u16-u16-asnprintf: Likewise.
33894         * modules/unistdio/u16-u16-asprintf: Likewise.
33895         * modules/unistdio/u16-u16-snprintf: Likewise.
33896         * modules/unistdio/u16-u16-sprintf: Likewise.
33897         * modules/unistdio/u16-u16-vasnprintf: Likewise.
33898         * modules/unistdio/u16-u16-vasprintf: Likewise.
33899         * modules/unistdio/u16-u16-vsnprintf: Likewise.
33900         * modules/unistdio/u16-u16-vsprintf: Likewise.
33901         * modules/unistdio/u16-vasnprintf: Likewise.
33902         * modules/unistdio/u16-vasprintf: Likewise.
33903         * modules/unistdio/u16-vsnprintf: Likewise.
33904         * modules/unistdio/u16-vsprintf: Likewise.
33905         * modules/unistdio/u32-asnprintf: Likewise.
33906         * modules/unistdio/u32-asprintf: Likewise.
33907         * modules/unistdio/u32-snprintf: Likewise.
33908         * modules/unistdio/u32-sprintf: Likewise.
33909         * modules/unistdio/u32-u32-asnprintf: Likewise.
33910         * modules/unistdio/u32-u32-asprintf: Likewise.
33911         * modules/unistdio/u32-u32-snprintf: Likewise.
33912         * modules/unistdio/u32-u32-sprintf: Likewise.
33913         * modules/unistdio/u32-u32-vasnprintf: Likewise.
33914         * modules/unistdio/u32-u32-vasprintf: Likewise.
33915         * modules/unistdio/u32-u32-vsnprintf: Likewise.
33916         * modules/unistdio/u32-u32-vsprintf: Likewise.
33917         * modules/unistdio/u32-vasnprintf: Likewise.
33918         * modules/unistdio/u32-vasprintf: Likewise.
33919         * modules/unistdio/u32-vsnprintf: Likewise.
33920         * modules/unistdio/u32-vsprintf: Likewise.
33921         * modules/unistdio/ulc-asnprintf: Likewise.
33922         * modules/unistdio/ulc-asprintf: Likewise.
33923         * modules/unistdio/ulc-fprintf: Likewise.
33924         * modules/unistdio/ulc-snprintf: Likewise.
33925         * modules/unistdio/ulc-sprintf: Likewise.
33926         * modules/unistdio/ulc-vasnprintf: Likewise.
33927         * modules/unistdio/ulc-vasprintf: Likewise.
33928         * modules/unistdio/ulc-vfprintf: Likewise.
33929         * modules/unistdio/ulc-vsnprintf: Likewise.
33930         * modules/unistdio/ulc-vsprintf: Likewise.
33931         * modules/unistr/u8-check: Likewise.
33932         * modules/unistr/u8-chr: Likewise.
33933         * modules/unistr/u8-cmp: Likewise.
33934         * modules/unistr/u8-cmp2: Likewise.
33935         * modules/unistr/u8-cpy: Likewise.
33936         * modules/unistr/u8-cpy-alloc: Likewise.
33937         * modules/unistr/u8-endswith: Likewise.
33938         * modules/unistr/u8-mblen: Likewise.
33939         * modules/unistr/u8-mbsnlen: Likewise.
33940         * modules/unistr/u8-mbtouc: Likewise.
33941         * modules/unistr/u8-mbtouc-unsafe: Likewise.
33942         * modules/unistr/u8-mbtoucr: Likewise.
33943         * modules/unistr/u8-move: Likewise.
33944         * modules/unistr/u8-next: Likewise.
33945         * modules/unistr/u8-prev: Likewise.
33946         * modules/unistr/u8-set: Likewise.
33947         * modules/unistr/u8-startswith: Likewise.
33948         * modules/unistr/u8-stpcpy: Likewise.
33949         * modules/unistr/u8-stpncpy: Likewise.
33950         * modules/unistr/u8-strcat: Likewise.
33951         * modules/unistr/u8-strchr: Likewise.
33952         * modules/unistr/u8-strcmp: Likewise.
33953         * modules/unistr/u8-strcoll: Likewise.
33954         * modules/unistr/u8-strcpy: Likewise.
33955         * modules/unistr/u8-strcspn: Likewise.
33956         * modules/unistr/u8-strdup: Likewise.
33957         * modules/unistr/u8-strlen: Likewise.
33958         * modules/unistr/u8-strmblen: Likewise.
33959         * modules/unistr/u8-strmbtouc: Likewise.
33960         * modules/unistr/u8-strncat: Likewise.
33961         * modules/unistr/u8-strncmp: Likewise.
33962         * modules/unistr/u8-strncpy: Likewise.
33963         * modules/unistr/u8-strnlen: Likewise.
33964         * modules/unistr/u8-strpbrk: Likewise.
33965         * modules/unistr/u8-strrchr: Likewise.
33966         * modules/unistr/u8-strspn: Likewise.
33967         * modules/unistr/u8-strstr: Likewise.
33968         * modules/unistr/u8-strtok: Likewise.
33969         * modules/unistr/u8-to-u16: Likewise.
33970         * modules/unistr/u8-to-u32: Likewise.
33971         * modules/unistr/u8-uctomb: Likewise.
33972         * modules/unistr/u16-check: Likewise.
33973         * modules/unistr/u16-chr: Likewise.
33974         * modules/unistr/u16-cmp: Likewise.
33975         * modules/unistr/u16-cmp2: Likewise.
33976         * modules/unistr/u16-cpy: Likewise.
33977         * modules/unistr/u16-cpy-alloc: Likewise.
33978         * modules/unistr/u16-endswith: Likewise.
33979         * modules/unistr/u16-mblen: Likewise.
33980         * modules/unistr/u16-mbsnlen: Likewise.
33981         * modules/unistr/u16-mbtouc: Likewise.
33982         * modules/unistr/u16-mbtouc-unsafe: Likewise.
33983         * modules/unistr/u16-mbtoucr: Likewise.
33984         * modules/unistr/u16-move: Likewise.
33985         * modules/unistr/u16-next: Likewise.
33986         * modules/unistr/u16-prev: Likewise.
33987         * modules/unistr/u16-set: Likewise.
33988         * modules/unistr/u16-startswith: Likewise.
33989         * modules/unistr/u16-stpcpy: Likewise.
33990         * modules/unistr/u16-stpncpy: Likewise.
33991         * modules/unistr/u16-strcat: Likewise.
33992         * modules/unistr/u16-strchr: Likewise.
33993         * modules/unistr/u16-strcmp: Likewise.
33994         * modules/unistr/u16-strcoll: Likewise.
33995         * modules/unistr/u16-strcpy: Likewise.
33996         * modules/unistr/u16-strcspn: Likewise.
33997         * modules/unistr/u16-strdup: Likewise.
33998         * modules/unistr/u16-strlen: Likewise.
33999         * modules/unistr/u16-strmblen: Likewise.
34000         * modules/unistr/u16-strmbtouc: Likewise.
34001         * modules/unistr/u16-strncat: Likewise.
34002         * modules/unistr/u16-strncmp: Likewise.
34003         * modules/unistr/u16-strncpy: Likewise.
34004         * modules/unistr/u16-strnlen: Likewise.
34005         * modules/unistr/u16-strpbrk: Likewise.
34006         * modules/unistr/u16-strrchr: Likewise.
34007         * modules/unistr/u16-strspn: Likewise.
34008         * modules/unistr/u16-strstr: Likewise.
34009         * modules/unistr/u16-strtok: Likewise.
34010         * modules/unistr/u16-to-u32: Likewise.
34011         * modules/unistr/u16-to-u8: Likewise.
34012         * modules/unistr/u16-uctomb: Likewise.
34013         * modules/unistr/u32-check: Likewise.
34014         * modules/unistr/u32-chr: Likewise.
34015         * modules/unistr/u32-cmp: Likewise.
34016         * modules/unistr/u32-cmp2: Likewise.
34017         * modules/unistr/u32-cpy: Likewise.
34018         * modules/unistr/u32-cpy-alloc: Likewise.
34019         * modules/unistr/u32-endswith: Likewise.
34020         * modules/unistr/u32-mblen: Likewise.
34021         * modules/unistr/u32-mbsnlen: Likewise.
34022         * modules/unistr/u32-mbtouc: Likewise.
34023         * modules/unistr/u32-mbtouc-unsafe: Likewise.
34024         * modules/unistr/u32-mbtoucr: Likewise.
34025         * modules/unistr/u32-move: Likewise.
34026         * modules/unistr/u32-next: Likewise.
34027         * modules/unistr/u32-prev: Likewise.
34028         * modules/unistr/u32-set: Likewise.
34029         * modules/unistr/u32-startswith: Likewise.
34030         * modules/unistr/u32-stpcpy: Likewise.
34031         * modules/unistr/u32-stpncpy: Likewise.
34032         * modules/unistr/u32-strcat: Likewise.
34033         * modules/unistr/u32-strchr: Likewise.
34034         * modules/unistr/u32-strcmp: Likewise.
34035         * modules/unistr/u32-strcoll: Likewise.
34036         * modules/unistr/u32-strcpy: Likewise.
34037         * modules/unistr/u32-strcspn: Likewise.
34038         * modules/unistr/u32-strdup: Likewise.
34039         * modules/unistr/u32-strlen: Likewise.
34040         * modules/unistr/u32-strmblen: Likewise.
34041         * modules/unistr/u32-strmbtouc: Likewise.
34042         * modules/unistr/u32-strncat: Likewise.
34043         * modules/unistr/u32-strncmp: Likewise.
34044         * modules/unistr/u32-strncpy: Likewise.
34045         * modules/unistr/u32-strnlen: Likewise.
34046         * modules/unistr/u32-strpbrk: Likewise.
34047         * modules/unistr/u32-strrchr: Likewise.
34048         * modules/unistr/u32-strspn: Likewise.
34049         * modules/unistr/u32-strstr: Likewise.
34050         * modules/unistr/u32-strtok: Likewise.
34051         * modules/unistr/u32-to-u16: Likewise.
34052         * modules/unistr/u32-to-u8: Likewise.
34053         * modules/unistr/u32-uctomb: Likewise.
34054         * modules/uniwbrk/u8-wordbreaks: Likewise.
34055         * modules/uniwbrk/u16-wordbreaks: Likewise.
34056         * modules/uniwbrk/u32-wordbreaks: Likewise.
34057         * modules/uniwbrk/ulc-wordbreaks: Likewise.
34058         * modules/uniwbrk/wordbreak-property: Likewise.
34059         * modules/uniwidth/u8-strwidth: Likewise.
34060         * modules/uniwidth/u8-width: Likewise.
34061         * modules/uniwidth/u16-strwidth: Likewise.
34062         * modules/uniwidth/u16-width: Likewise.
34063         * modules/uniwidth/u32-strwidth: Likewise.
34064         * modules/uniwidth/u32-width: Likewise.
34065         * modules/uniwidth/width: Likewise.
34066         * modules/unicase/cased-tests (Makefile.am): Link all test programs
34067         with $(LIBUNISTRING).
34068         * modules/unicase/ignorable-tests: Likewise.
34069         * modules/unicase/locale-language-tests: Likewise.
34070         * modules/unicase/tolower-tests: Likewise.
34071         * modules/unicase/totitle-tests: Likewise.
34072         * modules/unicase/toupper-tests: Likewise.
34073         * modules/unicase/u8-casecmp-tests: Likewise.
34074         * modules/unicase/u8-casecoll-tests: Likewise.
34075         * modules/unicase/u8-casefold-tests: Likewise.
34076         * modules/unicase/u8-is-cased-tests: Likewise.
34077         * modules/unicase/u8-is-casefolded-tests: Likewise.
34078         * modules/unicase/u8-is-lowercase-tests: Likewise.
34079         * modules/unicase/u8-is-titlecase-tests: Likewise.
34080         * modules/unicase/u8-is-uppercase-tests: Likewise.
34081         * modules/unicase/u8-tolower-tests: Likewise.
34082         * modules/unicase/u8-totitle-tests: Likewise.
34083         * modules/unicase/u8-toupper-tests: Likewise.
34084         * modules/unicase/u16-casecmp-tests: Likewise.
34085         * modules/unicase/u16-casecoll-tests: Likewise.
34086         * modules/unicase/u16-casefold-tests: Likewise.
34087         * modules/unicase/u16-is-cased-tests: Likewise.
34088         * modules/unicase/u16-is-casefolded-tests: Likewise.
34089         * modules/unicase/u16-is-lowercase-tests: Likewise.
34090         * modules/unicase/u16-is-titlecase-tests: Likewise.
34091         * modules/unicase/u16-is-uppercase-tests: Likewise.
34092         * modules/unicase/u16-tolower-tests: Likewise.
34093         * modules/unicase/u16-totitle-tests: Likewise.
34094         * modules/unicase/u16-toupper-tests: Likewise.
34095         * modules/unicase/u32-casecmp-tests: Likewise.
34096         * modules/unicase/u32-casecoll-tests: Likewise.
34097         * modules/unicase/u32-casefold-tests: Likewise.
34098         * modules/unicase/u32-is-cased-tests: Likewise.
34099         * modules/unicase/u32-is-casefolded-tests: Likewise.
34100         * modules/unicase/u32-is-lowercase-tests: Likewise.
34101         * modules/unicase/u32-is-titlecase-tests: Likewise.
34102         * modules/unicase/u32-is-uppercase-tests: Likewise.
34103         * modules/unicase/u32-tolower-tests: Likewise.
34104         * modules/unicase/u32-totitle-tests: Likewise.
34105         * modules/unicase/u32-toupper-tests: Likewise.
34106         * modules/unicase/ulc-casecmp-tests: Likewise.
34107         * modules/unicase/ulc-casecoll-tests: Likewise.
34108         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
34109         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
34110         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
34111         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
34112         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
34113         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
34114         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
34115         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
34116         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
34117         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
34118         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
34119         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
34120         * modules/unictype/bidicategory-byname-tests: Likewise.
34121         * modules/unictype/bidicategory-name-tests: Likewise.
34122         * modules/unictype/bidicategory-of-tests: Likewise.
34123         * modules/unictype/bidicategory-test-tests: Likewise.
34124         * modules/unictype/block-list-tests: Likewise.
34125         * modules/unictype/block-of-tests: Likewise.
34126         * modules/unictype/block-test-tests: Likewise.
34127         * modules/unictype/category-C-tests: Likewise.
34128         * modules/unictype/category-Cc-tests: Likewise.
34129         * modules/unictype/category-Cf-tests: Likewise.
34130         * modules/unictype/category-Cn-tests: Likewise.
34131         * modules/unictype/category-Co-tests: Likewise.
34132         * modules/unictype/category-Cs-tests: Likewise.
34133         * modules/unictype/category-L-tests: Likewise.
34134         * modules/unictype/category-Ll-tests: Likewise.
34135         * modules/unictype/category-Lm-tests: Likewise.
34136         * modules/unictype/category-Lo-tests: Likewise.
34137         * modules/unictype/category-Lt-tests: Likewise.
34138         * modules/unictype/category-Lu-tests: Likewise.
34139         * modules/unictype/category-M-tests: Likewise.
34140         * modules/unictype/category-Mc-tests: Likewise.
34141         * modules/unictype/category-Me-tests: Likewise.
34142         * modules/unictype/category-Mn-tests: Likewise.
34143         * modules/unictype/category-N-tests: Likewise.
34144         * modules/unictype/category-Nd-tests: Likewise.
34145         * modules/unictype/category-Nl-tests: Likewise.
34146         * modules/unictype/category-No-tests: Likewise.
34147         * modules/unictype/category-P-tests: Likewise.
34148         * modules/unictype/category-Pc-tests: Likewise.
34149         * modules/unictype/category-Pd-tests: Likewise.
34150         * modules/unictype/category-Pe-tests: Likewise.
34151         * modules/unictype/category-Pf-tests: Likewise.
34152         * modules/unictype/category-Pi-tests: Likewise.
34153         * modules/unictype/category-Po-tests: Likewise.
34154         * modules/unictype/category-Ps-tests: Likewise.
34155         * modules/unictype/category-S-tests: Likewise.
34156         * modules/unictype/category-Sc-tests: Likewise.
34157         * modules/unictype/category-Sk-tests: Likewise.
34158         * modules/unictype/category-Sm-tests: Likewise.
34159         * modules/unictype/category-So-tests: Likewise.
34160         * modules/unictype/category-Z-tests: Likewise.
34161         * modules/unictype/category-Zl-tests: Likewise.
34162         * modules/unictype/category-Zp-tests: Likewise.
34163         * modules/unictype/category-Zs-tests: Likewise.
34164         * modules/unictype/category-and-not-tests: Likewise.
34165         * modules/unictype/category-and-tests: Likewise.
34166         * modules/unictype/category-byname-tests: Likewise.
34167         * modules/unictype/category-name-tests: Likewise.
34168         * modules/unictype/category-none-tests: Likewise.
34169         * modules/unictype/category-of-tests: Likewise.
34170         * modules/unictype/category-or-tests: Likewise.
34171         * modules/unictype/category-test-withtable-tests: Likewise.
34172         * modules/unictype/combining-class-tests: Likewise.
34173         * modules/unictype/ctype-alnum-tests: Likewise.
34174         * modules/unictype/ctype-alpha-tests: Likewise.
34175         * modules/unictype/ctype-blank-tests: Likewise.
34176         * modules/unictype/ctype-cntrl-tests: Likewise.
34177         * modules/unictype/ctype-digit-tests: Likewise.
34178         * modules/unictype/ctype-graph-tests: Likewise.
34179         * modules/unictype/ctype-lower-tests: Likewise.
34180         * modules/unictype/ctype-print-tests: Likewise.
34181         * modules/unictype/ctype-punct-tests: Likewise.
34182         * modules/unictype/ctype-space-tests: Likewise.
34183         * modules/unictype/ctype-upper-tests: Likewise.
34184         * modules/unictype/ctype-xdigit-tests: Likewise.
34185         * modules/unictype/decimal-digit-tests: Likewise.
34186         * modules/unictype/digit-tests: Likewise.
34187         * modules/unictype/mirror-tests: Likewise.
34188         * modules/unictype/numeric-tests: Likewise.
34189         * modules/unictype/property-alphabetic-tests: Likewise.
34190         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
34191         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
34192         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
34193         * modules/unictype/property-bidi-block-separator-tests: Likewise.
34194         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
34195         * modules/unictype/property-bidi-common-separator-tests: Likewise.
34196         * modules/unictype/property-bidi-control-tests: Likewise.
34197         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
34198         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
34199         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
34200         * modules/unictype/property-bidi-european-digit-tests: Likewise.
34201         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
34202         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
34203         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
34204         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
34205         * modules/unictype/property-bidi-pdf-tests: Likewise.
34206         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
34207         * modules/unictype/property-bidi-whitespace-tests: Likewise.
34208         * modules/unictype/property-byname-tests: Likewise.
34209         * modules/unictype/property-combining-tests: Likewise.
34210         * modules/unictype/property-composite-tests: Likewise.
34211         * modules/unictype/property-currency-symbol-tests: Likewise.
34212         * modules/unictype/property-dash-tests: Likewise.
34213         * modules/unictype/property-decimal-digit-tests: Likewise.
34214         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
34215         * modules/unictype/property-deprecated-tests: Likewise.
34216         * modules/unictype/property-diacritic-tests: Likewise.
34217         * modules/unictype/property-extender-tests: Likewise.
34218         * modules/unictype/property-format-control-tests: Likewise.
34219         * modules/unictype/property-grapheme-base-tests: Likewise.
34220         * modules/unictype/property-grapheme-extend-tests: Likewise.
34221         * modules/unictype/property-grapheme-link-tests: Likewise.
34222         * modules/unictype/property-hex-digit-tests: Likewise.
34223         * modules/unictype/property-hyphen-tests: Likewise.
34224         * modules/unictype/property-id-continue-tests: Likewise.
34225         * modules/unictype/property-id-start-tests: Likewise.
34226         * modules/unictype/property-ideographic-tests: Likewise.
34227         * modules/unictype/property-ids-binary-operator-tests: Likewise.
34228         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
34229         * modules/unictype/property-ignorable-control-tests: Likewise.
34230         * modules/unictype/property-iso-control-tests: Likewise.
34231         * modules/unictype/property-join-control-tests: Likewise.
34232         * modules/unictype/property-left-of-pair-tests: Likewise.
34233         * modules/unictype/property-line-separator-tests: Likewise.
34234         * modules/unictype/property-logical-order-exception-tests: Likewise.
34235         * modules/unictype/property-lowercase-tests: Likewise.
34236         * modules/unictype/property-math-tests: Likewise.
34237         * modules/unictype/property-non-break-tests: Likewise.
34238         * modules/unictype/property-not-a-character-tests: Likewise.
34239         * modules/unictype/property-numeric-tests: Likewise.
34240         * modules/unictype/property-other-alphabetic-tests: Likewise.
34241         * modules/unictype/property-other-default-ignorable-code-point-tests:
34242         Likewise.
34243         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
34244         * modules/unictype/property-other-id-continue-tests: Likewise.
34245         * modules/unictype/property-other-id-start-tests: Likewise.
34246         * modules/unictype/property-other-lowercase-tests: Likewise.
34247         * modules/unictype/property-other-math-tests: Likewise.
34248         * modules/unictype/property-other-uppercase-tests: Likewise.
34249         * modules/unictype/property-paired-punctuation-tests: Likewise.
34250         * modules/unictype/property-paragraph-separator-tests: Likewise.
34251         * modules/unictype/property-pattern-syntax-tests: Likewise.
34252         * modules/unictype/property-pattern-white-space-tests: Likewise.
34253         * modules/unictype/property-private-use-tests: Likewise.
34254         * modules/unictype/property-punctuation-tests: Likewise.
34255         * modules/unictype/property-quotation-mark-tests: Likewise.
34256         * modules/unictype/property-radical-tests: Likewise.
34257         * modules/unictype/property-sentence-terminal-tests: Likewise.
34258         * modules/unictype/property-soft-dotted-tests: Likewise.
34259         * modules/unictype/property-space-tests: Likewise.
34260         * modules/unictype/property-terminal-punctuation-tests: Likewise.
34261         * modules/unictype/property-test-tests: Likewise.
34262         * modules/unictype/property-titlecase-tests: Likewise.
34263         * modules/unictype/property-unassigned-code-value-tests: Likewise.
34264         * modules/unictype/property-unified-ideograph-tests: Likewise.
34265         * modules/unictype/property-uppercase-tests: Likewise.
34266         * modules/unictype/property-variation-selector-tests: Likewise.
34267         * modules/unictype/property-white-space-tests: Likewise.
34268         * modules/unictype/property-xid-continue-tests: Likewise.
34269         * modules/unictype/property-xid-start-tests: Likewise.
34270         * modules/unictype/property-zero-width-tests: Likewise.
34271         * modules/unictype/scripts-tests: Likewise.
34272         * modules/unictype/syntax-c-ident-tests: Likewise.
34273         * modules/unictype/syntax-c-whitespace-tests: Likewise.
34274         * modules/unictype/syntax-java-ident-tests: Likewise.
34275         * modules/unictype/syntax-java-whitespace-tests: Likewise.
34276         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
34277         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
34278         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
34279         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
34280         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
34281         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
34282         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
34283         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
34284         * modules/uniname/uniname-tests: Likewise.
34285         * modules/uninorm/canonical-decomposition-tests: Likewise.
34286         * modules/uninorm/compat-decomposition-tests: Likewise.
34287         * modules/uninorm/composition-tests: Likewise.
34288         * modules/uninorm/decomposing-form-tests: Likewise.
34289         * modules/uninorm/decomposition-tests: Likewise.
34290         * modules/uninorm/filter-tests: Likewise.
34291         * modules/uninorm/nfc-tests: Likewise.
34292         * modules/uninorm/nfd-tests: Likewise.
34293         * modules/uninorm/nfkc-tests: Likewise.
34294         * modules/uninorm/nfkd-tests: Likewise.
34295         * modules/uninorm/u8-normcmp-tests: Likewise.
34296         * modules/uninorm/u8-normcoll-tests: Likewise.
34297         * modules/uninorm/u16-normcmp-tests: Likewise.
34298         * modules/uninorm/u16-normcoll-tests: Likewise.
34299         * modules/uninorm/u32-normcmp-tests: Likewise.
34300         * modules/uninorm/u32-normcoll-tests: Likewise.
34301         * modules/unistdio/u8-asnprintf-tests: Likewise.
34302         * modules/unistdio/u8-vasnprintf-tests: Likewise.
34303         * modules/unistdio/u8-vasprintf-tests: Likewise.
34304         * modules/unistdio/u8-vsnprintf-tests: Likewise.
34305         * modules/unistdio/u8-vsprintf-tests: Likewise.
34306         * modules/unistdio/u16-asnprintf-tests: Likewise.
34307         * modules/unistdio/u16-vasnprintf-tests: Likewise.
34308         * modules/unistdio/u16-vasprintf-tests: Likewise.
34309         * modules/unistdio/u16-vsnprintf-tests: Likewise.
34310         * modules/unistdio/u16-vsprintf-tests: Likewise.
34311         * modules/unistdio/u32-asnprintf-tests: Likewise.
34312         * modules/unistdio/u32-vasnprintf-tests: Likewise.
34313         * modules/unistdio/u32-vasprintf-tests: Likewise.
34314         * modules/unistdio/u32-vsnprintf-tests: Likewise.
34315         * modules/unistdio/u32-vsprintf-tests: Likewise.
34316         * modules/unistdio/ulc-asnprintf-tests: Likewise.
34317         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
34318         * modules/unistdio/ulc-vasprintf-tests: Likewise.
34319         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
34320         * modules/unistdio/ulc-vsprintf-tests: Likewise.
34321         * modules/unistr/u8-check-tests: Likewise.
34322         * modules/unistr/u8-chr-tests: Likewise.
34323         * modules/unistr/u8-cmp-tests: Likewise.
34324         * modules/unistr/u8-cmp2-tests: Likewise.
34325         * modules/unistr/u8-cpy-alloc-tests: Likewise.
34326         * modules/unistr/u8-cpy-tests: Likewise.
34327         * modules/unistr/u8-mblen-tests: Likewise.
34328         * modules/unistr/u8-mbsnlen-tests: Likewise.
34329         * modules/unistr/u8-mbtouc-tests: Likewise.
34330         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
34331         * modules/unistr/u8-mbtoucr-tests: Likewise.
34332         * modules/unistr/u8-move-tests: Likewise.
34333         * modules/unistr/u8-next-tests: Likewise.
34334         * modules/unistr/u8-prev-tests: Likewise.
34335         * modules/unistr/u8-set-tests: Likewise.
34336         * modules/unistr/u8-stpcpy-tests: Likewise.
34337         * modules/unistr/u8-stpncpy-tests: Likewise.
34338         * modules/unistr/u8-strcat-tests: Likewise.
34339         * modules/unistr/u8-strcmp-tests: Likewise.
34340         * modules/unistr/u8-strcoll-tests: Likewise.
34341         * modules/unistr/u8-strcpy-tests: Likewise.
34342         * modules/unistr/u8-strdup-tests: Likewise.
34343         * modules/unistr/u8-strlen-tests: Likewise.
34344         * modules/unistr/u8-strmblen-tests: Likewise.
34345         * modules/unistr/u8-strmbtouc-tests: Likewise.
34346         * modules/unistr/u8-strncat-tests: Likewise.
34347         * modules/unistr/u8-strncmp-tests: Likewise.
34348         * modules/unistr/u8-strncpy-tests: Likewise.
34349         * modules/unistr/u8-strnlen-tests: Likewise.
34350         * modules/unistr/u8-to-u16-tests: Likewise.
34351         * modules/unistr/u8-to-u32-tests: Likewise.
34352         * modules/unistr/u8-uctomb-tests: Likewise.
34353         * modules/unistr/u16-check-tests: Likewise.
34354         * modules/unistr/u16-chr-tests: Likewise.
34355         * modules/unistr/u16-cmp-tests: Likewise.
34356         * modules/unistr/u16-cmp2-tests: Likewise.
34357         * modules/unistr/u16-cpy-alloc-tests: Likewise.
34358         * modules/unistr/u16-cpy-tests: Likewise.
34359         * modules/unistr/u16-mblen-tests: Likewise.
34360         * modules/unistr/u16-mbsnlen-tests: Likewise.
34361         * modules/unistr/u16-mbtouc-tests: Likewise.
34362         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
34363         * modules/unistr/u16-mbtoucr-tests: Likewise.
34364         * modules/unistr/u16-move-tests: Likewise.
34365         * modules/unistr/u16-next-tests: Likewise.
34366         * modules/unistr/u16-prev-tests: Likewise.
34367         * modules/unistr/u16-set-tests: Likewise.
34368         * modules/unistr/u16-stpcpy-tests: Likewise.
34369         * modules/unistr/u16-stpncpy-tests: Likewise.
34370         * modules/unistr/u16-strcat-tests: Likewise.
34371         * modules/unistr/u16-strcmp-tests: Likewise.
34372         * modules/unistr/u16-strcoll-tests: Likewise.
34373         * modules/unistr/u16-strcpy-tests: Likewise.
34374         * modules/unistr/u16-strdup-tests: Likewise.
34375         * modules/unistr/u16-strlen-tests: Likewise.
34376         * modules/unistr/u16-strmblen-tests: Likewise.
34377         * modules/unistr/u16-strmbtouc-tests: Likewise.
34378         * modules/unistr/u16-strncat-tests: Likewise.
34379         * modules/unistr/u16-strncmp-tests: Likewise.
34380         * modules/unistr/u16-strncpy-tests: Likewise.
34381         * modules/unistr/u16-strnlen-tests: Likewise.
34382         * modules/unistr/u16-to-u32-tests: Likewise.
34383         * modules/unistr/u16-to-u8-tests: Likewise.
34384         * modules/unistr/u16-uctomb-tests: Likewise.
34385         * modules/unistr/u32-check-tests: Likewise.
34386         * modules/unistr/u32-chr-tests: Likewise.
34387         * modules/unistr/u32-cmp-tests: Likewise.
34388         * modules/unistr/u32-cmp2-tests: Likewise.
34389         * modules/unistr/u32-cpy-alloc-tests: Likewise.
34390         * modules/unistr/u32-cpy-tests: Likewise.
34391         * modules/unistr/u32-mblen-tests: Likewise.
34392         * modules/unistr/u32-mbsnlen-tests: Likewise.
34393         * modules/unistr/u32-mbtouc-tests: Likewise.
34394         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
34395         * modules/unistr/u32-mbtoucr-tests: Likewise.
34396         * modules/unistr/u32-move-tests: Likewise.
34397         * modules/unistr/u32-next-tests: Likewise.
34398         * modules/unistr/u32-prev-tests: Likewise.
34399         * modules/unistr/u32-set-tests: Likewise.
34400         * modules/unistr/u32-stpcpy-tests: Likewise.
34401         * modules/unistr/u32-stpncpy-tests: Likewise.
34402         * modules/unistr/u32-strcat-tests: Likewise.
34403         * modules/unistr/u32-strcmp-tests: Likewise.
34404         * modules/unistr/u32-strcoll-tests: Likewise.
34405         * modules/unistr/u32-strcpy-tests: Likewise.
34406         * modules/unistr/u32-strdup-tests: Likewise.
34407         * modules/unistr/u32-strlen-tests: Likewise.
34408         * modules/unistr/u32-strmblen-tests: Likewise.
34409         * modules/unistr/u32-strmbtouc-tests: Likewise.
34410         * modules/unistr/u32-strncat-tests: Likewise.
34411         * modules/unistr/u32-strncmp-tests: Likewise.
34412         * modules/unistr/u32-strncpy-tests: Likewise.
34413         * modules/unistr/u32-strnlen-tests: Likewise.
34414         * modules/unistr/u32-to-u16-tests: Likewise.
34415         * modules/unistr/u32-to-u8-tests: Likewise.
34416         * modules/unistr/u32-uctomb-tests: Likewise.
34417         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
34418         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
34419         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
34420         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
34421         * modules/uniwidth/u8-strwidth-tests: Likewise.
34422         * modules/uniwidth/u8-width-tests: Likewise.
34423         * modules/uniwidth/u16-strwidth-tests: Likewise.
34424         * modules/uniwidth/u16-width-tests: Likewise.
34425         * modules/uniwidth/u32-strwidth-tests: Likewise.
34426         * modules/uniwidth/u32-width-tests: Likewise.
34427         * modules/uniwidth/width-tests: Likewise.
34428
34429 2010-05-18  Richard Jones  <rjones@redhat.com>
34430
34431         doc: users.txt: list hivex
34432         * users.txt: Add hivex.
34433
34434 2010-05-18  Richard Jones  <rjones@redhat.com>
34435
34436         doc: users.txt: list febootstrap
34437         * users.txt: Add febootstrap.
34438
34439 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
34440
34441         bootstrap: fix an error when gnulib is not used as a git submodule
34442         * build-aux/bootstrap (gnulib_path): If its length is zero then
34443         assign "gnulib" to it.
34444         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
34445
34446 2010-05-16  Bruno Haible  <bruno@clisp.org>
34447
34448         Avoid autoconf warnings about AM_ICONV.
34449         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
34450         2.64.
34451
34452 2010-05-16  Bruno Haible  <bruno@clisp.org>
34453
34454         absolute-header: Make the macro usable in more situations.
34455         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
34456         from gl_ABSOLUTE_HEADER.
34457         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
34458
34459 2010-05-16  James Youngman  <jay@gnu.org>
34460
34461         doc: update users.txt
34462         * users.txt: Add CSSC.
34463
34464 2010-05-16  Jim Meyering  <meyering@redhat.com>
34465
34466         init.sh: fix an error in the previous change; add more comments
34467         * tests/init.sh: Compare exit code in loop against 9, not 2.
34468         Patch by Bruno Haible.
34469         Make the two tests more similar by adding an empty "then" clause.
34470         Add comments.
34471
34472         init.sh: avoid unnecessary shell re-exec
34473         * tests/init.sh: Improve the re-exec-required check to first test the
34474         current shell.  If it passes the test, do not search for a shell that
34475         does pass, and do not re-exec.  This test is particularly contorted to
34476         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
34477         of $(...) evokes a syntax error and causes immediate shell exit with
34478         status 2.  Bruno Haible reported that the re-exec made it impossible
34479         to single-step through any init.sh-using script.
34480
34481 2010-05-16  Bruno Haible  <bruno@clisp.org>
34482
34483         Fix collision between gnulib's and libintl's printf replacements.
34484         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
34485         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
34486         (printf): When using GNU C, map the __printf__ function to rpl_printf
34487         via __asm__. When not using GNU C, define rpl_printf instead of
34488         __printf__.
34489         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
34490         commit.
34491         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
34492         commit.
34493         * m4/asm-underscore.m4: New file.
34494         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
34495         * modules/stdio (Files): Add m4/asm-underscore.m4.
34496         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
34497         Reported by Ben Pfaff.
34498
34499 2010-05-16  Bruno Haible  <bruno@clisp.org>
34500
34501         verify: Avoid skipping the test on openSUSE 11.0.
34502         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
34503
34504 2010-05-13  Bruno Haible  <bruno@clisp.org>
34505
34506         Avoid useless warnings from G++.
34507         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
34508         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
34509         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
34510
34511 2010-05-11  Jim Meyering  <meyering@redhat.com>
34512
34513         maint.mk: tweak preceding change
34514         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
34515         regexps tighter by anchoring at EOL, and make the new group "shy"
34516         for slightly decreased overhead.
34517
34518 2010-05-11  Eric Blake  <eblake@redhat.com>
34519
34520         maint.mk: gnulib doesn't guarantee NSIG
34521         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
34522
34523 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
34524
34525         test-pwrite.c: Remove unused variable declaration.
34526         * tests/test-pwrite.c (main): Remove read_buf declaration.
34527
34528         Remove useless test-pwrite.sh file.
34529         * tests/test-pwrite.sh: Delete file.
34530         * modules/pwrite-tests: Remove references.
34531         Reported by Bruno Haible.
34532
34533 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
34534
34535         init.sh: fix a typo
34536         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
34537
34538 2010-05-10  Jim Meyering  <meyering@redhat.com>
34539
34540         maint.mk: avoid using a temporary file in the always-defined-macros check
34541         * top/maint.mk (.re-defmac): Remove rule.
34542         (gl_trap_): Remove definition.
34543         (sc_prohibit_always-defined_macros): Rewrite not to create and
34544         depend on a temporary file.  Instead, depend on GNU grep's ability
34545         to read a list of regular expressions from stdin when given "-f -".
34546
34547 2010-05-09  Bruno Haible  <bruno@clisp.org>
34548
34549         Update to GNU gettext 0.18, part 1.
34550         * m4/gettext.m4: Update to GNU gettext 0.18.
34551         * m4/intl.m4: Likewise.
34552         * m4/po.m4: Likewise.
34553         * modules/gettext (Files): Add m4/fcntl-o.m4.
34554         (configure.ac): Require gettext infrastructure from version 0.18.
34555
34556 2010-05-09  Jim Meyering  <meyering@redhat.com>
34557
34558         init.sh: enable MALLOC_PERTURB_
34559         * tests/init.sh: Enable glibc's malloc-perturbing option.
34560
34561         maint.mk: improve sc_cross_check_PATH_usage_in_tests
34562         With my recent change in init.sh from the two-line form:
34563             -#   : ${srcdir=.}
34564             -#   . "$srcdir/init.sh"; path_prepend_ .
34565             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
34566         I noticed that using the one-line form would cause this test
34567         to fail with a false-positive, or to stop working altogether,
34568         depending on whether help-version changed or all the tests did.
34569         * top/maint.mk (_hv_regex): Remove this definition.
34570         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
34571         (_hv_regex_strong): Use a stronger regex to check for conformance.
34572         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
34573         Give a separate diagnostic for lack of conforming use.
34574
34575         maint.mk: prohibit definition of symbols defined by gnulib
34576         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
34577         definition of symbols defined by gnulib.
34578
34579 2010-05-09  Bruno Haible  <bruno@clisp.org>
34580
34581         acl: Avoid test failure on Cygwin-hosted mingw.
34582         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
34583
34584 2010-05-09  Bruno Haible  <bruno@clisp.org>
34585
34586         error: Use system's fcntl function.
34587         * lib/error.c (fcntl): Undefine.
34588
34589 2010-05-09  Jim Meyering  <meyering@redhat.com>
34590
34591         verify: adjust formatting to be more consistent
34592         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
34593         argument-list '('s, and after one comma.
34594
34595 2010-05-09  Bruno Haible  <bruno@clisp.org>
34596
34597         error: More reliable output on mingw.
34598         * lib/error.c: Include <windows.h>.
34599         (is_open): New function.
34600         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
34601         defined.
34602
34603 2010-05-09  Bruno Haible  <bruno@clisp.org>
34604
34605         vasnprintf: Fix syntax errors in libintl build on mingw.
34606         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
34607         pad_ourselves and prec_ourselves after use.
34608
34609 2010-05-08  Bruno Haible  <bruno@clisp.org>
34610
34611         * lib/config.charset: Update comments for Cygwin 1.7.
34612         * lib/localcharset.c: Likewise.
34613
34614 2010-05-07  Jim Meyering  <meyering@redhat.com>
34615
34616         init.sh: improve comments
34617         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
34618         . "${srcdir=.}/init.sh"; path_prepend_ .
34619         Add a note about path_prepend_ and the alternative of using
34620         TESTS_ENVIRONMENT.
34621
34622 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
34623
34624         exclude: Unescape hashed patterns in wildcard mode.
34625         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
34626         to the hash list.
34627         * tests/test-exclude8.sh: New test case.
34628         * modules/exclude-tests: Add new test.
34629
34630 2010-05-05  Eric Blake  <eblake@redhat.com>
34631
34632         verify: automate tests
34633         * modules/verify-tests: New module.
34634         * tests/test-verify.sh: New file.
34635         * tests/test-verify.c: Guard each negative test with a unique id.
34636         Also avoid warning about unused left hand of comma expressions.
34637
34638 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
34639
34640         Further improvements to verify.h, suggested by Eric Blake.
34641         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
34642         the GL_* versions, to avoid collision with OpenGL.
34643         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
34644         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
34645         than testing merely whether it's defined.
34646
34647         Modify verify.h to pacify gcc -Wredundant_decls.
34648         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
34649         These use the prefix "GL_" since they're likely to be useful elsewhere.
34650         We may need to break them out into a different .h file.
34651         (__COUNTER__): Define to 0 if the compiler doesn't support it.
34652         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
34653         of verify_function__.
34654
34655 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
34656
34657         Tests for module pwrite.
34658         * modules/pwrite-tests: New file.
34659         * tests/test-pwrite.sh: New file.
34660         * tests/test-pwrite.c: New file.
34661
34662         New module pwrite.
34663         * lib/unistd.in.h (pwrite): New declaration.
34664         * lib/pwrite.c: New file, from glibc with modifications.
34665         * m4/pwrite.m4: New file.
34666         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
34667         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
34668         REPLACE_PWRITE.
34669         * modules/pwrite: New file.
34670         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
34671         REPLACE_PWRITE.
34672         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
34673         * doc/posix-functions/pwrite.texi: Mention the new module.
34674
34675 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
34676
34677         pread: Update documentation.
34678         * doc/posix-functions/pread.texi: Mention the 'pread' module.
34679
34680 2010-05-04  Eric Blake  <eblake@redhat.com>
34681
34682         docs: update cygwin progress
34683         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
34684         this bug.
34685         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
34686         Added in cygwin 1.7.2.
34687         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
34688         Likewise.
34689         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
34690         Likewise.
34691         * doc/glibc-functions/dup3.texi (dup3): Likewise.
34692         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
34693         * doc/glibc-functions/accept4.texi (accept4): Likewise.
34694         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
34695         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
34696         Mention nproc module.
34697         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
34698         bug in cygwin 1.7.5 addition.
34699         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
34700         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
34701         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
34702         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
34703         1.7.5.
34704         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
34705         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
34706         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
34707         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
34708         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
34709         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
34710         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
34711         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
34712         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
34713         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
34714         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
34715         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
34716         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
34717         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
34718         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
34719         Likewise.
34720         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
34721         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
34722         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
34723         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
34724         Likewise.
34725         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
34726         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
34727         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
34728         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
34729         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
34730         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
34731         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
34732         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
34733         Likewise.
34734         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
34735         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
34736         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
34737         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
34738         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
34739         Likewise.
34740         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
34741         Likewise.
34742         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
34743         Likewise.
34744         * doc/glibc-functions/xdrrec_endofrecord.texi
34745         (xdrrec_endofrecord): Likewise.
34746         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
34747         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
34748         Likewise.
34749         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
34750         Likewise.
34751
34752 2010-05-04  Jim Meyering  <meyering@redhat.com>
34753
34754         gendocs.sh: make its "-s FILE" option more useful
34755         * build-aux/gendocs.sh: When honoring the -s FILE option, update
34756         $PACKAGE to reflect the probably-different basename of "FILE".
34757
34758 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
34759
34760         bootstrap: don't ignore download_po_files failure
34761         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
34762         failure.
34763
34764 2010-05-03  Jim Meyering  <meyering@redhat.com>
34765
34766         maint.mk: allow to pass options to gendocs.sh
34767         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
34768         (gendocs_options_): New overridable variable.
34769
34770         gnu-web-doc-update: don't ignore configure or build failure
34771         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
34772
34773         announce-gen: backslash-escape '@'s in --help output
34774         * build-aux/announce-gen: Fix syntax errors.
34775
34776         maint.mk, announce-gen: allow project-specific announcement mail headers
34777         * top/maint.mk (translation_project_): Define default.
34778         (announcement_Cc_, announcement_mail_headers_): Likewise.
34779         (announcement): Invoke announce-gen with new --mail-headers option.
34780         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
34781
34782         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
34783         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
34784         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
34785         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
34786         line in the "err2" output file when running "make check" in verbose
34787         mode (i.e., with set -x enabled).
34788
34789 2010-05-03  Bruno Haible  <bruno@clisp.org>
34790
34791         wctob: Fix for weird platforms.
34792         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
34793         argument value.
34794
34795 2010-05-03  Jim Meyering  <meyering@redhat.com>
34796
34797         maint.mk: prohibit unwarranted use of <strings.h>
34798         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
34799         strings.h in a file that does not also use strcasecmp, strncasecmp,
34800         ffs or ffsll.
34801
34802         maint.mk: remove obsolete comments
34803         * top/maint.mk: Remove stale, commented-out rules.
34804
34805 2010-05-02  Bruno Haible  <bruno@clisp.org>
34806
34807         wcwidth: Declare also when it's aliased.
34808         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
34809         macro.
34810
34811 2010-05-02  Bruno Haible  <bruno@clisp.org>
34812
34813         Fix regression from 2010-04-25.
34814         * gnulib-tool (func_modules_transitive_closure): Check the status of
34815         all modules, not only of the tests that are of the form foo-tests where
34816         foo is a module.
34817
34818 2010-05-02  Bruno Haible  <bruno@clisp.org>
34819
34820         wctob: Work around nasty Cygwin 1.7.2 bug.
34821         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
34822         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
34823
34824 2010-05-01  Bruno Haible  <bruno@clisp.org>
34825
34826         fpurge: Sharper test.
34827         * tests/test-fpurge.c (main): Add one more ftell check.
34828         * modules/fpurge-tests (Depends-on): Add ftell.
34829         Suggested by Eric Blake.
34830
34831 2010-05-01  Bruno Haible  <bruno@clisp.org>
34832
34833         ftello: Another test.
34834         * tests/test-ftello3.c: New file.
34835         * modules/ftello-tests (Files): Add it.
34836         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
34837         MOSTLYCLEANFILES.
34838
34839         ftell: Another test.
34840         * tests/test-ftell3.c: New file.
34841         * modules/ftell-tests (Files): Add it.
34842         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
34843         MOSTLYCLEANFILES.
34844
34845 2010-05-01  Bruno Haible  <bruno@clisp.org>
34846
34847         ftell, ftello: Work around Solaris bug.
34848         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
34849         * lib/ftello.c: Include stdio-impl.h.
34850         (ftello): On Solaris, when _IOWRT is set, compute the result without
34851         looking at _IOREAD.
34852         * modules/ftello (Files): Add lib/stdio-impl.h.
34853         * doc/posix-functions/ftell.texi: Mention Solaris bug.
34854         * doc/posix-functions/ftello.texi: Likewise.
34855         Reported by Eric Blake.
34856
34857 2010-05-01  Bruno Haible  <bruno@clisp.org>
34858
34859         freading: Adapt to special meaning of _IOREAD flag on Solaris.
34860         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
34861         the _IOWRT flag is also set.
34862
34863 2010-05-01  Bruno Haible  <bruno@clisp.org>
34864
34865         Fix doc about a HP-UX stdio bug.
34866         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
34867         * doc/posix-functions/ftello.texi: Likewise.
34868
34869 2010-05-01  Bruno Haible  <bruno@clisp.org>
34870
34871         lseek test: Fix failure on Solaris.
34872         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
34873         output.
34874
34875 2010-04-30  Jim Meyering  <meyering@redhat.com>
34876
34877         bootstrap: don't ignore failure to generate po*/Makevars
34878         * build-aux/bootstrap (with_gettext): Don't ignore failure
34879         to create po/Makevars or runtime-po/Makevars.
34880
34881 2010-04-29  Eric Blake  <eblake@redhat.com>
34882
34883         headers: relax license to LGPLv2+
34884         * modules/fcntl-h (License): Relax license.
34885         * modules/getopt-posix (License): Likewise.
34886         * modules/locale (License): Likewise.
34887         * modules/math (License): Likewise.
34888         * modules/pty (License): Likewise.
34889         * modules/sched (License): Likewise.
34890         * modules/search (License): Likewise.
34891         * modules/spawn (License): Likewise.
34892         * modules/stdarg (License): Likewise.
34893         * modules/sysexits (License): Likewise.
34894
34895 2010-04-29  Jim Meyering  <meyering@redhat.com>
34896
34897         inttypes: relax license to LGPLv2+
34898         * modules/inttypes (License): Relax license.
34899
34900 2010-04-29  Simon Josefsson  <simon@josefsson.org>
34901
34902         * top/maint.mk (indent): Run twice to produce idempotent results.
34903
34904 2010-04-28  Bruno Haible  <bruno@clisp.org>
34905
34906         getdate: Generate getdate.c in the source directory.
34907         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
34908         MOSTLYCLEANFILES.
34909         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
34910
34911 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
34912
34913         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
34914         is not declared as a const *; avoid warnings in that case.
34915
34916 2010-04-28  Eric Blake  <eblake@redhat.com>
34917
34918         canonicalize-lgpl: avoid compiler warning
34919         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
34920         declaration' / 'extraneous semicolon' warning with some compilers.
34921         Reported by Andreas Gruenbacher.
34922
34923 2010-04-28  Jim Meyering  <meyering@redhat.com>
34924
34925         init.sh: ensure a more reliable exit status when exiting via trap
34926         * tests/init.sh (setup_): Don't rely on $? in signal handler.
34927         Inspired by patches from Dmitry V. Levin.
34928         Also trap on signal 3 (SIGQUIT).
34929
34930 2010-04-27  Bruno Haible  <bruno@clisp.org>
34931
34932         Update doc about utimes().
34933         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
34934         'utimens' module.
34935         Reported by Andreas Gruenbacher <agruen@suse.de>.
34936
34937 2010-04-27  Eric Blake  <eblake@redhat.com>
34938
34939         full-read, full-write: relax license
34940         * modules/full-read (License): Drop to LGPLv2+.
34941         * modules/full-write (License): Likewise.
34942         * modules/safe-read (License): Likewise.
34943         * modules/safe-write (License): Likewise.
34944
34945         pthread: mention library for linking
34946         * modules/pthread (Link): Mention $(LIB_PTHREAD).
34947
34948 2010-04-27  Jim Meyering  <meyering@redhat.com>
34949
34950         maint.mk: fix a bug introduced in last change
34951         * top/maint.mk (gl_assured_headers_): Now that all names are on
34952         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
34953         is not anchored to end of word, it should be adequate.
34954
34955         maint.mk: avoid side-effect in latest syntax-check
34956         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
34957         to run commands via $(shell...), and hence to incur cost only when
34958         the new rule is actually run.
34959
34960         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
34961         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
34962         and use that to create a regexp used to detect all #if HAVE_..._H uses.
34963         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
34964         (gl_assured_headers_, az_, AZ_): Define.
34965         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
34966
34967 2010-04-26  Jim Meyering  <jim@meyering.net>
34968             Bruno Haible  <bruno@clisp.org>
34969
34970         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
34971         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
34972         Prompted by an exchange with Gilles Espinasse.
34973
34974 2010-04-26  Jim Meyering  <meyering@redhat.com>
34975
34976         git-version-gen: aesthetic tweak
34977         * build-aux/git-version-gen: Use "$nl" rather than a literal,
34978         so that the command remains on a single line.
34979
34980 2010-04-26  Eric Blake  <eblake@redhat.com>
34981
34982         git-version-gen: allow use on EBCDIC hosts
34983         * build-aux/git-version-gen (dirty): Use literal rather than tying
34984         ourselves to ascii.
34985         Reported by Steve Goetze.
34986
34987 2010-04-25  Bruno Haible  <bruno@clisp.org>
34988
34989         netdb: Add support for GNULIB_POSIXCHECK.
34990         * lib/netdb.in.h: Include warn-on-use.h.
34991         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
34992         functions are used when GNULIB_POSIXCHECK is defined and the
34993         getaddrinfo module is not in use.
34994         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
34995         freeaddrinfo, gai_strerror, getnameinfo are declared.
34996         * modules/netdb (Depends-on): Add warn-on-use.
34997         (Makefile.am): Include warn-on-use.h in netdb.h.
34998
34999 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
35000
35001         build: avoid "make check" failure without .git/ directory
35002         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
35003         there is no .git/ directory.
35004
35005 2010-04-25  Bruno Haible  <bruno@clisp.org>
35006
35007         ptsname: Fix misuse of ttyname_r.
35008         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
35009         of errno.
35010
35011 2010-04-25  Bruno Haible  <bruno@clisp.org>
35012
35013         ttyname_r: Make it work on Solaris 10.
35014         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
35015         if the system function has the POSIX declaration. Test whether the
35016         function fails if the buffer is less than 128 bytes large.
35017         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
35018         system's ttyname_r function. Provide a reasonably large buffer.
35019         * modules/ttyname_r (Depends-on): Add extensions.
35020         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
35021
35022 2010-04-25  Bruno Haible  <bruno@clisp.org>
35023
35024         Use the 'extensions' module for some more functions on Solaris.
35025         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
35026         module.
35027         * doc/posix-functions/ctime_r.texi: Likewise.
35028         * doc/posix-functions/getgrgid_r.texi: Likewise.
35029         * doc/posix-functions/getgrnam_r.texi: Likewise.
35030         * doc/posix-functions/getpwnam_r.texi: Likewise.
35031         * doc/posix-functions/getpwuid_r.texi: Likewise.
35032         * doc/posix-functions/readdir_r.texi: Likewise.
35033         * doc/posix-functions/sigwait.texi: Likewise.
35034         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
35035         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
35036
35037 2010-04-25  Bruno Haible  <bruno@clisp.org>
35038
35039         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
35040         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
35041         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
35042         * lib/ttyname_r.c: Include <limits.h>.
35043         (ttyname_r): Define using the system's ttyname_r function, if it exists
35044         and not on Solaris.
35045         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
35046         set.
35047         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
35048         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
35049         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
35050         Reported by Simon Josefsson.
35051
35052 2010-04-25  Bruno Haible  <bruno@clisp.org>
35053
35054         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
35055         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
35056         * doc/posix-functions/ctime_r.texi: Likewise.
35057         * doc/posix-functions/getgrgid_r.texi: Likewise.
35058         * doc/posix-functions/getgrnam_r.texi: Likewise.
35059         * doc/posix-functions/getlogin_r.texi: Likewise.
35060         * doc/posix-functions/getpwnam_r.texi: Likewise.
35061         * doc/posix-functions/getpwuid_r.texi: Likewise.
35062         * doc/posix-functions/readdir_r.texi: Likewise.
35063         * doc/posix-functions/sigwait.texi: Likewise.
35064         * doc/posix-functions/ttyname_r.texi: Likewise.
35065         Reported by Simon Josefsson.
35066
35067 2010-04-25  Bruno Haible  <bruno@clisp.org>
35068
35069         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
35070         * gnulib-tool (func_usage): Document that --with-*-tests options apply
35071         also to --create-testdir.
35072         (func_acceptable): Don't consider the status of *-tests modules here.
35073         (func_modules_transitive_closure): Consider it here, before including a
35074         test module.
35075         (func_import, func_create_testdir): Set inc_all_direct_tests,
35076         inc_all_indirect_tests.
35077         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
35078         --create-testdir and --create-megatestdir.
35079
35080 2010-04-25  Bruno Haible  <bruno@clisp.org>
35081
35082         gnulib-tool: Add --without-*-tests options.
35083         * gnulib-tool (func_usage): Document the --without-*-tests options.
35084         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
35085         excl_unportable_tests): New variables.
35086         Fail if they are specified with --import or --update.
35087         (func_acceptable): Respect the excl_*_tests variables.
35088         (func_import): Set the excl_*_tests variables to empty.
35089
35090 2010-04-25  Simon Josefsson  <simon@josefsson.org>
35091             Bruno Haible  <bruno@clisp.org>
35092
35093         Work around a MacOS X 10.4 bug with openpty.
35094         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
35095         * tests/test-openpty.c (main): Close the master side explicitly.
35096
35097 2010-04-25  Bruno Haible  <bruno@clisp.org>
35098
35099         strnlen: Fix a C++ test error on MacOS X and Solaris.
35100         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
35101         the function is not declared.
35102         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
35103         Simon Josefsson.
35104
35105 2010-04-24  Bruno Haible  <bruno@clisp.org>
35106
35107         Avoid a gcc warning.
35108         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
35109         of correct type for %08lx directive.
35110         Reported by Eric Blake.
35111
35112 2010-04-24  Bruno Haible  <bruno@clisp.org>
35113
35114         vasnprintf: Correct errno value in case of out-of-memory.
35115         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
35116         or sprintf. Use the errno value from SNPRINTF or sprintf.
35117         Reported by Ian Beckwith <ianb@erislabs.net>.
35118
35119 2010-04-24  Bruno Haible  <bruno@clisp.org>
35120
35121         ansi-c++-opt: Find correct compiler when cross-compiling.
35122         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
35123         AC_CHECK_PROGS.
35124         Reported by Simon Josefsson.
35125
35126 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
35127
35128         vc-list-files: Add support for subversion
35129         * build-aux/vc-list-files: Use "svn list" to generate the list of
35130         files controlled by subversion.
35131
35132 2010-04-23  Jim Meyering  <meyering@redhat.com>
35133
35134         vc-list-files tests: convert to use init.sh
35135         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
35136         path_prepend_.
35137         Use Exit, not exit.
35138         Use skip_ rather than open coding it.
35139         Remove trap set-up and compare definitions.
35140         * tests/test-vc-list-files-git.sh: Likewise.
35141         * modules/vc-list-files-tests (Files): Add tests/init.sh.
35142
35143 2010-04-22  Simon Josefsson  <simon@josefsson.org>
35144
35145         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
35146         backup files.
35147
35148 2010-04-21  Simon Josefsson  <simon@josefsson.org>
35149
35150         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
35151
35152 2010-04-20  Eric Blake  <eblake@redhat.com>
35153
35154         tests: be robust to ignored SIGPIPE
35155         * tests/test-select-in.sh: Consume all output.
35156         * tests/test-lseek.sh: Check correct exit status, while avoiding
35157         EPIPE.
35158
35159 2010-04-20  Simon Josefsson  <simon@josefsson.org>
35160             Bruno Haible  <bruno@clisp.org>
35161
35162         visibility: Don't use -fvisibility if it leads to a warning.
35163         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
35164         yes, don't pretend that visibility works if it leads to a warning.
35165         Reported by Mike Gran <spk121@yahoo.com>.
35166
35167 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
35168
35169         * build-aux/bootstrap: Use "git -h" for testing for supported options
35170         instead of "git --help".  The short-form option only shows a summary,
35171         and doesn't layout the full man page.  Grep for the full option name
35172         in the summary, too.
35173
35174 2010-04-19  Bruno Haible  <bruno@clisp.org>
35175
35176         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
35177         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
35178         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
35179         mention of RELOCATABLE_STRIP.
35180         Reported by Sylvain Beucler <beuc@beuc.net>.
35181
35182 2010-04-19  Bruno Haible  <bruno@clisp.org>
35183
35184         * lib/diffseq.h: Fix typo in comment.
35185         Reported by Eric Blake.
35186
35187 2010-04-19  Bruno Haible  <bruno@clisp.org>
35188
35189         ioctl: Move autoconf macro to a .m4 file.
35190         * m4/ioctl.m4: New file, extracted from modules/ioctl.
35191         * modules/ioctl (Files): Add it.
35192         (configure.ac): Simply invoke gl_FUNC_IOCTL.
35193         Reported by Ian Beckwith <ianb@erislabs.net>.
35194
35195 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
35196             Bruno Haible  <bruno@clisp.org>
35197
35198         diffseq: Accommodate use-case with abstract arrays.
35199         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
35200         is not defined.
35201         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
35202         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
35203
35204 2010-04-18  Bruno Haible  <bruno@clisp.org>
35205
35206         * doc/posix-headers/stdbool.texi: More precise wording.
35207
35208 2010-04-17  Jim Meyering  <meyering@redhat.com>
35209
35210         maint.mk: use gnu-style indentation in an embedded perl script
35211         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
35212         Rename variable: s/two/last_two_bytes/
35213
35214 2010-04-16  Eric Blake  <eblake@redhat.com>
35215
35216         test-stdbool: skip test that fails with Solaris CC
35217         * tests/test-stdbool.c (f): Skip test that causes compilation
35218         error under buggy C++ compiler.
35219         * lib/stdbool.in.h: Document the limitation.
35220         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
35221
35222         setenv: allow compilation with C++
35223         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
35224         register keyword.
35225
35226         stdint: allow test to pass with C++
35227         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
35228
35229         getopt: allow compilation with C++
35230         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
35231         struct.
35232         * lib/getopt.c (_getopt_internal_r): Use correct type.
35233         Reported by Dagobert Michelson, via Joel E. Denny.
35234
35235 2010-04-16  Bruno Haible  <bruno@clisp.org>
35236
35237         Override netdb.h always.
35238         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
35239         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
35240         Reported by Ludovic Courtès <ludo@gnu.org>.
35241
35242 2010-04-15  Bruno Haible  <bruno@clisp.org>
35243
35244         openpty: Fix mistake from 2010-03-21.
35245         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
35246         Reported by Simon Josefsson.
35247
35248 2010-04-15  Eric Blake  <eblake@redhat.com>
35249
35250         test-forkpty: fix expected signature
35251         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
35252         Reported by Simon Josefsson.
35253
35254 2010-04-15  Jim Meyering  <meyering@redhat.com>
35255
35256         maint.mk: texinfo_suffix_re_: correct the default regexp
35257         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
35258
35259         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
35260         make it configurable via texinfo_suffix_re_.
35261
35262 2010-04-14  Eric Blake  <eblake@redhat.com>
35263
35264         strtok_r: relax license to LGPLv2+
35265         * modules/strtok_r (License): Relax license.
35266         Reported by Matthias Bolte.
35267
35268 2010-04-14  Simon Josefsson  <simon@josefsson.org>
35269
35270         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
35271         version 1.4.4 by default instead of requiring the libgcrypt
35272         version used during build.  This makes it possible to use the
35273         application with older but still binary compatible libgcrypt
35274         versions.
35275
35276 2010-04-13  Eric Blake  <eblake@redhat.com>
35277
35278         getopt-gnu: match recent glibc fixes and posix ruling
35279         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
35280         '+' handling, when requesting extensions.
35281         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
35282         'W;' handling.
35283         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
35284         * doc/posix-functions/getopt.texi (getopt): Document this.
35285         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
35286         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
35287         Likewise.
35288
35289         getopt: merge bug fixes from glibc
35290         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
35291         diagnostics.  Honor '+:' correctly.  Reject ';'.
35292
35293         getopt-posix: detect MacOS bug
35294         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
35295         optind when missing a required argument.
35296         * doc/posix-functions/getopt.texi (getopt): Document the bug.
35297         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
35298         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
35299         Likewise.
35300
35301         getopt-posix: avoid spurious failure on Solaris
35302         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
35303         an indicator that setting optind=1 is sufficient for reset.
35304
35305         getopt-posix: avoid spurious failure on FreeBSD
35306         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
35307         in POSIX mode, since the m4 test uses it.
35308
35309         gnulib-tool: silence warning on BSD sh
35310         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
35311
35312 2010-04-13  Jim Meyering  <meyering@redhat.com>
35313
35314         doc: users.txt: GNU patch now uses gnulib
35315         * users.txt: Add patch.
35316
35317 2010-04-12  Jim Meyering  <meyering@redhat.com>
35318
35319         maint.mk: generate more concise timing data for syntax-check rules
35320         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
35321         " done" from each line that reports a syntax-check test duration.
35322
35323 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
35324
35325         git-version-gen: use "git update-index..." rather than "git status"
35326         * build-aux/git-version-gen: Use git update-index --refresh, not
35327         "git status".  With some versions of git, "git status" would fail
35328         to update the index and result in an unwarranted "-dirty" suffix.
35329
35330 2010-04-11  Jim Meyering  <meyering@redhat.com>
35331
35332         openat: correct formatting (no semantic change)
35333         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
35334         Suggested by Bruno Haible.
35335
35336 2010-04-11  Bruno Haible  <bruno@clisp.org>
35337
35338         Stricter declaration checking in testdirs.
35339         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
35340         If for_tests is true, augment AM_CPPFLAGS to define
35341         GNULIB_STRICT_CHECKING.
35342         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
35343         GNULIB_STRICT_CHECKING is defined, verify that the function is
35344         declared.
35345
35346 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
35347             Bruno Haible  <bruno@clisp.org>
35348
35349         libunistring: Improve configure output.
35350         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
35351         Don't say "consider installing GNU libunistring" when checking again
35352         with libiconv.
35353
35354 2010-04-11  Bruno Haible  <bruno@clisp.org>
35355
35356         libunistring: Correct value of $LTLIBUNISTRING.
35357         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
35358         correct the value of $LTLIBUNISTRING.
35359
35360 2010-04-11  Bruno Haible  <bruno@clisp.org>
35361
35362         havelib: Add static libraries to LIBS in the right order.
35363         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
35364         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
35365
35366 2010-04-11  Bruno Haible  <bruno@clisp.org>
35367
35368         libunistring: Detect libunistring also when it depends on libiconv.
35369         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
35370         the second AC_LIB_HAVE_LINKFLAGS invocation.
35371
35372 2010-04-11  James Youngman  <jay@gnu.org>
35373
35374         close-stream: declare local scalars to be "const"
35375         * lib/close-stream.c (close_stream): Make boolean variables const
35376         to document the fact that we set but do not change them.
35377
35378 2010-04-11  Bruno Haible  <bruno@clisp.org>
35379
35380         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
35381
35382 2010-04-11  Jim Meyering  <meyering@redhat.com>
35383
35384         maint.mk: don't include dist-check.mk
35385         * top/maint.mk: Remove bogus include directive.
35386
35387         maint.mk: improve empty-line-at-EOF check
35388         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
35389         solution, rather than tail+Perl-based one.  The latter would read
35390         a few kilobytes from the end of each file, and did not handle empty
35391         files properly.
35392
35393         maint.mk: print the elapsed time for each syntax-check rule
35394         * top/maint.mk (sc_m_rules_): Save start time in a file.
35395         (sc_z_rules_): New rules: remove temp file and print elapsed time.
35396         (local-check): Interpose the .z rules
35397
35398 2010-04-11  Jim Meyering  <meyering@redhat.com>
35399
35400         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
35401         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
35402         empty file with one that ends in an empty line.
35403
35404 2010-04-10  Bruno Haible  <bruno@clisp.org>
35405
35406         mkdir: Make it work on mingw64.
35407         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
35408         * lib/mkdir.c: Update comment.
35409         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
35410
35411 2010-04-10  Bruno Haible  <bruno@clisp.org>
35412
35413         Don't override improved macro from newer autoconf.
35414         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
35415         autoconf >= 2.62.
35416         Reported by Joel E. Denny <jdenny@clemson.edu>.
35417
35418 2010-04-10  Jim Meyering  <meyering@redhat.com>
35419
35420         maint.mk: new syntax-check rule: prohibit empty lines at end of file
35421         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
35422
35423         maint.mk: correct a diagnostic
35424         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
35425         in diagnostic; now use $prohibit.
35426
35427 2010-04-10  Bruno Haible  <address@hidden>
35428
35429         fchownat: Fix a C++ test error on Solaris 8.
35430         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
35431         the function does not exist.
35432
35433 2010-04-10  Bruno Haible  <bruno@clisp.org>
35434
35435         vasnprintf: Add more tests.
35436         * tests/test-vasnprintf-posix.c: Include <errno.h>.
35437         (test_function): Test converting an invalid wide string.
35438
35439         vasnprintf: Correct handling of unconvertible wide string arguments.
35440         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
35441         VASNPRINTF.
35442         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
35443         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
35444         smaller than the expected maximum need for the directive. Set errno to
35445         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
35446         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
35447         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
35448         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
35449         * modules/vasnprintf (Files): Add m4/printf.m4.
35450         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
35451
35452 2010-04-10  Bruno Haible  <bruno@clisp.org>
35453
35454         vasnprintf: Fix crash in %ls directive.
35455         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
35456         string is passed as argument to %ls, with no precision and no width.
35457         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
35458
35459 2010-04-10  Bruno Haible  <bruno@clisp.org>
35460
35461         vasnprintf: Fix multiple test failures on mingw.
35462         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
35463         _snprintf, or snwprintf, not _snwprintf.
35464
35465 2010-04-10  Bruno Haible  <bruno@clisp.org>
35466
35467         write: Fix a C++ test error on mingw.
35468         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
35469
35470 2010-04-10  Bruno Haible  <bruno@clisp.org>
35471
35472         vasnprintf test: Reduce code duplication.
35473         * tests/test-vasnprintf.c (test_function): New function, extracted from
35474         test_vasnprintf.
35475         (test_vasnprintf, test_asnprintf): Invoke it.
35476
35477 2010-04-10  Bruno Haible  <bruno@clisp.org>
35478
35479         strnlen: Fix warning in C++ mode on MacOS X.
35480         * lib/string.in.h (strnlen): Use the modern idiom.
35481         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
35482         defining strnlen as a macro already in <config.h>.
35483         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35484         REPLACE_STRNLEN.
35485         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
35486         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
35487
35488 2010-04-08  James Youngman  <jay@gnu.org>
35489
35490         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
35491         the example.
35492
35493 2010-04-09  Jim Meyering  <meyering@redhat.com>
35494
35495         maint.mk: print better diagnostic when there is no $(_hv_file)
35496         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
35497         announce that when $(_hv_file) (aka help-version) does not exist.
35498
35499         init.sh: run tr in the "C" locale to avoid multibyte interpretation
35500         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
35501         not try to interpret its random input bytes.  Jarno Rajahalme reported
35502         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
35503         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
35504         (mktempd_): Likewise, just in case.
35505
35506         ftruncate: add two years to projected module removal date: 2012
35507         * m4/ftruncate.m4: Adjust comments.
35508
35509         ftruncate: mark module as obsolete; even MinGW provides it, now
35510         * modules/ftruncate (Status): Obsolete.
35511         (Notice): Say that.
35512         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
35513         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
35514
35515 2010-04-08  Bruno Haible  <bruno@clisp.org>
35516
35517         Fix side effects from tests-related modules.
35518         * modules/dprintf-posix (Comment): New section.
35519         * modules/fprintf-posix (Comment): Likewise.
35520         * modules/obstack-printf-posix (Comment): Likewise.
35521         * modules/printf-posix (Comment): Likewise.
35522         * modules/snprintf-posix (Comment): Likewise.
35523         * modules/sprintf-posix (Comment): Likewise.
35524         * modules/vasnprintf-posix (Comment): Likewise.
35525         * modules/vasprintf-posix (Comment): Likewise.
35526         * modules/vdprintf-posix (Comment): Likewise.
35527         * modules/vfprintf-posix (Comment): Likewise.
35528         * modules/vprintf-posix (Comment): Likewise.
35529         * modules/vsnprintf-posix (Comment): Likewise.
35530         * modules/vsprintf-posix (Comment): Likewise.
35531         * modules/xprintf-posix (Comment): Likewise.
35532         * modules/xvasprintf-posix (Comment): Likewise.
35533         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
35534         * modules/floorf-tests (Depends-on): Likewise.
35535         * modules/round-tests (Depends-on): Likewise.
35536         * modules/roundf-tests (Depends-on): Likewise.
35537         * modules/trunc-tests (Depends-on): Likewise.
35538         * modules/truncf-tests (Depends-on): Likewise.
35539         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
35540         'fprintf-posix' module is not present.
35541         * tests/test-floorf2.c (check): Likewise.
35542         * tests/test-trunc2.c (check): Likewise.
35543         * tests/test-truncf2.c (check): Likewise.
35544         * tests/test-round2.c (equal): Likewise.
35545         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
35546
35547 2010-04-07  Karl Berry  <karl@gnu.org>
35548
35549         * config/srclist.txt,
35550         * config/srclistvars.sh,
35551         * config/srclist-update: doc fixes.
35552
35553 2010-04-07  Jim Meyering  <meyering@redhat.com>
35554
35555         maint.mk: add a PATH crosschecking syntax-check rule
35556         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
35557         Useful if you use a test like the one in help-version (coreutils,
35558         diffutils, grep, gzip) that ensures $(VERSION) matches what is
35559         printed by prog --version.
35560
35561 2010-04-06  Bruno Haible  <bruno@clisp.org>
35562
35563         Fix link error on mingw.
35564         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
35565         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
35566
35567 2010-04-06  Bruno Haible  <bruno@clisp.org>
35568
35569         Assume rmdir exists.
35570         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
35571
35572 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
35573
35574         doc: update users.txt
35575         * users.txt: Add gcal.
35576
35577 2010-04-06  Jim Meyering  <meyering@redhat.com>
35578
35579         init.sh: simply unset TMPDIR rather than risking env -i
35580         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
35581         although it probably works fine on all Unix-based systems, some
35582         systems (Cygwin?) cannot tolerate a totally cleared environment.
35583         Suggestion from Eric Blake.
35584
35585 2010-04-06  Jim Meyering  <meyering@redhat.com>
35586
35587         init.sh: portability fix: use env's POSIX-specified -i option not -u
35588         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
35589         than unportable env -u.  Solaris 5.11's env lacks support for -u.
35590
35591 2010-04-05  Bruno Haible  <bruno@clisp.org>
35592
35593         btowc: Work around Cygwin 1.7.2 bug.
35594         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
35595         does not map NUL to 0.
35596         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
35597
35598 2010-04-05  Bruno Haible  <bruno@clisp.org>
35599
35600         Make the multithread modules work on Cygwin 1.7.2.
35601         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
35602         imported symbols can be declared weak, so that it returns "no" on
35603         Cygwin 1.7.2.
35604
35605 2010-04-05  Bruno Haible  <bruno@clisp.org>
35606
35607         Use the module 'strncat'.
35608         * modules/unistr/u8-strncat (Depends-on): Add strncat.
35609
35610         Tests for module 'strncat'.
35611         * modules/strncat-tests: New file.
35612         * tests/test-strncat.c: New file.
35613
35614         New module 'strncat'.
35615         * lib/string.in.h (strncat): New declaration.
35616         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
35617         * m4/strncat.m4: New file, based on m4/memchr.m4.
35618         * modules/strncat: New file.
35619         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
35620         is declared.
35621         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
35622         REPLACE_STRNCAT.
35623         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
35624         REPLACE_STRNCAT.
35625         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
35626         module.
35627         * tests/test-string-c++.cc: Check signature of strncat.
35628
35629 2010-04-05  Jim Meyering  <meyering@redhat.com>
35630
35631         xstrtoumax-tests: convert to use init.sh
35632         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
35633         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
35634         Use Exit, not exit.
35635         Remove uses of $EXEEXT and "./" to run a program in the current dir.
35636
35637         xstrtoimax-tests: convert to use init.sh
35638         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
35639         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
35640         Use Exit, not exit.
35641         Remove uses of $EXEEXT and "./" to run a program in the current dir.
35642
35643 2010-04-05  Bruno Haible  <bruno@clisp.org>
35644
35645         sys_socket: Avoid #define replacements in C++ mode.
35646         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
35647         warning to the function if possible, rather than #defining the symbol
35648         to a dysfunctional alias.
35649
35650 2010-04-05  Bruno Haible  <bruno@clisp.org>
35651
35652         fseeko: Fix C++ test error on mingw.
35653         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
35654         gl_FUNC_FSEEKO.
35655         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
35656         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
35657         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
35658         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
35659
35660 2010-04-05  Bruno Haible  <bruno@clisp.org>
35661
35662         duplocale: Improve test output.
35663         * tests/test-duplocale.c (main): Print reason for skipped test.
35664
35665 2010-04-05  Bruno Haible  <bruno@clisp.org>
35666
35667         Assume rmdir exists.
35668         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
35669         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
35670
35671 2010-04-05  Bruno Haible  <bruno@clisp.org>
35672
35673         Fix link error on Solaris 8 with cc.
35674         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
35675
35676 2010-04-05  Bruno Haible  <bruno@clisp.org>
35677
35678         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
35679         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
35680
35681 2010-04-05  Bruno Haible  <bruno@clisp.org>
35682
35683         vasprintf: Update documentation.
35684         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
35685
35686 2010-04-05  Bruno Haible  <bruno@clisp.org>
35687
35688         ptsname: Improve test.
35689         * tests/test-ptsname.c (main): Also try the various master names of BSD
35690         systems.
35691
35692 2010-04-05  Bruno Haible  <bruno@clisp.org>
35693
35694         memchr: Avoid a possible C++ test error.
35695         * lib/string.in.h (memchr): Provide declaration if function is missing.
35696         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
35697         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
35698         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
35699         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
35700
35701 2010-04-05  Bruno Haible  <bruno@clisp.org>
35702
35703         strtok_r: Improve idiom.
35704         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
35705         AC_LIBOBJ is used.
35706
35707 2010-04-05  Bruno Haible  <bruno@clisp.org>
35708
35709         strdup: Improve idiom.
35710         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
35711         AC_LIBOBJ is used.
35712         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
35713         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
35714         when AC_LIBOBJ is used.
35715
35716 2010-04-05  Bruno Haible  <bruno@clisp.org>
35717
35718         mbsinit, mbrtowc, wcrtomb: Improve idioms.
35719         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
35720         don't set REPLACE_MBSINIT to 1.
35721         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
35722         don't set REPLACE_MBRTOWC to 1.
35723         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
35724         exist, don't set REPLACE_MBSRTOWCS to 1.
35725         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
35726         exist, don't set REPLACE_MBSNRTOWCS to 1.
35727         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
35728         don't set REPLACE_WCRTOMB to 1.
35729         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
35730         exist, don't set REPLACE_WCSRTOMBS to 1.
35731         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
35732         exist, don't set REPLACE_WCSNRTOMBS to 1.
35733
35734 2010-04-05  Bruno Haible  <bruno@clisp.org>
35735
35736         ldexpl: Improve idiom.
35737         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
35738         make sure to set HAVE_DECL_LDEXPL to 0.
35739
35740 2010-04-05  Jim Meyering  <meyering@redhat.com>
35741
35742         xstrtol-tests: convert to use init.sh
35743         * modules/xstrtol-tests (Files): Add tests/init.sh.
35744         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
35745         Use Exit, not exit.
35746         Remove uses of $EXEEXT and "./" to run a program in the current dir.
35747
35748         atexit-tests: convert to use init.sh
35749         * modules/atexit-tests (Files): Add tests/init.sh.
35750         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
35751         Use Exit, not exit.
35752         Remove uses of $EXEEXT and "./" to run a program in the current dir.
35753
35754         init.sh: fix typo
35755         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
35756
35757         init.sh: make it easier for a test script to write to the tty, ...
35758         when using automake's parallel-tests mode.
35759         * tests/init.sh (stderr_fileno_): Define overridable variable.
35760         (warn_): New function, to use it.
35761         (fail_, skip_, framework_failure_): Use warn_.
35762
35763 2010-04-04  Bruno Haible  <bruno@clisp.org>
35764
35765         btowc: Avoid warning.
35766         * lib/btowc.c: Include <stdlib.h>.
35767         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
35768
35769 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
35770             Bruno Haible  <bruno@clisp.org>
35771
35772         wchar: Port to NetBSD 1.5.
35773         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
35774         * lib/wctype.in.h (WEOF): Likewise.
35775
35776 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
35777             Bruno Haible  <bruno@clisp.org>
35778
35779         Port extended stdio to NetBSD 1.5.
35780         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
35781         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
35782         older.
35783
35784 2010-04-04  Bruno Haible  <bruno@clisp.org>
35785
35786         string: Remove unused substitution.
35787         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
35788         HAVE_DECL_STRERROR.
35789         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
35790
35791 2010-04-04  Bruno Haible  <bruno@clisp.org>
35792
35793         strtod: Avoid a possible C++ test error.
35794         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
35795         set REPLACE_STRTOD.
35796
35797 2010-04-04  Bruno Haible  <bruno@clisp.org>
35798
35799         strerror: Update documentation.
35800         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
35801
35802 2010-04-04  Bruno Haible  <bruno@clisp.org>
35803
35804         stdio: Fix some C++ test errors on Solaris 8 with GCC.
35805         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
35806         _GL_CXXALIAS_SYS_CAST.
35807
35808 2010-04-04  Bruno Haible  <bruno@clisp.org>
35809
35810         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
35811         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
35812         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
35813         REPLACE_FREXPL to 1.
35814         * doc/posix-functions/frexpl.texi: Update documentation.
35815
35816 2010-04-04  Bruno Haible  <bruno@clisp.org>
35817
35818         math: Fix some C++ test errors on Solaris 8 and Cygwin.
35819         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
35820
35821 2010-04-04  Bruno Haible  <bruno@clisp.org>
35822
35823         Implement nanosleep for native Windows.
35824         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
35825
35826 2010-04-04  Bruno Haible  <bruno@clisp.org>
35827
35828         math: Fix some C++ test errors on Solaris 8.
35829         * lib/math.in.h (truncf, trunc): Use simpler idiom.
35830
35831 2010-04-04  Bruno Haible  <bruno@clisp.org>
35832
35833         math: Fix some C++ test errors on Cygwin.
35834         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
35835         truncl): Provide declaration if the system does not have it.
35836         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
35837         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
35838         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
35839         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
35840         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
35841         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
35842         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
35843         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
35844         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
35845         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
35846         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
35847         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
35848         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
35849         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
35850         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
35851         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
35852         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
35853         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
35854         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
35855         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
35856         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
35857         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
35858
35859 2010-04-04  Bruno Haible  <bruno@clisp.org>
35860
35861         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
35862         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
35863         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
35864         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
35865         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
35866         * m4/isinf.m4 (gl_ISINF): Likewise.
35867         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
35868
35869 2010-04-04  Bruno Haible  <bruno@clisp.org>
35870
35871         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
35872         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
35873
35874 2010-04-04  Bruno Haible  <bruno@clisp.org>
35875
35876         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
35877         * modules/tmpfile (configure.ac): Update.
35878
35879         tmpfile: Fix C++ test error on mingw.
35880         * lib/stdio.in.h (tmpfile): New declaration.
35881         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
35882         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
35883         * modules/tmpfile (Depends-on): Add stdio.
35884         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
35885         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
35886         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
35887         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
35888         REPLACE_TMPFILE.
35889         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
35890
35891 2010-04-04  Bruno Haible  <bruno@clisp.org>
35892
35893         ioctl: Fix C++ test error on mingw.
35894         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
35895         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
35896         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
35897
35898 2010-04-03  Bruno Haible  <bruno@clisp.org>
35899
35900         wcwidth: Fix C++ test error on mingw.
35901         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
35902         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
35903         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
35904
35905 2010-04-03  Bruno Haible  <bruno@clisp.org>
35906
35907         nanosleep: Fix C++ test error on mingw.
35908         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
35909         * lib/time.in.h (nanosleep): Use modern idiom.
35910         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
35911         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
35912         REPLACE_NANOSLEEP to 1.
35913         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
35914         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
35915
35916 2010-04-03  Bruno Haible  <bruno@clisp.org>
35917
35918         strptime: Fix C++ test error on mingw.
35919         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
35920         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
35921         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
35922         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
35923         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
35924         not REPLACE_STRPTIME.
35925         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
35926         REPLACE_STRPTIME.
35927
35928 2010-04-03  Bruno Haible  <bruno@clisp.org>
35929
35930         timegm: Fix C++ test error on mingw.
35931         * lib/time.in.h (timegm): Use modern idiom.
35932         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
35933         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
35934         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
35935         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
35936
35937 2010-04-03  Bruno Haible  <bruno@clisp.org>
35938
35939         timegm: Assume declaration if function exists.
35940         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
35941         if it exists. Don't clobber ac_cv_func_timegm.
35942
35943 2010-04-03  Bruno Haible  <bruno@clisp.org>
35944
35945         time_r: Fix C++ test error on mingw.
35946         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
35947         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
35948         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
35949         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
35950         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
35951
35952 2010-04-03  Bruno Haible  <bruno@clisp.org>
35953
35954         time_r: Minor updates.
35955         * modules/time_r (Description): Mention the provided functions.
35956         * lib/time_r.c: Don't include <string.h>.
35957         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
35958         * doc/posix-functions/localtime_r.texi: Likewise.
35959
35960 2010-04-03  Bruno Haible  <bruno@clisp.org>
35961
35962         time: Fix regression introduced on 2010-03-08.
35963         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
35964         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
35965
35966 2010-04-03  Jim Meyering  <meyering@redhat.com>
35967
35968         maint.mk: don't silently disable project-specific syntax-check rules
35969         * top/maint.mk (_prohibit_regexp): Define, to help people realize
35970         that they need to convert their project-specific syntax-check rules
35971         to use the new _sc_search_regexp.
35972
35973 2010-04-03  Bruno Haible  <bruno@clisp.org>
35974
35975         fchdir: Fix regression introduced on 2010-03-08.
35976         * lib/unistd.in.h (fchdir): Fix declaration.
35977         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
35978         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
35979         REPLACE_FCHDIR.
35980         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
35981         REPLACE_FCHDIR.
35982
35983 2010-04-03  Bruno Haible  <bruno@clisp.org>
35984
35985         getpagesize: Fix C++ test error on mingw.
35986         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
35987         system does not declare the function.
35988         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
35989         declared.
35990         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35991         HAVE_DECL_GETPAGESIZE.
35992         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
35993
35994 2010-04-03  Bruno Haible  <bruno@clisp.org>
35995
35996         stdio: Make C++ tests work on mingw.
35997         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
35998         does not declare the function.
35999
36000 2010-04-03  Bruno Haible  <bruno@clisp.org>
36001
36002         ftello: Fix C++ test error on mingw.
36003         * lib/stdio.in.h (ftello): Use modern idiom.
36004         * lib/ftello.c (ftello): Renamed from rpl_ftello.
36005         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
36006         is missing and that it needs to be replaced.
36007         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
36008         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
36009         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
36010
36011 2010-04-03  Bruno Haible  <bruno@clisp.org>
36012
36013         fseeko: Fix C++ test error on mingw.
36014         * lib/stdio.in.h (fseeko): Use modern idiom.
36015         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
36016         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
36017         is missing and that it needs to be replaced.
36018         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
36019         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
36020         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
36021
36022 2010-04-03  Bruno Haible  <bruno@clisp.org>
36023
36024         mkstemp: Fix C++ test error on mingw.
36025         * lib/stdlib.in.h (mkstemp): Use modern idiom.
36026         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
36027         function is missing and that it needs to be replaced.
36028         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
36029         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
36030
36031 2010-04-03  Bruno Haible  <bruno@clisp.org>
36032
36033         stpncpy: Fix C++ test error on mingw.
36034         * lib/string.in.h (stpncpy): Use modern idiom.
36035         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
36036         function is missing and that it needs to be replaced.
36037         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
36038         REPLACE_STPNCPY.
36039         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
36040
36041 2010-04-03  Bruno Haible  <bruno@clisp.org>
36042
36043         sys_stat: Fix C++ test error on mingw.
36044         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
36045         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
36046
36047 2010-04-03  Bruno Haible  <bruno@clisp.org>
36048
36049         pty: Update doc.
36050         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
36051
36052 2010-04-03  Bruno Haible  <bruno@clisp.org>
36053
36054         unistd: Fix C++ test error on mingw.
36055         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
36056
36057 2010-04-03  Bruno Haible  <bruno@clisp.org>
36058
36059         Update doc regarding mingw.
36060         * doc/glibc-functions/openpty.texi: Update regarding mingw.
36061         * doc/glibc-functions/login_tty.texi: Likewise.
36062         * doc/glibc-functions/forkpty.texi: Likewise.
36063
36064 2010-04-03  Bruno Haible  <bruno@clisp.org>
36065
36066         stdlib: Avoid compilation failure of c-strtold on mingw.
36067         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
36068
36069 2010-04-03  Bruno Haible  <bruno@clisp.org>
36070
36071         locale: Make C++ tests work on Cygwin and mingw.
36072         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
36073         cannot provide the function.
36074         Reported by Simon Josefsson.
36075
36076 2010-04-03  Bruno Haible  <bruno@clisp.org>
36077
36078         localename: Port to MacOS X 10.6.
36079         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
36080         memory layout of the locales in MacOS X 10.6 as well.
36081         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
36082
36083 2010-04-02  Bruno Haible  <bruno@clisp.org>
36084
36085         gnulib-tool: Ensure that long-running tests are executed last.
36086         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
36087         running tests after the one for the other tests.
36088
36089 2010-04-02  Bruno Haible  <bruno@clisp.org>
36090
36091         gnulib-tool: Ensure the tests in the main directory are executed first.
36092         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
36093         start with the current directory.
36094
36095 2010-04-02  Bruno Haible  <bruno@clisp.org>
36096
36097         Tests for module 'havelib', moved here from GNU gettext.
36098         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
36099         modifications.
36100         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
36101         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
36102         with modifications.
36103         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
36104         modifications.
36105         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
36106         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
36107         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
36108         with modifications.
36109         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
36110         with modifications.
36111         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
36112         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
36113         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
36114         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
36115         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
36116         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
36117         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
36118         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
36119         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
36120         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
36121         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
36122         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
36123         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
36124         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
36125         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
36126         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
36127         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
36128         with modifications.
36129         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
36130         with modifications.
36131         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
36132         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
36133         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
36134         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
36135         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
36136         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
36137         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
36138         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
36139         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
36140         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
36141         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
36142         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
36143         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
36144         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
36145         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
36146         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
36147         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
36148         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
36149         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
36150         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
36151         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
36152         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
36153         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
36154         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
36155         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
36156         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
36157         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
36158         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
36159         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
36160         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
36161         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
36162         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
36163         * tests/havelib/rpathx/rpathx.c: New file, from
36164         gettext/autoconf-lib-link.
36165         * tests/havelib/rpathx/Makefile.am: New file, from
36166         gettext/autoconf-lib-link.
36167         * tests/havelib/rpathx/configure.ac: New file, from
36168         gettext/autoconf-lib-link with modifications.
36169         * tests/havelib/rpathy/rpathy.c: New file, from
36170         gettext/autoconf-lib-link.
36171         * tests/havelib/rpathy/Makefile.am: New file, from
36172         gettext/autoconf-lib-link.
36173         * tests/havelib/rpathy/configure.ac: New file, from
36174         gettext/autoconf-lib-link with modifications.
36175         * tests/havelib/rpathz/rpathz.c: New file, from
36176         gettext/autoconf-lib-link.
36177         * tests/havelib/rpathz/Makefile.am: New file, from
36178         gettext/autoconf-lib-link.
36179         * tests/havelib/rpathz/configure.ac: New file, from
36180         gettext/autoconf-lib-link with modifications.
36181         * tests/havelib/rpathlx/usex.c: New file, from
36182         gettext/autoconf-lib-link.
36183         * tests/havelib/rpathlx/Makefile.am: New file, from
36184         gettext/autoconf-lib-link.
36185         * tests/havelib/rpathlx/configure.ac: New file, from
36186         gettext/autoconf-lib-link with modifications.
36187         * tests/havelib/rpathly/usey.c: New file, from
36188         gettext/autoconf-lib-link.
36189         * tests/havelib/rpathly/Makefile.am: New file, from
36190         gettext/autoconf-lib-link.
36191         * tests/havelib/rpathly/configure.ac: New file, from
36192         gettext/autoconf-lib-link with modifications.
36193         * tests/havelib/rpathlz/usez.c: New file, from
36194         gettext/autoconf-lib-link.
36195         * tests/havelib/rpathlz/Makefile.am: New file, from
36196         gettext/autoconf-lib-link.
36197         * tests/havelib/rpathlz/configure.ac: New file, from
36198         gettext/autoconf-lib-link with modifications.
36199         * tests/havelib/rpathlyx/usey.c: New file, from
36200         gettext/autoconf-lib-link.
36201         * tests/havelib/rpathlyx/Makefile.am: New file, from
36202         gettext/autoconf-lib-link.
36203         * tests/havelib/rpathlyx/configure.ac: New file, from
36204         gettext/autoconf-lib-link with modifications.
36205         * tests/havelib/rpathlzyx/usez.c: New file, from
36206         gettext/autoconf-lib-link.
36207         * tests/havelib/rpathlzyx/Makefile.am: New file, from
36208         gettext/autoconf-lib-link.
36209         * tests/havelib/rpathlzyx/configure.ac: New file, from
36210         gettext/autoconf-lib-link with modifications.
36211         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
36212         with modifications.
36213
36214 2010-04-02  Bruno Haible  <bruno@clisp.org>
36215
36216         gnulib-tool: Create distributed built sources also for the tests.
36217         * gnulib-tool (func_create_testdir): Also generate distributed built
36218         sources in the tests directory.
36219
36220 2010-04-02  Bruno Haible  <bruno@clisp.org>
36221
36222         gnulib-tool: Obey user's environment variables.
36223         * gnulib-tool (func_create_testdir): When creating built sources,
36224         respect the environment variables for autoconf, automake, etc. given by
36225         the user.
36226
36227 2010-04-02  Bruno Haible  <bruno@clisp.org>
36228
36229         gnulib-tool: Provide the value of --m4-base to modules.
36230         * gnulib-tool (func_import, func_create_testdir): Emit a definition
36231         of gl_m4_base.
36232
36233 2010-04-02  Eric Blake  <eblake@redhat.com>
36234
36235         maint.mk: fix some fallout
36236         * NEWS: Document the incompatible change, and its effect on cfg.mk.
36237         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
36238
36239 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
36240
36241         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
36242         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
36243         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
36244         (sc_cast_of_x_alloc_return_value): Likewise.
36245         (sc_cast_of_alloca_return_value): Likewise.
36246         (sc_space_tab): Likewise.
36247         (sc_prohibit_atoi_atof): Likewise.
36248         (sc_prohibit_magic_number_exit): Likewise.
36249         (sc_error_exit_success): Likewise.
36250         (sc_file_system): Likewise.
36251         (sc_prohibit_have_config_h): Likewise.
36252         (sc_require_config_h): Likewise.
36253         (sc_prohibit_HAVE_MBRTOWC): Likewise.
36254         (sc_obsolete_symbols): Likewise.
36255         (sc_changelog): Likewise.
36256         (sc_program_name): Likewise.
36257         (sc_the_the): Likewise.
36258         (sc_trailing_blank): Likewise.
36259         (sc_two_space_separator_in_usage): Likewise.
36260         (sc_useless_cpp_parens): Likewise.
36261         (sc_GPL_version): Likewise.
36262         (sc_GFDL_version): Likewise.
36263         (sc_texinfo_acronym): Likewise.
36264         (sc_prohibit_cvs_keyword): Likewise.
36265         (sc_prohibit_stat_st_blocks): Likewise.
36266         (sc_prohibit_S_IS_definition): Likewise.
36267         (sc_redundant_const): Likewise.
36268         (sc_makefile_TAB_only_indentation): Likewise.
36269         (sc_m4_quote_check): Likewise.
36270         (sc_makefile_path_separator_check): Likewise.
36271         (sc_copyright_check): Likewise.
36272         (sc_Wundef_boolean): Likewise.
36273         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
36274
36275         maint.mk: match 0 or more whitespace-before-function-call '('
36276         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
36277         that have zero or two-and-more spaces between the function name
36278         and the open parenthesis.
36279         (sc_error_message_warn_fatal): Likewise.
36280         (sc_error_message_uppercase): Likewise.
36281         (sc_error_message_period): Likewise.
36282
36283 2010-03-31  Eric Blake  <eblake@redhat.com>
36284
36285         maint.mk: check for [ as well as test
36286         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
36287         Based on a libvirt report by Matthias Bolte.
36288
36289         gnumakefile: don't squelch _version output
36290         * top/GNUmakefile (_version): Create one-shot dependency rather
36291         than using $(shell) when version must be regenerated.
36292         (_autoreconf): Run verbosely, by default.
36293
36294         sys_time: avoid compiler warnings
36295         * lib/sys_time.in.h (includes): Ensure gcc pragma is
36296         unconditional, fixing regression from 2010-03-29.
36297         Reported by Simon Josefsson.
36298
36299 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
36300
36301         maint.mk: s/_header_without_use/_sc_header_without_use/
36302         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
36303         (sc_prohibit_assert_without_use): Use the new name.
36304         (sc_prohibit_close_stream_without_use): Likewise.
36305         (sc_prohibit_getopt_without_use): Likewise.
36306         (sc_prohibit_quotearg_without_use): Likewise.
36307         (sc_prohibit_quote_without_use): Likewise.
36308         (sc_prohibit_long_options_without_use): Likewise.
36309         (sc_prohibit_inttostr_without_use): Likewise.
36310         (sc_prohibit_ignore_value_without_use): Likewise.
36311         (sc_prohibit_error_without_use): Likewise.
36312         (sc_prohibit_xalloc_without_use): Likewise.
36313         (sc_prohibit_hash_without_use): Likewise.
36314         (sc_prohibit_hash_pjw_without_use): Likewise.
36315         (sc_prohibit_safe_read_without_use): Likewise.
36316         (sc_prohibit_argmatch_without_use): Likewise.
36317         (sc_prohibit_canonicalize_without_use): Likewise.
36318         (sc_prohibit_root_dev_ino_without_use): Likewise.
36319         (sc_prohibit_openat_without_use): Likewise.
36320         (sc_prohibit_c_ctype_without_use): Likewise.
36321         (sc_prohibit_signal_without_use): Likewise.
36322         (sc_prohibit_intprops_without_use): Likewise.
36323
36324 2010-03-30  Eric Blake  <eblake@redhat.com>
36325
36326         maint: improve module indicators
36327         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
36328         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
36329         columns, and avoid extra macro expansion.
36330
36331         fdopendir: work around FreeBSD bug
36332         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
36333         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
36334         * modules/dirent (Makefile.am): Substitute it.
36335         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
36336         declaration.
36337         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
36338         fix.
36339         Reported by Christian Weisgerber <naddy@mips.inka.de>.
36340
36341 2010-03-29  Bruno Haible  <bruno@clisp.org>
36342
36343         Emit #pragma system_header after the inclusion guard, not before.
36344         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
36345         guard that spans the entire file, not before. This enables an
36346         optimization in GCC's preprocessor.
36347         * lib/ctype.in.h: Likewise.
36348         * lib/dirent.in.h: Likewise.
36349         * lib/errno.in.h: Likewise.
36350         * lib/float.in.h: Likewise.
36351         * lib/getopt.in.h: Likewise.
36352         * lib/iconv.in.h: Likewise.
36353         * lib/langinfo.in.h: Likewise.
36354         * lib/locale.in.h: Likewise.
36355         * lib/math.in.h: Likewise.
36356         * lib/netdb.in.h: Likewise.
36357         * lib/netinet_in.in.h: Likewise.
36358         * lib/pty.in.h: Likewise.
36359         * lib/sched.in.h: Likewise.
36360         * lib/se-selinux.in.h: Likewise.
36361         * lib/search.in.h: Likewise.
36362         * lib/spawn.in.h: Likewise.
36363         * lib/stdarg.in.h: Likewise.
36364         * lib/stdint.in.h: Likewise.
36365         * lib/string.in.h: Likewise.
36366         * lib/strings.in.h: Likewise.
36367         * lib/sys_file.in.h: Likewise.
36368         * lib/sys_ioctl.in.h: Likewise.
36369         * lib/sys_time.in.h: Likewise.
36370         * lib/sys_times.in.h: Likewise.
36371         * lib/sys_utsname.in.h: Likewise.
36372         * lib/sys_wait.in.h: Likewise.
36373         * lib/sysexits.in.h: Likewise.
36374         * lib/wctype.in.h: Likewise.
36375
36376 2010-03-28  James Youngman  <jay@gnu.org>
36377
36378         save-cwd: don't leak a file descriptor when the caller execs.
36379         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
36380         saved file descriptor.
36381         * modules/save-cwd (Depends-on): Depend on cloexec.
36382
36383 2010-03-29  Bruno Haible  <bruno@clisp.org>
36384
36385         Remove vestiges of fts-lgpl module.
36386         * lib/fts_.h: Assume GNULIB_FTS is 1.
36387         * lib/fts.c: Likewise.
36388         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
36389
36390 2010-03-28  Bruno Haible  <bruno@clisp.org>
36391
36392         Fix definition of tests witness macro.
36393         * gnulib-tool (func_import): Fix definition of witness macro.
36394
36395 2010-03-28  Bruno Haible  <bruno@clisp.org>
36396
36397         Fix ioctl's protoype on glibc systems.
36398         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
36399         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
36400         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
36401         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
36402         signature. If not, arrange to replace the ioctl function.
36403         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
36404         REPLACE_IOCTL.
36405         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
36406         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
36407         Reported by Ludovic Courtès <ludo@gnu.org>.
36408
36409 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
36410
36411         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
36412         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
36413         made it so grep -r --include=GLOB* ... did not work.
36414
36415 2010-03-26  Jim Meyering  <meyering@redhat.com>
36416             Eric Blake  <eblake@redhat.com>
36417
36418         maint.mk: prohibit use of test's -o and -a operators
36419         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
36420
36421 2010-03-28  Bruno Haible  <bruno@clisp.org>
36422
36423         Remove unused GNULIB_XYZ macro definitions.
36424         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
36425         invocation.
36426
36427 2010-03-28  Bruno Haible  <bruno@clisp.org>
36428
36429         Mark privileged tests modules.
36430         * modules/idpriv-drop-tests (Status): New section.
36431         * modules/idpriv-droptemp-tests (Status): New section.
36432
36433 2010-03-28  Bruno Haible  <bruno@clisp.org>
36434
36435         Split C++ tests into separate tests modules.
36436         * modules/dirent-c++-tests: New file, extracted from
36437         modules/dirent-tests.
36438         * modules/dirent-tests: Depend on it.
36439         * modules/fcntl-h-c++-tests: New file, extracted from
36440         modules/fcntl-h-tests.
36441         * modules/fcntl-h-tests: Depend on it.
36442         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
36443         * modules/glob-tests: Depend on it.
36444         * modules/iconv-h-c++-tests: New file, extracted from
36445         modules/iconv-h-tests.
36446         * modules/iconv-h-tests: Depend on it.
36447         * modules/langinfo-c++-tests: New file, extracted from
36448         modules/langinfo-tests.
36449         * modules/langinfo-tests: Depend on it.
36450         * modules/locale-c++-tests: New file, extracted from
36451         modules/locale-tests.
36452         * modules/locale-tests: Depend on it.
36453         * modules/math-c++-tests: New file, extracted from modules/math-tests.
36454         * modules/math-tests: Depend on it.
36455         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
36456         * modules/pty-tests: Depend on it.
36457         * modules/search-c++-tests: New file, extracted from
36458         modules/search-tests.
36459         * modules/search-tests: Depend on it.
36460         * modules/signal-c++-tests: New file, extracted from
36461         modules/signal-tests.
36462         * modules/signal-tests: Depend on it.
36463         * modules/spawn-c++-tests: New file, extracted from
36464         modules/spawn-tests.
36465         * modules/spawn-tests: Depend on it.
36466         * modules/stdio-c++-tests: New file, extracted from
36467         modules/stdio-tests.
36468         * modules/stdio-tests: Depend on it.
36469         * modules/stdlib-c++-tests: New file, extracted from
36470         modules/stdlib-tests.
36471         * modules/stdlib-tests: Depend on it.
36472         * modules/string-c++-tests: New file, extracted from
36473         modules/string-tests.
36474         * modules/string-tests: Depend on it.
36475         * modules/sys_ioctl-c++-tests: New file, extracted from
36476         modules/sys_ioctl-tests.
36477         * modules/sys_ioctl-tests: Depend on it.
36478         * modules/sys_select-c++-tests: New file, extracted from
36479         modules/sys_select-tests.
36480         * modules/sys_select-tests: Depend on it.
36481         * modules/sys_socket-c++-tests: New file, extracted from
36482         modules/sys_socket-tests.
36483         * modules/sys_socket-tests: Depend on it.
36484         * modules/sys_stat-c++-tests: New file, extracted from
36485         modules/sys_stat-tests.
36486         * modules/sys_stat-tests: Depend on it.
36487         * modules/sys_time-c++-tests: New file, extracted from
36488         modules/sys_time-tests.
36489         * modules/sys_time-tests: Depend on it.
36490         * modules/time-c++-tests: New file, extracted from modules/time-tests.
36491         * modules/time-tests: Depend on it.
36492         * modules/unistd-c++-tests: New file, extracted from
36493         modules/unistd-tests.
36494         * modules/unistd-tests: Depend on it.
36495         * modules/wchar-c++-tests: New file, extracted from
36496         modules/wchar-tests.
36497         * modules/wchar-tests: Depend on it.
36498         * modules/wctype-c++-tests: New file, extracted from
36499         modules/wctype-tests.
36500         * modules/wctype-tests: Depend on it.
36501         Reported by Simon Josefsson.
36502
36503 2010-03-28  Bruno Haible  <bruno@clisp.org>
36504
36505         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
36506         * gnulib-tool (func_exists_module): New function, extracted from
36507         func_verify_module.
36508         (func_verify_module): Use it.
36509         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
36510         'foo' only if 'foo' exists.
36511         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
36512         module.
36513
36514 2010-03-28  Bruno Haible  <bruno@clisp.org>
36515
36516         gnulib-tool: Add support for special categories of tests.
36517         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
36518         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
36519         (func_usage): Document them.
36520         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
36521         inc_unportable_tests, inc_all_tests): New variables.
36522         (func_acceptable): Consider these variables.
36523         (func_modules_transitive_closure): Make it work when the 'Status' field
36524         consists of multiple words.
36525         (func_import): Store and restore the values of inc_cxx_tests,
36526         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
36527         inc_all_tests in gnulib-comp.m4.
36528         (func_create_testdir): Set inc_all_tests to true.
36529         * doc/gnulib.texi (Extra tests modules): New section.
36530         Suggested by Jim Meyering.
36531
36532 2010-03-28  Bruno Haible  <bruno@clisp.org>
36533
36534         ansi-c++-opt: Allow turning off the C++ build by default.
36535         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
36536         gl_CXX_CHOICE_DEFAULT_NO is defined.
36537         Requested by Eric Blake.
36538
36539 2010-03-28  Bruno Haible  <bruno@clisp.org>
36540
36541         unistd: Avoid #define replacements in C++ mode.
36542         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
36543         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
36544         setsockopt, shutdown, select): In C++, attach a warning to the function
36545         if possible, rather than #defining the symbol to a dysfunctional alias.
36546         Reported by John W. Eaton <jwe@gnu.org>.
36547
36548 2010-03-28  Bruno Haible  <bruno@clisp.org>
36549
36550         Fix link errors on mingw.
36551         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
36552         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
36553         $(LIBSOCKET).
36554         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
36555         $(LIBSOCKET).
36556
36557 2010-03-28  Bruno Haible  <bruno@clisp.org>
36558             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36559
36560         lib-ignore: Determine different options for different compilers.
36561         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
36562         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
36563         Add comments.
36564         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
36565         * NEWS: Mention the change.
36566
36567 2010-03-27  Bruno Haible  <bruno@clisp.org>
36568
36569         Remove unused GNULIB_XYZ macro definitions.
36570         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
36571         * modules/fseek (configure.ac): Likewise.
36572         * modules/ioctl (configure.ac): Likewise.
36573         * modules/open (configure.ac): Likewise.
36574         * modules/stdlib-safer (configure.ac): Likewise.
36575
36576 2010-03-27  Bruno Haible  <bruno@clisp.org>
36577
36578         Add a remark about certain modules.
36579         * modules/malloc (Comment): New section.
36580         * modules/realloc (Comment): Likewise.
36581         * modules/sigpipe (Comment): Likewise.
36582
36583 2010-03-27  Bruno Haible  <bruno@clisp.org>
36584
36585         Resolve conflict between the two kinds of module indicators.
36586         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
36587         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
36588         * modules/canonicalize (configure.ac): Invoke
36589         gl_MODULE_INDICATOR_FOR_TESTS.
36590         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
36591         GNULIB_XYZ.
36592         * tests/test-dirent-c++.cc: Likewise.
36593         * tests/test-dirent-safer.c: Likewise.
36594         * tests/test-dup2.c: Likewise.
36595         * tests/test-fchdir.c: Likewise.
36596         * tests/test-fcntl-h-c++.cc: Likewise.
36597         * tests/test-getopt.c: Likewise.
36598         * tests/test-getopt.h: Likewise.
36599         * tests/test-langinfo-c++.cc: Likewise.
36600         * tests/test-locale-c++.cc: Likewise.
36601         * tests/test-math-c++.cc: Likewise.
36602         * tests/test-pty-c++.cc: Likewise.
36603         * tests/test-search-c++.cc: Likewise.
36604         * tests/test-signal-c++.cc: Likewise.
36605         * tests/test-spawn-c++.cc: Likewise.
36606         * tests/test-stdio-c++.cc: Likewise.
36607         * tests/test-stdlib-c++.cc: Likewise.
36608         * tests/test-string-c++.cc: Likewise.
36609         * tests/test-sys_ioctl-c++.cc: Likewise.
36610         * tests/test-sys_select-c++.cc: Likewise.
36611         * tests/test-sys_socket-c++.cc: Likewise.
36612         * tests/test-sys_stat-c++.cc: Likewise.
36613         * tests/test-sys_time-c++.cc: Likewise.
36614         * tests/test-time-c++.cc: Likewise.
36615         * tests/test-unistd-c++.cc: Likewise.
36616         * tests/test-wchar-c++.cc: Likewise.
36617         * tests/uninorm/test-u8-nfc.c: Likewise.
36618         * tests/uninorm/test-u8-nfd.c: Likewise.
36619         * tests/uninorm/test-u8-nfkc.c: Likewise.
36620         * tests/uninorm/test-u8-nfkd.c: Likewise.
36621         * tests/uninorm/test-u16-nfc.c: Likewise.
36622         * tests/uninorm/test-u16-nfd.c: Likewise.
36623         * tests/uninorm/test-u16-nfkc.c: Likewise.
36624         * tests/uninorm/test-u16-nfkd.c: Likewise.
36625         * tests/uninorm/test-u32-nfc.c: Likewise.
36626         * tests/uninorm/test-u32-nfc-big.c: Likewise.
36627         * tests/uninorm/test-u32-nfd.c: Likewise.
36628         * tests/uninorm/test-u32-nfd-big.c: Likewise.
36629         * tests/uninorm/test-u32-nfkc.c: Likewise.
36630         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
36631         * tests/uninorm/test-u32-nfkd.c: Likewise.
36632         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
36633         * tests/uninorm/test-u32-normalize-big.c: Likewise.
36634
36635 2010-03-27  Bruno Haible  <bruno@clisp.org>
36636
36637         Distinguish two kinds of module indicators.
36638         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
36639         gl_MODULE_INDICATOR.
36640         (gl_MODULE_INDICATOR): New macro.
36641         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
36642         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
36643         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
36644         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
36645         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
36646         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
36647         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
36648         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
36649         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
36650         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
36651         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
36652         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
36653         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
36654         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
36655         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
36656         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
36657         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
36658         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
36659         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
36660         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
36661         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
36662         * modules/cloexec (configure.ac): Likewise.
36663         * modules/getopt-gnu (configure.ac): Likewise.
36664         * modules/uninorm/u8-normalize (configure.ac): Likewise.
36665         * modules/uninorm/u16-normalize (configure.ac): Likewise.
36666         * modules/uninorm/u32-normalize (configure.ac): Likewise.
36667         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
36668
36669 2010-03-27  Bruno Haible  <bruno@clisp.org>
36670
36671         New module description field 'Comment'.
36672         * gnulib-tool: New option --extract-comment.
36673         (func_usage): Document it.
36674         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
36675         (func_get_comment): New function.
36676         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
36677
36678 2010-03-27  Bruno Haible  <bruno@clisp.org>
36679
36680         Addendum to 2010-02-07 commit.
36681         * gnulib-tool (func_usage): Document --extract-applicability option.
36682
36683 2010-03-27  Bruno Haible  <bruno@clisp.org>
36684
36685         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
36686         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
36687         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
36688         rather than link errors.
36689
36690 2010-03-27  Bruno Haible  <bruno@clisp.org>
36691
36692         Avoid side effects from tests-related modules on the compilation of lib.
36693         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
36694         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
36695         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
36696         parameter. Emit into AM_CPPFLAGS a definition of the designated C
36697         macro.
36698         (func_import): Define a witness macro. Assign it a value that depends
36699         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
36700         tests-related modules.
36701         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
36702         Reported by Jim Meyering.
36703
36704 2010-03-27  Bruno Haible  <bruno@clisp.org>
36705
36706         Factorize common .m4 code.
36707         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
36708         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
36709         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
36710         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
36711         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
36712         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
36713         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
36714         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
36715         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
36716         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
36717         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
36718         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
36719         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
36720         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
36721         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
36722         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
36723         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
36724         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
36725         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
36726         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
36727         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
36728         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
36729         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
36730         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
36731         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
36732         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
36733         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
36734         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
36735         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
36736         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
36737         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
36738         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
36739
36740 2010-03-27  Bruno Haible  <bruno@clisp.org>
36741
36742         Fix a compilation error on Cygwin with g++ >= 4.3.
36743         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
36744         if it is undefined or if we alias it to chmod.
36745         (lstat): Don't warn about the use of this function if it is undefined
36746         or if we alias it to stat.
36747         Reported by Simon Josefsson.
36748
36749 2010-03-27  Bruno Haible  <bruno@clisp.org>
36750
36751         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
36752         * modules/getlogin (configure.ac): Update.
36753
36754         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
36755         * modules/getlogin_r (configure.ac): Update.
36756
36757         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
36758         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
36759         * modules/inet_ntop (configure.ac): Update.
36760
36761         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
36762         * modules/inet_pton (configure.ac): Update.
36763
36764         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
36765         * modules/mbslen (configure.ac): Update.
36766
36767         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
36768         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
36769         * modules/forkpty (configure.ac): Update.
36770         * modules/openpty (configure.ac): Update.
36771
36772 2010-03-26  Simon Josefsson  <simon@josefsson.org>
36773
36774         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
36775         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
36776
36777 2010-03-25  Eric Blake  <eblake@redhat.com>
36778
36779         maint: use pragma consistently across replacement headers
36780         * lib/ctype.in.h (system_header): Hoist for consistent placement.
36781         * lib/dirent.in.h (system_header): Likewise.
36782         * lib/errno.in.h (system_header): Likewise.
36783         * lib/float.in.h (system_header): Likewise.
36784         * lib/getopt.in.h (system_header): Likewise.
36785         * lib/iconv.in.h (system_header): Likewise.
36786         * lib/inttypes.in.h (system_header): Likewise.
36787         * lib/langinfo.in.h (system_header): Likewise.
36788         * lib/locale.in.h (system_header): Likewise.
36789         * lib/math.in.h (system_header): Likewise.
36790         * lib/netdb.in.h (system_header): Likewise.
36791         * lib/netinet_in.in.h (system_header): Likewise.
36792         * lib/pty.in.h (system_header): Likewise.
36793         * lib/sched.in.h (system_header): Likewise.
36794         * lib/se-selinux.in.h (system_header): Likewise.
36795         * lib/search.in.h (system_header): Likewise.
36796         * lib/spawn.in.h (system_header): Likewise.
36797         * lib/stdarg.in.h (system_header): Likewise.
36798         * lib/stdint.in.h (system_header): Likewise.
36799         * lib/string.in.h (system_header): Likewise.
36800         * lib/strings.in.h (system_header): Likewise.
36801         * lib/sys_file.in.h (system_header): Likewise.
36802         * lib/sys_ioctl.in.h (system_header): Likewise.
36803         * lib/sys_socket.in.h (system_header): Likewise.
36804         * lib/sys_times.in.h (system_header): Likewise.
36805         * lib/sys_utsname.in.h (system_header): Likewise.
36806         * lib/sys_wait.in.h (system_header): Likewise.
36807         * lib/sysexits.in.h (system_header): Likewise.
36808         * lib/unistd.in.h (system_header): Likewise.
36809         * lib/wctype.in.h (system_header): Likewise.
36810
36811         arpa/inet: fix mingw compilation warning
36812         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
36813         Reported by Matthew Bolte.
36814
36815 2010-03-25  Bruno Haible  <bruno@clisp.org>
36816
36817         Avoid collision between gnulib wrapper and libintl wrapper.
36818         * lib/printf.c (printf): Don't define if a printf wrapper is already
36819         defined in intl/printf.c.
36820         Reported by Michel Boaventura <michel@michelboaventura.com>.
36821
36822 2010-03-25  Bruno Haible  <bruno@clisp.org>
36823
36824         Use ANSI C.
36825         * lib/readutmp.h (getutent): Provide ANSI C prototype.
36826
36827 2010-03-25  Bruno Haible  <bruno@clisp.org>
36828
36829         Minor formatting changes.
36830         * lib/acosl.c: Insert space before function argument list.
36831         * lib/argz.c: Likewise.
36832         * lib/asinl.c: Likewise.
36833         * lib/expl.c: Likewise.
36834         * lib/gen-uni-tables.c: Likewise.
36835         * lib/gettext.h: Likewise.
36836         * lib/glthread/lock.h: Likewise.
36837         * lib/tanl.c: Likewise.
36838         * lib/uniname/uniname.c: Likewise.
36839         * tests/test-idpriv-drop.c: Likewise.
36840         * tests/test-idpriv-droptemp.c: Likewise.
36841         * tests/test-lock.c: Likewise.
36842         * tests/test-tls.c: Likewise.
36843         * lib/argp-help.c: Insert space before function-like macro argument
36844         list.
36845         * lib/memcmp.c: Likewise.
36846         * tests/test-base64.c: Likewise.
36847         * lib/localename.c: Insert space before sizeof's argument list.
36848         * lib/safe-alloc.h: Likewise.
36849         * lib/file-set.h: Insert space before macro argument list.
36850         * tests/test-argp.c: Likewise.
36851         * lib/argp-namefrob.h: Insert space before function parameter list.
36852         * lib/getaddrinfo.c: Likewise.
36853         * lib/netdb.in.h: Likewise.
36854         * lib/parse-duration.h: Likewise.
36855         * lib/parse-duration.c: Likewise.
36856         * lib/poll.c: Likewise.
36857         * lib/select.c: Likewise.
36858         * lib/trim.h: Likewise.
36859         * tests/test-usleep.c: Likewise.
36860         * lib/ldexpl.c: Insert space before function parameter list and before
36861         function argument list.
36862         * lib/logl.c: Likewise.
36863         * lib/sqrtl.c: Likewise.
36864         * lib/trim.c: Likewise.
36865         * lib/cosl.c: Use GNU style indentation. Insert space before function
36866         argument list.
36867         * lib/sinl.c: Likewise.
36868         * lib/tsearch.c: Insert space after 'for'.
36869         Reported by Jim Meyering.
36870
36871 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
36872
36873         * maint.mk (sc_Wundef_boolean): Check for the presence of the
36874         config header before grepping, as it's not present before
36875         autoreconf/configure are run.  Reported by Simon Josefsson.
36876
36877 2010-03-23  Bruno Haible  <bruno@clisp.org>
36878
36879         pt_chown: Make it work with automake < 1.11.
36880         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
36881         Reported by Simon Josefsson.
36882
36883 2010-03-23  Bruno Haible  <bruno@clisp.org>
36884
36885         pt_chown: Don't depend on GPLed modules.
36886         * lib/pt_chown.c: Don't include idpriv.h.
36887         (main): Don't drop privileges.
36888         * modules/pt_chown (Depends-on): Remove idpriv-drop.
36889         Reported by Simon Josefsson.
36890
36891 2010-03-24  Simon Josefsson  <simon@josefsson.org>
36892
36893         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
36894         suggestions from karl@freefriends.org (Karl Berry).
36895
36896 2010-03-22  Eric Blake  <eblake@redhat.com>
36897
36898         gethostname: further tweaks
36899         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
36900         are overriding gethostname.
36901         Suggested by Bruno Haible.
36902
36903 2010-03-21  Bruno Haible  <bruno@clisp.org>
36904
36905         Fix comments.
36906         * lib/forkpty.c (rpl_forkpty): Fix comment.
36907         * lib/openpty.c (rpl_openpty): Likewise.
36908         Reported by Eric Blake.
36909
36910 2010-03-22  Eric Blake  <eblake@redhat.com>
36911
36912         gethostname: fix build on mingw
36913         * lib/unistd.in.h (includes): Work around fact that mingw
36914         <winsock2.h> re-includes <unistd.h>, by avoiding any
36915         redeclarations if we are being included by <winsock2.h>.
36916         Reported by Matthias Bolte.
36917
36918 2010-03-21  Bruno Haible  <bruno@clisp.org>
36919
36920         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
36921         * lib/forkpty.c (forkpty): New replacement function, from glibc with
36922         modifications.
36923         * lib/pty.in.h (forkpty): Update declaration. Add comments.
36924         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
36925         provide the replacement.
36926         * modules/forkpty (Depends-on): Add openpty, login_tty.
36927         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
36928         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
36929         * doc/glibc-functions/forkpty.texi: More supported platforms.
36930         * config/srclist.txt: Add forkpty.c (commented).
36931
36932 2010-03-21  Bruno Haible  <bruno@clisp.org>
36933
36934         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
36935         (Makefile.am): Verify that PTY_LIB is defined.
36936
36937         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
36938
36939 2010-03-21  Bruno Haible  <bruno@clisp.org>
36940
36941         Tests for module 'login_tty'.
36942         * modules/login_tty-tests: New file.
36943         * tests/test-login_tty.c: New file.
36944
36945         New module 'login_tty'.
36946         * lib/login_tty.c: New file.
36947         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
36948         * modules/login_tty: New file.
36949         * doc/glibc-functions/login_tty.texi: Mention the new module.
36950
36951 2010-03-21  Bruno Haible  <bruno@clisp.org>
36952
36953         login_tty: Documentation.
36954         * doc/glibc-functions/login_tty.texi: New file.
36955         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
36956
36957 2010-03-21  Bruno Haible  <bruno@clisp.org>
36958
36959         pty: Consistent macro naming.
36960         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
36961         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
36962         * modules/pty (configure.ac): Update.
36963
36964 2010-03-21  Bruno Haible  <bruno@clisp.org>
36965
36966         Tests for openpty: Make stricter.
36967         * tests/test-openpty.c (main): Add test of canonical processing and
36968         erase.
36969         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
36970
36971         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
36972         * lib/openpty.c (openpty): New replacement function.
36973         * lib/pty.in.h: Include <termios.h>.
36974         (openpty): Update declaration. Add comments.
36975         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
36976         is not declared, arrange to provide the replacement. Check for _getpty
36977         and posix_openpt.
36978         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
36979         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
36980         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
36981         * modules/pty-tests (test_pty_c___LDADD): New variable.
36982         * doc/glibc-functions/openpty.texi: More supported platforms.
36983
36984 2010-03-21  Bruno Haible  <bruno@clisp.org>
36985
36986         setenv: Tweaks.
36987         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
36988         the test program.
36989         * doc/posix-functions/setenv.texi: Update platforms list.
36990
36991 2010-03-21  Bruno Haible  <bruno@clisp.org>
36992
36993         New module 'unlockpt'.
36994         * lib/unlockpt.c: New file, from glibc with modifications.
36995         * m4/unlockpt.m4: New file.
36996         * modules/unlockpt: New file.
36997         * lib/stdlib.in.h (unlockpt): New declaration.
36998         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
36999         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
37000         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
37001         HAVE_UNLOCKPT.
37002         * doc/posix-functions/unlockpt.texi: Mention the new module.
37003         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
37004         * config/srclist.txt: Add unlockpt.c (commented).
37005
37006 2010-03-21  Jim Meyering  <meyering@redhat.com>
37007
37008         maint.mk: prohibit inclusion of "intprops.h" without use
37009         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
37010
37011 2010-03-21  Bruno Haible  <bruno@clisp.org>
37012
37013         New module 'grantpt'.
37014         * lib/grantpt.c: New file, from glibc with modifications.
37015         * m4/grantpt.m4: New file.
37016         * modules/grantpt: New file.
37017         * lib/stdlib.in.h (grantpt): New declaration.
37018         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
37019         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
37020         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
37021         HAVE_GRANTPT.
37022         * doc/posix-functions/grantpt.texi: Mention the new module.
37023         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
37024         * config/srclist.txt: Add grantpt.c (commented).
37025
37026 2010-03-21  Bruno Haible  <bruno@clisp.org>
37027
37028         New module 'pt_chown'.
37029         * lib/pt_chown.c: New file, from glibc with modifications.
37030         * lib/pty-private.h: New file, from glibc with modifications.
37031         * modules/pt_chown: New file.
37032         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
37033
37034 2010-03-21  Bruno Haible  <bruno@clisp.org>
37035
37036         Tests for module 'ptsname'.
37037         * modules/ptsname-tests: New file.
37038         * tests/test-ptsname.c: New file.
37039
37040         New module 'ptsname'.
37041         * lib/ptsname.c: New file, from glibc with modifications.
37042         * m4/ptsname.m4: New file.
37043         * modules/ptsname: New file.
37044         * lib/stdlib.in.h (ptsname): New declaration.
37045         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
37046         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
37047         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
37048         HAVE_PTSNAME.
37049         * doc/posix-functions/ptsname.texi: Mention the new module.
37050         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
37051         * config/srclist.txt: Add ptsname.c (commented).
37052
37053 2010-03-21  Bruno Haible  <bruno@clisp.org>
37054
37055         Tests for module 'ttyname_r'.
37056         * modules/ttyname_r-tests: New file.
37057         * tests/test-ttyname_r.c: New file.
37058
37059         New module 'ttyname_r'.
37060         * lib/ttyname_r.c: New file.
37061         * m4/ttyname_r.m4: New file.
37062         * modules/ttyname_r: New file.
37063         * lib/unistd.in.h (ttyname_r): New declaration.
37064         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
37065         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
37066         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
37067         HAVE_TTYNAME_R.
37068         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
37069         * doc/posix-functions/ttyname_r.texi: Mention the new module.
37070
37071 2010-03-20  Bruno Haible  <bruno@clisp.org>
37072
37073         signal: Undefine macro definitions in C++ mode.
37074         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
37075         sigfillset): Undefine macro definitions from the system header in C++
37076         mode.
37077         Reported by John W. Eaton <jwe@gnu.org>.
37078
37079 2010-03-20  Bruno Haible  <bruno@clisp.org>
37080
37081         Ensure no #include statements inside extern "C" { ... }.
37082         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
37083         contain #include statements.
37084         * lib/time.in.h: Likewise.
37085
37086 2010-03-20  Bruno Haible  <bruno@clisp.org>
37087
37088         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
37089         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
37090         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
37091         Reported by John W. Eaton <jwe@gnu.org>.
37092
37093 2010-03-20  Bruno Haible  <bruno@clisp.org>
37094
37095         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
37096         Reported by Jim Meyering.
37097
37098 2010-03-20  Bruno Haible  <bruno@clisp.org>
37099
37100         pipe: Set errno upon failure.
37101         * lib/pipe.h: Specify that when -1 is returned, errno is set.
37102         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
37103         errno value in error message.
37104
37105 2010-03-20  Bruno Haible  <bruno@clisp.org>
37106             Jim Meyering  <meyering@redhat.com>
37107
37108         lchown: Avoid "unused variable" warning.
37109         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
37110
37111 2010-03-20  Bruno Haible  <bruno@clisp.org>
37112
37113         Work around unlink() bug on MacOS X 10.5.6.
37114         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
37115         attempting to unlink a parent directory.
37116         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
37117         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
37118         activate for the replacement function.
37119         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
37120
37121 2010-03-20  Bruno Haible  <bruno@clisp.org>
37122
37123         Fix link errors on Solaris 8.
37124         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
37125         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
37126
37127 2010-03-19  Jim Meyering  <meyering@redhat.com>
37128
37129         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
37130         The _LIBC implementation of build_range_exp correctly honors the
37131         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
37132         However, the non-_LIBC implementation would ignore that syntax-bit
37133         flag and return REG_ERANGE unconditionally.
37134         This change makes it honor that flag.
37135         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
37136         Make two pointer parameters "const".
37137         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
37138         (parse_bracket_exp): Update caller.
37139
37140         regex.m4: correct the reversed range endpoint ([b-a]) test
37141         * m4/regex.m4: When requiring that [b-a] evoke failure,
37142         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
37143         test pass once again for x86-based systems.
37144
37145 2010-03-19  Bruno Haible  <bruno@clisp.org>
37146
37147         scandir: Fix link error on Solaris 8.
37148         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
37149         macros.
37150
37151 2010-03-19  Bruno Haible  <bruno@clisp.org>
37152
37153         getusershell: Fix documentation.
37154         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
37155         module.
37156         * doc/glibc-functions/setusershell.texi: Likewise.
37157
37158         getusershell: Provide declaration, missing on Solaris 9.
37159         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
37160         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
37161         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
37162         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
37163         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37164         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
37165         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
37166         HAVE_GETUSERSHELL.
37167         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
37168
37169 2010-03-19  Bruno Haible  <bruno@clisp.org>
37170
37171         wctype: Provide iswblank function.
37172         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
37173         exists and is fine.
37174         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
37175         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
37176         * tests/test-wctype.c (main): Re-enable the iswblank tests.
37177         * doc/posix-functions/iswblank.texi: Update.
37178
37179 2010-03-19  Bruno Haible  <bruno@clisp.org>
37180
37181         Tests of module 'pty' in C++ mode.
37182         * modules/pty-tests: New file.
37183         * tests/test-pty-c++.cc: New file.
37184         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
37185
37186 2010-03-19  Eric Blake  <eblake@redhat.com>
37187
37188         logb: fix documentation
37189         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
37190         1.5 declaration bug.
37191
37192         forkpty, openpty: prefer glibc's const-safe prototype
37193         * lib/forkpty.c (rpl_forkpty): New file.
37194         * lib/openpty.c (rpl_openpty): Likewise.
37195         * modules/forkpty (Files): Distribute it.
37196         * modules/openpty (Files): Likewise.
37197         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
37198         check...
37199         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
37200         replacement for for non-const BSD signature.
37201         * modules/pty (Makefile.am): Substitute witnesses.
37202         * lib/pty.in.h (forkpty, openpty): Declare replacements.
37203         * tests/test-forkpty.c: Update signature check.
37204         * tests/test-openpty.c: Likewise.
37205         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
37206         * doc/glibc-functions/openpty.texi (openpty): Likewise.
37207
37208         forkpty, openpty: split functions into new modules
37209         * modules/pty (Makefile.am): Substitute new witnesses.
37210         (Libraries): Move library detection...
37211         * modules/forkpty: ...into new module.
37212         * modules/openpty: Another new module.
37213         * modules/pty-tests: Rename and split...
37214         * modules/forkpty-tests: ...to this...
37215         * modules/openpty-tests: ...and this.
37216         * tests/test-pty.c: Rename and split...
37217         * tests/test-forkpty.c: ...to this...
37218         * tests/test-openpty.c: ...and this.
37219         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
37220         (gl_PTY): Split library searching...
37221         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
37222         (gl_FORKPTY, gl_OPENPTY): New macros.
37223         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
37224         * NEWS: Mention the split.
37225         * MODULES.html.sh (Misc): Document the modules.
37226         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
37227         * doc/glibc-functions/openpty.texi (openpty): Likewise.
37228
37229         pty: improve replacement header
37230         * lib/pty.in.h: New file.
37231         * modules/pty (Files): Ship it.
37232         (Makefile.am): Always build replacement.
37233         * m4/pty.m4: Rename...
37234         * m4/pty_h.m4: ...to this.
37235         (gl_PTY): Modernize setting of witness macros; update check of
37236         forkpty to take proper advantage of cache.
37237         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
37238
37239         getopt: avoid compiler warning
37240         * lib/getopt.c (attribute_hidden): Remove unused macro.
37241
37242 2010-03-18  Bruno Haible  <bruno@clisp.org>
37243
37244         Fix link errors on Solaris 8.
37245         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
37246         * modules/search-tests (test_search_c___LDADD): Likewise.
37247         * modules/signal-tests (test_signal_c___LDADD): Likewise.
37248         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
37249         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
37250         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
37251         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
37252         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
37253         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
37254
37255 2010-03-18  Bruno Haible  <bruno@clisp.org>
37256
37257         Fix bug introduced on 2010-03-14.
37258         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
37259         (gl_SPAWN_H): Require it.
37260         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
37261         Reported by Simon Josefsson.
37262
37263 2010-03-18  Bruno Haible  <bruno@clisp.org>
37264
37265         Fix typo introduced on 2009-12-31.
37266         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
37267         posix_spawn_file_actions_adddup2.
37268
37269 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
37270         and Eric Blake  <eblake@redhat.com>
37271
37272         test-vc-list-files-git: make more robust
37273         * tests/test-vc-list-files-git.sh: Unset problematic environment
37274         variables.  Chain commands together.
37275
37276 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
37277
37278         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
37279         `AC_CHECK_DECL' invocation.
37280
37281 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
37282
37283         * lib/inttostr.c (inttostr): Make sure the invocation of verify
37284         appears before executable statements. Suggested by Petr Sumbera
37285         <Petr.Sumbera@Sun.COM>.
37286
37287 2010-03-14  Bruno Haible  <bruno@clisp.org>
37288
37289         * tests/test-flock.c (test_exclusive): Comment out a test that causes
37290         portability problems. Instead use a simpler test.
37291         (main): Check that invalid arguments are rejected only on Linux.
37292
37293 2010-03-14  Bruno Haible  <bruno@clisp.org>
37294
37295         Fix bug introduced on 2009-12-31.
37296         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
37297         gl_PREREQ_SYS_H_WINSOCK2 always.
37298         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
37299         SYS_SOCKET_H variable.
37300         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
37301         Update comments.
37302         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
37303         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
37304         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
37305         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
37306         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
37307
37308 2010-03-14  Bruno Haible  <bruno@clisp.org>
37309
37310         Fix values returned by sinl, cosl.
37311         * lib/trigl.h: Add specification comments.
37312         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
37313         that combines the values from the precomputed table with the values of
37314         the Chebyshev polynomials.
37315
37316 2010-03-14  Bruno Haible  <bruno@clisp.org>
37317
37318         Fix compilation error when modules 'posix_spawn[p]' are not used.
37319         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
37320         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
37321
37322 2010-03-14  Bruno Haible  <bruno@clisp.org>
37323
37324         Fix compilation error on mingw when module 'time_r' is not used.
37325         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
37326         is 1.
37327         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
37328         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
37329         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
37330         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
37331
37332 2010-03-14  Bruno Haible  <bruno@clisp.org>
37333
37334         Fix compilation error with Sun C.
37335         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
37336         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
37337         instead of GCC specific ULONG_LONG_MAX.
37338         * lib/xstrtoll.c: Likewise.
37339         * lib/xstrtoull.c: Likewise.
37340
37341 2010-03-13  Bruno Haible  <bruno@clisp.org>
37342
37343         Allow the user to disable C++ code and tests.
37344         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
37345         (gl_PROG_ANSI_CXX): Require it.
37346
37347 2010-03-13  Bruno Haible  <bruno@clisp.org>
37348
37349         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
37350         cases.
37351
37352 2010-03-13  Bruno Haible  <bruno@clisp.org>
37353
37354         Test that gnulib does not break the standard C++ headers.
37355         * tests/test-locale-c++2.cc: New file.
37356         * modules/locale-tests (Files): Add it.
37357         (Makefile.am): Compile it for test-locale-c++.
37358         * tests/test-math-c++2.cc: New file.
37359         * modules/math-tests (Files): Add it.
37360         (Makefile.am): Compile it for test-math-c++.
37361         * tests/test-signal-c++2.cc: New file.
37362         * modules/signal-tests (Files): Add it.
37363         (Makefile.am): Compile it for test-signal-c++.
37364         * tests/test-stdio-c++2.cc: New file.
37365         * modules/stdio-tests (Files): Add it.
37366         (Makefile.am): Compile it for test-stdio-c++.
37367         * tests/test-stdlib-c++2.cc: New file.
37368         * modules/stdlib-tests (Files): Add it.
37369         (Makefile.am): Compile it for test-stdlib-c++.
37370         * tests/test-string-c++2.cc: New file.
37371         * modules/string-tests (Files): Add it.
37372         (Makefile.am): Compile it for test-string-c++.
37373         * tests/test-time-c++2.cc: New file.
37374         * modules/time-tests (Files): Add it.
37375         (Makefile.am): Compile it for test-time-c++.
37376         Reported by John W. Eaton <jwe@gnu.org>.
37377
37378 2010-03-13  Bruno Haible  <bruno@clisp.org>
37379
37380         * gnulib-tool (func_usage): Clarify which options are available for
37381         --create-testdir and --create-megatestdir.
37382
37383 2010-03-13  Bruno Haible  <bruno@clisp.org>
37384
37385         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
37386         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
37387         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
37388         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
37389         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
37390         when appropriate.
37391         Reported by Jim Meyering.
37392
37393 2010-03-12  Simon Josefsson  <simon@josefsson.org>
37394
37395         * gnulib-tool (func_import): Explain origin of code.
37396
37397 2010-03-12  Bruno Haible  <bruno@clisp.org>
37398
37399         Fix problem with automake's definition of CXXLINK.
37400         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
37401         Reported by Simon Josefsson and Ludovic Courtès.
37402
37403 2010-03-12  Bruno Haible  <bruno@clisp.org>
37404
37405         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
37406         stable releases.
37407
37408 2010-03-11  Bruno Haible  <bruno@clisp.org>
37409
37410         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
37411         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
37412         whether the system provides one variant or multiple variants of the
37413         function.
37414         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
37415         C++ compilers.
37416         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
37417         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
37418         Reported by Jim Meyering.
37419
37420 2010-03-09  Simon Josefsson  <simon@josefsson.org>
37421
37422         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
37423
37424 2010-03-08  Bruno Haible  <bruno@clisp.org>
37425
37426         gnulib-tool: Add support for --libtool in --create-testdir.
37427         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
37428         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
37429
37430 2010-03-08  Eric Blake  <eblake@redhat.com>
37431
37432         gnulib-tool.texi: mention possibility of git submodule
37433         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
37434         submodules.
37435         * doc/.gitignore: Ignore another generated file.
37436
37437 2010-03-08  Karl Berry  <karl@gnu.org>
37438
37439         * doc/gnulib-tool.texi (VCS Issues): Mention third option
37440         of committing gnulib files while skipping others.
37441
37442 2010-03-07  Bruno Haible  <bruno@clisp.org>
37443
37444         Tests of module 'wctype' in C++ mode.
37445         * tests/test-wctype-c++.cc: New file.
37446         * modules/wctype-tests (Files): Add it and tests/signature.h.
37447         (Depends-on): Add ansi-c++-opt.
37448         (Makefile.am): Arrange to compile and run test-wctype-c++.
37449
37450         Tests of module 'wchar' in C++ mode.
37451         * tests/test-wchar-c++.cc: New file.
37452         * modules/wchar-tests (Files): Add it and tests/signature.h.
37453         (Depends-on): Add ansi-c++-opt.
37454         (Makefile.am): Arrange to compile and run test-wchar-c++.
37455         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
37456         gl_MODULE_INDICATOR.
37457
37458         Tests of module 'unistd' in C++ mode.
37459         * tests/test-unistd-c++.cc: New file.
37460         * modules/unistd-tests (Files): Add it and tests/signature.h.
37461         (Depends-on): Add ansi-c++-opt.
37462         (Makefile.am): Arrange to compile and run test-unistd-c++.
37463         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
37464         gl_MODULE_INDICATOR.
37465
37466         Tests of module 'time' in C++ mode.
37467         * tests/test-time-c++.cc: New file.
37468         * modules/time-tests (Files): Add it and tests/signature.h.
37469         (Depends-on): Add ansi-c++-opt.
37470         (Makefile.am): Arrange to compile and run test-time-c++.
37471         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
37472
37473         Tests of module 'sys_time' in C++ mode.
37474         * tests/test-sys_time-c++.cc: New file.
37475         * modules/sys_time-tests (Files): Add it and tests/signature.h.
37476         (Depends-on): Add ansi-c++-opt.
37477         (Makefile.am): Arrange to compile and run test-sys_time-c++.
37478         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
37479         gl_MODULE_INDICATOR.
37480
37481         Tests of module 'sys_stat' in C++ mode.
37482         * tests/test-sys_stat-c++.cc: New file.
37483         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
37484         (Depends-on): Add ansi-c++-opt.
37485         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
37486         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
37487         gl_MODULE_INDICATOR.
37488
37489         Tests of module 'sys_socket' in C++ mode.
37490         * tests/test-sys_socket-c++.cc: New file.
37491         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
37492         (Depends-on): Add ansi-c++-opt.
37493         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
37494         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
37495         gl_MODULE_INDICATOR.
37496
37497         Tests of module 'sys_select' in C++ mode.
37498         * tests/test-sys_select-c++.cc: New file.
37499         * modules/sys_select-tests (Files): Add it and tests/signature.h.
37500         (Depends-on): Add ansi-c++-opt.
37501         (Makefile.am): Arrange to compile and run test-sys_select-c++.
37502         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
37503         gl_MODULE_INDICATOR.
37504
37505         Tests of module 'sys_ioctl' in C++ mode.
37506         * tests/test-sys_ioctl-c++.cc: New file.
37507         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
37508         (Depends-on): Add ansi-c++-opt.
37509         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
37510         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
37511         gl_MODULE_INDICATOR.
37512
37513         Tests of module 'string' in C++ mode.
37514         * tests/test-string-c++.cc: New file.
37515         * modules/string-tests (Files): Add it and tests/signature.h.
37516         (Depends-on): Add ansi-c++-opt.
37517         (Makefile.am): Arrange to compile and run test-string-c++.
37518         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
37519         gl_MODULE_INDICATOR.
37520
37521         Tests of module 'stdlib' in C++ mode.
37522         * tests/test-stdlib-c++.cc: New file.
37523         * modules/stdlib-tests (Files): Add it and tests/signature.h.
37524         (Depends-on): Add ansi-c++-opt.
37525         (Makefile.am): Arrange to compile and run test-stdlib-c++.
37526         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
37527         gl_MODULE_INDICATOR.
37528
37529         Tests of module 'stdio' in C++ mode.
37530         * tests/test-stdio-c++.cc: New file.
37531         * modules/stdio-tests (Files): Add it and tests/signature.h.
37532         (Depends-on): Add ansi-c++-opt.
37533         (Makefile.am): Arrange to compile and run test-stdio-c++.
37534         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
37535         gl_MODULE_INDICATOR.
37536
37537         Tests of module 'spawn' in C++ mode.
37538         * tests/test-spawn-c++.cc: New file.
37539         * modules/spawn-tests (Files): Add it and tests/signature.h.
37540         (Depends-on): Add ansi-c++-opt.
37541         (Makefile.am): Arrange to compile and run test-spawn-c++.
37542         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
37543         gl_MODULE_INDICATOR.
37544
37545         Tests of module 'signal' in C++ mode.
37546         * tests/test-signal-c++.cc: New file.
37547         * modules/signal-tests (Files): Add it and tests/signature.h.
37548         (Depends-on): Add ansi-c++-opt.
37549         (Makefile.am): Arrange to compile and run test-signal-c++.
37550         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
37551         gl_MODULE_INDICATOR.
37552
37553         Tests of module 'search' in C++ mode.
37554         * tests/test-search-c++.cc: New file.
37555         * modules/search-tests (Files): Add it and tests/signature.h.
37556         (Depends-on): Add ansi-c++-opt.
37557         (Makefile.am): Arrange to compile and run test-search-c++.
37558         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
37559         gl_MODULE_INDICATOR.
37560
37561         Tests of module 'math' in C++ mode.
37562         * tests/test-math-c++.cc: New file.
37563         * modules/math-tests (Files): Add it and tests/signature.h.
37564         (Depends-on): Add ansi-c++-opt.
37565         (Makefile.am): Arrange to compile and run test-math-c++.
37566         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
37567
37568         Tests of module 'locale' in C++ mode.
37569         * tests/test-locale-c++.cc: New file.
37570         * modules/locale-tests (Files): Add it and tests/signature.h.
37571         (Depends-on): Add ansi-c++-opt.
37572         (Makefile.am): Arrange to compile and run test-locale-c++.
37573         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
37574         gl_MODULE_INDICATOR.
37575
37576         Tests of module 'langinfo' in C++ mode.
37577         * tests/test-langinfo-c++.cc: New file.
37578         * modules/langinfo-tests (Files): Add it and tests/signature.h.
37579         (Depends-on): Add ansi-c++-opt.
37580         (Makefile.am): Arrange to compile and run test-langinfo-c++.
37581         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
37582         gl_MODULE_INDICATOR.
37583
37584         Tests of module 'iconv-h' in C++ mode.
37585         * tests/test-iconv-h-c++.cc: New file.
37586         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
37587         (Depends-on): Add ansi-c++-opt.
37588         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
37589
37590         Tests of module 'glob' in C++ mode.
37591         * tests/test-glob-c++.cc: New file.
37592         * modules/glob-tests (Files): Add it.
37593         (Depends-on): Add ansi-c++-opt.
37594         (Makefile.am): Arrange to compile and run test-glob-c++.
37595
37596         Tests of module 'fcntl-h' in C++ mode.
37597         * tests/test-fcntl-h-c++.cc: New file.
37598         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
37599         (Depends-on): Add ansi-c++-opt.
37600         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
37601         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
37602         gl_MODULE_INDICATOR.
37603
37604         Tests of module 'dirent' in C++ mode.
37605         * tests/test-dirent-c++.cc: New file.
37606         * modules/dirent-tests (Files): Add it and tests/signature.h.
37607         (Depends-on): Add ansi-c++-opt.
37608         (Makefile.am): Arrange to compile and run test-dirent-c++.
37609         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
37610         gl_MODULE_INDICATOR.
37611
37612         New module 'ansi-c++-opt'.
37613         * modules/ansi-c++-opt: New file.
37614         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
37615
37616         Document C++ namespace mode.
37617         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
37618
37619         wctype: Avoid #define replacements in C++ mode.
37620         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
37621         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
37622         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
37623         In C++, define a namespaced alias symbol.
37624         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
37625         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
37626         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
37627         rule.
37628
37629         wchar: Avoid #define replacements in C++ mode.
37630         * lib/wchar.in.h: Include c++defs.h.
37631         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
37632         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
37633         symbol.
37634         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
37635         * modules/wchar (Depends-on): Add c++defs.
37636         (Makefile.am): Update wchar.h rule.
37637
37638         unistd: Avoid #define replacements in C++ mode.
37639         * lib/unistd.in.h: Include c++defs.h.
37640         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
37641         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
37642         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
37643         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
37644         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
37645         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
37646         symbol.
37647         (environ): Update.
37648         * modules/unistd (Depends-on): Add c++defs.
37649         (Makefile.am): Update unistd.h rule.
37650
37651         time: Avoid #define replacements in C++ mode.
37652         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
37653         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
37654         define a namespaced alias symbol.
37655         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
37656         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
37657         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
37658         * modules/time (Depends-on): Add c++defs, warn-on-use.
37659         (Makefile.am): Update time.h rule.
37660         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
37661         * modules/nanosleep (configure.ac): Likewise.
37662         * modules/strptime (configure.ac): Likewise.
37663         * modules/timegm (configure.ac): Likewise.
37664
37665         sys_time: Avoid #define replacements in C++ mode.
37666         * lib/sys_time.in.h: Include c++defs.h.
37667         (gettimeofday): In C++, define a namespaced alias symbol.
37668         * modules/sys_time (Depends-on): Add c++defs.
37669         (Makefile.am): Update sys/time.h rule.
37670
37671         sys_stat: Avoid #define replacements in C++ mode.
37672         * lib/sys_stat.in.h: Include c++defs.h.
37673         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
37674         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
37675         namespaced alias symbol.
37676         In C++, define a namespaced alias symbol.
37677         * modules/sys_stat (Depends-on): Add c++defs.
37678         (Makefile.am): Update sys/stat.h rule.
37679
37680         sys_socket: Avoid #define replacements in C++ mode.
37681         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
37682         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
37683         definitions also when the system has a <sys/socket.h>.
37684         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
37685         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
37686         In C++, define a namespaced alias symbol.
37687         * modules/sys_socket (Depends-on): Add c++defs.
37688         (Makefile.am): Update sys/socket.h rule.
37689
37690         sys_select: Avoid #define replacements in C++ mode.
37691         * lib/sys_select.in.h: Include c++defs.h. Enable the function
37692         definitions also when the system has a <sys/select.h>.
37693         (select): In C++, define a namespaced alias symbol.
37694         * modules/sys_select (Depends-on): Add c++defs.
37695         (Makefile.am): Update sys/select.h rule.
37696
37697         sys_ioctl: Avoid #define replacements in C++ mode.
37698         * lib/sys_ioctl.in.h: Include c++defs.h.
37699         (ioctl): In C++, define a namespaced alias symbol.
37700         * modules/sys_ioctl (Depends-on): Add c++defs.
37701         (Makefile.am): Update sys/ioctl.h rule.
37702
37703         string: Avoid #define replacements in C++ mode.
37704         * lib/string.in.h: Include c++defs.h.
37705         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
37706         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
37707         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
37708         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
37709         strsignal, strverscmp): In C++, define a namespaced alias symbol.
37710         * modules/string (Depends-on): Add c++defs.
37711         (Makefile.am): Update string.h rule.
37712
37713         stdlib: Avoid #define replacements in C++ mode.
37714         * lib/stdlib.in.h: Include c++defs.h.
37715         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
37716         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
37717         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
37718         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
37719         symbol.
37720         * modules/stdlib (Depends-on): Add c++defs.
37721         (Makefile.am): Update stdlib.h rule.
37722
37723         stdio: Avoid #define replacements in C++ mode.
37724         * lib/stdio.in.h: Include c++defs.h.
37725         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
37726         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
37727         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
37728         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
37729         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
37730         namespaced alias symbol.
37731         * modules/stdio (Depends-on): Add c++defs.
37732         (Makefile.am): Update stdio.h rule.
37733
37734         spawn: Avoid #define replacements in C++ mode.
37735         * lib/spawn.in.h: Include c++defs.h.
37736         (posix_spawn, posix_spawnp, posix_spawnattr_init,
37737         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
37738         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
37739         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
37740         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
37741         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
37742         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
37743         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
37744         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
37745         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
37746         In C++, define a namespaced alias symbol.
37747         * modules/spawn (Depends-on): Add c++defs.
37748         (Makefile.am): Update spawn.h rule.
37749
37750         signal: Avoid #define replacements in C++ mode.
37751         * lib/signal.in.h: Include c++defs.h.
37752         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
37753         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
37754         namespaced alias symbol.
37755         * modules/signal (Depends-on): Add c++defs.
37756         (Makefile.am): Update signal.h rule.
37757
37758         search: Avoid #define replacements in C++ mode.
37759         * lib/search.in.h: Include c++defs.h.
37760         (_gl_search_compar_fn, _gl_search_action_fn): New types.
37761         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
37762         symbol.
37763         * modules/search (Depends-on): Add c++defs.
37764         (Makefile.am): Update search.h rule.
37765
37766         math: Avoid #define replacements in C++ mode.
37767         * lib/math.in.h: Include c++defs.h.
37768         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
37769         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
37770         trunc, truncl): In C++, define a namespaced alias symbol.
37771         * modules/math (Depends-on): Add c++defs.
37772         (Makefile.am): Update math.h rule.
37773
37774         locale: Avoid #define replacements in C++ mode.
37775         * lib/locale.in.h: Include c++defs.h.
37776         (duplocale): In C++, define a namespaced alias symbol.
37777         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
37778         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
37779         * modules/locale (Depends-on): Add c++defs.
37780         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
37781
37782         langinfo: Avoid #define replacements in C++ mode.
37783         * lib/langinfo.in.h: Include c++defs.h.
37784         (nl_langinfo): In C++, define a namespaced alias symbol.
37785         * modules/langinfo (Depends-on): Add c++defs.
37786         (Makefile.am): Update langinfo.h rule.
37787
37788         iconv-h: Avoid #define replacements in C++ mode.
37789         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
37790         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
37791         symbol.
37792         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
37793         whenever iconv is present.
37794         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
37795         (Makefile.am): Update iconv.h rule.
37796
37797         glob: Avoid #define replacements in C++ mode.
37798         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
37799         (_gl_glob_errfunc_fn): New type.
37800         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
37801         symbol.
37802         * modules/glob (Depends-on): Add c++defs, warn-on-use.
37803         (Makefile.am): Update glob.h rule.
37804
37805         fcntl-h: Avoid #define replacements in C++ mode.
37806         * lib/fcntl.in.h: Include c++defs.h.
37807         (fcntl, open, openat): In C++, define a namespaced alias symbol.
37808         * modules/fcntl-h (Depends-on): Add c++defs.
37809         (Makefile.am): Update fcntl.h rule.
37810
37811         dirent: Avoid #define replacements in C++ mode.
37812         * lib/dirent.in.h: Include c++defs.h.
37813         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
37814         namespaced alias symbol.
37815         (dirfd): Update declaration.
37816         * modules/dirent (Depends-on): Add c++defs.
37817         (Makefile.am): Update dirent.h rule.
37818
37819         ctype: Make it usable in C++ code.
37820         * lib/ctype.in.h: Include c++defs.h.
37821         (isblank): Declare as extern "C".
37822         * modules/ctype (Depends-on): Add c++defs.
37823         (Makefile.am): Update ctype.h rule.
37824
37825         New module 'c++defs'.
37826         * modules/c++defs: New file.
37827         * build-aux/c++defs.h: New file.
37828         Reported by John W. Eaton <jwe@gnu.org>.
37829
37830 2010-03-07  Bruno Haible  <bruno@clisp.org>
37831
37832         logb: Provide missing declaration for Cygwin.
37833         * lib/math.in.h (logb): New declaration.
37834         * m4/logb.m4: New file.
37835         * modules/logb (Files): Add m4/logb.m4.
37836         (Depends-on): Add math.
37837         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
37838         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
37839         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
37840         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
37841         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
37842
37843 2010-03-07  Bruno Haible  <bruno@clisp.org>
37844
37845         Fix test-cond link error.
37846         * tests/test-cond.c: Include <stdio.h>.
37847
37848 2010-03-07  Bruno Haible  <bruno@clisp.org>
37849
37850         Fix test-dirent-safer link error.
37851         * modules/dirent-safer-tests (Makefile.am): Define
37852         test_dirent_safer_LDADD.
37853
37854 2010-03-07  Bruno Haible  <bruno@clisp.org>
37855
37856         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
37857         among default module list.
37858
37859 2010-03-07  Bruno Haible  <bruno@clisp.org>
37860
37861         Fix link error on platforms with GNU libiconv.
37862         * modules/unistr/u8-strcoll-tests (Makefile): Define
37863         test_u8_strcoll_LDADD.
37864         * modules/unistr/u16-strcoll-tests (Makefile): Define
37865         test_u16_strcoll_LDADD.
37866         * modules/unistr/u32-strcoll-tests (Makefile): Define
37867         test_u32_strcoll_LDADD.
37868
37869 2010-03-07  Bruno Haible  <bruno@clisp.org>
37870
37871         Use POSIX declarations for socket functions.
37872         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
37873         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
37874         rpl_sendto): Change declaration to match POSIX.
37875         * lib/connect.c (rpl_connect): Likewise.
37876         * lib/accept.c (rpl_accept): Likewise.
37877         * lib/bind.c (rpl_bind): Likewise.
37878         * lib/getpeername.c (rpl_getpeername): Likewise.
37879         * lib/getsockname.c (rpl_getsockname): Likewise.
37880         * lib/recv.c (rpl_recv): Likewise.
37881         * lib/send.c (rpl_send): Likewise.
37882         * lib/recvfrom.c (rpl_recvfrom): Likewise.
37883         * lib/sendto.c (rpl_sendto): Likewise.
37884
37885 2010-03-06  Bruno Haible  <bruno@clisp.org>
37886
37887         Clarify access, euidaccess, faccessat.
37888         * doc/posix-functions/faccessat.texi: Mention security problem under
37889         "Other problems", not "Portability problems".
37890         * doc/posix-functions/access.texi: Likewise. Mention a related security
37891         problem.
37892         * doc/glibc-functions/euidaccess.texi: Mention security problems.
37893         * lib/euidaccess.c: Add comments about platforms.
37894         * lib/unistd.in.h (access, euidaccess): Add warnings.
37895
37896 2010-03-07  Bruno Haible  <bruno@clisp.org>
37897
37898         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
37899         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
37900         (POSIX_SPAWN_SETSCHEDULER): Likewise.
37901         (POSIX_SPAWN_USEVFORK): Define in a way that works when
37902         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
37903         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
37904         declare when POSIX_SPAWN_SETSCHEDULER is zero.
37905         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
37906         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
37907         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
37908         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
37909         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
37910         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
37911         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
37912         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
37913         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
37914         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
37915         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
37916         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
37917         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
37918         Likewise.
37919         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
37920         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
37921         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
37922         Likewise.
37923         * tests/test-spawn.c (main): Make it work when
37924         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
37925
37926 2010-03-07  Bruno Haible  <bruno@clisp.org>
37927
37928         Fix incorrect Makefile.am generation in German locale.
37929         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
37930         Execute sed command with character range in C locale.
37931
37932 2010-03-06  Bruno Haible  <bruno@clisp.org>
37933
37934         Tests for module 'iconv-h'.
37935         * modules/iconv-h-tests: New file.
37936         * tests/test-iconv-h.c: New file.
37937
37938         New module 'iconv-h'.
37939         * modules/iconv-h: New file.
37940         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
37941         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
37942         (configure.ac): Remove gl_ICONV_H.
37943         (Makefile.am): Remove rule for iconv.h.
37944
37945 2010-03-06  Bruno Haible  <bruno@clisp.org>
37946
37947         More consistent naming of *.m4 files.
37948         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
37949         * modules/wctype (Files): Update.
37950
37951         More consistent naming of *.m4 files.
37952         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
37953         * modules/wchar (Files): Update.
37954
37955 2010-03-06  Jim Meyering  <meyering@redhat.com>
37956
37957         euidaccess: relax license to LGPLv2+
37958         * modules/euidaccess (License): Relax to LGPLv2+.
37959
37960 2010-03-06  Bruno Haible  <bruno@clisp.org>
37961
37962         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
37963         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
37964         (Makefile.am): Augment lib_SOURCES instead.
37965
37966 2010-03-04  Jim Meyering  <meyering@redhat.com>
37967
37968         utime: remove obsolete module
37969         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
37970         unnecessary for years, and has been marked as obsolete for 10 months.
37971         * modules/utime: Remove file.
37972         * lib/utime.c: Remove file.
37973         * m4/utime.m4: Remove file.
37974         * m4/utimes-null.m4: Remove file.
37975         * doc/posix-functions/utime.texi (utime): Remove reference to
37976         the module.  Move the sole "fixed by gnulib" item into the
37977         "problems not fixed by Gnulib" list.
37978         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
37979
37980 2010-03-05  Simon Josefsson  <simon@josefsson.org>
37981
37982         * modules/exit (License): Relax license to LGPLv2+.
37983         (Status): Mark as obsolete.
37984         * NEWS: Mention deprecated 'exit' module.
37985         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
37986         of now obsolete 'exit'.
37987
37988 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37989
37990         fts-lgpl: remove unused module
37991         * modules/fts-lgpl: Remove.
37992         * MODULES.html.sh (func_all_modules): Adjust.
37993         * check-module (find_included_lib_files): Adjust.
37994         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
37995
37996 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
37997
37998         copy-acl: enhance Solaris ACL error handling
37999         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
38000         * lib/set-mode-acl.c (qset_acl): Likewise.
38001
38002 2010-03-02  Bruno Haible  <bruno@clisp.org>
38003
38004         spawn: Don't override the system defined values on FreeBSD 8.
38005         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
38006         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
38007         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
38008         if HAVE_POSIX_SPAWN is 1.
38009         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
38010
38011 2010-03-01  Bruno Haible  <bruno@clisp.org>
38012
38013         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
38014         regarding Automake.
38015
38016 2010-02-25  Bruno Haible  <bruno@clisp.org>
38017
38018         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
38019         * gnulib-tool: Define 'echo' as a function only before the ksh alias
38020         setting, not afterwards.
38021         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
38022
38023 2010-02-24  Eric Blake  <eblake@redhat.com>
38024
38025         bootstrap, git-version-gen: use timestamp
38026         * build-aux/git-version-gen (scriptversion): Force UTC.
38027         * build-aux/bootstrap (scriptversion): New variable.
38028
38029         bootstrap: allow older git
38030         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
38031         older than 1.6.4.  Requested by the libvirt project.
38032
38033 2010-02-23  Eric Blake  <eblake@redhat.com>
38034
38035         warn-on-use: work with old autoconf
38036         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
38037         AS_VAR semantics of autoconf 2.60.
38038         Reported by Bruno Haible.
38039
38040         bootstrap: improve some comments
38041         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
38042         clarification comments.
38043
38044         gettimeofday: provide correct function
38045         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
38046         when replacement is declared, otherwise provide gettimeofday.
38047         Reported by Michael Goffioul.
38048
38049 2010-02-23  Jim Meyering  <meyering@redhat.com>
38050
38051         lib-ignore: relax license to "unlimited", not LGPLv2+
38052         * modules/lib-ignore (License): Relax to "unlimited".
38053
38054 2010-02-23  Jim Meyering  <meyering@redhat.com>
38055
38056         lib-ignore: relax license to LGPLv2+
38057         * modules/lib-ignore (License): Relax to LGPLv2+.
38058
38059 2010-02-22  Eric Blake  <eblake@redhat.com>
38060
38061         lseek: avoid bash 3.2 broken pipe bug
38062         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
38063         warning from bash 3.2.
38064         Reported by Ben Pfaff, with analysis from Bruno Haible.
38065
38066         bootstrap: support non-FSF copyright holder
38067         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
38068         bootstrap.conf override of COPYRIGHT_HOLDER.
38069         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
38070
38071         bootstrap: interoperate with gettext 0.14.1
38072         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
38073
38074         bootstrap: allow for alternate submodule location
38075         * build-aux/bootstrap (gnulib_path): New variable; use instead of
38076         hardcoding submodule location.
38077         (gnulib_mk): Allow direct use of Makefile.am.
38078
38079         bootstrap: use GNULIB_SRCDIR to reduce disk usage
38080         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
38081         rather than reconfiguring where the submodule points.
38082
38083         gettimeofday: restore support for platforms that lack function
38084         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
38085         replacement if function is missing.
38086         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
38087         * modules/sys_time (Makefile.am): Substitute it.
38088         * lib/sys_time.in.h (gettimeofday): Check it.
38089         Reported by Michael Goffioul.
38090
38091 2010-02-21  Bruno Haible  <bruno@clisp.org>
38092
38093         * lib/stdio.in.h (obstack_printf): Fix typo.
38094
38095 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
38096
38097         vc-list-files: use bzr ls's -R option
38098         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
38099         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
38100
38101 2010-02-21  Jim Meyering  <meyering@redhat.com>
38102
38103         init.sh: fix EXEEXT shims to work also for names like test-prog
38104         * tests/init.sh: Re-exec a better shell, when needed.
38105         If the current shell lacks support for posix $(...), an init.sh-using
38106         test will now try to find a shell that supports that.  If EXEEXT is
38107         nonempty, we also require support for hyphen-in-alias-name and shell
38108         substitutions like ${var#glob}.  Failure to find such a shell results
38109         in a skipped test.
38110
38111 2010-02-21  Bruno Haible  <bruno@clisp.org>
38112
38113         Really work around around "broken pipe" error message from bash 3.2.
38114         * gnulib-tool (func_reset_sigpipe): Remove function.
38115         (echo): In bash 3.2, define to a function that uses printf.
38116         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
38117
38118 2010-02-20  Bruno Haible  <bruno@clisp.org>
38119
38120         Restore support for automake 1.9.6 with autoconf 2.61.
38121         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
38122         Reported by James Youngman <jay@gnu.org>.
38123
38124 2010-02-20  Bruno Haible  <bruno@clisp.org>
38125
38126         Improve *printf warning condition.
38127         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
38128         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
38129         and the function is overridden due to SIGPIPE emulation.
38130
38131 2010-02-20  Bruno Haible  <bruno@clisp.org>
38132
38133         * lib/stdio.in.h: Tweak comments.
38134
38135 2010-02-19  Bruno Haible  <bruno@clisp.org>
38136
38137         Make it easier to find modules. New gnulib-tool option '--find'.
38138         * gnulib-tool: New option --find.
38139         (func_usage): Document it.
38140         (func_sanitize_modulelist): New function, extracted from
38141         func_all_modules.
38142         (func_all_modules): Invoke it.
38143         * doc/gnulib-tool.texi (Which modules?): New node.
38144
38145 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
38146
38147         * lib/sys_select.in.h: Provide select replacement even if
38148         sys/select.h exists on a system, for Interix.
38149
38150 2010-02-18  Jim Meyering  <meyering@redhat.com>
38151
38152         init.sh: don't use $(...) just yet
38153         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
38154         to accommodate e.g., Solaris' /bin/sh.
38155
38156 2010-02-17  Bruno Haible  <bruno@clisp.org>
38157
38158         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
38159         Reported by Ludovic Courtès <ludo@gnu.org>.
38160
38161 2010-02-16  Simon Josefsson  <simon@josefsson.org>
38162
38163         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
38164         linking with -lintl.
38165
38166 2010-02-17  Simon Josefsson  <simon@josefsson.org>
38167
38168         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
38169         if not provided by the system's netdb.h.  Reported by
38170         ludo@gnu.org (Ludovic Courtès).
38171
38172 2010-02-15  Jim Meyering  <meyering@redhat.com>
38173
38174         init.sh: improve portability and efficiency
38175         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
38176         "dummy" in a for loop.
38177         Use '!', not '^' to select the complement of a character set used
38178         in a "case" statement.
38179         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
38180         Suggestions from Eric Blake.
38181
38182         init.sh: automatically accommodate programs with the .exe suffix
38183         Automatically arrange for an invocation of "prog" to execute the
38184         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
38185         may use the simpler "prog", yet still work when built on a system
38186         that requires specifying the added suffix.
38187         Do this by constructing a function named "prog" that invokes
38188         "prog.exe" for each .exe file in selected directories.
38189         * tests/init.sh (find_exe_basenames_): New function.
38190         (create_exe_shim_functions_): New function.
38191         (path_prepend_): Use it.
38192
38193         maint.mk: mark syntax-check sc_*.m rules as .PHONY
38194         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
38195         "make -t syntax-check" doesn't create a ton of sc_*.m files.
38196
38197 2010-02-14  Jim Meyering  <meyering@redhat.com>
38198
38199         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
38200         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
38201         (sc_prohibit_hash_pjw_without_use): New rule.
38202
38203         maint.mk: allow the default upload destination dir to be overridden
38204         * top/maint.mk (upload_dest_dir_): Define with a default that
38205         preserves the status quo.
38206         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
38207         Reported by Peter Simons.
38208
38209         maint.mk: prohibit inclusion of "hash.h" without_use
38210         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
38211
38212 2010-02-10  Jim Meyering  <meyering@redhat.com>
38213
38214         maint.mk: prohibit inclusion of "ignore-value.h" without_use
38215         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
38216
38217 2010-02-09  Eric Blake  <ebb9@byu.net>
38218         and Bruno Haible  <bruno@clisp.org>
38219
38220         obstack-printf-posix: ensure declaration
38221         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
38222         extracted from gl_FUNC_OBSTACK_PRINTF.
38223         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
38224         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
38225         Likewise.
38226         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
38227         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
38228         0.
38229
38230 2010-02-08  Bruno Haible  <bruno@clisp.org>
38231
38232         gnulib-tool: Fix typo in 2010-02-07 commit.
38233         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
38234         Reported by Eric Blake.
38235
38236 2010-02-07  Bruno Haible  <bruno@clisp.org>
38237
38238         gnulib-tool: Fix up caching patches.
38239         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
38240         option --no-cache. Use associative arrays when supported by the shell.
38241         (sed_comments): New variable.
38242         (modcache): Renamed from do_cache.
38243         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
38244         abbreviate unnecessarily.
38245         (have_associative): New variable.
38246         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
38247         way also for ksh and zsh.
38248         (func_init_sed_convert_to_cache_statements): New function, extracted
38249         from func_cache_lookup_module. Add support for associative arrays.
38250         Don't set the c_MODULE_cached variable here. Ignore all lines before
38251         the first field header. Remove only the final newline, not all trailing
38252         newlines. Support empty fields correctly. Limit the use of 'eval' to
38253         assignments.
38254         (func_get_description, func_get_status, func_get_notice,
38255         func_get_applicability, func_get_filelist, func_get_dependencies,
38256         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
38257         func_get_automake_snippet, func_get_include_directive,
38258         func_get_link_directive, func_get_license, func_get_maintainer):
38259         Update documentation. List the unoptimized code first. Add support for
38260         associative arrays. Limit the use of 'eval' to assignments.
38261         (func_get_applicability): Undo stylistic pessimisations.
38262         (func_get_automake_snippet, func_get_include_directive): Reduce code
38263         duplication.
38264         (func_modules_transitive_closure, func_modules_add_dummy,
38265         func_modules_notice, func_modules_to_filelist, func_add_file,
38266         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
38267         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
38268         func_create_testdir, func_create_megatestdir): Update documentation.
38269
38270 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38271
38272         * gnulib-tool (func_cache_lookup_module): Store the module name
38273         belonging to the cache variable; error out if two different
38274         module names map to the same cache variable name.
38275
38276 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38277
38278         gnulib-tool: Make caching optional.
38279         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
38280         Update matching short versions of --no-changelog.
38281         (func_usage): Update.
38282         (sed_extract_cache_prog): Renamed from ...
38283         (sed_extract_prog): ... this; revert to old extraction script.
38284         (func_get_description, func_get_status)
38285         (func_get_notice, func_get_applicability, func_get_filelist)
38286         (func_get_dependencies, func_get_autoconf_early_snippet)
38287         (func_get_autoconf_snippet, func_get_automake_snippet)
38288         (func_get_include_directive, func_get_link_directive)
38289         (func_get_license, func_get_maintainer): If $do_cache is false,
38290         use old, non-caching extraction scripts.
38291         Suggestion by Bruno Haible.
38292
38293 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38294
38295         gnulib-tool: cache module metainformation.
38296         * gnulib-tool (sed_extract_prog): Match newline before each
38297         header, and rewrite header to a shell variable suffix.
38298         (func_cache_var, func_cache_lookup_module): New functions,
38299         to turn a module name into a cache variable prefix, and to
38300         look up and cache module metainformation.
38301         (func_get_description, func_get_status)
38302         (func_get_notice, func_get_applicability, func_get_filelist)
38303         (func_get_dependencies, func_get_autoconf_early_snippet)
38304         (func_get_autoconf_snippet, func_get_automake_snippet)
38305         (func_get_include_directive, func_get_link_directive)
38306         (func_get_license, func_get_maintainer): Use
38307         func_cache_lookup_module.
38308
38309 2010-02-07  Bruno Haible  <bruno@clisp.org>
38310
38311         fnctl: Fix missing dependency.
38312         * modules/fcntl (Depends-on): Add getdtablesize.
38313         Reported by John W. Eaton <jwe@gnu.org>.
38314
38315 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
38316
38317         Argp: fix recognition of short alias options.
38318
38319         * lib/argp-parse.c (convert_options): Fix improper use of
38320         `|' between character values.
38321         * tests/test-argp.c (group1_option): New alias option
38322         --read (-r).
38323         (group1_parser): Special handling for 'r'.
38324         (test15): New test case.
38325         (test_fun): Add test15.
38326         * tests/test-argp-2.sh: Update expected --help and --usage
38327         outputs.
38328
38329 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
38330
38331         * tests/test-argp.c: Fix indentation.
38332
38333 2010-02-04  Eric Blake  <ebb9@byu.net>
38334
38335         gettimeofday: expose type of second argument
38336         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
38337         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
38338         * tests/test-gettimeofday.c: Use it to silence warning.
38339         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
38340         the issue.
38341
38342 2010-02-03  Jim Meyering  <meyering@redhat.com>
38343
38344         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
38345         * lib/regcomp.c (TYPE_SIGNED): Define.
38346         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
38347
38348         regcomp.c: avoid a new -Wshadow warning
38349         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
38350
38351 2010-02-01  Jim Meyering  <meyering@redhat.com>
38352
38353         removing useless parentheses in cpp #define directives
38354         For motivation, see commit c0221df4, "define STREQ(a,b)
38355         consistently, removing useless parentheses"
38356         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
38357         * lib/mountlist.c (MNT_IGNORE): Likewise.
38358         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
38359
38360 2010-02-01  Eric Blake  <ebb9@byu.net>
38361
38362         sys_time: use link-warning
38363         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
38364         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
38365         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
38366         * modules/sys_time (Depends-on): Add warn-on-use.
38367         (Makefile.am): Always build replacement.
38368         (configure.ac): Update substitutions.
38369         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
38370         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
38371         bother with SYS_TIME_H.
38372         * modules/gettimeofday (configure.ac): Declare indicator.
38373         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
38374         in use.
38375
38376         closein-tests: silence compiler warning
38377         * tests/test-closein.c (main): Ignore fread result.
38378         * modules/closein-tests (Depends-on): Add ignore-value.
38379
38380         tests: silence warning about system return
38381         * tests/test-areadlink-with-size.c (main): Ignore system result.
38382         * tests/test-areadlink.c (main): Likewise.
38383         * tests/test-areadlinkat-with-size.c (main): Likewise.
38384         * tests/test-areadlinkat.c (main): Likewise.
38385         * tests/test-canonicalize-lgpl.c (main): Likewise.
38386         * tests/test-canonicalize.c (main): Likewise.
38387         * tests/test-chown.c (main): Likewise.
38388         * tests/test-fchownat.c (main): Likewise.
38389         * tests/test-fdutimensat.c (main): Likewise.
38390         * tests/test-fstatat.c (main): Likewise.
38391         * tests/test-futimens.c (main): Likewise.
38392         * tests/test-lchown.c (main): Likewise.
38393         * tests/test-link.c (main): Likewise.
38394         * tests/test-linkat.c (main): Likewise.
38395         * tests/test-lstat.c (main): Likewise.
38396         * tests/test-mkdir.c (main): Likewise.
38397         * tests/test-mkdirat.c (main): Likewise.
38398         * tests/test-mkfifo.c (main): Likewise.
38399         * tests/test-mkfifoat.c (main): Likewise.
38400         * tests/test-mknod.c (main): Likewise.
38401         * tests/test-readlink.c (main): Likewise.
38402         * tests/test-remove.c (main): Likewise.
38403         * tests/test-rename.c (main): Likewise.
38404         * tests/test-renameat.c (main): Likewise.
38405         * tests/test-rmdir.c (main): Likewise.
38406         * tests/test-symlink.c (main): Likewise.
38407         * tests/test-symlinkat.c (main): Likewise.
38408         * tests/test-unlink.c (main): Likewise.
38409         * tests/test-unlinkat.c (main): Likewise.
38410         * tests/test-utimens.c (main): Likewise.
38411         * tests/test-utimensat.c (main): Likewise.
38412         * modules/areadlink-tests (Depends-on): Add ignore-value.
38413         * modules/areadlink-with-size-tests (Depends-on): Likewise.
38414         * modules/areadlinkat-tests (Depends-on): Likewise.
38415         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
38416         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
38417         * modules/canonicalize-tests (Depends-on): Likewise.
38418         * modules/chown-tests (Depends-on): Likewise.
38419         * modules/fdutimensat-tests (Depends-on): Likewise.
38420         * modules/futimens-tests (Depends-on): Likewise.
38421         * modules/lchown-tests (Depends-on): Likewise.
38422         * modules/link-tests (Depends-on): Likewise.
38423         * modules/linkat-tests (Depends-on): Likewise.
38424         * modules/lstat-tests (Depends-on): Likewise.
38425         * modules/mkdir-tests (Depends-on): Likewise.
38426         * modules/mkfifo-tests (Depends-on): Likewise.
38427         * modules/mkfifoat-tests (Depends-on): Likewise.
38428         * modules/mknod-tests (Depends-on): Likewise.
38429         * modules/openat-tests (Depends-on): Likewise.
38430         * modules/readlink-tests (Depends-on): Likewise.
38431         * modules/remove-tests (Depends-on): Likewise.
38432         * modules/rename-tests (Depends-on): Likewise.
38433         * modules/renameat-tests (Depends-on): Likewise.
38434         * modules/rmdir-tests (Depends-on): Likewise.
38435         * modules/symlink-tests (Depends-on): Likewise.
38436         * modules/symlinkat-tests (Depends-on): Likewise.
38437         * modules/unlink-tests (Depends-on): Likewise.
38438         * modules/utimens-tests (Depends-on): Likewise.
38439         * modules/utimensat-tests (Depends-on): Likewise.
38440
38441 2010-01-31  Bruno Haible  <bruno@clisp.org>
38442
38443         Perform the same test for many <math.h> functions.
38444         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
38445         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
38446         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
38447         of gl_MATHFUNC.
38448         * modules/acos (configure.ac): Likewise.
38449         * modules/asin (configure.ac): Likewise.
38450         * modules/atan (configure.ac): Likewise.
38451         * modules/atan2 (configure.ac): Likewise.
38452         * modules/cbrt (configure.ac): Likewise.
38453         * modules/copysign (configure.ac): Likewise.
38454         * modules/cos (configure.ac): Likewise.
38455         * modules/cosh (configure.ac): Likewise.
38456         * modules/erf (configure.ac): Likewise.
38457         * modules/erfc (configure.ac): Likewise.
38458         * modules/exp (configure.ac): Likewise.
38459         * modules/fmod (configure.ac): Likewise.
38460         * modules/hypot (configure.ac): Likewise.
38461         * modules/j0 (configure.ac): Likewise.
38462         * modules/j1 (configure.ac): Likewise.
38463         * modules/jn (configure.ac): Likewise.
38464         * modules/lgamma (configure.ac): Likewise.
38465         * modules/log (configure.ac): Likewise.
38466         * modules/log10 (configure.ac): Likewise.
38467         * modules/log1p (configure.ac): Likewise.
38468         * modules/pow (configure.ac): Likewise.
38469         * modules/remainder (configure.ac): Likewise.
38470         * modules/sin (configure.ac): Likewise.
38471         * modules/sinh (configure.ac): Likewise.
38472         * modules/tan (configure.ac): Likewise.
38473         * modules/tanh (configure.ac): Likewise.
38474         * modules/y0 (configure.ac): Likewise.
38475         * modules/y1 (configure.ac): Likewise.
38476         * modules/yn (configure.ac): Likewise.
38477         Suggested by Paolo Bonzini.
38478
38479 2010-01-31  Bruno Haible  <bruno@clisp.org>
38480
38481         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
38482
38483 2010-01-31  Bruno Haible  <bruno@clisp.org>
38484
38485         Work around getdelim() bug on FreeBSD 8.0.
38486         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
38487         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
38488         not work.
38489         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
38490         is 1.
38491         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
38492         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
38493         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
38494         a non-zero size.
38495         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
38496
38497 2010-01-31  Bruno Haible  <bruno@clisp.org>
38498
38499         Work around getline() bug on FreeBSD 8.0.
38500         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
38501         and a non-zero size.
38502         * tests/test-getline.c (main): Likewise.
38503         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
38504         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
38505
38506 2010-01-28  Eric Blake  <ebb9@byu.net>
38507
38508         regex: fix build failure
38509         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
38510         platforms.
38511
38512 2010-01-28  Jim Meyering  <meyering@redhat.com>
38513
38514         regex: do not ignore memory allocation failure
38515         * lib/regex_internal.c (create_cd_newstate): Detect
38516         re_node_set_init_copy failure.   Extracted from glibc commit
38517         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
38518
38519         regex: sync more white-space changes from libc
38520         * lib/regex_internal.c: White-space only changes.
38521         * lib/regexec.c: Likewise.
38522
38523         regex: add many uses of __attribute_warn_unused_result__
38524         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
38525         * lib/regexec.c: Likewise.
38526         Extracted from a messy glibc commit.
38527
38528         regcomp.c: spelling and merge-artifact from glibc
38529         * lib/regcomp.c: Merge remainder of glibc's
38530         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
38531
38532         regcomp.c: sync white-space changes from glibc
38533         * lib/regcomp.c: Merge to accommodate white space
38534         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
38535
38536         regcomp.c: do not ignore internal return values
38537         * lib/regcomp.c: Do not ignore internal return values.
38538         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
38539         but without its white-space changes and spelling fixes.
38540
38541         regex_internal.h: define __attribute_warn_unused_result__
38542         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
38543
38544         maint: add a syntax-check rule to check for vulnerable Makefile.in
38545         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
38546
38547 2010-01-27  Jim Meyering  <meyering@redhat.com>
38548
38549         ncftpput-ftp: clean up spaces
38550         * build-aux/ncftpput-ftp: Make Copyright line consistent.
38551         Remove trailing blanks.
38552
38553 2010-01-27  Simon Josefsson  <simon@josefsson.org>
38554
38555         * build-aux/git-version-gen: Fix copyright statement.
38556         * build-aux/gnupload: Likewise.
38557         * tests/test-arcfour.c: Likewise.
38558         * tests/test-arctwo.c: Likewise.
38559         * tests/test-count-one-bits.c: Likewise.
38560         * tests/test-crc.c: Likewise.
38561         * tests/test-des.c: Likewise.
38562         * tests/test-gc-arcfour.c: Likewise.
38563         * tests/test-gc-arctwo.c: Likewise.
38564         * tests/test-gc-des.c: Likewise.
38565         * tests/test-gc-hmac-md5.c: Likewise.
38566         * tests/test-gc-hmac-sha1.c: Likewise.
38567         * tests/test-gc-md2.c: Likewise.
38568         * tests/test-gc-md4.c: Likewise.
38569         * tests/test-gc-md5.c: Likewise.
38570         * tests/test-gc-pbkdf2-sha1.c: Likewise.
38571         * tests/test-gc-rijndael.c: Likewise.
38572         * tests/test-gc-sha1.c: Likewise.
38573         * tests/test-gc.c: Likewise.
38574         * tests/test-gethostname.c: Likewise.
38575         * tests/test-gettimeofday.c: Likewise.
38576         * tests/test-hash.c: Likewise.
38577         * tests/test-hmac-md5.c: Likewise.
38578         * tests/test-hmac-sha1.c: Likewise.
38579         * tests/test-md2.c: Likewise.
38580         * tests/test-md4.c: Likewise.
38581         * tests/test-md5.c: Likewise.
38582         * tests/test-memchr.c: Likewise.
38583         * tests/test-memchr2.c: Likewise.
38584         * tests/test-memcmp.c: Likewise.
38585         * tests/test-memmem.c: Likewise.
38586         * tests/test-memrchr.c: Likewise.
38587         * tests/test-rawmemchr.c: Likewise.
38588         * tests/test-read-file.c: Likewise.
38589         * tests/test-rijndael.c: Likewise.
38590         * tests/test-sockets.c: Likewise.
38591         * tests/test-strchrnul.c: Likewise.
38592         * tests/test-strstr.c: Likewise.
38593         * tests/test-strtod.c: Likewise.
38594         * build-aux/ncftpput-ftp: Likewise.
38595
38596 2010-01-26  Eric Blake  <ebb9@byu.net>
38597
38598         ignore-value: update recommended header name
38599         * modules/ignore-value (Include): Only use <> for headers that
38600         exist in glibc.
38601
38602 2010-01-26  Jim Meyering  <meyering@redhat.com>
38603
38604         test-userspec.c: avoid compiler warnings
38605         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
38606         and "initialization discards qualifiers..." warnings.
38607         Put the first "uid" in its own scope, and make char* members "const".
38608
38609 2010-01-25  Bruno Haible  <bruno@clisp.org>
38610
38611         gnulib-tool: Make warning diagnostics consistent.
38612         * gnulib-tool (func_warning): New function.
38613         Use it everywhere where gnulib-tool produces output to stderr and it is
38614         not a fatal error.
38615
38616 2010-01-25  Bruno Haible  <bruno@clisp.org>
38617
38618         Fix test dependencies.
38619         * modules/xstrtol-tests (Depends-on): Add inttypes.
38620         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
38621
38622 2010-01-25 Pádraig Brady <P@draigBrady.com>
38623
38624         syntax-check: detect incorrect boolean macro values in config.h
38625         * modules/maintainer-makefile (configure.ac): Parameterize the location
38626         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
38627         The logic is from Eric Blake and the location indicated by Jim Meyering.
38628         Note the more natural CONFIG_HEADER name is prohibited by automake
38629         for backwards compatibility reasons.
38630         * top/maint.mk (sc_Wundef_boolean): New rule.
38631
38632 2010-01-25  Jim Meyering  <meyering@redhat.com>
38633
38634         bootstrap: detect MacOS 10.6's shasum, too
38635         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
38636         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
38637
38638 2010-01-23  Jim Meyering  <meyering@redhat.com>
38639
38640         xstrtoll: new module
38641         * modules/xstrtoll: New file.
38642         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
38643         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
38644         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
38645         ./configure fails if you use this module and lack "long long".
38646         * modules/xstrtoll-tests: New module.
38647         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
38648         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
38649         new init.sh-based test framework.
38650
38651 2010-01-24  Bruno Haible  <bruno@clisp.org>
38652
38653         Tests for module 'yn'.
38654         * modules/yn-tests: New file.
38655         * tests/test-yn.c: New file.
38656
38657         Tests for module 'y1'.
38658         * modules/y1-tests: New file.
38659         * tests/test-y1.c: New file.
38660
38661         Tests for module 'y0'.
38662         * modules/y0-tests: New file.
38663         * tests/test-y0.c: New file.
38664
38665         Tests for module 'tanh'.
38666         * modules/tanh-tests: New file.
38667         * tests/test-tanh.c: New file.
38668
38669         Tests for module 'tan'.
38670         * modules/tan-tests: New file.
38671         * tests/test-tan.c: New file.
38672
38673         Tests for module 'sqrt'.
38674         * modules/sqrt-tests: New file.
38675         * tests/test-sqrt.c: New file.
38676
38677         Tests for module 'sinh'.
38678         * modules/sinh-tests: New file.
38679         * tests/test-sinh.c: New file.
38680
38681         Tests for module 'sin'.
38682         * modules/sin-tests: New file.
38683         * tests/test-sin.c: New file.
38684
38685         Tests for module 'rint'.
38686         * modules/rint-tests: New file.
38687         * tests/test-rint.c: New file.
38688
38689         Tests for module 'remainder'.
38690         * modules/remainder-tests: New file.
38691         * tests/test-remainder.c: New file.
38692
38693         Tests for module 'pow'.
38694         * modules/pow-tests: New file.
38695         * tests/test-pow.c: New file.
38696
38697         Tests for module 'nextafter'.
38698         * modules/nextafter-tests: New file.
38699         * tests/test-nextafter.c: New file.
38700
38701         Tests for module 'modf'.
38702         * modules/modf-tests: New file.
38703         * tests/test-modf.c: New file.
38704
38705         Tests for module 'logb'.
38706         * modules/logb-tests: New file.
38707         * tests/test-logb.c: New file.
38708
38709         Tests for module 'log1p'.
38710         * modules/log1p-tests: New file.
38711         * tests/test-log1p.c: New file.
38712
38713         Tests for module 'log10'.
38714         * modules/log10-tests: New file.
38715         * tests/test-log10.c: New file.
38716
38717         Tests for module 'log'.
38718         * modules/log-tests: New file.
38719         * tests/test-log.c: New file.
38720
38721         Tests for module 'lgamma'.
38722         * modules/lgamma-tests: New file.
38723         * tests/test-lgamma.c: New file.
38724
38725         Tests for module 'ldexp'.
38726         * modules/ldexp-tests: New file.
38727         * tests/test-ldexp.c: New file.
38728
38729         Tests for module 'jn'.
38730         * modules/jn-tests: New file.
38731         * tests/test-jn.c: New file.
38732
38733         Tests for module 'j1'.
38734         * modules/j1-tests: New file.
38735         * tests/test-j1.c: New file.
38736
38737         Tests for module 'j0'.
38738         * modules/j0-tests: New file.
38739         * tests/test-j0.c: New file.
38740
38741         Tests for module 'hypot'.
38742         * modules/hypot-tests: New file.
38743         * tests/test-hypot.c: New file.
38744
38745         Tests for module 'fmod'.
38746         * modules/fmod-tests: New file.
38747         * tests/test-fmod.c: New file.
38748
38749         Tests for module 'fabs'.
38750         * modules/fabs-tests: New file.
38751         * tests/test-fabs.c: New file.
38752
38753         Tests for module 'exp'.
38754         * modules/exp-tests: New file.
38755         * tests/test-exp.c: New file.
38756
38757         Tests for module 'erfc'.
38758         * modules/erfc-tests: New file.
38759         * tests/test-erfc.c: New file.
38760
38761         Tests for module 'erf'.
38762         * modules/erf-tests: New file.
38763         * tests/test-erf.c: New file.
38764
38765         Tests for module 'cosh'.
38766         * modules/cosh-tests: New file.
38767         * tests/test-cosh.c: New file.
38768
38769         Tests for module 'cos'.
38770         * modules/cos-tests: New file.
38771         * tests/test-cos.c: New file.
38772
38773         Tests for module 'copysign'.
38774         * modules/copysign-tests: New file.
38775         * tests/test-copysign.c: New file.
38776
38777         Tests for module 'cbrt'.
38778         * modules/cbrt-tests: New file.
38779         * tests/test-cbrt.c: New file.
38780
38781         Tests for module 'atan2'.
38782         * modules/atan2-tests: New file.
38783         * tests/test-atan2.c: New file.
38784
38785         Tests for module 'atan'.
38786         * modules/atan-tests: New file.
38787         * tests/test-atan.c: New file.
38788
38789         Tests for module 'asin'.
38790         * modules/asin-tests: New file.
38791         * tests/test-asin.c: New file.
38792
38793         Tests for module 'acos'.
38794         * modules/acos-tests: New file.
38795         * tests/test-acos.c: New file.
38796
38797 2010-01-24  Bruno Haible  <bruno@clisp.org>
38798
38799         Fix tests for common <math.h> functions.
38800         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
38801         code snippet that references the function pointer, rather than merely
38802         calling the function. Substitute the FUNC_LIBM variable.
38803         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
38804         * modules/acos (configure.ac): Likewise.
38805         * modules/asin (configure.ac): Likewise.
38806         * modules/atan (configure.ac): Likewise.
38807         * modules/atan2 (configure.ac): Likewise.
38808         * modules/cbrt (configure.ac): Likewise.
38809         * modules/copysign (configure.ac): Likewise.
38810         * modules/cos (configure.ac): Likewise.
38811         * modules/cosh (configure.ac): Likewise.
38812         * modules/erf (configure.ac): Likewise.
38813         * modules/erfc (configure.ac): Likewise.
38814         * modules/exp (configure.ac): Likewise.
38815         * modules/fabs (configure.ac): Likewise.
38816         * modules/fmod (configure.ac): Likewise.
38817         * modules/hypot (configure.ac): Likewise.
38818         * modules/j0 (configure.ac): Likewise.
38819         * modules/j1 (configure.ac): Likewise.
38820         * modules/jn (configure.ac): Likewise.
38821         * modules/ldexp (configure.ac): Likewise.
38822         * modules/lgamma (configure.ac): Likewise.
38823         * modules/log (configure.ac): Likewise.
38824         * modules/log10 (configure.ac): Likewise.
38825         * modules/log1p (configure.ac): Likewise.
38826         * modules/logb (configure.ac): Likewise.
38827         * modules/modf (configure.ac): Likewise.
38828         * modules/nextafter (configure.ac): Likewise.
38829         * modules/pow (configure.ac): Likewise.
38830         * modules/remainder (configure.ac): Likewise.
38831         * modules/rint (configure.ac): Likewise.
38832         * modules/sin (configure.ac): Likewise.
38833         * modules/sinh (configure.ac): Likewise.
38834         * modules/tan (configure.ac): Likewise.
38835         * modules/tanh (configure.ac): Likewise.
38836         * modules/y0 (configure.ac): Likewise.
38837         * modules/y1 (configure.ac): Likewise.
38838         * modules/yn (configure.ac): Likewise.
38839
38840 2010-01-24  Bruno Haible  <bruno@clisp.org>
38841
38842         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
38843         * tests/test-acosl.c (x): New variable.
38844         (main): Store argument in x and fetch it from x.
38845         * tests/test-asinl.c (x): New variable.
38846         (main): Store argument in x and fetch it from x.
38847         * tests/test-atanl.c (x): New variable.
38848         (main): Store argument in x and fetch it from x.
38849         * tests/test-cosl.c (x): New variable.
38850         (main): Store argument in x and fetch it from x.
38851         * tests/test-expl.c (x): New variable.
38852         (main): Store argument in x and fetch it from x.
38853         * tests/test-logl.c (x): New variable.
38854         (main): Store argument in x and fetch it from x.
38855         * tests/test-sinl.c (x): New variable.
38856         (main): Store argument in x and fetch it from x.
38857         * tests/test-sqrtl.c (x): New variable.
38858         (main): Store argument in x and fetch it from x.
38859         * tests/test-tanl.c (x): New variable.
38860         (main): Store argument in x and fetch it from x.
38861
38862 2010-01-24  Bruno Haible  <bruno@clisp.org>
38863
38864         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
38865         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
38866         assignments to the initial TESTS_ENVIRONMENT.
38867         * doc/gnulib.texi (Unit test modules): Document it.
38868         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
38869         TESTS_ENVIRONMENT.
38870         * modules/btowc-tests (Makefile.am): Likewise.
38871         * modules/c-stack-tests (Makefile.am): Likewise.
38872         * modules/c-strcase-tests (Makefile.am): Likewise.
38873         * modules/copy-file-tests (Makefile.am): Likewise.
38874         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
38875         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
38876         * modules/mbrtowc-tests (Makefile.am): Likewise.
38877         * modules/mbscasecmp-tests (Makefile.am): Likewise.
38878         * modules/mbscasestr-tests (Makefile.am): Likewise.
38879         * modules/mbschr-tests (Makefile.am): Likewise.
38880         * modules/mbscspn-tests (Makefile.am): Likewise.
38881         * modules/mbsinit-tests (Makefile.am): Likewise.
38882         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
38883         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
38884         * modules/mbspbrk-tests (Makefile.am): Likewise.
38885         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
38886         * modules/mbsrchr-tests (Makefile.am): Likewise.
38887         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
38888         * modules/mbsspn-tests (Makefile.am): Likewise.
38889         * modules/mbsstr-tests (Makefile.am): Likewise.
38890         * modules/nl_langinfo-tests (Makefile.am): Likewise.
38891         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
38892         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
38893         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
38894         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
38895         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
38896         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
38897         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
38898         * modules/wcrtomb-tests (Makefile.am): Likewise.
38899         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
38900         * modules/wcsrtombs-tests (Makefile.am): Likewise.
38901         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
38902         assignments from TESTS_ENVIRONMENT.
38903         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
38904         augmentation.
38905         * modules/argp-version-etc-tests (Makefile.am): Likewise.
38906         * modules/atexit-tests (Makefile.am): Likewise.
38907         * modules/binary-io-tests (Makefile.am): Likewise.
38908         * modules/closein-tests (Makefile.am): Likewise.
38909         * modules/dprintf-posix-tests (Makefile.am): Likewise.
38910         * modules/exclude-tests (Makefile.am): Likewise.
38911         * modules/fflush-tests (Makefile.am): Likewise.
38912         * modules/fpending-tests (Makefile.am): Likewise.
38913         * modules/fprintf-posix-tests (Makefile.am): Likewise.
38914         * modules/freadahead-tests (Makefile.am): Likewise.
38915         * modules/freadptr-tests (Makefile.am): Likewise.
38916         * modules/freadseek-tests (Makefile.am): Likewise.
38917         * modules/fseek-tests (Makefile.am): Likewise.
38918         * modules/fseeko-tests (Makefile.am): Likewise.
38919         * modules/ftell-tests (Makefile.am): Likewise.
38920         * modules/ftello-tests (Makefile.am): Likewise.
38921         * modules/idpriv-drop-tests (Makefile.am): Likewise.
38922         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
38923         * modules/lseek-tests (Makefile.am): Likewise.
38924         * modules/parse-duration-tests (Makefile.am): Likewise.
38925         * modules/perror-tests (Makefile.am): Likewise.
38926         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
38927         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
38928         * modules/pipe-tests (Makefile.am): Likewise.
38929         * modules/pread-tests (Makefile.am): Likewise.
38930         * modules/printf-posix-tests (Makefile.am): Likewise.
38931         * modules/select-tests (Makefile.am): Likewise.
38932         * modules/sigpipe-tests (Makefile.am): Likewise.
38933         * modules/tsearch-tests (Makefile.am): Likewise.
38934         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
38935         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
38936         * modules/uniname/uniname-tests (Makefile.am): Likewise.
38937         * modules/uniwidth/width-tests (Makefile.am): Likewise.
38938         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
38939         * modules/version-etc-tests (Makefile.am): Likewise.
38940         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
38941         * modules/vprintf-posix-tests (Makefile.am): Likewise.
38942         * modules/xalloc-die-tests (Makefile.am): Likewise.
38943         * modules/xprintf-posix-tests (Makefile.am): Likewise.
38944         * modules/xstrtoimax-tests (Makefile.am): Likewise.
38945         * modules/xstrtol-tests (Makefile.am): Likewise.
38946         * modules/xstrtoumax-tests (Makefile.am): Likewise.
38947         * modules/yesno-tests (Makefile.am): Likewise.
38948         Suggested by Jim Meyering.
38949
38950 2010-01-24  Bruno Haible  <bruno@clisp.org>
38951
38952         More documentation.
38953         * doc/gnulib.texi (Writing modules): New chapter.
38954         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
38955         the new chapter.
38956
38957 2010-01-24  Jim Meyering  <meyering@redhat.com>
38958
38959         maint.mk: do not prepend "./" after filtering
38960         * top/maint.mk (_prepend_srcdir_prefix): New variable
38961         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
38962         "./" when $(srcdir) is ".".
38963
38964         define STREQ(a,b) consistently, removing useless parentheses
38965         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
38966         since the only risk is that "a" or "b" contains an unparenthesized
38967         comma, but if either did that, STREQ would have 3 or more arguments.
38968         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
38969         * lib/fts.c (STREQ): Remove unnecessary parentheses.
38970         * lib/hash-triple.c (STREQ): Likewise.
38971         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
38972         * lib/getugroups.c (STREQ): Likewise.
38973
38974 2010-01-23  Jim Meyering  <meyering@redhat.com>
38975
38976         maint.mk: fix syntax-check in a non-srcdir build directory
38977         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
38978         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
38979
38980 2010-01-22  Jim Meyering  <meyering@redhat.com>
38981
38982         userspec: add unit tests
38983         * tests/test-userspec.c: New file.
38984         * modules/userspec-tests: Likewise.
38985
38986 2010-01-21  Jim Meyering  <meyering@redhat.com>
38987
38988         maint.mk: handle source file names containing "." robustly
38989         * top/maint.mk (_dot_escaped_srcdir): Define.
38990         (VC_LIST): Use it in LHS of sed substitution.
38991
38992 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
38993
38994         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
38995         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
38996         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
38997         from a non-srcdir build.
38998
38999 2010-01-20  Eric Blake  <ebb9@byu.net>
39000
39001         warn-on-use: use instead of link-warning
39002         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
39003         * modules/unistd (Depends-on, Makefile.am): Likewise.
39004         * modules/arpa_inet (Depends-on): Replace link-warning with
39005         warn-on-use.
39006         (Makefile.am): Update rules accordingly.
39007         * modules/ctype (Depends-on, Makefile.am): Likewise.
39008         * modules/dirent (Depends-on, Makefile.am): Likewise.
39009         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
39010         * modules/inttypes (Depends-on, Makefile.am): Likewise.
39011         * modules/langinfo (Depends-on, Makefile.am): Likewise.
39012         * modules/locale (Depends-on, Makefile.am): Likewise.
39013         * modules/math (Depends-on, Makefile.am): Likewise.
39014         * modules/search (Depends-on, Makefile.am): Likewise.
39015         * modules/signal (Depends-on, Makefile.am): Likewise.
39016         * modules/spawn (Depends-on, Makefile.am): Likewise.
39017         * modules/stdlib (Depends-on, Makefile.am): Likewise.
39018         * modules/string (Depends-on, Makefile.am): Likewise.
39019         * modules/strings (Depends-on, Makefile.am): Likewise.
39020         * modules/sys_file (Depends-on, Makefile.am): Likewise.
39021         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
39022         * modules/sys_select (Depends-on, Makefile.am): Likewise.
39023         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
39024         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
39025         * modules/sys_times (Depends-on, Makefile.am): Likewise.
39026         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
39027         * modules/wchar (Depends-on, Makefile.am): Likewise.
39028         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
39029         should be poisoned.
39030         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
39031         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
39032         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
39033         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
39034         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
39035         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
39036         * m4/math_h.m4 (gl_MATH_H): Likewise.
39037         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
39038         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
39039         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
39040         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
39041         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
39042         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
39043         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
39044         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
39045         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
39046         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
39047         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
39048         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
39049         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
39050         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
39051         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
39052         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
39053         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
39054         GL_LINK_WARNING.
39055         * lib/ctype.in.h: Likewise.
39056         * lib/dirent.in.h: Likewise.
39057         * lib/fcntl.in.h: Likewise.
39058         * lib/inttypes.in.h: Likewise.
39059         * lib/langinfo.in.h: Likewise.
39060         * lib/locale.in.h: Likewise.
39061         * lib/math.in.h: Likewise.
39062         * lib/search.in.h: Likewise.
39063         * lib/signal.in.h: Likewise.
39064         * lib/spawn.in.h: Likewise.
39065         * lib/stdio.in.h: Likewise.
39066         * lib/stdlib.in.h: Likewise.
39067         * lib/string.in.h: Likewise.
39068         * lib/strings.in.h: Likewise.
39069         * lib/sys_file.in.h: Likewise.
39070         * lib/sys_ioctl.in.h: Likewise.
39071         * lib/sys_select.in.h: Likewise.
39072         * lib/sys_socket.in.h: Likewise.
39073         * lib/sys_stat.in.h: Likewise.
39074         * lib/sys_times.in.h: Likewise.
39075         * lib/sys_utsname.in.h: Likewise.
39076         * lib/unistd.in.h: Likewise.
39077         * lib/wchar.in.h: Likewise.
39078
39079 2010-01-20  Bruno Haible  <bruno@clisp.org>
39080
39081         Avoid duplicate -lm.
39082         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
39083         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
39084         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
39085         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
39086         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
39087         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
39088         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
39089         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
39090         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
39091         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
39092         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
39093         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
39094         Reported by Paolo Bonzini.
39095
39096 2010-01-19  Bruno Haible  <bruno@clisp.org>
39097
39098         langinfo, nl_langinfo: Relicense under LGPLv2+.
39099         * modules/langinfo (License): Change to LGPLv2+.
39100         * modules/nl_langinfo (License): Likewise.
39101         Patch by David Lutterkort <lutter@redhat.com>.
39102
39103 2010-01-19  Bruno Haible  <bruno@clisp.org>
39104
39105         Avoid compilation error with cc on OSF/1 5.1.
39106         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
39107         statement, not before.
39108         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39109
39110 2010-01-18  Bruno Haible  <bruno@clisp.org>
39111
39112         Avoid a link error due to the __printf__ symbol.
39113         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
39114         and 2.6.x.
39115         (__format__, __printf__): Remove definitions.
39116         * lib/argp-fmtstream.h: Likewise.
39117         * lib/argp.h: Likewise.
39118         * lib/error.h: Likewise.
39119         * lib/vasnprintf.h: Likewise.
39120         * lib/xprintf.h: Likewise.
39121         * lib/xvasprintf.h: Likewise.
39122         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39123
39124 2010-01-18  Bruno Haible  <bruno@clisp.org>
39125
39126         Tests for module 'tanl'.
39127         * modules/tanl-tests: New file.
39128         * tests/test-tanl.c: New file.
39129
39130         Tests for module 'sqrtl'.
39131         * modules/sqrtl-tests: New file.
39132         * tests/test-sqrtl.c: New file.
39133
39134         Tests for module 'sinl'.
39135         * modules/sinl-tests: New file.
39136         * tests/test-sinl.c: New file.
39137
39138         Tests for module 'logl'.
39139         * modules/logl-tests: New file.
39140         * tests/test-logl.c: New file.
39141
39142         Tests for module 'expl'.
39143         * modules/expl-tests: New file.
39144         * tests/test-expl.c: New file.
39145
39146         Tests for module 'cosl'.
39147         * modules/cosl-tests: New file.
39148         * tests/test-cosl.c: New file.
39149
39150         Tests for module 'atanl'.
39151         * modules/atanl-tests: New file.
39152         * tests/test-atanl.c: New file.
39153
39154         Tests for module 'asinl'.
39155         * modules/asinl-tests: New file.
39156         * tests/test-asinl.c: New file.
39157
39158         Tests for module 'acosl'.
39159         * modules/acosl-tests: New file.
39160         * tests/test-acosl.c: New file.
39161
39162         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
39163         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
39164         tanl): Use the standard gnulib idiom.
39165         * lib/cosl.c: Don't include trigl.c and sincosl.c.
39166         * lib/sinl.c: Likewise.
39167         * lib/tanl.c: Don't include trigl.c.
39168         (kernel_tanl): Make static.
39169         * lib/sincosl.c: Include trigl.h first.
39170         * lib/trigl.c: Likewise.
39171         * m4/acosl.m4: New file.
39172         * m4/asinl.m4: New file.
39173         * m4/atanl.m4: New file.
39174         * m4/cosl.m4: New file.
39175         * m4/expl.m4: New file.
39176         * m4/logl.m4: New file.
39177         * m4/sinl.m4: New file.
39178         * m4/sqrtl.m4: New file.
39179         * m4/tanl.m4: New file.
39180         * m4/mathl.m4: Remove file.
39181         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
39182         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
39183         Don't initialize GNULIB_MATHL.
39184         * modules/acosl: New file.
39185         * modules/asinl: New file.
39186         * modules/atanl: New file.
39187         * modules/cosl: New file.
39188         * modules/expl: New file.
39189         * modules/logl: New file.
39190         * modules/sinl: New file.
39191         * modules/sqrtl: New file.
39192         * modules/tanl: New file.
39193         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
39194         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
39195         substitute GNULIB_MATHL.
39196         * modules/mathl: Rewritten.
39197         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
39198         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
39199         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
39200         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
39201         * doc/posix-functions/expl.texi: Mention the 'expl' module.
39202         * doc/posix-functions/logl.texi: Mention the 'logl' module.
39203         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
39204         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
39205         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
39206
39207 2010-01-18  Bruno Haible  <bruno@clisp.org>
39208
39209         sqrt: Make gl_FUNC_SQRT requirable.
39210         * m4/sqrt.m4: New file.
39211         * modules/sqrt (Files): Add it.
39212         (configure.ac): Invoke gl_FUNC_SQRT.
39213
39214 2010-01-18  Bruno Haible  <bruno@clisp.org>
39215
39216         New modules for common <math.h> functions.
39217         * m4/mathfunc.m4: New file.
39218         * modules/acos: New file.
39219         * modules/asin: New file.
39220         * modules/atan: New file.
39221         * modules/atan2: New file.
39222         * modules/cbrt: New file.
39223         * modules/copysign: New file.
39224         * modules/cos: New file.
39225         * modules/cosh: New file.
39226         * modules/erf: New file.
39227         * modules/erfc: New file.
39228         * modules/exp: New file.
39229         * modules/fabs: New file.
39230         * modules/fmod: New file.
39231         * modules/hypot: New file.
39232         * modules/j0: New file.
39233         * modules/j1: New file.
39234         * modules/jn: New file.
39235         * modules/ldexp: New file.
39236         * modules/lgamma: New file.
39237         * modules/log: New file.
39238         * modules/log10: New file.
39239         * modules/log1p: New file.
39240         * modules/logb: New file.
39241         * modules/modf: New file.
39242         * modules/nextafter: New file.
39243         * modules/pow: New file.
39244         * modules/remainder: New file.
39245         * modules/rint: New file.
39246         * modules/sin: New file.
39247         * modules/sinh: New file.
39248         * modules/sqrt: New file.
39249         * modules/tan: New file.
39250         * modules/tanh: New file.
39251         * modules/y0: New file.
39252         * modules/y1: New file.
39253         * modules/yn: New file.
39254         * doc/posix-functions/acos.texi: Mention the 'acos' module.
39255         * doc/posix-functions/asin.texi: Mention the 'asin' module.
39256         * doc/posix-functions/atan.texi: Mention the 'atan' module.
39257         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
39258         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
39259         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
39260         * doc/posix-functions/cos.texi: Mention the 'cos' module.
39261         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
39262         * doc/posix-functions/erf.texi: Mention the 'erf' module.
39263         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
39264         * doc/posix-functions/exp.texi: Mention the 'exp' module.
39265         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
39266         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
39267         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
39268         * doc/posix-functions/j0.texi: Mention the 'j0' module.
39269         * doc/posix-functions/j1.texi: Mention the 'j1' module.
39270         * doc/posix-functions/jn.texi: Mention the 'jn' module.
39271         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
39272         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
39273         * doc/posix-functions/log.texi: Mention the 'log' module.
39274         * doc/posix-functions/log10.texi: Mention the 'log10' module.
39275         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
39276         * doc/posix-functions/logb.texi: Mention the 'logb' module.
39277         * doc/posix-functions/modf.texi: Mention the 'modf' module.
39278         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
39279         * doc/posix-functions/pow.texi: Mention the 'pow' module.
39280         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
39281         * doc/posix-functions/rint.texi: Mention the 'rint' module.
39282         * doc/posix-functions/sin.texi: Mention the 'sin' module.
39283         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
39284         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
39285         * doc/posix-functions/tan.texi: Mention the 'tan' module.
39286         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
39287         * doc/posix-functions/y0.texi: Mention the 'y0' module.
39288         * doc/posix-functions/y1.texi: Mention the 'y1' module.
39289         * doc/posix-functions/yn.texi: Mention the 'yn' module.
39290
39291 2010-01-18  Jim Meyering  <meyering@redhat.com>
39292
39293         ignore-value: relax license to LGPLv2+
39294         * modules/ignore-value (License): Relax to LGPLv2+.
39295
39296         getdate: don't leak when TZ contains two or more '"'s
39297         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
39298         double quote in TZ after the first one.
39299
39300         readtokens: do not leak internal token_lengths buffer
39301         * lib/readtokens.c (readtokens): Free the local, lengths,
39302         when the supplied "token_lengths" parameter is NULL.
39303
39304 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39305
39306         Fix a couple of missing LIBTHREAD link failures on AIX.
39307         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
39308         $(LIBTHREAD).
39309         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
39310
39311         Link test-poll against INET_PTON_LIB.
39312         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
39313         for inet_pton on Solaris 10.
39314
39315 2010-01-17  Bruno Haible  <bruno@clisp.org>
39316
39317         unistdio/*-sprintf: Fix typo in module description.
39318         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
39319         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
39320         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
39321         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
39322         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
39323         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
39324         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
39325         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39326
39327 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39328
39329         gnulib-tool: fix filelist for AIX, HP-UX ksh.
39330         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
39331         variables in shell case patterns, for AIX and HP-UX ksh.
39332
39333         Split large sed scripts, for HP-UX sed.
39334         * modules/stdio: Split sed scripts around 50 sed commands,
39335         to avoid HP-UX limit of 99 commands, in the near future.
39336         * modules/string: Likewise.
39337         * modules/unistd: Likewise.
39338
39339         gnulib-tool: avoid writing in the current directory.
39340         * gnulib-tool (func_emit_lib_Makefile_am)
39341         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
39342         not in the current directory, so concurrent gnulib-tool
39343         instances do not interfere.
39344
39345 2010-01-16  Jim Meyering  <meyering@redhat.com>
39346
39347         doc: update users.txt
39348         * users.txt: Add grep.
39349         (diffutils, gzip): Update URLs.
39350
39351 2010-01-12  Bruno Haible  <bruno@clisp.org>
39352
39353         posix_spawn: Avoid test failure on Cygwin.
39354         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
39355         characters.
39356         Reported by Simon Josefsson.
39357
39358 2010-01-12  Bruno Haible  <bruno@clisp.org>
39359
39360         * tests/test-cond.c (main): When skipping the test, show the reason.
39361
39362 2010-01-12  Simon Josefsson  <simon@josefsson.org>
39363
39364         * lib/striconv.c (str_cd_iconv): Avoid if before free.
39365
39366 2010-01-12  Simon Josefsson  <simon@josefsson.org>
39367
39368         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
39369         VC_LIST_ALWAYS_EXCLUDE_REGEX.
39370
39371 2010-01-12  Eric Blake  <ebb9@byu.net>
39372
39373         build: guarantee AS_VAR_IF
39374         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
39375         (gl_AS_VAR_IF): Move...
39376         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
39377         Reported by Simon Josefsson.
39378
39379 2010-01-12  Simon Josefsson  <simon@josefsson.org>
39380
39381         * lib/stdio.in.h: Fix typo.
39382
39383 2010-01-12  Simon Josefsson  <simon@josefsson.org>
39384
39385         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
39386         libgpg-error.
39387
39388 2010-01-12  Simon Josefsson  <simon@josefsson.org>
39389
39390         * tests/test-xalloc-die.sh: Use $EXEEXT.
39391
39392 2010-01-12  Simon Josefsson  <simon@josefsson.org>
39393             Bruno Haible  <bruno@clisp.org>
39394
39395         getlogin, getlogin_r: Avoid test failure.
39396         * tests/test-getlogin.c: Include <stdio.h>.
39397         (main): Skip the test when the function fails because stdin is not a
39398         tty.
39399         * tests/test-getlogin_r.c: Include <stdio.h>.
39400         (main): Skip the test when the function fails because stdin is not a
39401         tty.
39402
39403 2010-01-11  Eric Blake  <ebb9@byu.net>
39404
39405         tests: avoid more large file warnings
39406         * tests/test-fflush.c: Avoid warning about ftell use.
39407         * tests/test-fseek.c: Avoid warning about fseek use.
39408
39409 2010-01-10  Bruno Haible  <bruno@clisp.org>
39410
39411         nproc: Work better on Linux when /proc and /sys are not mounted.
39412         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
39413         as lower bound when, on glibc/Linux systems,
39414         sysconf (_SC_NPROCESSORS_CONF) returns 1.
39415         Suggested by Pádraig Brady <P@draigbrady.com>.
39416         Reported by Dmitry V. Levin <ldv@altlinux.org>.
39417
39418         nproc: Refactor.
39419         * lib/nproc.c (num_processors_via_affinity_mask): New function,
39420         extracted from num_processors.
39421         (num_processors): Call it.
39422
39423 2010-01-11  Jim Meyering  <meyering@redhat.com>
39424
39425         utimecmp: avoid new warning from upcoming gcc-4.5.0
39426         * lib/utimecmp.c (BILLION): Define using #define rather than an
39427         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
39428
39429 2010-01-11  Eric Blake  <ebb9@byu.net>
39430
39431         math: add portability warnings for classification macros
39432         * modules/math (Depends-on): Add warn-on-use.
39433         (Makefile.am): Provide new substitutions.
39434         * m4/math_h.m4 (gl_MATH_H): Require inline.
39435         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
39436         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
39437         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
39438         implement warnings.
39439
39440         unistd: warn on use of environ without module
39441         * modules/unistd (Depends-on): Add warn-on-use.
39442         (Makefile.am): Provide new substitutions.
39443         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
39444         * lib/unistd.in.h (environ): Wrap with a warning helper function.
39445
39446         stdio: warn on suspicious uses
39447         * modules/stdio (Depends-on): Add warn-on-use.
39448         (Makefile.am): Provide new substitutions.
39449         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
39450         fseeko.
39451         * lib/stdio.in.h (gets): Always warn on use.
39452         (fseek, ftell): Adjust when warnings are issued, and honor
39453         _GL_NO_LARGE_FILES as a way to silence the warning.
39454         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
39455         any warning about large file offsets.
39456         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
39457         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
39458         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
39459         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
39460         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
39461         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
39462         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
39463         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
39464
39465         warn-on-use: new module
39466         * modules/warn-on-use: New file.
39467         * build-aux/warn-on-use.h: Likewise.
39468         * m4/warn-on-use.m4: Likewise.
39469         * MODULES.html.sh (Support for building): Mention it.
39470
39471 2010-01-10  Bruno Haible  <bruno@clisp.org>
39472
39473         Tests for module 'unistr/u32-strdup'.
39474         * modules/unistr/u32-strdup-tests: New file.
39475         * tests/unistr/test-u32-strdup.c: New file.
39476
39477         Tests for module 'unistr/u16-strdup'.
39478         * modules/unistr/u16-strdup-tests: New file.
39479         * tests/unistr/test-u16-strdup.c: New file.
39480
39481         Tests for module 'unistr/u8-strdup'.
39482         * modules/unistr/u8-strdup-tests: New file.
39483         * tests/unistr/test-u8-strdup.c: New file.
39484         * tests/unistr/test-strdup.h: New file.
39485
39486         Tests for module 'unistr/u32-strncmp'.
39487         * modules/unistr/u32-strncmp-tests: New file.
39488         * tests/unistr/test-u32-strncmp.c: New file.
39489
39490         Tests for module 'unistr/u16-strncmp'.
39491         * modules/unistr/u16-strncmp-tests: New file.
39492         * tests/unistr/test-u16-strncmp.c: New file.
39493
39494         Tests for module 'unistr/u8-strncmp'.
39495         * modules/unistr/u8-strncmp-tests: New file.
39496         * tests/unistr/test-u8-strncmp.c: New file.
39497         * tests/unistr/test-strncmp.h: New file.
39498
39499         Tests for module 'unistr/u32-strcoll'.
39500         * modules/unistr/u32-strcoll-tests: New file.
39501         * tests/unistr/test-u32-strcoll.c: New file.
39502
39503         Tests for module 'unistr/u16-strcoll'.
39504         * modules/unistr/u16-strcoll-tests: New file.
39505         * tests/unistr/test-u16-strcoll.c: New file.
39506
39507         Tests for module 'unistr/u8-strcoll'.
39508         * modules/unistr/u8-strcoll-tests: New file.
39509         * tests/unistr/test-u8-strcoll.c: New file.
39510
39511         Tests for module 'unistr/u32-strcmp'.
39512         * modules/unistr/u32-strcmp-tests: New file.
39513         * tests/unistr/test-u32-strcmp.c: New file.
39514         * tests/unistr/test-u32-strcmp.h: New file.
39515
39516         Tests for module 'unistr/u16-strcmp'.
39517         * modules/unistr/u16-strcmp-tests: New file.
39518         * tests/unistr/test-u16-strcmp.c: New file.
39519         * tests/unistr/test-u16-strcmp.h: New file.
39520
39521         Tests for module 'unistr/u8-strcmp'.
39522         * modules/unistr/u8-strcmp-tests: New file.
39523         * tests/unistr/test-u8-strcmp.c: New file.
39524         * tests/unistr/test-u8-strcmp.h: New file.
39525         * tests/unistr/test-strcmp.h: New file.
39526
39527         Tests for module 'unistr/u32-strncat'.
39528         * modules/unistr/u32-strncat-tests: New file.
39529         * tests/unistr/test-u32-strncat.c: New file.
39530
39531         Tests for module 'unistr/u16-strncat'.
39532         * modules/unistr/u16-strncat-tests: New file.
39533         * tests/unistr/test-u16-strncat.c: New file.
39534
39535         Tests for module 'unistr/u8-strncat'.
39536         * modules/unistr/u8-strncat-tests: New file.
39537         * tests/unistr/test-u8-strncat.c: New file.
39538         * tests/unistr/test-strncat.h: New file.
39539
39540         Tests for module 'unistr/u32-strcat'.
39541         * modules/unistr/u32-strcat-tests: New file.
39542         * tests/unistr/test-u32-strcat.c: New file.
39543
39544         Tests for module 'unistr/u16-strcat'.
39545         * modules/unistr/u16-strcat-tests: New file.
39546         * tests/unistr/test-u16-strcat.c: New file.
39547
39548         Tests for module 'unistr/u8-strcat'.
39549         * modules/unistr/u8-strcat-tests: New file.
39550         * tests/unistr/test-u8-strcat.c: New file.
39551         * tests/unistr/test-strcat.h: New file.
39552
39553         Tests for module 'unistr/u32-stpncpy'.
39554         * modules/unistr/u32-stpncpy-tests: New file.
39555         * tests/unistr/test-u32-stpncpy.c: New file.
39556
39557         Tests for module 'unistr/u16-stpncpy'.
39558         * modules/unistr/u16-stpncpy-tests: New file.
39559         * tests/unistr/test-u16-stpncpy.c: New file.
39560
39561         Tests for module 'unistr/u8-stpncpy'.
39562         * modules/unistr/u8-stpncpy-tests: New file.
39563         * tests/unistr/test-u8-stpncpy.c: New file.
39564         * tests/unistr/test-stpncpy.h: New file.
39565
39566         Tests for module 'unistr/u32-strncpy'.
39567         * modules/unistr/u32-strncpy-tests: New file.
39568         * tests/unistr/test-u32-strncpy.c: New file.
39569
39570         Tests for module 'unistr/u16-strncpy'.
39571         * modules/unistr/u16-strncpy-tests: New file.
39572         * tests/unistr/test-u16-strncpy.c: New file.
39573
39574         Tests for module 'unistr/u8-strncpy'.
39575         * modules/unistr/u8-strncpy-tests: New file.
39576         * tests/unistr/test-u8-strncpy.c: New file.
39577         * tests/unistr/test-strncpy.h: New file.
39578
39579         Tests for module 'unistr/u32-stpcpy'.
39580         * modules/unistr/u32-stpcpy-tests: New file.
39581         * tests/unistr/test-u32-stpcpy.c: New file.
39582
39583         Tests for module 'unistr/u16-stpcpy'.
39584         * modules/unistr/u16-stpcpy-tests: New file.
39585         * tests/unistr/test-u16-stpcpy.c: New file.
39586
39587         Tests for module 'unistr/u8-stpcpy'.
39588         * modules/unistr/u8-stpcpy-tests: New file.
39589         * tests/unistr/test-u8-stpcpy.c: New file.
39590         * tests/unistr/test-stpcpy.h: New file.
39591
39592         Tests for module 'unistr/u32-strcpy'.
39593         * modules/unistr/u32-strcpy-tests: New file.
39594         * tests/unistr/test-u32-strcpy.c: New file.
39595
39596         Tests for module 'unistr/u16-strcpy'.
39597         * modules/unistr/u16-strcpy-tests: New file.
39598         * tests/unistr/test-u16-strcpy.c: New file.
39599
39600         Tests for module 'unistr/u8-strcpy'.
39601         * modules/unistr/u8-strcpy-tests: New file.
39602         * tests/unistr/test-u8-strcpy.c: New file.
39603         * tests/unistr/test-strcpy.h: New file.
39604
39605         Tests for module 'unistr/u32-strnlen'.
39606         * modules/unistr/u32-strnlen-tests: New file.
39607         * tests/unistr/test-u32-strnlen.c: New file.
39608
39609         Tests for module 'unistr/u16-strnlen'.
39610         * modules/unistr/u16-strnlen-tests: New file.
39611         * tests/unistr/test-u16-strnlen.c: New file.
39612
39613         Tests for module 'unistr/u8-strnlen'.
39614         * modules/unistr/u8-strnlen-tests: New file.
39615         * tests/unistr/test-u8-strnlen.c: New file.
39616         * tests/unistr/test-strnlen.h: New file.
39617
39618         Tests for module 'unistr/u32-strlen'.
39619         * modules/unistr/u32-strlen-tests: New file.
39620         * tests/unistr/test-u32-strlen.c: New file.
39621
39622         Tests for module 'unistr/u16-strlen'.
39623         * modules/unistr/u16-strlen-tests: New file.
39624         * tests/unistr/test-u16-strlen.c: New file.
39625
39626         Tests for module 'unistr/u8-strlen'.
39627         * modules/unistr/u8-strlen-tests: New file.
39628         * tests/unistr/test-u8-strlen.c: New file.
39629
39630         Tests for module 'unistr/u32-prev'.
39631         * modules/unistr/u32-prev-tests: New file.
39632         * tests/unistr/test-u32-prev.c: New file.
39633
39634         Tests for module 'unistr/u16-prev'.
39635         * modules/unistr/u16-prev-tests: New file.
39636         * tests/unistr/test-u16-prev.c: New file.
39637
39638         Tests for module 'unistr/u8-prev'.
39639         * modules/unistr/u8-prev-tests: New file.
39640         * tests/unistr/test-u8-prev.c: New file.
39641
39642         Tests for module 'unistr/u32-next'.
39643         * modules/unistr/u32-next-tests: New file.
39644         * tests/unistr/test-u32-next.c: New file.
39645
39646         Tests for module 'unistr/u16-next'.
39647         * modules/unistr/u16-next-tests: New file.
39648         * tests/unistr/test-u16-next.c: New file.
39649
39650         Tests for module 'unistr/u8-next'.
39651         * modules/unistr/u8-next-tests: New file.
39652         * tests/unistr/test-u8-next.c: New file.
39653
39654         Tests for module 'unistr/u32-strmbtouc'.
39655         * modules/unistr/u32-strmbtouc-tests: New file.
39656         * tests/unistr/test-u32-strmbtouc.c: New file.
39657
39658         Tests for module 'unistr/u16-strmbtouc'.
39659         * modules/unistr/u16-strmbtouc-tests: New file.
39660         * tests/unistr/test-u16-strmbtouc.c: New file.
39661
39662         Tests for module 'unistr/u8-strmbtouc'.
39663         * modules/unistr/u8-strmbtouc-tests: New file.
39664         * tests/unistr/test-u8-strmbtouc.c: New file.
39665
39666         Tests for module 'unistr/u32-strmblen'.
39667         * modules/unistr/u32-strmblen-tests: New file.
39668         * tests/unistr/test-u32-strmblen.c: New file.
39669
39670         Tests for module 'unistr/u16-strmblen'.
39671         * modules/unistr/u16-strmblen-tests: New file.
39672         * tests/unistr/test-u16-strmblen.c: New file.
39673
39674         Tests for module 'unistr/u8-strmblen'.
39675         * modules/unistr/u8-strmblen-tests: New file.
39676         * tests/unistr/test-u8-strmblen.c: New file.
39677
39678         Tests for module 'unistr/u32-cpy-alloc'.
39679         * modules/unistr/u32-cpy-alloc-tests: New file.
39680         * tests/unistr/test-u32-cpy-alloc.c: New file.
39681
39682         Tests for module 'unistr/u16-cpy-alloc'.
39683         * modules/unistr/u16-cpy-alloc-tests: New file.
39684         * tests/unistr/test-u16-cpy-alloc.c: New file.
39685
39686         Tests for module 'unistr/u8-cpy-alloc'.
39687         * modules/unistr/u8-cpy-alloc-tests: New file.
39688         * tests/unistr/test-u8-cpy-alloc.c: New file.
39689         * tests/unistr/test-cpy-alloc.h: New file.
39690
39691         Tests for module 'unistr/u32-mbsnlen'.
39692         * modules/unistr/u32-mbsnlen-tests: New file.
39693         * tests/unistr/test-u32-mbsnlen.c: New file.
39694
39695         Tests for module 'unistr/u16-mbsnlen'.
39696         * modules/unistr/u16-mbsnlen-tests: New file.
39697         * tests/unistr/test-u16-mbsnlen.c: New file.
39698
39699         Tests for module 'unistr/u8-mbsnlen'.
39700         * modules/unistr/u8-mbsnlen-tests: New file.
39701         * tests/unistr/test-u8-mbsnlen.c: New file.
39702
39703         Tests for module 'unistr/u32-chr'.
39704         * modules/unistr/u32-chr-tests: New file.
39705         * tests/unistr/test-u32-chr.c: New file.
39706
39707         Tests for module 'unistr/u16-chr'.
39708         * modules/unistr/u16-chr-tests: New file.
39709         * tests/unistr/test-u16-chr.c: New file.
39710
39711         Tests for module 'unistr/u8-chr'.
39712         * modules/unistr/u8-chr-tests: New file.
39713         * tests/unistr/test-u8-chr.c: New file.
39714         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
39715
39716         Tests for module 'unistr/u32-cmp2'.
39717         * modules/unistr/u32-cmp2-tests: New file.
39718         * tests/unistr/test-u32-cmp2.c: New file.
39719
39720         Tests for module 'unistr/u16-cmp2'.
39721         * modules/unistr/u16-cmp2-tests: New file.
39722         * tests/unistr/test-u16-cmp2.c: New file.
39723
39724         Tests for module 'unistr/u8-cmp2'.
39725         * modules/unistr/u8-cmp2-tests: New file.
39726         * tests/unistr/test-u8-cmp2.c: New file.
39727         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
39728
39729         Tests for module 'unistr/u32-cmp'.
39730         * modules/unistr/u32-cmp-tests: New file.
39731         * tests/unistr/test-u32-cmp.c: New file.
39732
39733         Tests for module 'unistr/u16-cmp'.
39734         * modules/unistr/u16-cmp-tests: New file.
39735         * tests/unistr/test-u16-cmp.c: New file.
39736
39737         Tests for module 'unistr/u8-cmp'.
39738         * modules/unistr/u8-cmp-tests: New file.
39739         * tests/unistr/test-u8-cmp.c: New file.
39740         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
39741
39742         Tests for module 'unistr/u32-set'.
39743         * modules/unistr/u32-set-tests: New file.
39744         * tests/unistr/test-u32-set.c: New file.
39745
39746         Tests for module 'unistr/u16-set'.
39747         * modules/unistr/u16-set-tests: New file.
39748         * tests/unistr/test-u16-set.c: New file.
39749
39750         Tests for module 'unistr/u8-set'.
39751         * modules/unistr/u8-set-tests: New file.
39752         * tests/unistr/test-u8-set.c: New file.
39753         * tests/unistr/test-set.h: New file.
39754
39755         Tests for module 'unistr/u32-move'.
39756         * modules/unistr/u32-move-tests: New file.
39757         * tests/unistr/test-u32-move.c: New file.
39758
39759         Tests for module 'unistr/u16-move'.
39760         * modules/unistr/u16-move-tests: New file.
39761         * tests/unistr/test-u16-move.c: New file.
39762
39763         Tests for module 'unistr/u8-move'.
39764         * modules/unistr/u8-move-tests: New file.
39765         * tests/unistr/test-u8-move.c: New file.
39766         * tests/unistr/test-move.h: New file.
39767
39768         Tests for module 'unistr/u32-cpy'.
39769         * modules/unistr/u32-cpy-tests: New file.
39770         * tests/unistr/test-u32-cpy.c: New file.
39771
39772         Tests for module 'unistr/u16-cpy'.
39773         * modules/unistr/u16-cpy-tests: New file.
39774         * tests/unistr/test-u16-cpy.c: New file.
39775
39776         Tests for module 'unistr/u8-cpy'.
39777         * modules/unistr/u8-cpy-tests: New file.
39778         * tests/unistr/test-u8-cpy.c: New file.
39779         * tests/unistr/test-cpy.h: New file.
39780
39781 2010-01-09  Bruno Haible  <bruno@clisp.org>
39782
39783         Tests for module 'unistr/u32-uctomb'.
39784         * modules/unistr/u32-uctomb-tests: New file.
39785         * tests/unistr/test-u32-uctomb.c: New file.
39786
39787         Tests for module 'unistr/u16-uctomb'.
39788         * modules/unistr/u16-uctomb-tests: New file.
39789         * tests/unistr/test-u16-uctomb.c: New file.
39790
39791         Tests for module 'unistr/u8-uctomb'.
39792         * modules/unistr/u8-uctomb-tests: New file.
39793         * tests/unistr/test-u8-uctomb.c: New file.
39794
39795         Tests for module 'unistr/u32-mbtoucr'.
39796         * modules/unistr/u32-mbtoucr-tests: New file.
39797         * tests/unistr/test-u32-mbtoucr.c: New file.
39798
39799         Tests for module 'unistr/u16-mbtoucr'.
39800         * modules/unistr/u16-mbtoucr-tests: New file.
39801         * tests/unistr/test-u16-mbtoucr.c: New file.
39802
39803         Tests for module 'unistr/u8-mbtoucr'.
39804         * modules/unistr/u8-mbtoucr-tests: New file.
39805         * tests/unistr/test-u8-mbtoucr.c: New file.
39806
39807         Tests for module 'unistr/u32-mbtouc'.
39808         * modules/unistr/u32-mbtouc-tests: New file.
39809         * tests/unistr/test-u32-mbtouc.c: New file.
39810
39811         Tests for module 'unistr/u16-mbtouc'.
39812         * modules/unistr/u16-mbtouc-tests: New file.
39813         * tests/unistr/test-u16-mbtouc.c: New file.
39814
39815         Tests for module 'unistr/u8-mbtouc'.
39816         * modules/unistr/u8-mbtouc-tests: New file.
39817         * tests/unistr/test-u8-mbtouc.c: New file.
39818
39819         Tests for module 'unistr/u32-mbtouc-unsafe'.
39820         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
39821         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
39822         * tests/unistr/test-u32-mbtouc.h: New file.
39823
39824         Tests for module 'unistr/u16-mbtouc-unsafe'.
39825         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
39826         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
39827         * tests/unistr/test-u16-mbtouc.h: New file.
39828
39829         Tests for module 'unistr/u8-mbtouc-unsafe'.
39830         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
39831         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
39832         * tests/unistr/test-u8-mbtouc.h: New file.
39833
39834         Tests for module 'unistr/u32-mblen'.
39835         * modules/unistr/u32-mblen-tests: New file.
39836         * tests/unistr/test-u32-mblen.c: New file.
39837
39838         Tests for module 'unistr/u16-mblen'.
39839         * modules/unistr/u16-mblen-tests: New file.
39840         * tests/unistr/test-u16-mblen.c: New file.
39841
39842         Tests for module 'unistr/u8-mblen'.
39843         * modules/unistr/u8-mblen-tests: New file.
39844         * tests/unistr/test-u8-mblen.c: New file.
39845
39846         Tests for module 'unistr/u32-to-u16'.
39847         * modules/unistr/u32-to-u16-tests: New file.
39848         * tests/unistr/test-u32-to-u16.c: New file.
39849
39850         Tests for module 'unistr/u32-to-u8'.
39851         * modules/unistr/u32-to-u8-tests: New file.
39852         * tests/unistr/test-u32-to-u8.c: New file.
39853
39854         Tests for module 'unistr/u16-to-u32'.
39855         * modules/unistr/u16-to-u32-tests: New file.
39856         * tests/unistr/test-u16-to-u32.c: New file.
39857
39858         Tests for module 'unistr/u16-to-u8'.
39859         * modules/unistr/u16-to-u8-tests: New file.
39860         * tests/unistr/test-u16-to-u8.c: New file.
39861
39862         Tests for module 'unistr/u8-to-u32'.
39863         * modules/unistr/u8-to-u32-tests: New file.
39864         * tests/unistr/test-u8-to-u32.c: New file.
39865
39866         Tests for module 'unistr/u8-to-u16'.
39867         * modules/unistr/u8-to-u16-tests: New file.
39868         * tests/unistr/test-u8-to-u16.c: New file.
39869
39870         Tests for module 'unistr/u32-check'.
39871         * modules/unistr/u32-check-tests: New file.
39872         * tests/unistr/test-u32-check.c: New file.
39873
39874         Tests for module 'unistr/u16-check'.
39875         * modules/unistr/u16-check-tests: New file.
39876         * tests/unistr/test-u16-check.c: New file.
39877
39878         Tests for module 'unistr/u8-check'.
39879         * modules/unistr/u8-check-tests: New file.
39880         * tests/unistr/test-u8-check.c: New file.
39881
39882         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
39883         (category_equals): New function.
39884         (main): Add more tests.
39885         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
39886
39887         * tests/unictype/test-bidi_byname.c (main): Add more tests.
39888
39889 2010-01-10  Bruno Haible  <bruno@clisp.org>
39890
39891         unistr/u*-strcoll: Try harder to distinguish different strings.
39892         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
39893         compare s1 and s2 to see if they are different.
39894
39895 2010-01-10  Bruno Haible  <bruno@clisp.org>
39896
39897         unistr/u*-stpncpy: Fix the return value.
39898         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
39899         description of the return value consistent with stpncpy in glibc.
39900         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
39901         written non-NUL unit.
39902
39903 2010-01-10  Bruno Haible  <bruno@clisp.org>
39904
39905         unistr/u*-next: Add missing dependencies.
39906         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
39907         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
39908         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
39909
39910 2010-01-10  Bruno Haible  <bruno@clisp.org>
39911
39912         unistr/u8-mbsnlen: Fix return value for incomplete character.
39913         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
39914         u8_mblen.
39915         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
39916         Remove unistr/u8-mblen.
39917         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
39918         u16_mblen.
39919         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
39920         Remove unistr/u16-mblen.
39921
39922 2010-01-10  Bruno Haible  <bruno@clisp.org>
39923
39924         wchar: Fix compilation error when <wchar.h> is used from coreutils.
39925         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
39926         Reported by Brian Gough <bjg@gnu.org> and
39927         Chris Clayton <chris2553@googlemail.com> via
39928         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
39929
39930 2010-01-09  Bruno Haible  <bruno@clisp.org>
39931
39932         unistr/u16-to-u32: Reject invalid input.
39933         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
39934         u16_mbtouc.
39935         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
39936         Remove unistr/u16-mbtouc.
39937
39938         unistr/u16-to-u8: Reject invalid input.
39939         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
39940         u16_mbtouc.
39941         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
39942         Remove unistr/u16-mbtouc.
39943
39944         unistr/u8-to-u32: Reject invalid input.
39945         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
39946         u8_mbtouc.
39947         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
39948         Remove unistr/u8-mbtouc.
39949
39950         unistr/u8-to-u16: Reject invalid input.
39951         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
39952         u8_mbtouc.
39953         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
39954         Remove unistr/u8-mbtouc.
39955
39956 2010-01-09  Bruno Haible  <bruno@clisp.org>
39957
39958         Tests for module 'getlogin'.
39959         * modules/getlogin-tests: New file.
39960         * tests/test-getlogin.c: New file.
39961
39962         New module 'getlogin'.
39963         * lib/unistd.in.h (getlogin): New declaration.
39964         * lib/getlogin.c: New file.
39965         * m4/getlogin.m4: New file.
39966         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
39967         HAVE_GETLOGIN.
39968         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
39969         HAVE_GETLOGIN.
39970         * modules/getlogin: New file.
39971         * doc/posix-functions/getlogin.texi: Mention the new module.
39972         Reported by John W. Eaton <jwe@gnu.org>.
39973
39974 2010-01-09  Bruno Haible  <bruno@clisp.org>
39975
39976         getlogin_r: Support for native Windows.
39977         * lib/getlogin_r.c: Include <windows.h>
39978         (getlogin_r): Implement for native Windows.
39979         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
39980         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
39981         via John W. Eaton <jwe@gnu.org>.
39982
39983 2010-01-09  Bruno Haible  <bruno@clisp.org>
39984
39985         getlogin_r: Small fixes.
39986         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
39987         succeeds.
39988         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
39989         before testing whether getlogin_r is declared. No need to set
39990         HAVE_DECL_GETLOGIN_R to 1.
39991         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
39992
39993 2010-01-09  Bruno Haible  <bruno@clisp.org>
39994
39995         * lib/unistd.in.h (getlogin_r): Add comment.
39996
39997 2010-01-09  Bruno Haible  <bruno@clisp.org>
39998
39999         Tests for module 'getlogin_r'.
40000         * modules/getlogin_r-tests: New file.
40001         * tests/test-getlogin_r.c: New file.
40002
40003 2010-01-09  Jim Meyering  <meyering@redhat.com>
40004
40005         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
40006         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
40007         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
40008
40009 2010-01-08  Simon Josefsson  <simon@josefsson.org>
40010
40011         * lib/dup2.c (rpl_dup2): Improve comment.
40012
40013 2010-01-08  Eric Blake  <ebb9@byu.net>
40014
40015         maint.mk: allow packages to add makefile @@ exceptions
40016         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
40017         (sc_makefile_check): Rename...
40018         (sc_makefile_at_at_check): ...to this, and use hook.
40019
40020         dup2: work around mingw bug
40021         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
40022         Reported by Simon Josefsson.
40023
40024 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
40025
40026         glob: Fix C++ compilation.
40027         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
40028         C++.
40029
40030 2010-01-07  Bruno Haible  <bruno@clisp.org>
40031
40032         Fix indentation of wctype.in.h, broken since 2007-01-06.
40033         * lib/wctype.in.h: Fix indentation of preprocessor directives.
40034
40035 2010-01-07  Bruno Haible  <bruno@clisp.org>
40036
40037         mbslen: Avoid collision with system function.
40038         * lib/string.in.h [MirBSD]: Include <wchar.h>.
40039         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
40040         * m4/mbslen.m4: New file.
40041         * modules/mbslen (Files): Add it.
40042         (configure.ac): Invoke gl_MBSLEN.
40043         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
40044         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
40045         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
40046         via Ian Beckwith <ianb@erislabs.net>.
40047
40048 2010-01-07  Bruno Haible  <bruno@clisp.org>
40049
40050         dirent: Document the last fix.
40051         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
40052
40053 2010-01-07  Bruno Haible  <bruno@clisp.org>
40054
40055         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
40056         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
40057         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
40058         va_list are defined.
40059         * doc/posix-headers/stdio.texi: Document the bug of missing types.
40060         Reported by Eric Blake.
40061
40062 2010-01-07  Bruno Haible  <bruno@clisp.org>
40063
40064         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
40065         * modules/xlist (Depends-on): Add 'list',
40066         * modules/xoset (Depends-on): Add 'oset'.
40067         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40068
40069 2010-01-07  Bruno Haible  <bruno@clisp.org>
40070
40071         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
40072         * doc/posix-functions/strncasecmp.texi: Likewise.
40073
40074 2010-01-07  Bruno Haible  <bruno@clisp.org>
40075
40076         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
40077
40078 2010-01-07  John W. Eaton  <jwe@octave.org>
40079
40080         wctype: allow C++ use
40081         * lib/wctype.in.h: Add extern "C" block for C++.
40082
40083 2010-01-06  Eric Blake  <ebb9@byu.net>
40084
40085         maint.mk: detect incorrect GFDL usage
40086         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
40087
40088 2010-01-06  Jim Meyering  <meyering@redhat.com>
40089         and Eric Blake  <ebb9@byu.net>
40090
40091         maint.mk: ignore multi-line copyright in NEWS
40092         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
40093
40094 2010-01-06  Eric Blake  <ebb9@byu.net>
40095
40096         select: add missing dependency
40097         * modules/select-tests (Depends-on): Move sockets dependency...
40098         * modules/select (Depends-on): ...here.
40099         Reported by Ian Beckwith.
40100
40101         doc: regenerate INSTALL
40102         * doc/INSTALL: Reflect recent autoconf update.
40103         * doc/INSTALL.ISO: Likewise.
40104         * doc/INSTALL.UTF-8: Likewise.
40105
40106         pread: fix compilation on glibc
40107         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
40108         Reported by Ralf Wildenhues.
40109
40110         dirent: fix test failure
40111         * lib/dirent.in.h (includes): Guarantee ino_t.
40112         Reported by Ralf Wildenhues.
40113
40114 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
40115
40116         linkat, renameat: avoid bad free
40117         * lib/at-func2.c (at_func2): Fix typo.
40118         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
40119
40120 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40121
40122         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
40123         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
40124         to avoid failure of symlink test later.
40125
40126 2010-01-06  Eric Blake  <ebb9@byu.net>
40127
40128         stdio, unistd: guarantee ssize_t
40129         * lib/unistd.in.h (includes): Ensure that types required by POSIX
40130         2008 are exposed when needed.
40131         * lib/stdio.in.h (includes): Likewise.
40132         Reported by Ralf Wildenhues.
40133
40134 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
40135
40136         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
40137         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
40138         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
40139
40140 2010-01-06  Jim Meyering  <meyering@redhat.com>
40141
40142         readtokens: this module *does* require xalloc.h
40143         It uses only functions that were omitted by the old syntax-check rule.
40144         * lib/readtokens.c: Include "xalloc.h" once again.
40145         * modules/readtokens (Depends-on): Add xalloc.
40146         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
40147
40148 2010-01-05  Eric Blake  <ebb9@byu.net>
40149
40150         maint: support 'make announcement' from a VPATH build
40151         * top/maint.mk (announcement): Look for correct NEWS file.
40152
40153 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
40154
40155         utimens (fdutimens): ignore a negative FD, per contract
40156         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
40157         when we have a valid file descriptor.  Otherwise, using a brand
40158         new glibc (with just-patched futimens that now fails with EBADF)
40159         would cause this function to fail with ENOSYS.
40160         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
40161         See also http://bugzilla.redhat.com/552320.
40162
40163 2010-01-05  Eric Blake  <ebb9@byu.net>
40164
40165         strcase: document what it provides
40166         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
40167         gnulib module.
40168         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
40169         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
40170
40171 2010-01-05  Jim Meyering  <meyering@redhat.com>
40172
40173         maint: remove useless inclusions of "xalloc.h"
40174         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
40175         * lib/readtokens.c: Likewise.
40176         * lib/same.c: Likewise.
40177         * modules/getloadavg (Depends-on): Remove xalloc.
40178         * modules/readtokens: Likewise.
40179         * modules/same: Likewise.
40180
40181         maint.mk: include 4 more function names in alloca.h-checking regexp
40182         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
40183         regexp.  Before, we would give a false-positive (saying alloca.h
40184         is included unnecessarily) when the only uses involved omitted symbols.
40185
40186         xalloc.h: use consistent formatting
40187         * lib/xalloc.h: Move declarations to start in the first column.
40188
40189 2010-01-05  Eric Blake  <ebb9@byu.net>
40190
40191         mkdir: avoid xalloc
40192         * lib/mkdir.c (includes): Drop unused header.
40193         Reported by John W. Eaton.
40194
40195 2010-01-04  Jim Meyering  <meyering@redhat.com>
40196
40197         nl_langinfo: avoid configure-time syntax error
40198         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
40199         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
40200         the empty string.  Don't let that provoke a shell syntax error.
40201
40202         regcomp, regexec, fnmatch: avoid array bounds read error
40203         * lib/regcomp.c (build_equiv_class): From glibc:
40204         Use only the low 24 bits of a findidx return value as an index
40205         into the weights array.  Patch by Ulrich Drepper:
40206         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
40207         * lib/regexec.c (check_node_accept_bytes): Likewise.
40208         * lib/fnmatch_loop.c (FCT): Likewise.
40209
40210         regcomp: skip collseq lookup when there are no rules
40211         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
40212         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
40213
40214         regcomp: recognize ill-formed { } expressions
40215         * lib/regcomp.c (parse_dup_op): From glibc:
40216         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
40217
40218         regcomp: fix typo in comment
40219         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
40220         s/satisfy/satisfies/.
40221
40222         regcomp: sync from glibc: remove dead store
40223         * lib/regcomp.c (duplicate_node_closure): Remove useless
40224         search_duplicated_node call and dead store.
40225
40226         regcomp: sync from glibc; always use nl_langinfo
40227         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
40228         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
40229         * modules/regex (Depends-on): Add nl_langinfo.
40230
40231 2010-01-04  Eric Blake  <ebb9@byu.net>
40232
40233         fdopendir: fix configure test
40234         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
40235
40236 2010-01-01  Bruno Haible  <bruno@clisp.org>
40237
40238         wchar: Remove unused configure check.
40239         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
40240
40241 2010-01-01  Eric Blake  <ebb9@byu.net>
40242
40243         headers: make check of system header explicit
40244         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
40245         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
40246         ourselves.
40247         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
40248         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
40249         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
40250         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
40251         internals.
40252         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
40253         missing.
40254         Suggested by Bruno Haible.
40255
40256 2010-01-01  Jim Meyering  <meyering@redhat.com>
40257
40258         ChangeLog: tweak to eliminate unnecessary copyright line
40259         * ChangeLog: Remove a copyright line that was mistakenly updated
40260         by today's update-copyright run.  Reported by Eric Blake.
40261
40262         test-update-copyright: don't let envvar setting cause test failure
40263         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
40264
40265 2010-01-01  Bruno Haible  <bruno@clisp.org>
40266
40267         localename: Avoid gcc warning.
40268         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
40269         function if it is not used.
40270
40271 2010-01-01  Jim Meyering  <meyering@redhat.com>
40272
40273         update nearly all FSF copyright year lists to include 2010
40274         Use the same procedure as for 2009, outlined in
40275         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
40276
40277         version-etc: set COPYRIGHT_YEAR to 2010
40278         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
40279
40280 2009-12-31  Eric Blake  <ebb9@byu.net>
40281
40282         doc: correct availability of cygwin 1.5.x getopt
40283         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
40284         variables.
40285         * doc/posix-functions/opterr.texi (opterr): Likewise.
40286         * doc/posix-functions/optind.texi (optind): Likewise.
40287         * doc/posix-functions/optopt.texi (optopt): Likewise.
40288         * doc/posix-functions/tzname.texi (tzname): Likewise.
40289
40290         openat: update maintainer
40291         * modules/openat (Maintainer): Add myself.
40292
40293         utimens: avoid shadowing warning
40294         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
40295         buffers into one, to avoid shadowing, as well as avoiding a
40296         redundant stat.
40297         Reported by Jim Meyering.
40298
40299         test-dup2: avoid compiler warning
40300         * tests/test-dup2.c (is_inheritable): Only define if used.
40301
40302 2010-01-01  Bruno Haible  <bruno@clisp.org>
40303
40304         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
40305         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
40306         defined, use wctomb instead of wcrtomb.
40307
40308 2010-01-01  Bruno Haible  <bruno@clisp.org>
40309
40310         iconv: Reject native Solaris iconv.
40311         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
40312         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
40313
40314 2009-12-31  Bruno Haible  <bruno@clisp.org>
40315
40316         * tests/test-signal.c (main): Remove test of 'SIG'.
40317
40318 2009-12-31  Bruno Haible  <bruno@clisp.org>
40319
40320         spawn: Fix incomplete fix.
40321         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
40322         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
40323         warnings for GNULIB_POSIXCHECK again.
40324         Reported by Eric Blake.
40325
40326 2009-12-31  Bruno Haible  <bruno@clisp.org>
40327
40328         Avoid namespace pollution on glibc systems.
40329         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
40330         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
40331         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
40332         glibc systems.
40333
40334 2009-12-31  Bruno Haible  <bruno@clisp.org>
40335
40336         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
40337         (gl_REPLACE_WCHAR_H): Turn into a no-op.
40338         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
40339         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
40340         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
40341         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
40342         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
40343
40344 2009-12-31  Bruno Haible  <bruno@clisp.org>
40345
40346         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
40347         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
40348         afterwards.
40349
40350 2009-12-31  Bruno Haible  <bruno@clisp.org>
40351
40352         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
40353         SYS_UTSNAME_H.
40354
40355 2009-12-31  Bruno Haible  <bruno@clisp.org>
40356
40357         spawn: Fix misapplied patch.
40358         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
40359         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
40360         warnings for GNULIB_POSIXCHECK.
40361
40362 2009-12-31  Bruno Haible  <bruno@clisp.org>
40363
40364         times: Update after sys_times changed.
40365         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
40366         * modules/times (Files): Add it.
40367         (configure.ac): Invoke gl_FUNC_TIMES.
40368
40369 2009-12-31  Bruno Haible  <bruno@clisp.org>
40370
40371         Use AC_C_INLINE where necessary.
40372         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
40373         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
40374         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
40375         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
40376         * m4/mbfile.m4 (gl_MBFILE): Likewise.
40377         * m4/mbiter.m4 (gl_MBITER): Likewise.
40378         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
40379         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
40380         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
40381         * modules/u64 (configure.ac): Likewise.
40382
40383 2009-12-31  Bruno Haible  <bruno@clisp.org>
40384
40385         Use AC_C_INLINE instead of module 'inline' where possible.
40386         * modules/inline (Description): Clarify purpose.
40387         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
40388         * modules/count-one-bits (Depends-on): Remove inline.
40389         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
40390         * modules/openat (Depends-on): Remove inline.
40391         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
40392         instead of depending on module 'inline'.
40393         * modules/filevercmp (Depends-on, configure.ac): Likewise.
40394         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
40395         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
40396         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
40397         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
40398         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
40399         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
40400         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
40401         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
40402         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
40403         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
40404         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
40405         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
40406         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
40407         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
40408         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
40409         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
40410         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
40411         Likewise.
40412         * modules/unictype/property-ascii-hex-digit (Depends-on,
40413         configure.ac): Likewise.
40414         * modules/unictype/property-bidi-arabic-digit (Depends-on,
40415         configure.ac): Likewise.
40416         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
40417         configure.ac): Likewise.
40418         * modules/unictype/property-bidi-block-separator (Depends-on,
40419         configure.ac): Likewise.
40420         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
40421         configure.ac): Likewise.
40422         * modules/unictype/property-bidi-common-separator (Depends-on,
40423         configure.ac): Likewise.
40424         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
40425         Likewise.
40426         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
40427         configure.ac): Likewise.
40428         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
40429         configure.ac): Likewise.
40430         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
40431         configure.ac): Likewise.
40432         * modules/unictype/property-bidi-european-digit (Depends-on,
40433         configure.ac): Likewise.
40434         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
40435         configure.ac): Likewise.
40436         * modules/unictype/property-bidi-left-to-right (Depends-on,
40437         configure.ac): Likewise.
40438         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
40439         configure.ac): Likewise.
40440         * modules/unictype/property-bidi-other-neutral (Depends-on,
40441         configure.ac): Likewise.
40442         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
40443         Likewise.
40444         * modules/unictype/property-bidi-segment-separator (Depends-on,
40445         configure.ac): Likewise.
40446         * modules/unictype/property-bidi-whitespace (Depends-on,
40447         configure.ac): Likewise.
40448         * modules/unictype/property-combining (Depends-on, configure.ac):
40449         Likewise.
40450         * modules/unictype/property-composite (Depends-on, configure.ac):
40451         Likewise.
40452         * modules/unictype/property-currency-symbol (Depends-on,
40453         configure.ac): Likewise.
40454         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
40455         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
40456         Likewise.
40457         * modules/unictype/property-default-ignorable-code-point (Depends-on,
40458         configure.ac): Likewise.
40459         * modules/unictype/property-deprecated (Depends-on, configure.ac):
40460         Likewise.
40461         * modules/unictype/property-diacritic (Depends-on, configure.ac):
40462         Likewise.
40463         * modules/unictype/property-extender (Depends-on, configure.ac):
40464         Likewise.
40465         * modules/unictype/property-format-control (Depends-on, configure.ac):
40466         Likewise.
40467         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
40468         Likewise.
40469         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
40470         Likewise.
40471         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
40472         Likewise.
40473         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
40474         Likewise.
40475         * modules/unictype/property-hyphen (Depends-on, configure.ac):
40476         Likewise.
40477         * modules/unictype/property-id-continue (Depends-on, configure.ac):
40478         Likewise.
40479         * modules/unictype/property-id-start (Depends-on, configure.ac):
40480         Likewise.
40481         * modules/unictype/property-ideographic (Depends-on, configure.ac):
40482         Likewise.
40483         * modules/unictype/property-ids-binary-operator (Depends-on,
40484         configure.ac): Likewise.
40485         * modules/unictype/property-ids-trinary-operator (Depends-on,
40486         configure.ac): Likewise.
40487         * modules/unictype/property-ignorable-control (Depends-on,
40488         configure.ac): Likewise.
40489         * modules/unictype/property-iso-control (Depends-on, configure.ac):
40490         Likewise.
40491         * modules/unictype/property-join-control (Depends-on, configure.ac):
40492         Likewise.
40493         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
40494         Likewise.
40495         * modules/unictype/property-line-separator (Depends-on, configure.ac):
40496         Likewise.
40497         * modules/unictype/property-logical-order-exception (Depends-on,
40498         configure.ac): Likewise.
40499         * modules/unictype/property-lowercase (Depends-on, configure.ac):
40500         Likewise.
40501         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
40502         * modules/unictype/property-non-break (Depends-on, configure.ac):
40503         Likewise.
40504         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
40505         Likewise.
40506         * modules/unictype/property-numeric (Depends-on, configure.ac):
40507         Likewise.
40508         * modules/unictype/property-other-alphabetic (Depends-on,
40509         configure.ac): Likewise.
40510         * modules/unictype/property-other-default-ignorable-code-point
40511         (Depends-on, configure.ac): Likewise.
40512         * modules/unictype/property-other-grapheme-extend (Depends-on,
40513         configure.ac): Likewise.
40514         * modules/unictype/property-other-id-continue (Depends-on,
40515         configure.ac): Likewise.
40516         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
40517         Likewise.
40518         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
40519         Likewise.
40520         * modules/unictype/property-other-math (Depends-on, configure.ac):
40521         Likewise.
40522         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
40523         Likewise.
40524         * modules/unictype/property-paired-punctuation (Depends-on,
40525         configure.ac): Likewise.
40526         * modules/unictype/property-paragraph-separator (Depends-on,
40527         configure.ac): Likewise.
40528         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
40529         Likewise.
40530         * modules/unictype/property-pattern-white-space (Depends-on,
40531         configure.ac): Likewise.
40532         * modules/unictype/property-private-use (Depends-on, configure.ac):
40533         Likewise.
40534         * modules/unictype/property-punctuation (Depends-on, configure.ac):
40535         Likewise.
40536         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
40537         Likewise.
40538         * modules/unictype/property-radical (Depends-on, configure.ac):
40539         Likewise.
40540         * modules/unictype/property-sentence-terminal (Depends-on,
40541         configure.ac): Likewise.
40542         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
40543         Likewise.
40544         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
40545         * modules/unictype/property-terminal-punctuation (Depends-on,
40546         configure.ac): Likewise.
40547         * modules/unictype/property-titlecase (Depends-on, configure.ac):
40548         Likewise.
40549         * modules/unictype/property-unassigned-code-value (Depends-on,
40550         configure.ac): Likewise.
40551         * modules/unictype/property-unified-ideograph (Depends-on,
40552         configure.ac): Likewise.
40553         * modules/unictype/property-uppercase (Depends-on, configure.ac):
40554         Likewise.
40555         * modules/unictype/property-variation-selector (Depends-on,
40556         configure.ac): Likewise.
40557         * modules/unictype/property-white-space (Depends-on, configure.ac):
40558         Likewise.
40559         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
40560         Likewise.
40561         * modules/unictype/property-xid-start (Depends-on, configure.ac):
40562         Likewise.
40563         * modules/unictype/property-zero-width (Depends-on, configure.ac):
40564         Likewise.
40565         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
40566         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
40567         Likewise.
40568
40569 2009-12-31  Bruno Haible  <bruno@clisp.org>
40570
40571         Remove unnecessary AC_C_INLINE invocation.
40572         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
40573         since 2009-08-21.
40574
40575 2009-12-31  Jim Meyering  <meyering@redhat.com>
40576
40577         maint.mk: don't require explicit gpg_key_ID in cfg.mk
40578         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
40579         With this change, we can all remove the gpg_key_ID = ... definition
40580         from our respective cfg.mk files.
40581
40582         maint.mk: create announcement template in ~/, not in /tmp
40583         * top/maint.mk (emit_upload_commands): Adjust.
40584         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
40585         Remove temporary file, .ci-msg.
40586
40587 2009-12-31  Eric Blake  <ebb9@byu.net>
40588
40589         link-warning: always build headers with link warnings
40590         * modules/arpa_inet (Makefile.am): Always build replacement
40591         header.
40592         * modules/ctype (Makefile.am): Likewise.
40593         * modules/dirent (Makefile.am): Likewise.
40594         * modules/inttypes (Makefile.am): Likewise.
40595         * modules/langinfo (Makefile.am): Likewise.
40596         * modules/locale (Makefile.am): Likewise.
40597         * modules/spawn (Makefile.am): Likewise.
40598         * modules/sys_file (Makefile.am): Likewise.
40599         * modules/sys_ioctl (Makefile.am): Likewise.
40600         * modules/sys_select (Makefile.am): Likewise.
40601         * modules/sys_socket (Makefile.am): Likewise.
40602         * modules/sys_times (Makefile.am): Likewise.
40603         * modules/sys_utsname (Makefile.am): Likewise.
40604         * modules/sys_wait (Makefile.am): Likewise.
40605         * modules/wchar (Makefile.am): Likewise.
40606         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
40607         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
40608         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
40609         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
40610         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
40611         Likewise.
40612         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
40613         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
40614         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
40615         Likewise.
40616         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
40617         Likewise.
40618         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
40619         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
40620         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
40621         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
40622         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
40623         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
40624         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
40625         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
40626         (gl_WCHAR_H_DEFAULTS): Likewise.
40627
40628 2009-12-31  Eric Blake  <ebb9@byu.net>
40629
40630         signal, spawn: use link warnings
40631         * lib/signal.in.h (sigset_t): Make unconditional.
40632         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
40633         (sigpending, sigprocmask, sigaction): Add link warnings.
40634         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
40635         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
40636         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
40637         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
40638         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
40639         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
40640         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
40641         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
40642         (posix_spawn_file_actions_destroy)
40643         (posix_spawn_file_actions_addopen)
40644         (posix_spawn_file_actions_addclose)
40645         (posix_spawn_file_actions_adddup2): Likewise.
40646         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
40647         * tests/test-signal.c (main): Enhance test.
40648
40649         spawn: improve wrapper support
40650         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
40651         (gl_SPAWN_H_DEFAULTS): New defaults.
40652         * modules/spawn (Makefile.am): Substitute them.
40653         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
40654         Only declare if missing or broken.
40655
40656         sys_times, sys_utsname: use include_next
40657         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
40658         header.
40659         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
40660         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
40661         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
40662         * modules/sys_times (Depends-on): Add include_next.
40663         (Makefile.am): Substitute additional values.
40664         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
40665         * lib/sys_times.in.h (includes): Include native header, if
40666         available.
40667         * lib/sys_utsname.in.h (includes): Likewise.
40668         * tests/test-sys_times.c (main): Enhance test.
40669
40670         fdutimensat: revert prior patch
40671         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
40672         utimens.h.
40673         Reported by Bruno Haible.
40674
40675 2009-12-30  Eric Blake  <ebb9@byu.net>
40676
40677         sys_wait: drop link-warning dependency
40678         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
40679         link-warning efforts.
40680         * lib/sys_wait.in.h: Likewise.
40681
40682         fdutimensat: remove bogus dependency
40683         * modules/fdutimensat (Depends-on): Drop inline.
40684
40685         unistd: fix typo
40686         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
40687
40688 2009-12-30  Bruno Haible  <bruno@clisp.org>
40689
40690         Fix compilation error with Solaris cc.
40691         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
40692         * lib/unicase/u16-is-invariant.c: Likewise.
40693         * lib/unicase/u32-is-invariant.c: Likewise.
40694         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
40695
40696 2009-12-30  Bruno Haible  <bruno@clisp.org>
40697
40698         Fix test crash.
40699         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
40700         locales.
40701         Reported by Simon Josefsson <simon@josefsson.org>.
40702
40703 2009-12-30  Bruno Haible  <bruno@clisp.org>
40704
40705         Fix compilation error on most platforms.
40706         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
40707         Reported by Simon Josefsson <simon@josefsson.org>
40708         and Nelson H. F. Beebe <beebe@math.utah.edu>.
40709
40710 2009-12-30  Eric Blake  <ebb9@byu.net>
40711
40712         futimens, utimensat: work around ntfs-3g bug
40713         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
40714         a ctime bug is present, and expand workaround to cover ntfs-3g.
40715         * lib/utimens.c (fdutimens, lutimens): Likewise.
40716         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
40717         (validate_timespec): Adjust return value.
40718         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
40719         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
40720         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
40721
40722 2009-12-29  Eric Blake  <ebb9@byu.net>
40723
40724         link-warning: make usage consistent
40725         * modules/ctype (Depends-on): Add link-warning.
40726         (Makefile.am): Update rules accordingly.
40727         * modules/langinfo (Depends-on, Makefile.am): Likewise.
40728         * modules/locale (Depends-on, Makefile.am): Likewise.
40729         * modules/sys_file (Makefile.am): Likewise.
40730         * modules/getopt-posix (Makefile.am): Delete unused link warning
40731         efforts.
40732         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
40733         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
40734         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
40735         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
40736
40737         stdio: remove unused variables
40738         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
40739         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
40740         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
40741
40742         tests: test more substitute headers
40743         * modules/ctype-tests: New file.
40744         * modules/dirent-tests: Likewise.
40745         * modules/spawn-tests: Likewise.
40746         * modules/sys_file-tests: Likewise.
40747         * modules/sys_ioctl-tests: Likewise.
40748         * modules/sys_wait-tests: Likewise.
40749         * tests/test-ctype.c: Likewise.
40750         * tests/test-dirent.c: Likewise.
40751         * tests/test-spawn.c: Likewise.
40752         * tests/test-sys_file.c: Likewise.
40753         * tests/test-sys_ioctl.c: Likewise.
40754         * tests/test-sys_wait.c: Likewise.
40755         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
40756         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
40757         whether or not flock is in use.
40758
40759         tests: remove License section from module
40760         * modules/arpa_inet-tests: Remove unneeded section.
40761         * modules/byteswap-tests: Likewise.
40762         * modules/ceilf-tests: Likewise.
40763         * modules/ceill-tests: Likewise.
40764         * modules/crypto/des-tests: Likewise.
40765         * modules/crypto/gc-arcfour-tests: Likewise.
40766         * modules/crypto/gc-arctwo-tests: Likewise.
40767         * modules/crypto/gc-des-tests: Likewise.
40768         * modules/crypto/gc-hmac-md5-tests: Likewise.
40769         * modules/crypto/gc-hmac-sha1-tests: Likewise.
40770         * modules/crypto/gc-md2-tests: Likewise.
40771         * modules/crypto/gc-md4-tests: Likewise.
40772         * modules/crypto/gc-md5-tests: Likewise.
40773         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
40774         * modules/crypto/gc-rijndael-tests: Likewise.
40775         * modules/crypto/gc-sha1-tests: Likewise.
40776         * modules/crypto/gc-tests: Likewise.
40777         * modules/crypto/md2-tests: Likewise.
40778         * modules/crypto/md4-tests: Likewise.
40779         * modules/fcntl-h-tests: Likewise.
40780         * modules/floorf-tests: Likewise.
40781         * modules/floorl-tests: Likewise.
40782         * modules/frexp-nolibm-tests: Likewise.
40783         * modules/frexp-tests: Likewise.
40784         * modules/frexpl-nolibm-tests: Likewise.
40785         * modules/frexpl-tests: Likewise.
40786         * modules/getaddrinfo-tests: Likewise.
40787         * modules/inttypes-tests: Likewise.
40788         * modules/isfinite-tests: Likewise.
40789         * modules/isinf-tests: Likewise.
40790         * modules/ldexpl-tests: Likewise.
40791         * modules/locale-tests: Likewise.
40792         * modules/math-tests: Likewise.
40793         * modules/netdb-tests: Likewise.
40794         * modules/netinet_in-tests: Likewise.
40795         * modules/printf-frexp-tests: Likewise.
40796         * modules/printf-frexpl-tests: Likewise.
40797         * modules/priv-set-tests: Likewise.
40798         * modules/random_r-tests: Likewise.
40799         * modules/round-tests: Likewise.
40800         * modules/roundf-tests: Likewise.
40801         * modules/roundl-tests: Likewise.
40802         * modules/search-tests: Likewise.
40803         * modules/select-tests: Likewise.
40804         * modules/signal-tests: Likewise.
40805         * modules/stdbool-tests: Likewise.
40806         * modules/stddef-tests: Likewise.
40807         * modules/stdint-tests: Likewise.
40808         * modules/stdio-tests: Likewise.
40809         * modules/stdlib-tests: Likewise.
40810         * modules/string-tests: Likewise.
40811         * modules/strings-tests: Likewise.
40812         * modules/sys_select-tests: Likewise.
40813         * modules/sys_socket-tests: Likewise.
40814         * modules/sys_stat-tests: Likewise.
40815         * modules/sys_time-tests: Likewise.
40816         * modules/sys_utsname-tests: Likewise.
40817         * modules/sysexits-tests: Likewise.
40818         * modules/time-tests: Likewise.
40819         * modules/trunc-tests: Likewise.
40820         * modules/truncf-tests: Likewise.
40821         * modules/truncl-tests: Likewise.
40822         * modules/tsearch-tests: Likewise.
40823         * modules/unistd-tests: Likewise.
40824         * modules/wchar-tests: Likewise.
40825         * modules/wctype-tests: Likewise.
40826
40827         tests: fix license on several tests
40828         * tests/test-des.c: Update to GPLv3+.
40829         * tests/test-flock.c: Likewise.
40830         * tests/test-fsync.c: Likewise.
40831         * tests/test-futimens.h: Likewise.
40832         * tests/test-gc-arcfour.c: Likewise.
40833         * tests/test-gc-arctwo.c: Likewise.
40834         * tests/test-gc-des.c: Likewise.
40835         * tests/test-gc-hmac-md5.c: Likewise.
40836         * tests/test-gc-hmac-sha1.c: Likewise.
40837         * tests/test-gc-md2.c: Likewise.
40838         * tests/test-gc-md4.c: Likewise.
40839         * tests/test-gc-md5.c: Likewise.
40840         * tests/test-gc-pbkdf2-sha1.c: Likewise.
40841         * tests/test-gc-rijndael.c: Likewise.
40842         * tests/test-gc-sha1.c: Likewise.
40843         * tests/test-gc.c: Likewise.
40844         * tests/test-getcwd.c: Likewise.
40845         * tests/test-link.c: Likewise.
40846         * tests/test-link.h: Likewise.
40847         * tests/test-lutimens.h: Likewise.
40848         * tests/test-md2.c: Likewise.
40849         * tests/test-md4.c: Likewise.
40850         * tests/test-mkdir.h: Likewise.
40851         * tests/test-rename.c: Likewise.
40852         * tests/test-rename.h: Likewise.
40853         * tests/test-safe-alloc.c: Likewise.
40854         * tests/test-utimens-common.h: Likewise.
40855         * tests/test-utimens.h: Likewise.
40856
40857         maint: sync license texts
40858         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
40859         * doc/gpl-3.0.texi: Revert copyright year update.
40860         * doc/lgpl-3.0.texi: Likewise.
40861
40862 2009-12-29  Jim Meyering  <meyering@redhat.com>
40863
40864         update nearly all FSF copyright year lists to include 2009
40865         The files named by the following are exempted:
40866             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
40867               test -f "$dst" && { echo "$dst"; continue; }
40868               test -d "$dst" || continue
40869               echo "$dst"/$(basename "$src")
40870             done > exempt
40871             git ls-files tests/unictype >> exempt
40872         In the remaining files, convert to all-interval notation if
40873         - there is already at least one year interval like 2000-2003
40874         - the file is maintained by me
40875         - the file is in lib/uni*/, where that style already prevails
40876         Otherwise, use update-copyright's default.
40877
40878 2009-12-29  Simon Josefsson  <simon@josefsson.org>
40879         and Eric Blake  <ebb9@byu.net>
40880
40881         tests: don't require debug system() to pass
40882         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
40883         * tests/test-rmdir.h (test_rmdir_func): Likewise.
40884         * tests/test-unlink.h (test_unlink_func): Likewise.
40885         * tests/test-fstatat.c (main): ...into callers.
40886         * tests/test-lstat.c (main): Likewise.
40887         * tests/test-rmdir.c (main): Likewise.
40888         * tests/test-unlink.c (main): Likewise.
40889         * tests/test-unlinkat.c (main): Likewise.
40890         * tests/test-areadlink-with-size.c (main): Don't require a
40891         debug-only system call to pass, aiding cross-testing to mingw.
40892         * tests/test-areadlink.c (main): Likewise.
40893         * tests/test-areadlinkat-with-size.c (main): Likewise.
40894         * tests/test-areadlinkat.c (main): Likewise.
40895         * tests/test-canonicalize-lgpl.c (main): Likewise.
40896         * tests/test-canonicalize.c (main): Likewise.
40897         * tests/test-chown.c (main): Likewise.
40898         * tests/test-fchownat.c (main): Likewise.
40899         * tests/test-lchown.c (main): Likewise.
40900         * tests/test-fdutimensat.c (main): Likewise.
40901         * tests/test-futimens.c (main): Likewise.
40902         * tests/test-link.c (main): Likewise.
40903         * tests/test-linkat.c (main): Likewise.
40904         * tests/test-mkdir.c (main): Likewise.
40905         * tests/test-mkdirat.c (main): Likewise.
40906         * tests/test-mkfifo.c (main): Likewise.
40907         * tests/test-mkfifoat.c (main): Likewise.
40908         * tests/test-mknod.c (main): Likewise.
40909         * tests/test-readlink.c (main): Likewise.
40910         * tests/test-remove.c (main): Likewise.
40911         * tests/test-rename.c (main): Likewise.
40912         * tests/test-renameat.c (main): Likewise.
40913         * tests/test-symlink.c (main): Likewise.
40914         * tests/test-symlinkat.c (main): Likewise.
40915         * tests/test-utimens.c (main): Likewise.
40916         * tests/test-utimensat.c (main): Likewise.
40917
40918 2009-12-29  Simon Josefsson  <simon@josefsson.org>
40919
40920         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
40921         on $(UNUSED_PARAMETER_H) to avoid build failure.
40922
40923 2009-12-28  Jim Meyering  <meyering@redhat.com>
40924
40925         update-copyright: you may specify a max. line length other than 72
40926         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
40927
40928         maint: use consistent FSF copyright line syntax
40929         * lib/posixtm.c: Add missing comma in FSF copyright line.
40930         * lib/posixtm.h: Likewise.
40931         * lib/getugroups.c: Add missing ", Inc.".
40932
40933         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
40934         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
40935         FSF copyright line.  Remove trailing blanks.
40936
40937 2009-12-28  Eric Blake  <ebb9@byu.net>
40938
40939         test-dup2: reduce dependencies
40940         * modules/cloexec (Configure.ac): Set witness.
40941         * modules/dup2-tests (Depends-on): Drop cloexec.
40942         * tests/test-dup2.c (main): Skip portion of test if cloexec module
40943         not present.
40944         Suggested by Bruno Haible.
40945
40946 2009-12-26  Bruno Haible  <bruno@clisp.org>
40947
40948         Remove an unneeded dependency.
40949         * modules/fseterr (Depends-on): Remove dup2.
40950
40951 2009-12-26  Eric Blake  <ebb9@byu.net>
40952
40953         tests: use macros.h in more places
40954         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
40955         (ASSERT_STREAM): Provide default of stderr.
40956         * tests/test-dirent-safer.c: Include macros.h, using alternate
40957         stream for assertions.
40958         * tests/test-dup-safer.c: Likewise.
40959         * tests/test-freopen-safer.c: Likewise.
40960         * tests/test-getopt.c: Likewise.
40961         * tests/test-openat-safer.c: Likewise.
40962         * tests/test-pipe.c: Likewise.
40963         * tests/test-popen-safer.c: Likewise.
40964         * modules/dirent-safer-tests (Files): Include macros.h.
40965         * modules/unistd-safer-tests (Files): Likewise.
40966         * modules/freopen-safer-tests (Files): Likewise.
40967         * modules/getopt-posix-tests (Files): Likewise.
40968         * modules/openat-safer-tests (Files): Likewise.
40969         * modules/pipe-tests (Files): Likewise.
40970
40971 2009-12-26  Bruno Haible  <bruno@clisp.org>
40972
40973         javacomp: Portability fix.
40974         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
40975         that it also works on Solaris.
40976
40977 2009-12-26  Bruno Haible  <bruno@clisp.org>
40978
40979         localename: Fix storage allocation of gl_locale_name_thread's result.
40980         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
40981         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
40982         all platforms that have 'uselocale'.
40983         (gl_locale_name_thread_unsafe): New function, extracted from
40984         gl_locale_name_thread.
40985         (gl_locale_name_thread): Call struniq on all platforms that have
40986         'uselocale'.
40987         * tests/test-localename.c (test_locale_name_thread): Check that the
40988         resulting strings are permanently allocated.
40989         * modules/localename-tests (Depends-on): Add strdup.
40990
40991 2009-12-26  Bruno Haible  <bruno@clisp.org>
40992
40993         * tests/test-localename.c (categories): Fill in the strings.
40994
40995 2009-12-26  Jim Meyering  <meyering@redhat.com>
40996
40997         isdir: complete the removal of m4/isdir.m4
40998         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
40999
41000         isdir: clean up, since at least grep still uses it
41001         * lib/isdir.c: Include "isdir.h".
41002         (S_ISDIR): Remove now-unneeded definition.
41003         * modules/isdir (Files): Add lib/isdir.h.
41004         * lib/isdir.h: New file, with declaration.
41005         * m4/isdir.m4: Remove file -- unneeded.
41006
41007 2009-12-25  Bruno Haible  <bruno@clisp.org>
41008
41009         selinux-h: Make generated .h files standalone.
41010         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
41011         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
41012         * lib/se-selinux.in.h: Likewise.
41013         * modules/selinux-h (Depends-on): Add unused-parameter.
41014         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
41015         selinux/selinux.h and selinux/context.h.
41016         Suggested by Eric Blake.
41017
41018 2009-12-25  Bruno Haible  <bruno@clisp.org>
41019
41020         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
41021         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
41022         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
41023         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
41024         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
41025
41026 2009-12-24  Bruno Haible  <bruno@clisp.org>
41027
41028         openat: Fix warning.
41029         * lib/openat-proc.c: Include <unistd.h>.
41030
41031 2009-12-24  Bruno Haible  <bruno@clisp.org>
41032
41033         New module 'unused-parameter'.
41034         * build-aux/unused-parameter.h: New file, extracted from earlier
41035         gnulib-common.m4.
41036         * modules/unused-parameter: New file.
41037         * lib/unistr.h: Include unused-parameter.h.
41038         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
41039         _GL_UNUSED.
41040         * modules/unistr/base (Depends-on): Add unused-parameter.
41041
41042 2009-12-24  Bruno Haible  <bruno@clisp.org>
41043
41044         Add missing dependencies to 'extensions' module.
41045         * m4/extensions.m4: Add comment.
41046         * modules/accept4 (Depends-on): Add extensions.
41047         * modules/dup3 (Depends-on): Likewise.
41048         * modules/fcntl (Depends-on): Likewise.
41049         * modules/futimens (Depends-on): Likewise.
41050         * modules/mknod (Depends-on): Likewise.
41051         * modules/pipe2 (Depends-on): Likewise.
41052         * modules/stat-time (Depends-on): Likewise.
41053         * modules/strcasestr-simple (Depends-on): Likewise.
41054         * modules/strsignal (Depends-on): Likewise.
41055         * modules/utimensat (Depends-on): Likewise.
41056         * modules/localcharset (Depends-on): Likewise. Needed because of
41057         gl_FCNTL_O_FLAGS.
41058         * modules/wcrtomb (Depends-on): Likewise. Needed because of
41059         AC_TYPE_MBSTATE_T.
41060         * modules/wcsnrtombs (Depends-on): Likewise.
41061         * modules/wcsrtombs (Depends-on): Likewise.
41062
41063 2009-12-24  Bruno Haible  <bruno@clisp.org>
41064
41065         binary-io: Avoid gcc warning due to SET_BINARY.
41066         * lib/binary-io.h (SET_BINARY): Cast the result to void.
41067         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
41068
41069 2009-12-24  Bruno Haible  <bruno@clisp.org>
41070
41071         Avoid future namespace pollution on glibc systems.
41072         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
41073         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
41074         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
41075         glibc systems.
41076
41077 2009-12-24  Bruno Haible  <bruno@clisp.org>
41078
41079         Refactor common macros used in tests.
41080         * tests/macros.h: New file.
41081         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
41082         and/or <stdlib.h>, if appropriate.
41083         (ASSERT, SIZEOF): Remove macros.
41084         * tests/test-areadlink-with-size.c: Likewise.
41085         * tests/test-areadlinkat.c: Likewise.
41086         * tests/test-areadlinkat-with-size.c: Likewise.
41087         * tests/test-argmatch.c: Likewise.
41088         * tests/test-argv-iter.c: Likewise.
41089         * tests/test-array-mergesort.c: Likewise.
41090         * tests/test-array_list.c: Likewise.
41091         * tests/test-array_oset.c: Likewise.
41092         * tests/test-avltree_list.c: Likewise.
41093         * tests/test-avltree_oset.c: Likewise.
41094         * tests/test-avltreehash_list.c: Likewise.
41095         * tests/test-base64.c: Likewise.
41096         * tests/test-binary-io.c: Likewise.
41097         * tests/test-bitrotate.c: Likewise.
41098         * tests/test-btowc.c: Likewise.
41099         * tests/test-byteswap.c: Likewise.
41100         * tests/test-c-ctype.c: Likewise.
41101         * tests/test-c-stack.c: Likewise.
41102         * tests/test-c-strcasecmp.c: Likewise.
41103         * tests/test-c-strcasestr.c: Likewise.
41104         * tests/test-c-strncasecmp.c: Likewise.
41105         * tests/test-c-strstr.c: Likewise.
41106         * tests/test-canonicalize-lgpl.c: Likewise.
41107         * tests/test-canonicalize.c: Likewise.
41108         * tests/test-carray_list.c: Likewise.
41109         * tests/test-ceilf1.c: Likewise.
41110         * tests/test-ceilf2.c: Likewise.
41111         * tests/test-ceill.c: Likewise.
41112         * tests/test-chown.c: Likewise.
41113         * tests/test-cloexec.c: Likewise.
41114         * tests/test-copy-acl.c: Likewise.
41115         * tests/test-copy-file.c: Likewise.
41116         * tests/test-count-one-bits.c: Likewise.
41117         * tests/test-dprintf-posix.c: Likewise.
41118         * tests/test-dup2.c: Likewise.
41119         * tests/test-dup3.c: Likewise.
41120         * tests/test-duplocale.c: Likewise.
41121         * tests/test-fbufmode.c: Likewise.
41122         * tests/test-fchdir.c: Likewise.
41123         * tests/test-fchownat.c: Likewise.
41124         * tests/test-fcntl-safer.c: Likewise.
41125         * tests/test-fcntl.c: Likewise.
41126         * tests/test-fdopendir.c: Likewise.
41127         * tests/test-fdutimensat.c: Likewise.
41128         * tests/test-fflush2.c: Likewise.
41129         * tests/test-file-has-acl.c: Likewise.
41130         * tests/test-filevercmp.c: Likewise.
41131         * tests/test-flock.c: Likewise.
41132         * tests/test-floorf1.c: Likewise.
41133         * tests/test-floorf2.c: Likewise.
41134         * tests/test-floorl.c: Likewise.
41135         * tests/test-fnmatch.c: Likewise.
41136         * tests/test-fopen.h: Likewise.
41137         * tests/test-fpending.c: Likewise.
41138         * tests/test-fprintf-posix.c: Likewise.
41139         * tests/test-fpurge.c: Likewise.
41140         * tests/test-freadable.c: Likewise.
41141         * tests/test-freadahead.c: Likewise.
41142         * tests/test-freading.c: Likewise.
41143         * tests/test-freadptr.c: Likewise.
41144         * tests/test-freadptr2.c: Likewise.
41145         * tests/test-freadseek.c: Likewise.
41146         * tests/test-freopen.c: Likewise.
41147         * tests/test-frexp.c: Likewise.
41148         * tests/test-frexpl.c: Likewise.
41149         * tests/test-fseek.c: Likewise.
41150         * tests/test-fseeko.c: Likewise.
41151         * tests/test-fstatat.c: Likewise.
41152         * tests/test-fstrcmp.c: Likewise.
41153         * tests/test-fsync.c: Likewise.
41154         * tests/test-ftell.c: Likewise.
41155         * tests/test-ftello.c: Likewise.
41156         * tests/test-func.c: Likewise.
41157         * tests/test-futimens.c: Likewise.
41158         * tests/test-fwritable.c: Likewise.
41159         * tests/test-fwriting.c: Likewise.
41160         * tests/test-getcwd.c: Likewise.
41161         * tests/test-getdate.c: Likewise.
41162         * tests/test-getdelim.c: Likewise.
41163         * tests/test-getdtablesize.c: Likewise.
41164         * tests/test-getgroups.c: Likewise.
41165         * tests/test-getline.c: Likewise.
41166         * tests/test-getndelim2.c: Likewise.
41167         * tests/test-glob.c: Likewise.
41168         * tests/test-hash.c: Likewise.
41169         * tests/test-i-ring.c: Likewise.
41170         * tests/test-iconv-utf.c: Likewise.
41171         * tests/test-iconv.c: Likewise.
41172         * tests/test-idpriv-drop.c: Likewise.
41173         * tests/test-idpriv-droptemp.c: Likewise.
41174         * tests/test-inet_ntop.c: Likewise.
41175         * tests/test-inet_pton.c: Likewise.
41176         * tests/test-isblank.c: Likewise.
41177         * tests/test-isfinite.c: Likewise.
41178         * tests/test-isinf.c: Likewise.
41179         * tests/test-isnan.c: Likewise.
41180         * tests/test-isnand.h: Likewise.
41181         * tests/test-isnanf.h: Likewise.
41182         * tests/test-isnanl.h: Likewise.
41183         * tests/test-lchown.c: Likewise.
41184         * tests/test-ldexpl.c: Likewise.
41185         * tests/test-link.c: Likewise.
41186         * tests/test-linkat.c: Likewise.
41187         * tests/test-linked_list.c: Likewise.
41188         * tests/test-linkedhash_list.c: Likewise.
41189         * tests/test-localename.c: Likewise.
41190         * tests/test-lseek.c: Likewise.
41191         * tests/test-lstat.c: Likewise.
41192         * tests/test-mbmemcasecmp.c: Likewise.
41193         * tests/test-mbmemcasecoll.c: Likewise.
41194         * tests/test-mbrtowc.c: Likewise.
41195         * tests/test-mbscasecmp.c: Likewise.
41196         * tests/test-mbscasestr1.c: Likewise.
41197         * tests/test-mbscasestr2.c: Likewise.
41198         * tests/test-mbscasestr3.c: Likewise.
41199         * tests/test-mbscasestr4.c: Likewise.
41200         * tests/test-mbschr.c: Likewise.
41201         * tests/test-mbscspn.c: Likewise.
41202         * tests/test-mbsinit.c: Likewise.
41203         * tests/test-mbsncasecmp.c: Likewise.
41204         * tests/test-mbsnrtowcs.c: Likewise.
41205         * tests/test-mbspbrk.c: Likewise.
41206         * tests/test-mbspcasecmp.c: Likewise.
41207         * tests/test-mbsrchr.c: Likewise.
41208         * tests/test-mbsrtowcs.c: Likewise.
41209         * tests/test-mbsspn.c: Likewise.
41210         * tests/test-mbsstr1.c: Likewise.
41211         * tests/test-mbsstr2.c: Likewise.
41212         * tests/test-mbsstr3.c: Likewise.
41213         * tests/test-memchr.c: Likewise.
41214         * tests/test-memchr2.c: Likewise.
41215         * tests/test-memcmp.c: Likewise.
41216         * tests/test-memmem.c: Likewise.
41217         * tests/test-memrchr.c: Likewise.
41218         * tests/test-mkdir.c: Likewise.
41219         * tests/test-mkdirat.c: Likewise.
41220         * tests/test-mkfifo.c: Likewise.
41221         * tests/test-mkfifoat.c: Likewise.
41222         * tests/test-mknod.c: Likewise.
41223         * tests/test-nanosleep.c: Likewise.
41224         * tests/test-nl_langinfo.c: Likewise.
41225         * tests/test-obstack-printf.c: Likewise.
41226         * tests/test-open.c: Likewise.
41227         * tests/test-openat.c: Likewise.
41228         * tests/test-pipe-filter-gi1.c: Likewise.
41229         * tests/test-pipe-filter-gi2-main.c: Likewise.
41230         * tests/test-pipe-filter-ii1.c: Likewise.
41231         * tests/test-pipe-filter-ii2-main.c: Likewise.
41232         * tests/test-pipe2.c: Likewise.
41233         * tests/test-popen.h: Likewise.
41234         * tests/test-posixtm.c: Likewise.
41235         * tests/test-pread.c: Likewise.
41236         * tests/test-printf-frexp.c: Likewise.
41237         * tests/test-printf-frexpl.c: Likewise.
41238         * tests/test-printf-posix.c: Likewise.
41239         * tests/test-priv-set.c: Likewise.
41240         * tests/test-quotearg.c: Likewise.
41241         * tests/test-random_r.c: Likewise.
41242         * tests/test-rawmemchr.c: Likewise.
41243         * tests/test-rbtree_list.c: Likewise.
41244         * tests/test-rbtree_oset.c: Likewise.
41245         * tests/test-rbtreehash_list.c: Likewise.
41246         * tests/test-readlink.c: Likewise.
41247         * tests/test-remove.c: Likewise.
41248         * tests/test-rename.c: Likewise.
41249         * tests/test-renameat.c: Likewise.
41250         * tests/test-rmdir.c: Likewise.
41251         * tests/test-round1.c: Likewise.
41252         * tests/test-roundf1.c: Likewise.
41253         * tests/test-roundl.c: Likewise.
41254         * tests/test-safe-alloc.c: Likewise.
41255         * tests/test-sameacls.c: Likewise.
41256         * tests/test-set-mode-acl.c: Likewise.
41257         * tests/test-setenv.c: Likewise.
41258         * tests/test-sigaction.c: Likewise.
41259         * tests/test-signbit.c: Likewise.
41260         * tests/test-sleep.c: Likewise.
41261         * tests/test-snprintf-posix.c: Likewise.
41262         * tests/test-snprintf.c: Likewise.
41263         * tests/test-sprintf-posix.c: Likewise.
41264         * tests/test-stat-time.c: Likewise.
41265         * tests/test-stat.c: Likewise.
41266         * tests/test-strcasestr.c: Likewise.
41267         * tests/test-strchrnul.c: Likewise.
41268         * tests/test-strerror.c: Likewise.
41269         * tests/test-striconv.c: Likewise.
41270         * tests/test-striconveh.c: Likewise.
41271         * tests/test-striconveha.c: Likewise.
41272         * tests/test-strsignal.c: Likewise.
41273         * tests/test-strstr.c: Likewise.
41274         * tests/test-strtod.c: Likewise.
41275         * tests/test-strverscmp.c: Likewise.
41276         * tests/test-symlink.c: Likewise.
41277         * tests/test-symlinkat.c: Likewise.
41278         * tests/test-trunc1.c: Likewise.
41279         * tests/test-trunc2.c: Likewise.
41280         * tests/test-truncf1.c: Likewise.
41281         * tests/test-truncf2.c: Likewise.
41282         * tests/test-truncl.c: Likewise.
41283         * tests/test-uname.c: Likewise.
41284         * tests/test-unlink.c: Likewise.
41285         * tests/test-unlinkat.c: Likewise.
41286         * tests/test-unsetenv.c: Likewise.
41287         * tests/test-usleep.c: Likewise.
41288         * tests/test-utimens.c: Likewise.
41289         * tests/test-utimensat.c: Likewise.
41290         * tests/test-vasnprintf-posix.c: Likewise.
41291         * tests/test-vasnprintf-posix2.c: Likewise.
41292         * tests/test-vasnprintf.c: Likewise.
41293         * tests/test-vasprintf-posix.c: Likewise.
41294         * tests/test-vasprintf.c: Likewise.
41295         * tests/test-vdprintf-posix.c: Likewise.
41296         * tests/test-vfprintf-posix.c: Likewise.
41297         * tests/test-vprintf-posix.c: Likewise.
41298         * tests/test-vsnprintf-posix.c: Likewise.
41299         * tests/test-vsnprintf.c: Likewise.
41300         * tests/test-vsprintf-posix.c: Likewise.
41301         * tests/test-wcrtomb.c: Likewise.
41302         * tests/test-wcsnrtombs.c: Likewise.
41303         * tests/test-wcsrtombs.c: Likewise.
41304         * tests/test-wctype.c: Likewise.
41305         * tests/test-wcwidth.c: Likewise.
41306         * tests/test-xfprintf-posix.c: Likewise.
41307         * tests/test-xmemdup0.c: Likewise.
41308         * tests/test-xprintf-posix.c: Likewise.
41309         * tests/test-xvasprintf.c: Likewise.
41310         * tests/unicase/test-locale-language.c: Likewise.
41311         * tests/unicase/test-mapping-part1.h: Likewise.
41312         * tests/unicase/test-predicate-part1.h: Likewise.
41313         * tests/unicase/test-u8-casecmp.c: Likewise.
41314         * tests/unicase/test-u8-casecoll.c: Likewise.
41315         * tests/unicase/test-u8-casefold.c: Likewise.
41316         * tests/unicase/test-u8-is-cased.c: Likewise.
41317         * tests/unicase/test-u8-is-casefolded.c: Likewise.
41318         * tests/unicase/test-u8-is-lowercase.c: Likewise.
41319         * tests/unicase/test-u8-is-titlecase.c: Likewise.
41320         * tests/unicase/test-u8-is-uppercase.c: Likewise.
41321         * tests/unicase/test-u8-tolower.c: Likewise.
41322         * tests/unicase/test-u8-totitle.c: Likewise.
41323         * tests/unicase/test-u8-toupper.c: Likewise.
41324         * tests/unicase/test-u16-casecmp.c: Likewise.
41325         * tests/unicase/test-u16-casecoll.c: Likewise.
41326         * tests/unicase/test-u16-casefold.c: Likewise.
41327         * tests/unicase/test-u16-is-cased.c: Likewise.
41328         * tests/unicase/test-u16-is-casefolded.c: Likewise.
41329         * tests/unicase/test-u16-is-lowercase.c: Likewise.
41330         * tests/unicase/test-u16-is-titlecase.c: Likewise.
41331         * tests/unicase/test-u16-is-uppercase.c: Likewise.
41332         * tests/unicase/test-u16-tolower.c: Likewise.
41333         * tests/unicase/test-u16-totitle.c: Likewise.
41334         * tests/unicase/test-u16-toupper.c: Likewise.
41335         * tests/unicase/test-u32-casecmp.c: Likewise.
41336         * tests/unicase/test-u32-casecoll.c: Likewise.
41337         * tests/unicase/test-u32-casefold.c: Likewise.
41338         * tests/unicase/test-u32-is-cased.c: Likewise.
41339         * tests/unicase/test-u32-is-casefolded.c: Likewise.
41340         * tests/unicase/test-u32-is-lowercase.c: Likewise.
41341         * tests/unicase/test-u32-is-titlecase.c: Likewise.
41342         * tests/unicase/test-u32-is-uppercase.c: Likewise.
41343         * tests/unicase/test-u32-tolower.c: Likewise.
41344         * tests/unicase/test-u32-totitle.c: Likewise.
41345         * tests/unicase/test-u32-toupper.c: Likewise.
41346         * tests/unicase/test-ulc-casecmp.c: Likewise.
41347         * tests/unicase/test-ulc-casecoll.c: Likewise.
41348         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
41349         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
41350         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
41351         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
41352         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
41353         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
41354         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
41355         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
41356         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
41357         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
41358         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
41359         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
41360         * tests/unictype/test-bidi_byname.c: Likewise.
41361         * tests/unictype/test-bidi_name.c: Likewise.
41362         * tests/unictype/test-bidi_of.c: Likewise.
41363         * tests/unictype/test-bidi_test.c: Likewise.
41364         * tests/unictype/test-block_list.c: Likewise.
41365         * tests/unictype/test-block_of.c: Likewise.
41366         * tests/unictype/test-block_test.c: Likewise.
41367         * tests/unictype/test-categ_and.c: Likewise.
41368         * tests/unictype/test-categ_and_not.c: Likewise.
41369         * tests/unictype/test-categ_byname.c: Likewise.
41370         * tests/unictype/test-categ_name.c: Likewise.
41371         * tests/unictype/test-categ_none.c: Likewise.
41372         * tests/unictype/test-categ_of.c: Likewise.
41373         * tests/unictype/test-categ_or.c: Likewise.
41374         * tests/unictype/test-categ_test_withtable.c: Likewise.
41375         * tests/unictype/test-combining.c: Likewise.
41376         * tests/unictype/test-decdigit.c: Likewise.
41377         * tests/unictype/test-digit.c: Likewise.
41378         * tests/unictype/test-mirror.c: Likewise.
41379         * tests/unictype/test-numeric.c: Likewise.
41380         * tests/unictype/test-pr_byname.c: Likewise.
41381         * tests/unictype/test-pr_test.c: Likewise.
41382         * tests/unictype/test-predicate-part1.h: Likewise.
41383         * tests/unictype/test-scripts.c: Likewise.
41384         * tests/unictype/test-sy_c_ident.c: Likewise.
41385         * tests/unictype/test-sy_java_ident.c: Likewise.
41386         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
41387         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
41388         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
41389         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
41390         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
41391         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
41392         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
41393         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
41394         * tests/uninorm/test-canonical-decomposition.c: Likewise.
41395         * tests/uninorm/test-compat-decomposition.c: Likewise.
41396         * tests/uninorm/test-composition.c: Likewise.
41397         * tests/uninorm/test-decomposing-form.c: Likewise.
41398         * tests/uninorm/test-decomposition.c: Likewise.
41399         * tests/uninorm/test-u8-nfc.c: Likewise.
41400         * tests/uninorm/test-u8-nfd.c: Likewise.
41401         * tests/uninorm/test-u8-nfkc.c: Likewise.
41402         * tests/uninorm/test-u8-nfkd.c: Likewise.
41403         * tests/uninorm/test-u8-normcmp.c: Likewise.
41404         * tests/uninorm/test-u8-normcoll.c: Likewise.
41405         * tests/uninorm/test-u16-nfc.c: Likewise.
41406         * tests/uninorm/test-u16-nfd.c: Likewise.
41407         * tests/uninorm/test-u16-nfkc.c: Likewise.
41408         * tests/uninorm/test-u16-nfkd.c: Likewise.
41409         * tests/uninorm/test-u16-normcmp.c: Likewise.
41410         * tests/uninorm/test-u16-normcoll.c: Likewise.
41411         * tests/uninorm/test-u32-nfc.c: Likewise.
41412         * tests/uninorm/test-u32-nfd.c: Likewise.
41413         * tests/uninorm/test-u32-nfkc.c: Likewise.
41414         * tests/uninorm/test-u32-nfkd.c: Likewise.
41415         * tests/uninorm/test-u32-normalize-big.c: Likewise.
41416         * tests/uninorm/test-u32-normcmp.c: Likewise.
41417         * tests/uninorm/test-u32-normcoll.c: Likewise.
41418         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
41419         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
41420         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
41421         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
41422         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
41423         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
41424         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
41425         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
41426         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
41427         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
41428         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
41429         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
41430         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
41431         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
41432         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
41433         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
41434         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
41435         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
41436         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
41437         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
41438         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
41439         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
41440         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
41441         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
41442         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
41443         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
41444         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
41445         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
41446         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
41447         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
41448         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
41449         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
41450         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
41451         * tests/uniwidth/test-u8-strwidth.c: Likewise.
41452         * tests/uniwidth/test-u8-width.c: Likewise.
41453         * tests/uniwidth/test-u16-strwidth.c: Likewise.
41454         * tests/uniwidth/test-u16-width.c: Likewise.
41455         * tests/uniwidth/test-u32-strwidth.c: Likewise.
41456         * tests/uniwidth/test-u32-width.c: Likewise.
41457         * tests/uniwidth/test-uc_width.c: Likewise.
41458         * tests/uniwidth/test-uc_width2.c: Likewise.
41459         * modules/acl-tests (Files): Add tests/macros.h.
41460         * modules/areadlink-tests (Files): Likewise.
41461         * modules/areadlink-with-size-tests (Files): Likewise.
41462         * modules/areadlinkat-tests (Files): Likewise.
41463         * modules/areadlinkat-with-size-tests (Files): Likewise.
41464         * modules/argmatch-tests (Files): Likewise.
41465         * modules/argv-iter-tests (Files): Likewise.
41466         * modules/array-list-tests (Files): Likewise.
41467         * modules/array-mergesort-tests (Files): Likewise.
41468         * modules/array-oset-tests (Files): Likewise.
41469         * modules/avltree-list-tests (Files): Likewise.
41470         * modules/avltree-oset-tests (Files): Likewise.
41471         * modules/avltreehash-list-tests (Files): Likewise.
41472         * modules/base64-tests (Files): Likewise.
41473         * modules/binary-io-tests (Files): Likewise.
41474         * modules/bitrotate-tests (Files): Likewise.
41475         * modules/btowc-tests (Files): Likewise.
41476         * modules/byteswap-tests (Files): Likewise.
41477         * modules/c-ctype-tests (Files): Likewise.
41478         * modules/c-stack-tests (Files): Likewise.
41479         * modules/c-strcase-tests (Files): Likewise.
41480         * modules/c-strcasestr-tests (Files): Likewise.
41481         * modules/c-strstr-tests (Files): Likewise.
41482         * modules/canonicalize-lgpl-tests (Files): Likewise.
41483         * modules/canonicalize-tests (Files): Likewise.
41484         * modules/carray-list-tests (Files): Likewise.
41485         * modules/ceilf-tests (Files): Likewise.
41486         * modules/ceill-tests (Files): Likewise.
41487         * modules/chown-tests (Files): Likewise.
41488         * modules/cloexec-tests (Files): Likewise.
41489         * modules/copy-file-tests (Files): Likewise.
41490         * modules/count-one-bits-tests (Files): Likewise.
41491         * modules/dprintf-posix-tests (Files): Likewise.
41492         * modules/dup2-tests (Files): Likewise.
41493         * modules/dup3-tests (Files): Likewise.
41494         * modules/duplocale-tests (Files): Likewise.
41495         * modules/fbufmode-tests (Files): Likewise.
41496         * modules/fchdir-tests (Files): Likewise.
41497         * modules/fcntl-safer-tests (Files): Likewise.
41498         * modules/fcntl-tests (Files): Likewise.
41499         * modules/fdopendir-tests (Files): Likewise.
41500         * modules/fdutimensat-tests (Files): Likewise.
41501         * modules/fflush-tests (Files): Likewise.
41502         * modules/filevercmp-tests (Files): Likewise.
41503         * modules/flock-tests (Files): Likewise.
41504         * modules/floorf-tests (Files): Likewise.
41505         * modules/floorl-tests (Files): Likewise.
41506         * modules/fnmatch-tests (Files): Likewise.
41507         * modules/fopen-safer-tests (Files): Likewise.
41508         * modules/fopen-tests (Files): Likewise.
41509         * modules/fpending-tests (Files): Likewise.
41510         * modules/fprintf-posix-tests (Files): Likewise.
41511         * modules/fpurge-tests (Files): Likewise.
41512         * modules/freadable-tests (Files): Likewise.
41513         * modules/freadahead-tests (Files): Likewise.
41514         * modules/freading-tests (Files): Likewise.
41515         * modules/freadptr-tests (Files): Likewise.
41516         * modules/freadseek-tests (Files): Likewise.
41517         * modules/freopen-tests (Files): Likewise.
41518         * modules/frexp-nolibm-tests (Files): Likewise.
41519         * modules/frexp-tests (Files): Likewise.
41520         * modules/frexpl-nolibm-tests (Files): Likewise.
41521         * modules/frexpl-tests (Files): Likewise.
41522         * modules/fseek-tests (Files): Likewise.
41523         * modules/fseeko-tests (Files): Likewise.
41524         * modules/fstrcmp-tests (Files): Likewise.
41525         * modules/fsync-tests (Files): Likewise.
41526         * modules/ftell-tests (Files): Likewise.
41527         * modules/ftello-tests (Files): Likewise.
41528         * modules/func-tests (Files): Likewise.
41529         * modules/futimens-tests (Files): Likewise.
41530         * modules/fwritable-tests (Files): Likewise.
41531         * modules/fwriting-tests (Files): Likewise.
41532         * modules/getcwd-tests (Files): Likewise.
41533         * modules/getdate-tests (Files): Likewise.
41534         * modules/getdelim-tests (Files): Likewise.
41535         * modules/getdtablesize-tests (Files): Likewise.
41536         * modules/getgroups-tests (Files): Likewise.
41537         * modules/getline-tests (Files): Likewise.
41538         * modules/getndelim2-tests (Files): Likewise.
41539         * modules/glob-tests (Files): Likewise.
41540         * modules/hash-tests (Files): Likewise.
41541         * modules/i-ring-tests (Files): Likewise.
41542         * modules/iconv-tests (Files): Likewise.
41543         * modules/iconv_open-utf-tests (Files): Likewise.
41544         * modules/idpriv-drop-tests (Files): Likewise.
41545         * modules/idpriv-droptemp-tests (Files): Likewise.
41546         * modules/inet_ntop-tests (Files): Likewise.
41547         * modules/inet_pton-tests (Files): Likewise.
41548         * modules/isblank-tests (Files): Likewise.
41549         * modules/isfinite-tests (Files): Likewise.
41550         * modules/isinf-tests (Files): Likewise.
41551         * modules/isnan-tests (Files): Likewise.
41552         * modules/isnand-nolibm-tests (Files): Likewise.
41553         * modules/isnand-tests (Files): Likewise.
41554         * modules/isnanf-nolibm-tests (Files): Likewise.
41555         * modules/isnanf-tests (Files): Likewise.
41556         * modules/isnanl-nolibm-tests (Files): Likewise.
41557         * modules/isnanl-tests (Files): Likewise.
41558         * modules/lchown-tests (Files): Likewise.
41559         * modules/ldexpl-tests (Files): Likewise.
41560         * modules/link-tests (Files): Likewise.
41561         * modules/linkat-tests (Files): Likewise.
41562         * modules/linked-list-tests (Files): Likewise.
41563         * modules/linkedhash-list-tests (Files): Likewise.
41564         * modules/localename-tests (Files): Likewise.
41565         * modules/lseek-tests (Files): Likewise.
41566         * modules/lstat-tests (Files): Likewise.
41567         * modules/mbmemcasecmp-tests (Files): Likewise.
41568         * modules/mbmemcasecoll-tests (Files): Likewise.
41569         * modules/mbrtowc-tests (Files): Likewise.
41570         * modules/mbscasecmp-tests (Files): Likewise.
41571         * modules/mbscasestr-tests (Files): Likewise.
41572         * modules/mbschr-tests (Files): Likewise.
41573         * modules/mbscspn-tests (Files): Likewise.
41574         * modules/mbsinit-tests (Files): Likewise.
41575         * modules/mbsncasecmp-tests (Files): Likewise.
41576         * modules/mbsnrtowcs-tests (Files): Likewise.
41577         * modules/mbspbrk-tests (Files): Likewise.
41578         * modules/mbspcasecmp-tests (Files): Likewise.
41579         * modules/mbsrchr-tests (Files): Likewise.
41580         * modules/mbsrtowcs-tests (Files): Likewise.
41581         * modules/mbsspn-tests (Files): Likewise.
41582         * modules/mbsstr-tests (Files): Likewise.
41583         * modules/memchr-tests (Files): Likewise.
41584         * modules/memchr2-tests (Files): Likewise.
41585         * modules/memcmp-tests (Files): Likewise.
41586         * modules/memmem-tests (Files): Likewise.
41587         * modules/memrchr-tests (Files): Likewise.
41588         * modules/mkdir-tests (Files): Likewise.
41589         * modules/mkfifo-tests (Files): Likewise.
41590         * modules/mkfifoat-tests (Files): Likewise.
41591         * modules/mknod-tests (Files): Likewise.
41592         * modules/nanosleep-tests (Files): Likewise.
41593         * modules/nl_langinfo-tests (Files): Likewise.
41594         * modules/obstack-printf-tests (Files): Likewise.
41595         * modules/open-tests (Files): Likewise.
41596         * modules/openat-tests (Files): Likewise.
41597         * modules/pipe-filter-gi-tests (Files): Likewise.
41598         * modules/pipe-filter-ii-tests (Files): Likewise.
41599         * modules/pipe2-tests (Files): Likewise.
41600         * modules/popen-safer-tests (Files): Likewise.
41601         * modules/popen-tests (Files): Likewise.
41602         * modules/posixtm-tests (Files): Likewise.
41603         * modules/pread-tests (Files): Likewise.
41604         * modules/printf-frexp-tests (Files): Likewise.
41605         * modules/printf-frexpl-tests (Files): Likewise.
41606         * modules/printf-posix-tests (Files): Likewise.
41607         * modules/priv-set-tests (Files): Likewise.
41608         * modules/quotearg-tests (Files): Likewise.
41609         * modules/random_r-tests (Files): Likewise.
41610         * modules/rawmemchr-tests (Files): Likewise.
41611         * modules/rbtree-list-tests (Files): Likewise.
41612         * modules/rbtree-oset-tests (Files): Likewise.
41613         * modules/rbtreehash-list-tests (Files): Likewise.
41614         * modules/readlink-tests (Files): Likewise.
41615         * modules/remove-tests (Files): Likewise.
41616         * modules/rename-tests (Files): Likewise.
41617         * modules/renameat-tests (Files): Likewise.
41618         * modules/rmdir-tests (Files): Likewise.
41619         * modules/round-tests (Files): Likewise.
41620         * modules/roundf-tests (Files): Likewise.
41621         * modules/roundl-tests (Files): Likewise.
41622         * modules/safe-alloc-tests (Files): Likewise.
41623         * modules/setenv-tests (Files): Likewise.
41624         * modules/sigaction-tests (Files): Likewise.
41625         * modules/signbit-tests (Files): Likewise.
41626         * modules/sleep-tests (Files): Likewise.
41627         * modules/snprintf-posix-tests (Files): Likewise.
41628         * modules/snprintf-tests (Files): Likewise.
41629         * modules/sprintf-posix-tests (Files): Likewise.
41630         * modules/stat-tests (Files): Likewise.
41631         * modules/stat-time-tests (Files): Likewise.
41632         * modules/strcasestr-tests (Files): Likewise.
41633         * modules/strchrnul-tests (Files): Likewise.
41634         * modules/strerror-tests (Files): Likewise.
41635         * modules/striconv-tests (Files): Likewise.
41636         * modules/striconveh-tests (Files): Likewise.
41637         * modules/striconveha-tests (Files): Likewise.
41638         * modules/strsignal-tests (Files): Likewise.
41639         * modules/strstr-tests (Files): Likewise.
41640         * modules/strtod-tests (Files): Likewise.
41641         * modules/strverscmp-tests (Files): Likewise.
41642         * modules/symlink-tests (Files): Likewise.
41643         * modules/symlinkat-tests (Files): Likewise.
41644         * modules/trunc-tests (Files): Likewise.
41645         * modules/truncf-tests (Files): Likewise.
41646         * modules/truncl-tests (Files): Likewise.
41647         * modules/uname-tests (Files): Likewise.
41648         * modules/unicase/cased-tests (Files): Likewise.
41649         * modules/unicase/ignorable-tests (Files): Likewise.
41650         * modules/unicase/locale-language-tests (Files): Likewise.
41651         * modules/unicase/tolower-tests (Files): Likewise.
41652         * modules/unicase/totitle-tests (Files): Likewise.
41653         * modules/unicase/toupper-tests (Files): Likewise.
41654         * modules/unicase/u8-casecmp-tests (Files): Likewise.
41655         * modules/unicase/u8-casecoll-tests (Files): Likewise.
41656         * modules/unicase/u8-casefold-tests (Files): Likewise.
41657         * modules/unicase/u8-is-cased-tests (Files): Likewise.
41658         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
41659         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
41660         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
41661         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
41662         * modules/unicase/u8-tolower-tests (Files): Likewise.
41663         * modules/unicase/u8-totitle-tests (Files): Likewise.
41664         * modules/unicase/u8-toupper-tests (Files): Likewise.
41665         * modules/unicase/u16-casecmp-tests (Files): Likewise.
41666         * modules/unicase/u16-casecoll-tests (Files): Likewise.
41667         * modules/unicase/u16-casefold-tests (Files): Likewise.
41668         * modules/unicase/u16-is-cased-tests (Files): Likewise.
41669         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
41670         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
41671         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
41672         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
41673         * modules/unicase/u16-tolower-tests (Files): Likewise.
41674         * modules/unicase/u16-totitle-tests (Files): Likewise.
41675         * modules/unicase/u16-toupper-tests (Files): Likewise.
41676         * modules/unicase/u32-casecmp-tests (Files): Likewise.
41677         * modules/unicase/u32-casecoll-tests (Files): Likewise.
41678         * modules/unicase/u32-casefold-tests (Files): Likewise.
41679         * modules/unicase/u32-is-cased-tests (Files): Likewise.
41680         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
41681         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
41682         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
41683         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
41684         * modules/unicase/u32-tolower-tests (Files): Likewise.
41685         * modules/unicase/u32-totitle-tests (Files): Likewise.
41686         * modules/unicase/u32-toupper-tests (Files): Likewise.
41687         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
41688         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
41689         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
41690         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
41691         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
41692         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
41693         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
41694         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
41695         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
41696         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
41697         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
41698         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
41699         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
41700         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
41701         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
41702         * modules/unictype/bidicategory-name-tests (Files): Likewise.
41703         * modules/unictype/bidicategory-of-tests (Files): Likewise.
41704         * modules/unictype/bidicategory-test-tests (Files): Likewise.
41705         * modules/unictype/block-list-tests (Files): Likewise.
41706         * modules/unictype/block-of-tests (Files): Likewise.
41707         * modules/unictype/block-test-tests (Files): Likewise.
41708         * modules/unictype/category-C-tests (Files): Likewise.
41709         * modules/unictype/category-Cc-tests (Files): Likewise.
41710         * modules/unictype/category-Cf-tests (Files): Likewise.
41711         * modules/unictype/category-Cn-tests (Files): Likewise.
41712         * modules/unictype/category-Co-tests (Files): Likewise.
41713         * modules/unictype/category-Cs-tests (Files): Likewise.
41714         * modules/unictype/category-L-tests (Files): Likewise.
41715         * modules/unictype/category-Ll-tests (Files): Likewise.
41716         * modules/unictype/category-Lm-tests (Files): Likewise.
41717         * modules/unictype/category-Lo-tests (Files): Likewise.
41718         * modules/unictype/category-Lt-tests (Files): Likewise.
41719         * modules/unictype/category-Lu-tests (Files): Likewise.
41720         * modules/unictype/category-M-tests (Files): Likewise.
41721         * modules/unictype/category-Mc-tests (Files): Likewise.
41722         * modules/unictype/category-Me-tests (Files): Likewise.
41723         * modules/unictype/category-Mn-tests (Files): Likewise.
41724         * modules/unictype/category-N-tests (Files): Likewise.
41725         * modules/unictype/category-Nd-tests (Files): Likewise.
41726         * modules/unictype/category-Nl-tests (Files): Likewise.
41727         * modules/unictype/category-No-tests (Files): Likewise.
41728         * modules/unictype/category-P-tests (Files): Likewise.
41729         * modules/unictype/category-Pc-tests (Files): Likewise.
41730         * modules/unictype/category-Pd-tests (Files): Likewise.
41731         * modules/unictype/category-Pe-tests (Files): Likewise.
41732         * modules/unictype/category-Pf-tests (Files): Likewise.
41733         * modules/unictype/category-Pi-tests (Files): Likewise.
41734         * modules/unictype/category-Po-tests (Files): Likewise.
41735         * modules/unictype/category-Ps-tests (Files): Likewise.
41736         * modules/unictype/category-S-tests (Files): Likewise.
41737         * modules/unictype/category-Sc-tests (Files): Likewise.
41738         * modules/unictype/category-Sk-tests (Files): Likewise.
41739         * modules/unictype/category-Sm-tests (Files): Likewise.
41740         * modules/unictype/category-So-tests (Files): Likewise.
41741         * modules/unictype/category-Z-tests (Files): Likewise.
41742         * modules/unictype/category-Zl-tests (Files): Likewise.
41743         * modules/unictype/category-Zp-tests (Files): Likewise.
41744         * modules/unictype/category-Zs-tests (Files): Likewise.
41745         * modules/unictype/category-and-not-tests (Files): Likewise.
41746         * modules/unictype/category-and-tests (Files): Likewise.
41747         * modules/unictype/category-byname-tests (Files): Likewise.
41748         * modules/unictype/category-name-tests (Files): Likewise.
41749         * modules/unictype/category-none-tests (Files): Likewise.
41750         * modules/unictype/category-of-tests (Files): Likewise.
41751         * modules/unictype/category-or-tests (Files): Likewise.
41752         * modules/unictype/category-test-withtable-tests (Files): Likewise.
41753         * modules/unictype/combining-class-tests (Files): Likewise.
41754         * modules/unictype/ctype-alnum-tests (Files): Likewise.
41755         * modules/unictype/ctype-alpha-tests (Files): Likewise.
41756         * modules/unictype/ctype-blank-tests (Files): Likewise.
41757         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
41758         * modules/unictype/ctype-digit-tests (Files): Likewise.
41759         * modules/unictype/ctype-graph-tests (Files): Likewise.
41760         * modules/unictype/ctype-lower-tests (Files): Likewise.
41761         * modules/unictype/ctype-print-tests (Files): Likewise.
41762         * modules/unictype/ctype-punct-tests (Files): Likewise.
41763         * modules/unictype/ctype-space-tests (Files): Likewise.
41764         * modules/unictype/ctype-upper-tests (Files): Likewise.
41765         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
41766         * modules/unictype/decimal-digit-tests (Files): Likewise.
41767         * modules/unictype/digit-tests (Files): Likewise.
41768         * modules/unictype/mirror-tests (Files): Likewise.
41769         * modules/unictype/numeric-tests (Files): Likewise.
41770         * modules/unictype/property-alphabetic-tests (Files): Likewise.
41771         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
41772         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
41773         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
41774         Likewise.
41775         * modules/unictype/property-bidi-block-separator-tests (Files):
41776         Likewise.
41777         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
41778         Likewise.
41779         * modules/unictype/property-bidi-common-separator-tests (Files):
41780         Likewise.
41781         * modules/unictype/property-bidi-control-tests (Files): Likewise.
41782         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
41783         Likewise.
41784         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
41785         Likewise.
41786         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
41787         Likewise.
41788         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
41789         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
41790         Likewise.
41791         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
41792         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
41793         Likewise.
41794         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
41795         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
41796         * modules/unictype/property-bidi-segment-separator-tests (Files):
41797         Likewise.
41798         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
41799         * modules/unictype/property-byname-tests (Files): Likewise.
41800         * modules/unictype/property-combining-tests (Files): Likewise.
41801         * modules/unictype/property-composite-tests (Files): Likewise.
41802         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
41803         * modules/unictype/property-dash-tests (Files): Likewise.
41804         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
41805         * modules/unictype/property-default-ignorable-code-point-tests (Files):
41806         Likewise.
41807         * modules/unictype/property-deprecated-tests (Files): Likewise.
41808         * modules/unictype/property-diacritic-tests (Files): Likewise.
41809         * modules/unictype/property-extender-tests (Files): Likewise.
41810         * modules/unictype/property-format-control-tests (Files): Likewise.
41811         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
41812         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
41813         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
41814         * modules/unictype/property-hex-digit-tests (Files): Likewise.
41815         * modules/unictype/property-hyphen-tests (Files): Likewise.
41816         * modules/unictype/property-id-continue-tests (Files): Likewise.
41817         * modules/unictype/property-id-start-tests (Files): Likewise.
41818         * modules/unictype/property-ideographic-tests (Files): Likewise.
41819         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
41820         * modules/unictype/property-ids-trinary-operator-tests (Files):
41821         Likewise.
41822         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
41823         * modules/unictype/property-iso-control-tests (Files): Likewise.
41824         * modules/unictype/property-join-control-tests (Files): Likewise.
41825         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
41826         * modules/unictype/property-line-separator-tests (Files): Likewise.
41827         * modules/unictype/property-logical-order-exception-tests (Files):
41828         Likewise.
41829         * modules/unictype/property-lowercase-tests (Files): Likewise.
41830         * modules/unictype/property-math-tests (Files): Likewise.
41831         * modules/unictype/property-non-break-tests (Files): Likewise.
41832         * modules/unictype/property-not-a-character-tests (Files): Likewise.
41833         * modules/unictype/property-numeric-tests (Files): Likewise.
41834         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
41835         * modules/unictype/property-other-default-ignorable-code-point-tests
41836         (Files): Likewise.
41837         * modules/unictype/property-other-grapheme-extend-tests (Files):
41838         Likewise.
41839         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
41840         * modules/unictype/property-other-id-start-tests (Files): Likewise.
41841         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
41842         * modules/unictype/property-other-math-tests (Files): Likewise.
41843         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
41844         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
41845         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
41846         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
41847         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
41848         * modules/unictype/property-private-use-tests (Files): Likewise.
41849         * modules/unictype/property-punctuation-tests (Files): Likewise.
41850         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
41851         * modules/unictype/property-radical-tests (Files): Likewise.
41852         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
41853         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
41854         * modules/unictype/property-space-tests (Files): Likewise.
41855         * modules/unictype/property-terminal-punctuation-tests (Files):
41856         Likewise.
41857         * modules/unictype/property-test-tests (Files): Likewise.
41858         * modules/unictype/property-titlecase-tests (Files): Likewise.
41859         * modules/unictype/property-unassigned-code-value-tests (Files):
41860         Likewise.
41861         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
41862         * modules/unictype/property-uppercase-tests (Files): Likewise.
41863         * modules/unictype/property-variation-selector-tests (Files): Likewise.
41864         * modules/unictype/property-white-space-tests (Files): Likewise.
41865         * modules/unictype/property-xid-continue-tests (Files): Likewise.
41866         * modules/unictype/property-xid-start-tests (Files): Likewise.
41867         * modules/unictype/property-zero-width-tests (Files): Likewise.
41868         * modules/unictype/scripts-tests (Files): Likewise.
41869         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
41870         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
41871         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
41872         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
41873         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
41874         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
41875         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
41876         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
41877         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
41878         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
41879         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
41880         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
41881         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
41882         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
41883         * modules/uninorm/composition-tests (Files): Likewise.
41884         * modules/uninorm/decomposing-form-tests (Files): Likewise.
41885         * modules/uninorm/decomposition-tests (Files): Likewise.
41886         * modules/uninorm/filter-tests (Files): Likewise.
41887         * modules/uninorm/nfc-tests (Files): Likewise.
41888         * modules/uninorm/nfd-tests (Files): Likewise.
41889         * modules/uninorm/nfkc-tests (Files): Likewise.
41890         * modules/uninorm/nfkd-tests (Files): Likewise.
41891         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
41892         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
41893         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
41894         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
41895         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
41896         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
41897         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
41898         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
41899         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
41900         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
41901         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
41902         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
41903         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
41904         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
41905         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
41906         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
41907         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
41908         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
41909         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
41910         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
41911         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
41912         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
41913         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
41914         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
41915         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
41916         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
41917         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
41918         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
41919         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
41920         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
41921         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
41922         * modules/uniwidth/u8-width-tests (Files): Likewise.
41923         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
41924         * modules/uniwidth/u16-width-tests (Files): Likewise.
41925         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
41926         * modules/uniwidth/u32-width-tests (Files): Likewise.
41927         * modules/uniwidth/width-tests (Files): Likewise.
41928         * modules/unlink-tests (Files): Likewise.
41929         * modules/unsetenv-tests (Files): Likewise.
41930         * modules/usleep-tests (Files): Likewise.
41931         * modules/utimens-tests (Files): Likewise.
41932         * modules/utimensat-tests (Files): Likewise.
41933         * modules/vasnprintf-posix-tests (Files): Likewise.
41934         * modules/vasnprintf-tests (Files): Likewise.
41935         * modules/vasprintf-posix-tests (Files): Likewise.
41936         * modules/vasprintf-tests (Files): Likewise.
41937         * modules/vdprintf-posix-tests (Files): Likewise.
41938         * modules/vfprintf-posix-tests (Files): Likewise.
41939         * modules/vprintf-posix-tests (Files): Likewise.
41940         * modules/vsnprintf-posix-tests (Files): Likewise.
41941         * modules/vsnprintf-tests (Files): Likewise.
41942         * modules/vsprintf-posix-tests (Files): Likewise.
41943         * modules/wcrtomb-tests (Files): Likewise.
41944         * modules/wcsnrtombs-tests (Files): Likewise.
41945         * modules/wcsrtombs-tests (Files): Likewise.
41946         * modules/wctype-tests (Files): Likewise.
41947         * modules/wcwidth-tests (Files): Likewise.
41948         * modules/xmemdup0-tests (Files): Likewise.
41949         * modules/xprintf-posix-tests (Files): Likewise.
41950         * modules/xvasprintf-tests (Files): Likewise.
41951
41952 2009-12-24  Eric Blake  <ebb9@byu.net>
41953
41954         test-nanosleep: fix typo
41955         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
41956         patch.
41957         Reported by Bruno Haible.
41958
41959 2009-12-24  Bruno Haible  <bruno@clisp.org>
41960
41961         Reduce namespace pollution on glibc systems.
41962         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
41963         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
41964         systems.
41965         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
41966         <getopt.h> on glibc systems.
41967         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
41968         systems.
41969         * lib/fcntl.c: Include <unistd.h> here instead.
41970
41971 2009-12-24  Bruno Haible  <bruno@clisp.org>
41972
41973         * lib/stdlib.in.h (includes): Fix typo in today's commit.
41974
41975 2009-12-24  Eric Blake  <ebb9@byu.net>
41976
41977         tests: add signature checks
41978         * tests/signature.h (SIGNATURE_CHECK): New file.
41979         * modules/atexit-tests (Files): Use it.
41980         * modules/btowc-tests (Files): Likewise.
41981         * modules/canonicalize-lgpl-tests (Files): Likewise.
41982         * modules/ceilf-tests (Files): Likewise.
41983         * modules/ceill-tests (Files): Likewise.
41984         * modules/chown-tests (Files): Likewise.
41985         * modules/dprintf-posix-tests (Files): Likewise.
41986         * modules/dup2-tests (Files): Likewise.
41987         * modules/dup3-tests (Files): Likewise.
41988         * modules/duplocale-tests (Files): Likewise.
41989         * modules/fchdir-tests (Files): Likewise.
41990         * modules/fcntl-tests (Files): Likewise.
41991         * modules/fdopendir-tests (Files): Likewise.
41992         * modules/fflush-tests (Files): Likewise.
41993         * modules/flock-tests (Files): Likewise.
41994         * modules/floorf-tests (Files): Likewise.
41995         * modules/floorl-tests (Files): Likewise.
41996         * modules/fnmatch-tests (Files): Likewise.
41997         * modules/fopen-tests (Files): Likewise.
41998         * modules/fprintf-posix-tests (Files): Likewise.
41999         * modules/freopen-tests (Files): Likewise.
42000         * modules/frexp-nolibm-tests (Files): Likewise.
42001         * modules/frexp-tests (Files): Likewise.
42002         * modules/frexpl-nolibm-tests (Files): Likewise.
42003         * modules/frexpl-tests (Files): Likewise.
42004         * modules/fseek-tests (Files): Likewise.
42005         * modules/fseeko-tests (Files): Likewise.
42006         * modules/fsync-tests (Files): Likewise.
42007         * modules/ftell-tests (Files): Likewise.
42008         * modules/ftello-tests (Files): Likewise.
42009         * modules/futimens-tests (Files): Likewise.
42010         * modules/getaddrinfo-tests (Files): Likewise.
42011         * modules/getcwd-tests (Files): Likewise.
42012         * modules/getdelim-tests (Files): Likewise.
42013         * modules/getdtablesize-tests (Files): Likewise.
42014         * modules/getgroups-tests (Files): Likewise.
42015         * modules/gethostname-tests (Files): Likewise.
42016         * modules/getline-tests (Files): Likewise.
42017         * modules/getopt-posix-tests (Files): Likewise.
42018         * modules/gettimeofday-tests (Files): Likewise.
42019         * modules/glob-tests (Files): Likewise.
42020         * modules/iconv-tests (Files): Likewise.
42021         * modules/inet_ntop-tests (Files): Likewise.
42022         * modules/inet_pton-tests (Files): Likewise.
42023         * modules/isblank-tests (Files): Likewise.
42024         * modules/lchown-tests (Files): Likewise.
42025         * modules/ldexpl-tests (Files): Likewise.
42026         * modules/link-tests (Files): Likewise.
42027         * modules/linkat-tests (Files): Likewise.
42028         * modules/lseek-tests (Files): Likewise.
42029         * modules/lstat-tests (Files): Likewise.
42030         * modules/mbrtowc-tests (Files): Likewise.
42031         * modules/mbsinit-tests (Files): Likewise.
42032         * modules/mbsnrtowcs-tests (Files): Likewise.
42033         * modules/mbsrtowcs-tests (Files): Likewise.
42034         * modules/memchr-tests (Files): Likewise.
42035         * modules/memcmp-tests (Files): Likewise.
42036         * modules/memmem-tests (Files): Likewise.
42037         * modules/memrchr-tests (Files): Likewise.
42038         * modules/mkdir-tests (Files): Likewise.
42039         * modules/mkfifo-tests (Files): Likewise.
42040         * modules/mkfifoat-tests (Files): Likewise.
42041         * modules/mknod-tests (Files): Likewise.
42042         * modules/nanosleep-tests (Files): Likewise.
42043         * modules/nl_langinfo-tests (Files): Likewise.
42044         * modules/obstack-printf-tests (Files): Likewise.
42045         * modules/open-tests (Files): Likewise.
42046         * modules/openat-tests (Files): Likewise.
42047         * modules/perror-tests (Files): Likewise.
42048         * modules/pipe2-tests (Files): Likewise.
42049         * modules/poll-tests (Files): Likewise.
42050         * modules/popen-tests (Files): Likewise.
42051         * modules/posix_spawn-tests (Files): Likewise.
42052         * modules/posix_spawnp-tests (Files): Likewise.
42053         * modules/pread-tests (Files): Likewise.
42054         * modules/printf-posix-tests (Files): Likewise.
42055         * modules/pty-tests (Files): Likewise.
42056         * modules/random_r-tests (Files): Likewise.
42057         * modules/rawmemchr-tests (Files): Likewise.
42058         * modules/readlink-tests (Files): Likewise.
42059         * modules/remove-tests (Files): Likewise.
42060         * modules/rename-tests (Files): Likewise.
42061         * modules/renameat-tests (Files): Likewise.
42062         * modules/rmdir-tests (Files): Likewise.
42063         * modules/round-tests (Files): Likewise.
42064         * modules/roundf-tests (Files): Likewise.
42065         * modules/roundl-tests (Files): Likewise.
42066         * modules/select-tests (Files): Likewise.
42067         * modules/setenv-tests (Files): Likewise.
42068         * modules/sigaction-tests (Files): Likewise.
42069         * modules/sleep-tests (Files): Likewise.
42070         * modules/snprintf-posix-tests (Files): Likewise.
42071         * modules/snprintf-tests (Files): Likewise.
42072         * modules/sprintf-posix-tests (Files): Likewise.
42073         * modules/stat-tests (Files): Likewise.
42074         * modules/strcasestr-tests (Files): Likewise.
42075         * modules/strchrnul-tests (Files): Likewise.
42076         * modules/strerror-tests (Files): Likewise.
42077         * modules/strsignal-tests (Files): Likewise.
42078         * modules/strstr-tests (Files): Likewise.
42079         * modules/strtod-tests (Files): Likewise.
42080         * modules/strverscmp-tests (Files): Likewise.
42081         * modules/symlink-tests (Files): Likewise.
42082         * modules/symlinkat-tests (Files): Likewise.
42083         * modules/times-tests (Files): Likewise.
42084         * modules/trunc-tests (Files): Likewise.
42085         * modules/truncf-tests (Files): Likewise.
42086         * modules/truncl-tests (Files): Likewise.
42087         * modules/tsearch-tests (Files): Likewise.
42088         * modules/uname-tests (Files): Likewise.
42089         * modules/unlink-tests (Files): Likewise.
42090         * modules/unsetenv-tests (Files): Likewise.
42091         * modules/usleep-tests (Files): Likewise.
42092         * modules/utimensat-tests (Files): Likewise.
42093         * modules/vasprintf-tests (Files): Likewise.
42094         * modules/vdprintf-posix-tests (Files): Likewise.
42095         * modules/vfprintf-posix-tests (Files): Likewise.
42096         * modules/vprintf-posix-tests (Files): Likewise.
42097         * modules/vsnprintf-posix-tests (Files): Likewise.
42098         * modules/vsnprintf-tests (Files): Likewise.
42099         * modules/vsprintf-posix-tests (Files): Likewise.
42100         * modules/wcrtomb-tests (Files): Likewise.
42101         * modules/wcsnrtombs-tests (Files): Likewise.
42102         * modules/wcsrtombs-tests (Files): Likewise.
42103         * modules/wcwidth-tests (Files): Likewise.
42104         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
42105         * tests/test-isinf.c (isinf): Likewise.
42106         * tests/test-isnan.c (isnan): Likewise.
42107         * tests/test-signbit.c (signbit): Likewise.
42108         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
42109         declaration, either as macro or with correct signature.
42110         (select): Ensure function under test is declared with correct
42111         signature in correct header.
42112         * tests/test-atexit.c (atexit): Likewise.
42113         * tests/test-btowc.c (btowc): Likewise.
42114         * tests/test-canonicalize-lgpl.c (realpath)
42115         (canonicalize_file_name): Likewise.
42116         * tests/test-ceilf1.c (ceilf): Likewise.
42117         * tests/test-ceill.c (ceill): Likewise.
42118         * tests/test-chown.c (chown): Likewise.
42119         * tests/test-dprintf-posix.c (dprintf): Likewise.
42120         * tests/test-dup2.c (dup2): Likewise.
42121         * tests/test-dup3.c (dup3): Likewise.
42122         * tests/test-duplocale.c (duplocale): Likewise.
42123         * tests/test-fchdir.c (fchdir): Likewise.
42124         * tests/test-fchownat.c (fchownat): Likewise.
42125         * tests/test-fcntl.c (fcntl): Likewise.
42126         * tests/test-fdopendir.c (fdopendir): Likewise.
42127         * tests/test-fflush.c (fflush): Likewise.
42128         * tests/test-flock.c (flock): Likewise.
42129         * tests/test-floorf1.c (floorf): Likewise.
42130         * tests/test-floorl.c (floorl): Likewise.
42131         * tests/test-fnmatch.c (fnmatch): Likewise.
42132         * tests/test-fopen.c (fopen): Likewise.
42133         * tests/test-fprintf-posix.c (fprintf): Likewise.
42134         * tests/test-freopen.c (freopen): Likewise.
42135         * tests/test-frexp.c (frexp): Likewise.
42136         * tests/test-frexpl.c (frexpl): Likewise.
42137         * tests/test-fseek.c (fseek): Likewise.
42138         * tests/test-fseeko.c (fseeko): Likewise.
42139         * tests/test-fstatat.c (fstatat): Likewise.
42140         * tests/test-fsync.c (fsync): Likewise.
42141         * tests/test-ftell.c (ftell): Likewise.
42142         * tests/test-ftello.c (ftello): Likewise.
42143         * tests/test-futimens.c (futimens): Likewise.
42144         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
42145         (gai_strerror): Likewise.
42146         * tests/test-getcwd.c (getcwd): Likewise.
42147         * tests/test-getdelim.c (getdelim): Likewise.
42148         * tests/test-getdtablesize.c (getdtablesize): Likewise.
42149         * tests/test-getgroups.c (getgroups): Likewise.
42150         * tests/test-gethostname.c (gethostname): Likewise.
42151         * tests/test-getline.c (getline): Likewise.
42152         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
42153         Likewise.
42154         * tests/test-gettimeofday.c (gettimeofday): Likewise.
42155         * tests/test-glob.c (glob, globfree): Likewise.
42156         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
42157         * tests/test-inet_ntop.c (inet_ntop): Likewise.
42158         * tests/test-inet_pton.c (inet_pton): Likewise.
42159         * tests/test-isblank.c (isblank): Likewise.
42160         * tests/test-lchown.c (lchown): Likewise.
42161         * tests/test-ldexpl.c (ldexpl): Likewise.
42162         * tests/test-link.c (link): Likewise.
42163         * tests/test-linkat.c (linkat): Likewise.
42164         * tests/test-lseek.c (lseek): Likewise.
42165         * tests/test-lstat.c (lstat): Likewise.
42166         * tests/test-mbrtowc.c (mbrtowc): Likewise.
42167         * tests/test-mbsinit.c (mbsinit): Likewise.
42168         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
42169         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
42170         * tests/test-memchr.c (memchr): Likewise.
42171         * tests/test-memcmp.c (memcmp): Likewise.
42172         * tests/test-memmem.c (memmem): Likewise.
42173         * tests/test-memrchr.c (memrchr): Likewise.
42174         * tests/test-mkdir.c (mkdir): Likewise.
42175         * tests/test-mkdirat.c (mkdirat): Likewise.
42176         * tests/test-mkfifo.c (mkfifo): Likewise.
42177         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
42178         * tests/test-mknod.c (mknod): Likewise.
42179         * tests/test-nanosleep.c (nanosleep): Likewise.
42180         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
42181         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
42182         Likewise.
42183         * tests/test-open.c (open): Likewise.
42184         * tests/test-openat.c (openat): Likewise.
42185         * tests/test-perror.c (perror): Likewise.
42186         * tests/test-pipe2.c (pipe2): Likewise.
42187         * tests/test-poll.c (poll): Likewise.
42188         * tests/test-popen.c (popen, pclose): Likewise.
42189         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
42190         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
42191         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
42192         (posix_spawn_file_actions_destroy)
42193         (posix_spawn_file_actions_addclose)
42194         (posix_spawn_file_actions_addopen)
42195         (posix_spawn_file_actions_adddup2): Likewise.
42196         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
42197         * tests/test-pread.c (pread): Likewise.
42198         * tests/test-printf-posix.c (printf): Likewise.
42199         * tests/test-pty.c (openpty, forkpty): Likewise.
42200         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
42201         (random_r): Likewise.
42202         * tests/test-rawmemchr.c (rawmemchr): Likewise.
42203         * tests/test-readlink.c (readlink): Likewise.
42204         * tests/test-remove.c (remove): Likewise.
42205         * tests/test-rename.c (rename): Likewise.
42206         * tests/test-renameat.c (renameat): Likewise.
42207         * tests/test-rmdir.c (rmdir): Likewise.
42208         * tests/test-round1.c (round): Likewise.
42209         * tests/test-roundf1.c (roundf): Likewise.
42210         * tests/test-roundl.c (roundl): Likewise.
42211         * tests/test-setenv.c (setenv): Likewise.
42212         * tests/test-sigaction.c (sigaction): Likewise.
42213         * tests/test-sleep.c (sleep): Likewise.
42214         * tests/test-snprintf.c (snprintf): Likewise.
42215         * tests/test-sprintf-posix.c (sprintf): Likewise.
42216         * tests/test-stat.c (stat): Likewise.
42217         * tests/test-stpncpy.c (stpncpy): Likewise.
42218         * tests/test-strcasestr.c (strcasestr): Likewise.
42219         * tests/test-strchrnul.c (strchrnul): Likewise.
42220         * tests/test-strerror.c (strerror): Likewise.
42221         * tests/test-strsignal.c (strsignal): Likewise.
42222         * tests/test-strstr.c (strstr): Likewise.
42223         * tests/test-strtod.c (strtod): Likewise.
42224         * tests/test-strverscmp.c (strverscmp): Likewise.
42225         * tests/test-symlink.c (symlink): Likewise.
42226         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
42227         * tests/test-times.c (times): Likewise.
42228         * tests/test-trunc1.c (trunc): Likewise.
42229         * tests/test-truncf1.c (truncf): Likewise.
42230         * tests/test-truncl.c (truncl): Likewise.
42231         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
42232         Likewise.
42233         * tests/test-uname.c (uname): Likewise.
42234         * tests/test-unlink.c (unlink): Likewise.
42235         * tests/test-unlinkat.c (unlinkat): Likewise.
42236         * tests/test-unsetenv.c (unsetenv): Likewise.
42237         * tests/test-usleep.c (usleep): Likewise.
42238         * tests/test-utimensat.c (utimensat): Likewise.
42239         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
42240         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
42241         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
42242         * tests/test-vprintf-posix.c (vprintf): Likewise.
42243         * tests/test-vsnprintf.c (vsnprintf): Likewise.
42244         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
42245         * tests/test-wcrtomb.c (wcrtomb): Likewise.
42246         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
42247         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
42248         * tests/test-wcwidth.c (wcwidth): Likewise.
42249
42250         build: pull in conditional headers during GNULIB_POSIXCHECK
42251         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
42252         definitions from any conditionally-included headers.
42253         * lib/stdlib.in.h (includes): Likewise.
42254         * lib/unistd.in.h (includes): Likewise.
42255
42256 2009-12-24  Bruno Haible  <bruno@clisp.org>
42257
42258         * tests/test-argv-iter.c: Include header file being tested immediately
42259         after config.h.
42260         * tests/test-base64.c: Likewise.
42261         * tests/test-flock.c: Likewise.
42262         * tests/test-fsync.c: Likewise.
42263         * tests/test-getdate.c: Likewise.
42264         * tests/test-getndelim2.c: Likewise.
42265         * tests/test-isfinite.c: Likewise.
42266         * tests/test-isinf.c: Likewise.
42267         * tests/test-strerror.c: Likewise.
42268         * tests/test-strsignal.c: Likewise.
42269
42270 2009-12-23  Eric Blake  <ebb9@byu.net>
42271
42272         unistd: work around cygwin bug
42273         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
42274         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
42275         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
42276
42277 2009-12-23  Bruno Haible  <bruno@clisp.org>
42278
42279         localename: More tests.
42280         * tests/test-localename.c (SIZEOF): New macro.
42281         (categories): New variable.
42282         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
42283         test_locale_name_default): Add test w.r.t. thread locale.
42284         (test_locale_name_thread): New function.
42285         (main): Invoke it.
42286
42287         localename: Make aware of thread locale.
42288         * lib/localename.h (gl_locale_name_thread): New declaration.
42289         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
42290         behaviour with respect to thread locale.
42291         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
42292         <langinfo.h>, glthread/lock.h.
42293         (SIZE_BITS): New macro.
42294         (string_hash): New function.
42295         (struct hash_node): New type.
42296         (HASH_TABLE_SIZE): New macro.
42297         (struniq_hash_table, struniq_lock): New variables.
42298         (struniq): New function.
42299         (gl_locale_name_thread): New function.
42300         (gl_locale_name): Invoke it.
42301         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
42302         * modules/localename (Depends-on): Add lock.
42303         Reported by Mike Gran <spk121@yahoo.com>.
42304
42305 2009-12-23  Eric Blake  <ebb9@byu.net>
42306
42307         va-args: new module
42308         * modules/va-args: New file.
42309         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
42310         * MODULES.html.sh (Core language properties): Mention it.
42311
42312         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
42313         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
42314         named alias for __attribute__((__unused__)).
42315         * lib/chown.c: Update client.
42316         * lib/fchmodat.c: Likewise.
42317         * lib/fts.c: Likewise.
42318         * lib/getdate.y: Likewise.
42319         * lib/getgroups.c: Likewise.
42320         * lib/getopt.c: Likewise.
42321         * lib/getugroups.c: Likewise.
42322         * lib/mkdir.c: Likewise.
42323         * lib/mkfifo.c: Likewise.
42324         * lib/mkfifoat.c: Likewise.
42325         * lib/mknod.c: Likewise.
42326         * lib/mknodat.c: Likewise.
42327         * lib/readlink.c: Likewise.
42328         * lib/se-context.in.h: Likewise.
42329         * lib/se-selinux.in.h: Likewise.
42330         * lib/sockets.c: Likewise.
42331         * lib/symlink.c: Likewise.
42332         * lib/symlinkat.c: Likewise.
42333         * lib/unicodeio.c: Likewise.
42334         * lib/unistr.h: Likewise.
42335         * tests/test-areadlink.c: Likewise.
42336         * tests/test-areadlinkat.c: Likewise.
42337         * tests/test-filenamecat.c: Likewise.
42338         * tests/test-fseeko.c: Likewise.
42339         * tests/test-ftello.c: Likewise.
42340         * tests/test-getdate.c: Likewise.
42341         * tests/test-getgroups.c: Likewise.
42342         * tests/test-gethostname.c: Likewise.
42343         * tests/test-quotearg.c: Likewise.
42344         * tests/test-version-etc.c: Likewise.
42345         * tests/test-xalloc-die.c: Likewise.
42346         * tests/test-xfprintf-posix.c: Likewise.
42347         * tests/test-xprintf-posix.c: Likewise.
42348         * tests/test-xvasprintf.c: Likewise.
42349
42350         tests: avoid compiler warnings
42351         * tests/test-fcntl.c (main): Delete unused parameters.
42352         * tests/test-freopen-safer.c (main): Likewise.
42353         * tests/test-xalloc-die.c (main): Mark unused parameters.
42354         * tests/test-fseeko.c (main): Likewise.
42355         * tests/test-ftello.c (main): Likewise.
42356         * tests/test-nanosleep.c (main): Avoid declaration warning.
42357         * tests/test-sleep.c (main): Likewise.
42358         * tests/test-unsetenv.c (main): Silence warning about string
42359         literal.
42360         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
42361
42362 2009-12-23  Bruno Haible  <bruno@clisp.org>
42363
42364         * tests/test-localename.c (test_locale_name): New function, extracted
42365         from main. Also test mixed situations.
42366         (test_locale_name_posix, test_locale_name_environ,
42367         test_locale_name_default): New functions.
42368         (main): Invoke them all.
42369         * modules/localename-tests (configure.ac): Test for newlocale.
42370
42371 2009-12-23  Bruno Haible  <bruno@clisp.org>
42372
42373         unistd: Ensure getcwd gets declared before being overridden.
42374         * lib/unistd.in.h: Conditionally include <io.h>.
42375
42376 2009-12-22  Bruno Haible  <bruno@clisp.org>
42377
42378         wchar: Diagnose broken combination of glibc and gcc versions and flags.
42379         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
42380         (gl_WCHAR_H): Invoke it.
42381         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
42382         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
42383         Reported by Karl Berry <karl@freefriends.org>.
42384
42385 2009-12-22  Eric Blake  <ebb9@byu.net>
42386
42387         math, unistd: avoid redundant includes
42388         * lib/math.in.h (isnan): No need to re-include <math.h>.
42389         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
42390
42391         getsubopt: work around cygwin bug
42392         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
42393         avoid conflicting with system getsubopt.
42394         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
42395         bug.
42396
42397         getopt: synchronize from glibc
42398         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
42399         parameter order.  Adjust all callers.
42400         (_getopt_internal_r, main): Adjust quoting in error messages.
42401         Drop considerations for outdated POSIX 1003.2 error message.
42402         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
42403         callers.
42404         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
42405
42406         test-getopt: test stderr behavior
42407         * modules/getopt-posix-tests (Depends-on): Add dup2.
42408         * tests/test-getopt.c (ASSERT): Avoid stderr.
42409         (main): Move stderr to a temporary file.
42410         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
42411         Instead, add parameter to inform caller if output occurred.
42412         (test_getopt): Adjust all existing tests to expect silence, and
42413         add new tests of leading ":".
42414         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
42415         glibc shortcomings with leading "-:" or "+:" in optstring.
42416         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
42417         Likewise.
42418         * doc/posix-functions/getopt.texi (getopt): Likewise.
42419
42420         test-getopt: enhance test
42421         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
42422         supports optind=0.
42423         * tests/test-getopt.c (OPTIND_MIN): Move...
42424         * tests/test-getopt.h (OPTIND_MIN): ...here.
42425         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
42426         Require that optind=0 works, since modern BSD supports it in
42427         addition to optreset, and since coreutils expects it.
42428         (test_getopt_long_only): New test.
42429         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
42430         glibc shortcomings with 'W;', and enforcement of optind=0.
42431         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
42432         Likewise.
42433
42434 2009-12-21  Bruno Haible  <bruno@clisp.org>
42435
42436         localename: Improvements for MacOS X and Cygwin.
42437         * lib/localename.h (gl_locale_name_environ): New declaration.
42438         * lib/localename.c (gl_locale_name_environ): New function, extracted from
42439         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
42440         (gl_locale_name_posix): Invoke it.
42441         (gl_locale_name_default): Add comments. Use Windows native API also on
42442         Cygwin.
42443
42444 2009-12-21  Bruno Haible  <bruno@clisp.org>
42445
42446         Update list of Win32 locale ids.
42447         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
42448         (LANG_SAMI): Renamed from LANG_SAAMI.
42449         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
42450         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
42451         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
42452         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
42453         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
42454         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
42455         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
42456         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
42457         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
42458         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
42459         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
42460         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
42461         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
42462         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
42463         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
42464         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
42465         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
42466         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
42467         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
42468         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
42469         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
42470         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
42471         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
42472         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
42473         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
42474         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
42475         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
42476         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
42477         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
42478         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
42479         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
42480         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
42481         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
42482         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
42483         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
42484         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
42485         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
42486         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
42487         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
42488         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
42489         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
42490         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
42491         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
42492         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
42493         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
42494         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
42495         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
42496         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
42497         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
42498         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
42499         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
42500         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
42501         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
42502         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
42503         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
42504         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
42505         Add more languages and countries for Sami, Sorbian. Add more countries
42506         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
42507         for Pashto. Change country for Syriac, Tswana.
42508
42509 2009-12-21  Eric Blake  <ebb9@byu.net>
42510
42511         test-utimens: avoid spurious failure
42512         * tests/test-chown.h (nap): Factor...
42513         * tests/nap.h: ...into new file.
42514         * tests/test-lchown.h (nap): Avoid duplication.
42515         * tests/test-utimens-common.h (nap): Use shared implementation,
42516         necessary on file systems with 1-second resolution.
42517         * modules/chown-tests (Files): Include new file.
42518         * modules/fdutimensat-tests (Files): Likewise.
42519         * modules/futimens-tests (Files): Likewise.
42520         * modules/lchown-tests (Files): Likewise.
42521         * modules/openat-tests (Files): Likewise.
42522         * modules/utimens-tests (Files): Likewise.
42523         * modules/utimensat-tests (Files): Likewise.
42524
42525 2009-12-19  Eric Blake  <ebb9@byu.net>
42526
42527         futimens, utimensat: work around Linux bug
42528         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
42529         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
42530         * lib/utimensat.c (rpl_utimensat): Work around it.
42531         * lib/futimens.c (rpl_futimens): Adjust comment.
42532
42533         utimens: work around Linux ctime bug
42534         * lib/utimens.c (detect_ctime_bug): New helper function.
42535         (update_timespec): Differentiate between workaround needed for
42536         this bug vs. what is needed for systems that lack utimensat.
42537         (fdutimens, lutimens): Work around bug.
42538
42539         utimens: check for ctime update
42540         * tests/test-utimens-common.h (check_ctime): Define.
42541         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
42542         * tests/test-futimens.h (test_futimens): Likewise.
42543         * tests/test-lutimens.h (test_lutimens): Likewise.
42544         * doc/posix-functions/futimens.texi (futimens): Document the bug.
42545         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
42546
42547 2009-12-19  Bruno Haible  <bruno@clisp.org>
42548
42549         dprintf-posix: Check against memory leak fixed on 2009-12-15.
42550         * tests/test-dprintf-posix2.sh: New file.
42551         * tests/test-dprintf-posix2.c: New file.
42552         * modules/dprintf-posix-tests (Files): Add them.
42553         (configure.ac): Check for getrlimit and setrlimit.
42554         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
42555
42556 2009-12-19  Bruno Haible  <bruno@clisp.org>
42557
42558         fprintf-posix: Check against memory leak fixed on 2009-12-15.
42559         * tests/test-fprintf-posix3.sh: New file.
42560         * tests/test-fprintf-posix3.c: New file.
42561         * modules/fprintf-posix-tests (Files): Add them.
42562         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
42563
42564 2009-12-19  Eric Blake  <ebb9@byu.net>
42565
42566         dirfd: fix prototype
42567         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
42568         * lib/dirfd.c (dirfd): Likewise.
42569
42570         canonicalize: reduce memory usage
42571         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
42572         allocation to size.
42573         Reported by Solar Designer <solar@openwall.com>.
42574
42575 2009-12-19  Bruno Haible  <bruno@clisp.org>
42576
42577         New module attribute 'Applicability'.
42578         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
42579         * gnulib-tool: New option --extract-applicability.
42580         (func_usage): Document it.
42581         (sed_extract_prog): Recognize it.
42582         (func_get_applicability): New function.
42583         (func_import): Generalize handling of 'link-warning' module.
42584         * modules/link-warning (Applicability): New section.
42585         * modules/arg-nonnull (Applicability): New section.
42586         Repoted by Simon Josefsson <simon@josefsson.org>.
42587
42588 2009-12-19  Bruno Haible  <bruno@clisp.org>
42589
42590         fflush: tweak
42591         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
42592         * lib/fseeko.c (rpl_fseeko): Likewise.
42593
42594 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
42595
42596         * lib/gl_list.h: Fix typo in comment.
42597
42598 2009-12-16  Eric Blake  <ebb9@byu.net>
42599
42600         fcntl: use to simplify other modules
42601         * modules/cloexec (Depends-on): Add fcntl.
42602         * modules/fchdir (Depends-on): Likewise.
42603         * modules/fd-safer-flag (Depends-on): Likewise.
42604         * modules/unistd-safer (Depends-on): Likewise.
42605         * modules/dup3 (configure.ac): Set module indicator.
42606         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
42607         missing.
42608         * lib/fchdir.c (_gl_register_dup): Fix comment.
42609         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
42610         * lib/dup-safer.c (dup_safer): Likewise.
42611         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
42612         * lib/dup3.c (dup3): Likewise.
42613         * tests/test-fchdir.c (main): Enhance test.
42614         Fixes a dup_cloexec bug reported by Ondřej Vašík.
42615
42616         fcntl: port portions of fcntl to mingw
42617         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
42618         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
42619         replacement for mingw.
42620         * modules/fcntl (Description): Update.
42621         (Depends-on): Add dup2.
42622         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
42623         * modules/fcntl-h (Makefile.am): Substitute it.
42624         * lib/fcntl.in.h (fcntl): Update declaration.
42625         (F_DUPFD, F_GETFD): New macros, when needed.
42626         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
42627         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
42628         * tests/test-fcntl.c (check_flags, main): Enhance test for items
42629         we now guarantee.
42630
42631         fcntl: work around cygwin bug in F_DUPFD
42632         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
42633         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
42634         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
42635         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
42636         * doc/posix-functions/fcntl.texi (fcntl): Document it.
42637
42638         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
42639         * modules/fcntl (Files): List new files.
42640         (configure.ac): Run a test.
42641         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
42642         * lib/fcntl.c (rpl_fcntl): Likewise.
42643         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
42644         (gl_FCNTL_H): Always replace fcntl.h.
42645         * modules/fcntl-h (Makefile.am): Substitute witnesses.
42646         * lib/fcntl.in.h (fcntl): Declare replacement.
42647         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
42648         needed, plus a witness.
42649         * doc/posix-functions/fcntl.texi (fcntl): Document this.
42650         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
42651         * tests/test-fcntl.c: New file.
42652         * modules/fcntl-tests: Likewise.
42653
42654         binary-io: avoid potential compilation warning
42655         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
42656         directives.
42657
42658         fflush: avoid compilation error on NetBSD
42659         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
42660         between off_t and fpos_t, since the latter is sometimes a struct.
42661         * lib/fseeko.c (rpl_fseeko): Likewise.
42662         Reported by Alexander Nasonov <alnsn@yandex.ru>.
42663
42664 2009-12-15  Eric Blake  <ebb9@byu.net>
42665
42666         fcntl-h, stdio, sys_ioctl: fix declarations
42667         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
42668         function must not take arguments.
42669         * lib/sys_ioctl.in.h (ioctl): Likewise.
42670         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
42671         (open): Add a link warning.
42672
42673 2009-12-15  Jim Meyering  <meyering@redhat.com>
42674
42675         areadlink, areadlink-with-size: relax license to LGPLv2+
42676         * modules/areadlink (License): Relax to LGPLv2+.
42677         * modules/areadlink-with-size (License): Likewise.
42678
42679 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
42680             Bruno Haible  <bruno@clisp.org>
42681
42682         *printf: Fix memory leak.
42683         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
42684         * lib/vfprintf.c (vfprintf): Likewise.
42685         * lib/dprintf.c (dprintf): Likewise.
42686         * lib/vdprintf.c (vdprintf): Likewise.
42687
42688 2009-12-14  Eric Blake  <ebb9@byu.net>
42689
42690         accept4: adjust module dependencies
42691         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
42692
42693         utimens: one more try at avoiding compiler warning
42694         * lib/utimens.c (lutimens): Lower scope of result.
42695
42696 2009-12-13  Bruno Haible  <bruno@clisp.org>
42697
42698         Move the malloc checking from module 'list' to new module 'xlist'.
42699         * modules/xlist: New file.
42700         * lib/gl_xlist.h: New file.
42701         * lib/gl_xlist.c: New file.
42702         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
42703         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
42704         gl_list_add_last, gl_list_add_before, gl_list_add_after,
42705         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
42706         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
42707         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
42708         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
42709         gl_sortedlist_nx_add): New declarations.
42710         (struct gl_list_implementation): Rename and change methods accordingly.
42711         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
42712         (gl_list_nx_create): Renamed from gl_list_create.
42713         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
42714         (gl_list_nx_set_at): Renamed from gl_list_set_at.
42715         (gl_list_nx_add_first): Renamed from gl_list_add_first.
42716         (gl_list_nx_add_last): Renamed from gl_list_add_last.
42717         (gl_list_nx_add_before): Renamed from gl_list_add_before.
42718         (gl_list_nx_add_after): Renamed from gl_list_add_after.
42719         (gl_list_nx_add_at): Renamed from gl_list_add_at.
42720         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
42721         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
42722         gl_list_create_empty.
42723         (gl_list_nx_create): Renamed from gl_list_create.
42724         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
42725         (gl_list_nx_set_at): Renamed from gl_list_set_at.
42726         (gl_list_nx_add_first): Renamed from gl_list_add_first.
42727         (gl_list_nx_add_last): Renamed from gl_list_add_last.
42728         (gl_list_nx_add_before): Renamed from gl_list_add_before.
42729         (gl_list_nx_add_after): Renamed from gl_list_add_after.
42730         (gl_list_nx_add_at): Renamed from gl_list_add_at.
42731         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
42732         * lib/gl_array_list.c: Don't include xalloc.h.
42733         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
42734         NULL upon out-of-memory.
42735         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
42736         out-of-memory.
42737         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
42738         Change return type to 'int'.
42739         (gl_array_nx_set_at): Renamed from gl_array_set_at.
42740         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
42741         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
42742         upon out-of-memory.
42743         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
42744         upon out-of-memory.
42745         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
42746         upon out-of-memory.
42747         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
42748         upon out-of-memory.
42749         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
42750         out-of-memory.
42751         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
42752         Update.
42753         (gl_array_list_implementation): Update.
42754         * lib/gl_carray_list.c: Don't include xalloc.h.
42755         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
42756         Return NULL upon out-of-memory.
42757         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
42758         out-of-memory.
42759         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
42760         Change return type to 'int'.
42761         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
42762         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
42763         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
42764         upon out-of-memory.
42765         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
42766         upon out-of-memory.
42767         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
42768         out-of-memory.
42769         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
42770         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
42771         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
42772         Update.
42773         (gl_carray_list_implementation): Update.
42774         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
42775         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
42776         gl_linked_create_empty. Return NULL upon out-of-memory.
42777         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
42778         out-of-memory.
42779         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
42780         Change return type to 'int'. Return -1 upon out-of-memory.
42781         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
42782         out-of-memory.
42783         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
42784         upon out-of-memory.
42785         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
42786         upon out-of-memory.
42787         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
42788         NULL upon out-of-memory.
42789         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
42790         upon out-of-memory.
42791         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
42792         out-of-memory.
42793         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
42794         Update.
42795         * lib/gl_linked_list.c: Don't include xalloc.h.
42796         (gl_linked_list_implementation): Update.
42797         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
42798         (add_to_bucket): Change return type to 'int'.
42799         (gl_linkedhash_list_implementation): Update.
42800         * lib/gl_anytree_list1.h (free_subtree): New function.
42801         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
42802         gl_tree_create_empty. Return NULL upon out-of-memory.
42803         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
42804         Change return type to 'int'. Return -1 upon out-of-memory.
42805         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
42806         out-of-memory.
42807         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
42808         (gl_tree_remove_node): New function, moved here from
42809         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
42810         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
42811         Update.
42812         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
42813         malloc, not xmalloc. Return NULL upon out-of-memory.
42814         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
42815         out-of-memory.
42816         (gl_tree_remove_node_from_tree): New function, extracted from
42817         gl_tree_remove_node.
42818         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
42819         upon out-of-memory.
42820         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
42821         out-of-memory.
42822         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
42823         upon out-of-memory.
42824         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
42825         upon out-of-memory.
42826         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
42827         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
42828         not xmalloc. Return NULL upon out-of-memory.
42829         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
42830         out-of-memory.
42831         (gl_tree_remove_node_from_tree): New function, extracted from
42832         gl_tree_remove_node.
42833         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
42834         upon out-of-memory.
42835         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
42836         out-of-memory.
42837         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
42838         upon out-of-memory.
42839         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
42840         upon out-of-memory.
42841         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
42842         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
42843         gl_anytree_list1.h before gl_anyavltree_list2.h.
42844         (gl_avltree_list_implementation): Update.
42845         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
42846         gl_anytree_list1.h before gl_anyavltree_list2.h.
42847         (gl_rbtree_list_implementation): Update.
42848         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
42849         Change return type to 'int'. Return -1 upon out-of-memory. Use
42850         __builtin_expect.
42851         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
42852         (gl_avltreehash_list_implementation): Update.
42853         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
42854         (gl_rbtreehash_list_implementation): Update.
42855         * modules/array-list (Depends-on): Remove xalloc.
42856         * modules/carray-list (Depends-on): Likewise.
42857         * modules/linked-list (Depends-on): Likewise.
42858         * modules/linkedhash-list (Depends-on): Likewise.
42859         * modules/avltree-list (Depends-on): Likewise.
42860         * modules/rbtree-list (Depends-on): Likewise.
42861         * modules/avltreehash-list (Depends-on): Likewise.
42862         * modules/rbtreehash-list (Depends-on): Likewise.
42863
42864         * modules/xsublist: New file.
42865         * lib/gl_xsublist.h: New file.
42866         * lib/gl_xsublist.c: New file.
42867         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
42868         (gl_sublist_nx_create): New declaration.
42869         * lib/gl_sublist.c: Don't include xalloc.h.
42870         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
42871         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
42872         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
42873         Change return type to 'int'. Return -1 upon out-of-memory.
42874         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
42875         upon out-of-memory.
42876         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
42877         NULL upon out-of-memory.
42878         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
42879         upon out-of-memory.
42880         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
42881         NULL upon out-of-memory.
42882         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
42883         NULL upon out-of-memory.
42884         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
42885         upon out-of-memory.
42886         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
42887         (gl_sublist_list_implementation): Update.
42888         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
42889         upon out-of-memory.
42890         * modules/sublist (Depends-on): Remove xalloc.
42891
42892         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
42893         * tests/test-carray_list.c: Likewise.
42894         * tests/test-linked_list.c: Likewise.
42895         * tests/test-linkedhash_list.c: Likewise.
42896         * tests/test-avltree_list.c: Likewise.
42897         * tests/test-rbtree_list.c: Likewise.
42898         * tests/test-avltreehash_list.c: Likewise.
42899         * tests/test-rbtreehash_list.c: Likewise.
42900         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
42901         * modules/carray-list-tests (Makefile.am): Likewise.
42902         * modules/linked-list-tests (Makefile.am): Likewise.
42903         * modules/linkedhash-list-tests (Makefile.am): Likewise.
42904         * modules/avltree-list-tests (Makefile.am): Likewise.
42905         * modules/rbtree-list-tests (Makefile.am): Likewise.
42906         * modules/avltreehash-list-tests (Makefile.am): Likewise.
42907         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
42908
42909         * NEWS: Mention the changes.
42910
42911         * lib/clean-temp.c: Include gl_xlist.h.
42912         * modules/clean-temp (Depends-on): Add xlist.
42913
42914         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
42915         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
42916
42917         * tests/test-array_oset.c: Include gl_xlist.h.
42918         * modules/array-oset-tests (Depends-on): Add xlist.
42919
42920         Reported by José E. Marchesi <jemarch@gnu.org>.
42921
42922 2009-12-13  Bruno Haible  <bruno@clisp.org>
42923
42924         Move the malloc checking from module 'oset' to new module 'xoset'.
42925         * modules/xoset: New file.
42926         * lib/gl_xoset.h: New file.
42927         * lib/gl_xoset.c: New file.
42928         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
42929         declarations.
42930         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
42931         (struct gl_oset_implementation): Rename and change methods accordingly.
42932         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
42933         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
42934         'int'. Mark as __warn_unused_result__.
42935         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
42936         gl_oset_create_empty.
42937         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
42938         'int'.
42939         * lib/gl_array_oset.c: Don't include xalloc.h.
42940         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
42941         malloc, not xmalloc.
42942         (grow): Change return type to 'int'. Don't call xalloc_die.
42943         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
42944         to 'int'.
42945         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
42946         'int'.
42947         (gl_array_oset_implementation): Update.
42948         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
42949         gl_tree_create_empty.
42950         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
42951         'int'.
42952         * lib/gl_avltree_oset.c: Don't include xalloc.h.
42953         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
42954         xmalloc.
42955         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
42956         not xmalloc.
42957         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
42958         xmalloc.
42959         (gl_avltree_oset_implementation): Update.
42960         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
42961         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
42962         xmalloc.
42963         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
42964         not xmalloc.
42965         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
42966         xmalloc.
42967         (gl_rbtree_oset_implementation): Update.
42968         * modules/array-oset (Depends-on): Remove xalloc.
42969         * modules/avltree-oset (Depends-on): Likewise.
42970         * modules/rbtree-oset (Depends-on): Likewise.
42971         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
42972         * tests/test-avltree_oset.c: Likewise.
42973         * tests/test-rbtree_oset.c: Likewise.
42974         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
42975         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
42976         * modules/rbtree-oset-tests (Makefile.am): Likewise.
42977         * NEWS: Mention the change.
42978
42979 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
42980
42981         maint.mk: allow a project to override release-prep commands
42982         * top/maint.mk (alpha, beta, stable): Move release-preparatory
42983         commands into a new rule.
42984         (release-prep): New rule.
42985         (release-prep-hook): New overridable variable.
42986
42987 2009-12-13  Bruno Haible  <bruno@clisp.org>
42988
42989         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
42990
42991 2009-12-13  Jim Meyering  <meyering@redhat.com>
42992
42993         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
42994         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
42995
42996 2009-12-12  Bruno Haible  <bruno@clisp.org>
42997
42998         duplocale: Tweak.
42999         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
43000
43001 2009-12-12  Karl Berry  <karl@gnu.org>
43002
43003         * config/srclist.txt (strtoll.c): tab changes, no more sync.
43004
43005 2009-12-12  Bruno Haible  <bruno@clisp.org>
43006
43007         * m4/po.m4: Undo incorrect untabification.
43008
43009 2009-12-12  Bruno Haible  <bruno@clisp.org>
43010
43011         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
43012         * modules/c-strtod (Depends-on): Add locale.
43013         * modules/c-strtold (Depends-on): Likewise.
43014
43015 2009-12-12  Bruno Haible  <bruno@clisp.org>
43016
43017         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
43018
43019 2009-12-11  Eric Blake  <ebb9@byu.net>
43020
43021         setenv: relax requirement in light of POSIX ruling
43022         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
43023         not NULL.
43024         * tests/test-setenv.c (main): Relax test.
43025         * tests/test-unsetenv.c (main): Likewise.
43026         * doc/posix-functions/setenv.texi (setenv): Document this.
43027         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
43028
43029 2009-12-11  Bruno Haible  <bruno@clisp.org>
43030
43031         New module 'fd-safer-flag'.
43032         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
43033         * lib/dup-safer.c (dup_safer_flag): Remove function.
43034         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
43035         * lib/fd-safer.c (fd_safer_flag): Remove function.
43036         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
43037         * modules/cloexec (configure.ac): Drop indicator macro.
43038         * modules/fd-safer-flag: New file.
43039         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
43040         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
43041         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
43042
43043 2009-12-11  Bruno Haible  <bruno@clisp.org>
43044
43045         Tests for module 'nl_langinfo'.
43046         * modules/nl_langinfo-tests: New file.
43047         * tests/test-nl_langinfo.sh: New file.
43048         * tests/test-nl_langinfo.c: New file.
43049
43050         New module 'nl_langinfo'.
43051         * lib/nl_langinfo.c: New file.
43052         * m4/nl_langinfo.m4: New file.
43053         * modules/nl_langinfo: New file.
43054         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
43055
43056 2009-12-11  Bruno Haible  <bruno@clisp.org>
43057
43058         Tests for module 'langinfo'.
43059         * modules/langinfo-tests: New file.
43060         * tests/test-langinfo.c: New file.
43061
43062         New module 'langinfo'.
43063         * lib/langinfo.in.h: New file.
43064         * m4/langinfo_h.m4: New file.
43065         * modules/langinfo: New file.
43066         * doc/posix-headers/langinfo.texi: Mention the new module.
43067
43068 2009-12-11  Bruno Haible  <bruno@clisp.org>
43069
43070         * lib/config.charset: Untabify.
43071
43072 2009-12-11  Bruno Haible  <bruno@clisp.org>
43073
43074         * modules/unistd-safer (configure.ac): Drop indicator macro.
43075
43076 2009-12-11  Bruno Haible  <bruno@clisp.org>
43077
43078         Move pipe2-safer code to its own file.
43079         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
43080         * lib/pipe-safer.c (pipe2_safer): Remove function.
43081         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
43082         (Makefile.am): Add it to lib_SOURCES.
43083
43084 2009-12-10  Bruno Haible  <bruno@clisp.org>
43085
43086         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
43087
43088 2009-12-10  Bruno Haible  <bruno@clisp.org>
43089
43090         Declare which arguments expect non-NULL values, for GCC and clang.
43091         * build-aux/arg-nonnull.h: New file.
43092         * modules/arg-nonnull: New file.
43093         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
43094         (inet_ntop, inet_pton): Use it.
43095         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
43096         (closedir, dirfd, opendir, scandir, alphasort): Use it.
43097         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
43098         (open, openat): Use it.
43099         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
43100         (fnmatch): Use it.
43101         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
43102         (getopt, getopt_long, getopt_long_only): Use it.
43103         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
43104         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
43105         Use it.
43106         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
43107         (iconv_open): Use it.
43108         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
43109         (strtoimax, strtoumax): Use it.
43110         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
43111         (duplocale): Use it.
43112         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
43113         (frexp, frexpl): Use it.
43114         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
43115         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
43116         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
43117         (tsearch, tfind, tdelete, twalk): Use it.
43118         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
43119         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
43120         sigpending): Use it.
43121         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
43122         (posix_spawn, posix_spawnp, posix_spawnattr_init,
43123         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
43124         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
43125         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
43126         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
43127         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
43128         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
43129         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
43130         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
43131         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
43132         Use it.
43133         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
43134         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
43135         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
43136         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
43137         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
43138         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
43139         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
43140         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
43141         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
43142         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
43143         strtoull, unsetenv): Use it.
43144         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
43145         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
43146         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
43147         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
43148         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
43149         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
43150         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
43151         (strcasecmp, strncasecmp): Use it.
43152         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
43153         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
43154         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
43155         rpl_setsockopt): Use it.
43156         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
43157         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
43158         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
43159         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
43160         (gettimeofday): Use it.
43161         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
43162         (times): Use it.
43163         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
43164         (uname): Use it.
43165         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
43166         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
43167         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
43168         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
43169         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
43170         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
43171         unlinkat, write): Use it.
43172         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
43173         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
43174         * lib/argv-iter.h: Include arg-nonnull.h.
43175         (_ATTRIBUTE_NONNULL_): Remove macro.
43176         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
43177         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
43178         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
43179         optimization.
43180         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
43181         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
43182         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
43183         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
43184         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
43185         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
43186         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
43187         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
43188         * modules/arpa_inet (Depends-on): Add arg-nonnull.
43189         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
43190         * modules/dirent (Depends-on): Add arg-nonnull.
43191         (Makefile.am): Insert arg-nonnull.h into dirent.h.
43192         * modules/fcntl-h (Depends-on): Add arg-nonnull.
43193         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
43194         * modules/fnmatch (Depends-on): Add arg-nonnull.
43195         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
43196         * modules/getopt-posix (Depends-on): Add arg-nonnull.
43197         (Makefile.am): Insert arg-nonnull.h into getopt.h.
43198         * modules/glob (Depends-on): Add arg-nonnull.
43199         (Makefile.am): Insert arg-nonnull.h into glob.h.
43200         * modules/iconv_open (Depends-on): Add arg-nonnull.
43201         (Makefile.am): Insert arg-nonnull.h into iconv.h.
43202         * modules/inttypes (Depends-on): Add arg-nonnull.
43203         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
43204         * modules/locale (Depends-on): Add arg-nonnull.
43205         (Makefile.am): Insert arg-nonnull.h into locale.h.
43206         * modules/math (Depends-on): Add arg-nonnull.
43207         (Makefile.am): Insert arg-nonnull.h into math.h.
43208         * modules/netdb (Depends-on): Add arg-nonnull.
43209         (Makefile.am): Insert arg-nonnull.h into netdb.h.
43210         * modules/search (Depends-on): Add arg-nonnull.
43211         (Makefile.am): Insert arg-nonnull.h into search.h.
43212         * modules/signal (Depends-on): Add arg-nonnull.
43213         (Makefile.am): Insert arg-nonnull.h into signal.h.
43214         * modules/spawn (Depends-on): Add arg-nonnull.
43215         (Makefile.am): Insert arg-nonnull.h into spawn.h.
43216         * modules/stdio (Depends-on): Add arg-nonnull.
43217         (Makefile.am): Insert arg-nonnull.h into stdio.h.
43218         * modules/stdlib (Depends-on): Add arg-nonnull.
43219         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
43220         * modules/string (Depends-on): Add arg-nonnull.
43221         (Makefile.am): Insert arg-nonnull.h into string.h.
43222         * modules/strings (Depends-on): Add arg-nonnull.
43223         (Makefile.am): Insert arg-nonnull.h into strings.h.
43224         * modules/sys_socket (Depends-on): Add arg-nonnull.
43225         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
43226         * modules/sys_stat (Depends-on): Add arg-nonnull.
43227         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
43228         * modules/sys_time (Depends-on): Add arg-nonnull.
43229         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
43230         * modules/sys_times (Depends-on): Add arg-nonnull.
43231         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
43232         * modules/sys_utsname (Depends-on): Add arg-nonnull.
43233         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
43234         * modules/time (Depends-on): Add arg-nonnull.
43235         (Makefile.am): Insert arg-nonnull.h into time.h.
43236         * modules/unistd (Depends-on): Add arg-nonnull.
43237         (Makefile.am): Insert arg-nonnull.h into unistd.h.
43238         * modules/wchar (Depends-on): Add arg-nonnull.
43239         (Makefile.am): Insert arg-nonnull.h into wchar.h.
43240         * modules/argv-iter (Depends-on): Add arg-nonnull.
43241         * tests/test-canonicalize.c (null_ptr): New function.
43242         (main): Use it.
43243         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
43244         (main): Use it.
43245         * tests/test-memmem.c (null_ptr): New function.
43246         (main): Use it.
43247         Reported by Jim Meyering.
43248
43249 2009-12-10  Bruno Haible  <bruno@clisp.org>
43250
43251         Use spaces for indentation, not tabs.
43252         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
43253         * m4/*.m4: Untabify.
43254         * build-aux/*.h: Untabify.
43255         * tests/**/*.[hc]: Untabify.
43256         * README: New section "Indent with spaces, not TABs", based on
43257         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
43258         * NEWS: Mention the change.
43259
43260 2009-12-10  Bruno Haible  <bruno@clisp.org>
43261
43262         pty test: Fix link error.
43263         * modules/pty-tests (Makefile.am): Add the default LDADD value to
43264         test_pty_LDADD.
43265
43266 2009-12-07  Simon Josefsson  <simon@josefsson.org>
43267
43268         * modules/pty: New file.
43269         * modules/pty-tests: New file.
43270         * m4/pty.m4: New file.
43271         * tests/test-pty.c: New file.
43272         * doc/glibc-headers/pty.texi: Modified.
43273         * doc/glibc-functions/forkpty.texi: Modified.
43274         * doc/glibc-functions/openpty.texi: Modified.
43275
43276 2009-12-10  Bruno Haible  <bruno@clisp.org>
43277
43278         Avoid syntax error in C++ mode.
43279         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
43280
43281 2009-12-10  Bruno Haible  <bruno@clisp.org>
43282
43283         Use sed with option -e.
43284         * gnulib-tool (func_version, func_emit_copyright_notice,
43285         func_emit_initmacro_end, func_import, func_create_testdir): Pass
43286         option -e to sed.
43287         * modules/link-warning (Makefile.am): Likewise.
43288
43289 2009-12-10  Jim Meyering  <meyering@redhat.com>
43290
43291         mgetgroups: do not write bytes beyond end of malloc'd buffer
43292         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
43293         username, we call getgroups with a one-element-shorter buffer,
43294         but still told it the length was original, max_n_groups.
43295
43296 2009-12-09  Eric Blake  <ebb9@byu.net>
43297
43298         cloexec: relax license
43299         * modules/cloexec (Maintainer): Add myself.
43300         (License): Use LGPL, not GPL.
43301
43302         link-warning: optimize generation
43303         * modules/link-warning (Makefile.am): Reduce process usage.
43304
43305 2009-12-09  Bruno Haible  <bruno@clisp.org>
43306
43307         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
43308         workaround was added on 2009-11-17.
43309
43310 2009-12-09  Jim Meyering  <meyering@redhat.com>
43311             Bruno Haible  <bruno@clisp.org>
43312
43313         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
43314         * modules/link-warning (Makefile.am): Make the comment-removing sed
43315         command more robust in the face of bootstrap-prepended comment lines.
43316
43317 2009-12-09  Bruno Haible  <bruno@clisp.org>
43318
43319         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
43320         most one group.
43321
43322 2009-12-09  Simon Josefsson <simon@josefsson.org>
43323             Bruno Haible  <bruno@clisp.org>
43324
43325         * build-aux/link-warning.h: Add copyright notice.
43326         * modules/link-warning (Makefile.am): Generate link-warning.h from
43327         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
43328         * NEWS: Mention change in link-warning module.
43329         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
43330         * modules/dirent (Makefile.am): Add dependency to dirent.h.
43331         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
43332         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
43333         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
43334         * modules/math (Makefile.am): Add dependency to math.h.
43335         * modules/search (Makefile.am): Add dependency to search.h.
43336         * modules/signal (Makefile.am): Add dependency to signal.h.
43337         * modules/spawn (Makefile.am): Add dependency to spawn.h.
43338         * modules/stdio (Makefile.am): Add dependency to stdio.h.
43339         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
43340         * modules/string (Makefile.am): Add dependency to string.h.
43341         * modules/strings (Makefile.am): Add dependency to strings.h.
43342         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
43343         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
43344         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
43345         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
43346         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
43347         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
43348         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
43349         * modules/unistd (Makefile.am): Add dependency to unistd.h.
43350         * modules/wchar (Makefile.am): Add dependency to wchar.h.
43351
43352 2009-12-09  Bruno Haible  <bruno@clisp.org>
43353
43354         fchdir: Optimize away rpl_fstat when possible.
43355         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
43356         REPLACE_OPEN_DIRECTORY.
43357         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
43358
43359 2009-12-09  Bruno Haible  <bruno@clisp.org>
43360
43361         * lib/fchdir.c: Update comment.
43362
43363 2009-12-09  Bruno Haible  <bruno@clisp.org>
43364
43365         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
43366
43367 2009-12-08  Eric Blake  <ebb9@byu.net>
43368
43369         fchdir: avoid memory leak on re-registration.
43370         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
43371
43372 2009-12-08  Jim Meyering  <meyering@redhat.com>
43373
43374         init.sh: avoid Solaris 10 /bin/sh portability problem
43375         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
43376         sourced script:
43377           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
43378           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
43379           bar
43380         tests/init.sh relied on that, accepting a --set-path=DIR argument,
43381         and two tests used that idiom.
43382         * tests/init.sh: Update suggested usage comments.
43383         (path_prepend_): New function, to be used in place
43384         of the --src-path=DIR option.
43385         (setup_): Move PATH-prepending code into path_prepend_.
43386         * tests/test-pread.sh: Adapt to new usage.
43387         * tests/test-xalloc-die.sh: Likewise.
43388
43389 2009-12-08  Simon Josefsson  <simon@josefsson.org>
43390
43391         * doc/gnulib.texi (Glibc pty.h): Add.
43392         * doc/glibc-functions/forkpty.texi: Add.
43393         * doc/glibc-functions/openpty.texi: Add.
43394         Suggested by Bruno Haible.
43395
43396 2009-12-08  Eric Blake  <ebb9@byu.net>
43397
43398         fchdir: fix logic bugs
43399         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
43400         * tests/test-fchdir.c (main): Enhance test.
43401         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
43402         is in use.
43403
43404         dup2: fix logic bugs
43405         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
43406         REPLACE_DUP2 to decide when rpl_dup2 is needed.
43407         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
43408         exists.
43409         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
43410
43411 2009-12-07  Eric Blake  <ebb9@byu.net>
43412
43413         unlink: fix m4 detection
43414         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
43415
43416         unistd-safer: add unit test
43417         * modules/unistd-safer-tests: New file.
43418         * tests/test-dup-safer.c: Likewise.
43419         * tests/test-cloexec.c (setmode): Avoid compiler warning.
43420         * tests/test-dup2.c (setmode): Likewise.
43421         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
43422
43423         cloexec: preserve text vs. binary across dup_cloexec
43424         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
43425         mode.
43426         * modules/dup2-tests (Depends-on): Add binary-io.
43427         * modules/cloexec-tests (Depends-on): Likewise.
43428         * tests/test-dup2.c (setmode, is_mode): New helpers.
43429         (main): Add tests that translation mode is preserved.
43430         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
43431         Reported by Bruno Haible.
43432
43433         mgetgroups: reduce duplicate listings
43434         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
43435         resulting array.
43436         * tests/test-chown.h (test_chown): Simplify client.
43437         * tests/test-lchown.h (test_lchown): Likewise.
43438
43439 2009-12-06  Bruno Haible  <bruno@clisp.org>
43440
43441         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
43442         value.
43443
43444 2009-12-06  Bruno Haible  <bruno@clisp.org>
43445
43446         * lib/progname.c: Include stdio.h, stdlib.h.
43447         (set_program_name): Reject a NULL argument.
43448
43449 2009-12-05  Eric Blake  <ebb9@byu.net>
43450
43451         pipe2-safer: new module
43452         * modules/pipe2-safer: New file.
43453         * lib/unistd-safer.h (pipe2_safer): New prototype.
43454         * lib/unistd--.h (pipe2): New wrapper.
43455         * lib/pipe-safer.c (pipe2_safer): New function.
43456         * modules/pipe (Depends-on): Add pipe2-safer.
43457         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
43458
43459         stdlib-safer: preserve cloexec flag for mkostemp[s]
43460         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
43461         fd_safer_flag.
43462
43463         unistd-safer: allow preservation of cloexec status via flag
43464         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
43465         prototypes.
43466         * lib/dup-safer.c (dup_safer_flag): New function.
43467         * lib/fd-safer.c (fd_safer_flag): Likewise.
43468         * modules/cloexec (configure.ac): Set witness.
43469
43470         test-dup2: enhance test
43471         * modules/dup2-tests (Depends-on): Add cloexec.
43472         * tests/test-dup2.c (main): Enhance test.
43473
43474         cloexec: add dup_cloexec
43475         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
43476         header and comments.
43477         * lib/cloexec.c (set_cloexec_flag): Add comments.
43478         (dup_cloexec): New function, with mingw implementation borrowed
43479         from...
43480         * lib/w32spawn.h (dup_noinherit): ...here.
43481         * modules/execute (Depends-on): Add cloexec.
43482         * modules/pipe (Depends-on): Likewise.
43483         * modules/cloexec (Depends-on): Add dup2.
43484         * modules/cloexec-tests (Files): New file.
43485         * tests/test-cloexec.c: Likewise.
43486
43487         test-xalloc-die: fix test for mingw
43488         * modules/xalloc-die-tests (Files): Add tests/init.sh.
43489         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
43490         directory and .exe suffix off argv[0] output.
43491
43492         test-fseeko: fix test for mingw
43493         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
43494         than undefining fseek, so test will pass on mingw.
43495
43496 2009-12-05  Bruno Haible  <bruno@clisp.org>
43497
43498         * lib/progname.h (set_program_name): Clarify specification.
43499         * lib/progname.c (set_program_name): Likewise.
43500         Reported by Jim Meyering.
43501
43502 2009-12-05  Jim Meyering  <meyering@redhat.com>
43503
43504         maint.mk: backslash-escape parens in default regexp
43505         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
43506         backslash-escape the literal parentheses.
43507
43508         maint.mk: news-date-check: use grep -E
43509         * top/maint.mk (today): Define a Make variable, not a...
43510         (news-date-check): ...shell variable.
43511         (news-date-regexp): Use the Make variable.
43512         Use grep's -E option.  Change the failing diagnostic to mention
43513         the variable, $(news-date-regexp).
43514
43515 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
43516
43517         maintainer-makefile: allow customization of NEWS entry format
43518         * top/maint.mk (news-date-regexp): New overridable variable.
43519         (news-date-check): Use it.
43520
43521 2009-12-04  Eric Blake  <ebb9@byu.net>
43522
43523         mgetgroups: add xgetgroups, and avoid ENOSYS failures
43524         * lib/mgetgroups.h (xgetgroups): New prototype.
43525         * lib/mgetgroups.c (xgetgroups): New wrapper.
43526         (mgetgroups): Handle ENOSYS.
43527         * modules/mgetgroups (Depends-on): Add realloc.
43528         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
43529
43530         mgetgroups: avoid argument promotion issues with -1
43531         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
43532         for invalid gid_t.
43533         * tests/test-chown.h (getegid, test_chown): Likewise.
43534         * tests/test-lchown.h (getegid, test_lchown): Likewise.
43535
43536 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
43537
43538         exclude: Fix header file problems.
43539         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
43540
43541 2009-12-01  Jim Meyering  <meyering@redhat.com>
43542
43543         fts: fts_open: do not let an empty string cause immediate failure
43544         This is required in support of GNU rm, for which the command
43545         "rm A '' B" must process and remove both A and B, in spite of
43546         the empty string argument.
43547         * lib/fts.c (fts_open): Do not let the presence of an empty string
43548         cause fts_open to fail immediately.  Most fts-using tools must be
43549         able to process all arguments, in order, and can be expected to
43550         diagnose such arguments themselves.
43551
43552 2009-11-30  Eric Blake  <ebb9@byu.net>
43553
43554         utimens: fix compilation error
43555         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
43556         Declare variable at right scope.
43557
43558 2009-11-29  Jim Meyering  <meyering@redhat.com>
43559
43560         bootstrap: handle perl-5.11's changed --version output
43561         * build-aux/bootstrap (get_version): Handle perl separately,
43562         since perl-5.11's --version output is different.
43563
43564 2009-11-28  Jim Meyering  <meyering@redhat.com>
43565
43566         userspec: depend on the inttostr module, too
43567         * modules/userspec (Depends-on): Add inttostr.
43568
43569         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
43570         * lib/userspec.c (parse_with_separator): Do not accept a user ID
43571         number of MAXUID when it evaluates to (uid_t) -1.
43572         Likewise for group ID.  Reported by Matt McCutchen in
43573         <http://savannah.gnu.org/bugs/?28113>
43574
43575         userspec: reformat to use spaces, not TABs
43576         * lib/userspec.c: Expand TABs to spaces.
43577         Add Emacs' "indent-tabs-mode: nil" hint.
43578
43579 2009-11-27  Eric Blake  <ebb9@byu.net>
43580
43581         getopt-gnu: flush out another BSD bug
43582         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
43583         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
43584         flush out BSD bug.
43585         * tests/test-getopt.h (test_getopt): End lists with NULL.
43586         * tests/test-getopt_long.h (test_getopt_long): Likewise.
43587         (test_getopt_long_posix): Enhance test.
43588         * modules/getopt-posix-tests (Depends-on): Add stdbool.
43589         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
43590         getopt-gnu.
43591         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
43592         Likewise.
43593
43594 2009-11-27  Simon Josefsson  <simon@josefsson.org>
43595
43596         * modules/idpriv-droptemp-tests (Notice): Fix text.
43597
43598 2009-11-27  Jim Meyering  <meyering@redhat.com>
43599
43600         test-xalloc-die: avoid spurious failure due to libtool argv difference
43601         In a libtool-enabled project, this test would fail due to a difference
43602         in the emitted program name, e.g.,
43603         -test-xalloc-die: memory exhausted
43604         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
43605         Use program to avoid that.
43606         * modules/xalloc-die-tests (Depends-on): Add progname.
43607         * tests/test-xalloc-die.c: Include progname.h".
43608         (program_name): Remove decl.
43609         (main): Call set_program_name.
43610         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
43611
43612 2009-11-26  Richard Jones  <rjones@redhat.com>
43613
43614         w32sock: leave win32 error in place.
43615         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
43616
43617 2009-11-26  Eric Blake  <ebb9@byu.net>
43618
43619         init.sh: suggest to use skip_ and fail_ functions in comments
43620         * tests/init.sh: Add a sentence.
43621
43622 2009-11-25  Bruno Haible  <bruno@clisp.org>
43623
43624         init.sh: add documentation in comments
43625         * tests/init.sh: Add some developer and user documentation.
43626
43627 2009-11-26  Jim Meyering  <meyering@redhat.com>
43628
43629         init.sh: accommodate even those who specify bogus srcdir manually
43630         * tests/init.sh: Normally, srcdir is guaranteed by automake and
43631         configure-time tests to be sanitized, so that there is no need to
43632         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
43633         (with no double quotes) suffices.  However, since tests may be
43634         invoked manually, and since you may explicitly set srcdir to the
43635         name of a directory containing spaces, do quote its uses here.
43636         * tests/test-pread.sh: Likewise.
43637         Suggested by Bruno Haible.
43638
43639         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
43640         * tests/test-pread.sh: Write no data into the pipe, because
43641         test-pread actually reads none.  This avoids a diagnostic,
43642         "bash: echo: write error: Broken pipe", that arises in the unusual
43643         event something is ignoring SIGPIPE, and might be interpreted
43644         as some sort of failure.  Reported by Bruno Haible.
43645
43646 2009-11-25  Jim Meyering  <meyering@redhat.com>
43647
43648         test-pread: cover failure with ESPIPE and EINVAL
43649         * tests/test-pread.c (main): Test for failure, too.
43650         * tests/test-pread.sh: Invoke with stdin on a pipe.
43651         Suggested by Eric Blake.
43652
43653         pread: improvement and fix
43654         * modules/pread (Depends-on): Depend on lseek, for portability to
43655         e.g., mingw.  Suggested by Eric Blake.
43656         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
43657
43658         unistd.in.h: correct declaration of pread
43659         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
43660         Reported by Richard W.M. Jones.
43661
43662         test-pread.sh: distribute the test script
43663         * modules/pread-tests (Files): Include test-pread.sh.
43664
43665         test-pread.sh: clean up
43666         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
43667         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
43668         That is unnecessary, since it's always ".".
43669         Suggestion from Eric Blake.
43670
43671         test-pread.sh: make executable
43672         * tests/test-pread.sh: Set executable bit.
43673         Reported by Eric Blake.
43674
43675         correct typo in test-pread.sh
43676         * tests/test-pread.sh: Add #! line.
43677
43678         test pread
43679         * tests/test-pread.c: New file.
43680         * tests/test-pread.sh: Likewise.
43681         * modules/pread-tests: Likewise.
43682
43683         pread: new module
43684         * modules/pread: New file.
43685         * lib/unistd.in.h (pread): Define/declare.
43686         * lib/pread.c (pread): New file.
43687         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
43688         * modules/unistd (Makefile.am): Substitute witnesses.
43689         * doc/posix-functions/pread.texi (pread): Update.
43690         * MODULES.html.sh: Add pread.
43691
43692 2009-11-25  Jim Meyering  <meyering@redhat.com>
43693
43694         tests/init.sh: new file to be used via most *.sh tests
43695         * tests/init.sh: New file.
43696
43697 2009-11-25  Eric Blake  <ebb9@byu.net>
43698
43699         utimens: work around older Linux failure with symlinks
43700         * lib/utimens.c (lutimensat_works_really): New variable.
43701         (fdutimens, lutimens): Use it to manage kernels that support
43702         nanosecond times on files, but not on symlinks.
43703         Reported by Ondřej Vašík.
43704
43705         utimes: fix configure grammar
43706         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
43707
43708 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
43709
43710         regex: Fix fastmap for multibyte character ranges.
43711         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
43712         characters when a multibyte character range is included.
43713
43714 2009-11-22  Andy Wingo  <wingo@pobox.com>
43715
43716         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
43717         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
43718
43719 2009-11-24  Bruno Haible  <bruno@clisp.org>
43720
43721         doc: Most *_l functions exist in MacOS X 10.5.
43722         * doc/posix-functions/duplocale.texi: Update platforms list.
43723         * doc/posix-functions/freelocale.texi: Likewise.
43724         * doc/posix-functions/newlocale.texi: Likewise.
43725         * doc/posix-functions/uselocale.texi: Likewise.
43726         * doc/posix-functions/isalnum_l.texi: Likewise.
43727         * doc/posix-functions/isalpha_l.texi: Likewise.
43728         * doc/posix-functions/isblank_l.texi: Likewise.
43729         * doc/posix-functions/iscntrl_l.texi: Likewise.
43730         * doc/posix-functions/isdigit_l.texi: Likewise.
43731         * doc/posix-functions/isgraph_l.texi: Likewise.
43732         * doc/posix-functions/islower_l.texi: Likewise.
43733         * doc/posix-functions/isprint_l.texi: Likewise.
43734         * doc/posix-functions/ispunct_l.texi: Likewise.
43735         * doc/posix-functions/isspace_l.texi: Likewise.
43736         * doc/posix-functions/isupper_l.texi: Likewise.
43737         * doc/posix-functions/iswalnum_l.texi: Likewise.
43738         * doc/posix-functions/iswalpha_l.texi: Likewise.
43739         * doc/posix-functions/iswblank_l.texi: Likewise.
43740         * doc/posix-functions/iswcntrl_l.texi: Likewise.
43741         * doc/posix-functions/iswctype_l.texi: Likewise.
43742         * doc/posix-functions/iswdigit_l.texi: Likewise.
43743         * doc/posix-functions/iswgraph_l.texi: Likewise.
43744         * doc/posix-functions/iswlower_l.texi: Likewise.
43745         * doc/posix-functions/iswprint_l.texi: Likewise.
43746         * doc/posix-functions/iswpunct_l.texi: Likewise.
43747         * doc/posix-functions/iswspace_l.texi: Likewise.
43748         * doc/posix-functions/iswupper_l.texi: Likewise.
43749         * doc/posix-functions/iswxdigit_l.texi: Likewise.
43750         * doc/posix-functions/isxdigit_l.texi: Likewise.
43751         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
43752         * doc/posix-functions/strcasecmp_l.texi: Likewise.
43753         * doc/posix-functions/strcoll_l.texi: Likewise.
43754         * doc/posix-functions/strfmon_l.texi: Likewise.
43755         * doc/posix-functions/strftime_l.texi: Likewise.
43756         * doc/posix-functions/strncasecmp_l.texi: Likewise.
43757         * doc/posix-functions/strxfrm_l.texi: Likewise.
43758         * doc/posix-functions/tolower_l.texi: Likewise.
43759         * doc/posix-functions/toupper_l.texi: Likewise.
43760         * doc/posix-functions/towctrans_l.texi: Likewise.
43761         * doc/posix-functions/towlower_l.texi: Likewise.
43762         * doc/posix-functions/towupper_l.texi: Likewise.
43763         * doc/posix-functions/wcscoll_l.texi: Likewise.
43764         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
43765         * doc/posix-functions/wctrans_l.texi: Likewise.
43766         * doc/posix-functions/wctype_l.texi: Likewise.
43767         * doc/glibc-functions/strptime_l.texi: Likewise.
43768         * doc/glibc-functions/strtod_l.texi: Likewise.
43769         * doc/glibc-functions/strtof_l.texi: Likewise.
43770         * doc/glibc-functions/strtol_l.texi: Likewise.
43771         * doc/glibc-functions/strtold_l.texi: Likewise.
43772         * doc/glibc-functions/strtoll_l.texi: Likewise.
43773         * doc/glibc-functions/strtoul_l.texi: Likewise.
43774         * doc/glibc-functions/strtoull_l.texi: Likewise.
43775         * doc/glibc-functions/wcsftime_l.texi: Likewise.
43776         * doc/glibc-functions/wcstod_l.texi: Likewise.
43777         * doc/glibc-functions/wcstof_l.texi: Likewise.
43778         * doc/glibc-functions/wcstol_l.texi: Likewise.
43779         * doc/glibc-functions/wcstold_l.texi: Likewise.
43780         * doc/glibc-functions/wcstoll_l.texi: Likewise.
43781         * doc/glibc-functions/wcstoul_l.texi: Likewise.
43782         * doc/glibc-functions/wcstoull_l.texi: Likewise.
43783
43784 2009-11-24  Bruno Haible  <bruno@clisp.org>
43785
43786         duplocale: Fix logic bug.
43787         * lib/duplocale.c: Don't include <langinfo.h>.
43788         (_NL_LOCALE_NAME): Remove macro.
43789         (rpl_duplocale): Use setlocale instead of nl_langinfo.
43790         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
43791
43792 2009-11-23  Jim Meyering  <meyering@redhat.com>
43793
43794         test-update-copyright: don't hard-code /usr/bin/perl
43795         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
43796         perl to print the current year.  Gilles Espinasse reported that
43797         the replaced use of perl was hard-coded as /usr/bin/perl.
43798
43799 2009-11-23  Bruno Haible  <bruno@clisp.org>
43800
43801         duplocale: Add support for glibc 2.3.x.
43802         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
43803
43804 2009-11-22  Bruno Haible  <bruno@clisp.org>
43805
43806         vasnprintf: Tiny optimization.
43807         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
43808         MacOS X.
43809
43810 2009-11-22  Bruno Haible  <bruno@clisp.org>
43811
43812         Tests for module 'duplocale'.
43813         * modules/duplocale-tests: New file.
43814         * tests/test-duplocale.c: New file.
43815
43816         New module 'duplocale'.
43817         * m4/duplocale.m4: New file.
43818         * lib/locale.in.h (duplocale): New declaration.
43819         * lib/duplocale.c: New file.
43820         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
43821         gl_LOCALE_H_DEFAULTS): New macros.
43822         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
43823         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
43824         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
43825         REPLACE_DUPLOCALE.
43826         * modules/duplocale: New file.
43827         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
43828
43829 2009-11-22  Bruno Haible  <bruno@clisp.org>
43830
43831         * modules/locale-tests (configure.ac): Test for newlocale function.
43832         * tests/test-locale.c: When the system has extended locale functions,
43833         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
43834
43835         locale: Make locale_t available when possible.
43836         * lib/locale.in.h: Include <xlocale.h> when it exists.
43837         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
43838         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
43839         * modules/locale (Depends-on): Add extensions.
43840         (Makefile.am): Also substitute HAVE_XLOCALE_H.
43841         * doc/posix-headers/locale.texi: Document the problem with locale_t.
43842
43843 2009-11-22  Bruno Haible  <bruno@clisp.org>
43844
43845         Add comments.
43846         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
43847         invocation.
43848         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
43849         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
43850         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
43851
43852 2009-11-22  Bruno Haible  <bruno@clisp.org>
43853
43854         error: account for the possibility of freopen (stdout).
43855         * lib/error.c: Include <unistd.h>.
43856         (flush_stdout): New function, extracted from error and error_at_line.
43857         Determine stdout's fd dynamically.
43858         (error, error_at_line): Invoke flush_stdout.
43859         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
43860         * modules/error (Depends-on): Add unistd.
43861
43862 2009-11-22  Bruno Haible  <bruno@clisp.org>
43863
43864         diffseq: Add comment.
43865         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
43866
43867 2009-11-22  Jim Meyering  <meyering@redhat.com>
43868
43869         c-stack: avoid defining an unused static function
43870         * lib/c-stack.c (find_stack_direction): Do not define this function
43871         when it will not be used.
43872
43873         diffseq: avoid spurious gcc warnings
43874         * lib/diffseq.h (IF_LINT2): Define.
43875         (compareseq): Use it to initialize two members of "part".
43876         This avoids two used-uninitialized warnings.
43877
43878 2009-11-21  Jim Meyering  <meyering@redhat.com>
43879
43880         c-stack: avoid "ignoring return value of `write'" warning
43881         * lib/c-stack.c: Include "ignore-value.h".
43882         (die): Explicitly ignore each write return value.
43883         * modules/c-stack (Depends-on): Add ignore-value.
43884
43885 2009-11-21  Bruno Haible  <bruno@clisp.org>
43886
43887         diffseq: reduce scope of variable 'best'.
43888         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
43889         variable, earlier used for two different purposes.
43890
43891 2009-11-21  Jim Meyering  <meyering@redhat.com>
43892
43893         diffseq: remove useless assignment to "best"
43894         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
43895         assignment.  At that point "best" is already guaranteed to be zero.
43896
43897 2009-11-20  Eric Blake  <ebb9@byu.net>
43898
43899         build: mention ftp redirector in release announcements
43900         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
43901         values that used to come from cfg.mk; mention FTP redirect URL.
43902         * build-aux/announce-gen: Mention the mirror list.
43903         Suggested by Karl Berry.
43904
43905         nanosleep: improve port to mingw
43906         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
43907         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
43908         LIB_NANOSLEEP, but only when needed.
43909         * modules/select (Link): Document LIBSOCKET.
43910         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
43911         enough.
43912
43913         nanosleep: work around cygwin bug
43914         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
43915         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
43916         bug.
43917         (getnow): Delete, not needed.
43918         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
43919         LIB_CLOCK_GETTIME.
43920         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
43921         clock-time, gettime.
43922         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
43923         bug.
43924         * modules/nanosleep-tests: New test.
43925         * tests/test-nanosleep.c: New file.
43926
43927         sleep: work around cygwin bug
43928         * lib/sleep.c (rpl_sleep): Work around the bug.
43929         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
43930         (gl_PREREQ_SLEEP): Delete unused macro.
43931         * modules/sleep (Depends-on): Add verify.
43932         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
43933         * modules/unistd (Makefile.am): Substitute witness.
43934         * lib/unistd.in.h (sleep): Update prototype.
43935         * doc/posix-functions/sleep.texi (sleep): Document the bug.
43936         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
43937         * modules/sleep-tests (Depends-on): Check for alarm.
43938
43939 2009-11-20  Jim Meyering  <meyering@redhat.com>
43940
43941         maint.mk: improve sc_prohibit_magic_number_exit
43942         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
43943         so it does not match uses like System.exit(1).
43944         Add comments showing how to correct all offenders.
43945
43946 2009-11-19  Eric Blake  <ebb9@byu.net>
43947
43948         xalloc-die-tests: add missing library
43949         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
43950
43951         test-xvasprintf: silence compiler warnings
43952         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
43953         empty string from gcc.
43954
43955 2009-11-19  Jim Meyering  <meyering@redhat.com>
43956
43957         xfreopen: new module, from coreutils
43958         * modules/xfreopen: New module.
43959         * lib/xfreopen.c: New file.
43960         * lib/xfreopen.h: New file.
43961         * MODULES.html.sh (File stream based Input/Output"): Add it.
43962
43963 2009-11-19  Eric Blake  <ebb9@byu.net>
43964
43965         manywarnings: depend on warnings
43966         * modules/manywarnings (Depends-on): Add warnings.
43967
43968         build: avoid compiler warnings
43969         * lib/select.c (rpl_select): Delete unused variable.
43970         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
43971
43972 2009-11-18  Eric Blake  <ebb9@byu.net>
43973
43974         tests: avoid false negative with --with-packager
43975         * tests/test-version-etc.sh: Discard packager information.
43976         * tests/test-argp-version-etc-1.sh: Likewise.
43977         Reported by Mike Frysinger.
43978
43979         utimens: fix regression on Solaris
43980         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
43981         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
43982         can only change fd timestamps via futimesat.  Instead, use an
43983         additional witness macro to avoid BSD bug.
43984         Reported by Jim Meyering.
43985
43986 2009-11-17  Eric Blake  <ebb9@byu.net>
43987
43988         usleep: use it to simplify tests
43989         * modules/stat-time-tests (Depends-on): Add usleep.
43990         (configure.ac): Drop usleep check.
43991         * modules/chown-tests (Depends-on, configure.ac): Likewise.
43992         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
43993         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
43994         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
43995         * modules/openat-tests (Depends-on, configure.ac): Likewise.
43996         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
43997         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
43998         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
43999         Likewise.
44000         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
44001         * tests/test-lchown.h (nap): Likewise.
44002         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
44003         * tests/test-stat-time.c (nap): Likewise.
44004         * tests/test-utimens-common.h (nap): Update comments.
44005
44006         usleep: new module
44007         * modules/usleep: New file.
44008         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
44009         * lib/usleep.c (usleep): Likewise.
44010         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
44011         * modules/unistd (Makefile.am): Substitute witnesses.
44012         * lib/unistd.in.h (usleep): Add declaration.
44013         * doc/pastposix-functions/usleep.texi (usleep): Document this.
44014         * MODULES.html.sh (Date and time): Likewise.
44015         * modules/usleep-tests (Depends-on): New test.
44016         * tests/test-usleep.c: New file.
44017
44018         chown: work around OpenBSD bug
44019         * lib/chown.c (rpl_chown): Work around the bug.
44020         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
44021         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
44022         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
44023         * modules/chown (Depends-on): Add stdbool.
44024         * modules/lchown (Depends-on): Likewise.
44025         * doc/posix-functions/chown.texi (chown): Document the bug.
44026         * doc/posix-functions/lchown.texi (lchown): Likewise.
44027         * tests/test-lchown.h (test_chown): Relax test.
44028
44029         mkstemp: avoid conflict with C++ keyword template
44030         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
44031         * lib/mkostemp.c (mkostemp): Likewise.
44032         * lib/mkostemps.c (mkostemps): Likewise.
44033         * lib/mkstemp.c (mkstemp): Likewise.
44034         * lib/mkstemps.c (mkstemps): Likewise.
44035
44036         xalloc-die-tests: optimize
44037         * tests/test-xalloc-die.sh: Reduce number of processes.
44038
44039 2009-11-17  Simon Josefsson  <simon@josefsson.org>
44040
44041         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
44042         patch from ludo@gnu.org (Ludovic Courtès).
44043
44044 2009-11-17  Jim Meyering  <meyering@redhat.com>
44045
44046         version-etc: use proper license string
44047         * modules/version-etc (License): Use LGPL, not LGPLv3+.
44048         * modules/version-etc-fsf: Likewise.
44049
44050 2009-11-17  Simon Josefsson  <simon@josefsson.org>
44051
44052         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
44053         printed to stdout.  Deal with EOL differences.
44054
44055 2009-11-17  Eric Blake  <ebb9@byu.net>
44056
44057         unsetenv: work around Solaris bug
44058         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
44059         * lib/unsetenv.c (rpl_unsetenv): Work around it.
44060         Reported by Jim Meyering.
44061
44062         vasnprintf: avoid compiler warnings
44063         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
44064         variables.
44065         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
44066
44067 2009-11-17  Simon Josefsson  <simon@josefsson.org>
44068
44069         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
44070         settings since xalloc-die is no longer the self test,
44071         xalloc-die.sh is.
44072
44073 2009-11-17  Jim Meyering  <meyering@redhat.com>
44074
44075         test-xalloc-die.sh: make the code agree with the commit log
44076         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
44077         at the end, just in case you happen to have a test-xalloc-die
44078         program in some other PATH directory.
44079
44080         test-xalloc-die.sh: fix a portability bug
44081         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
44082         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
44083         Otherwise, argv[0] (as often seen in diagnostics) would be too
44084         system-dependent, sometimes with, and sometimes without the leading "./".
44085
44086         version-etc-fsf: relax license to LGPLv3+
44087         * modules/version-etc-fsf (License): Relax license.
44088
44089 2009-11-16  Eric Blake  <ebb9@byu.net>
44090
44091         xalloc-die-tests: avoid printing null pointer
44092         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
44093         shell script.
44094         * tests/test-xalloc-die.c (program_name): Declare.
44095         * tests/test-xalloc-die.sh (tmpfiles): New file.
44096
44097         setenv, unsetenv: work around various bugs
44098         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
44099         (setenv) [HAVE_SETENV]: Work around bugs.
44100         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
44101         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
44102         for bugs.
44103         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
44104         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
44105         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
44106         * modules/stdlib (Makefile.am): Update substitutions.
44107         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
44108         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
44109         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
44110         * modules/setenv-tests: New test.
44111         * modules/unsetenv-tests: Likewise.
44112         * tests/test-setenv.c: New file.
44113         * tests/test-unsetenv.c: Likewise.
44114
44115 2009-11-16  Jim Meyering  <meyering@redhat.com>
44116
44117         version-etc: relax license to LGPLv3+
44118         * modules/version-etc (License): Relax license.
44119
44120         better AC_REQUIRE expanded-before-required-warning avoidance
44121         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
44122         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
44123         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
44124         which is no longer needed.
44125
44126 2009-11-16  Eric Blake  <ebb9@byu.net>
44127
44128         test-freading: clean up temporary file
44129         * tests/test-freading.c (main): Remove file on success, and use
44130         ASSERT more liberally.
44131         Reported by Jim Meyering.
44132
44133 2009-11-16  Jim Meyering  <meyering@redhat.com>
44134
44135         avoid new AC_REQUIRE expanded-before-required warnings
44136         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
44137         merely using it.
44138         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
44139         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
44140
44141 2009-11-15  Simon Josefsson  <simon@josefsson.org>
44142
44143         * tests/test-xalloc-die.c: New file.
44144         * modules/xalloc-die-tests: New file.
44145         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
44146         XFAIL_TESTS so it can be appended by modules.
44147
44148 2009-11-15  Simon Josefsson  <simon@josefsson.org>
44149
44150         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
44151         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
44152
44153 2009-11-14  Eric Blake  <ebb9@byu.net>
44154
44155         fnmatch: avoid compiler warning
44156         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
44157         to silence compiler warning about mismatch signedness in ?:.
44158         Reported by Robert Millan.
44159
44160         intprops: add double-inclusion guard
44161         * lib/intprops.h: Allow idempotent includes.
44162         Suggested by Bruce Korb.
44163
44164         openat: detect Solaris fchownat bug
44165         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
44166         penalizing glibc chownat when only lchownat is broken.
44167         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
44168         trailing slash bugs.
44169         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
44170         * modules/openat-tests (Files): Include more files.
44171         (Depends-on): Add mgetgroups, sleep, stat-time.
44172         (configure.ac): Add additional checks.
44173         (Makefile.am): Build new test.
44174         * tests/test-fchownat.c: New file.
44175
44176         lchown: detect Solaris and FreeBSD bug
44177         * lib/lchown.c (rpl_lchown): Work around bug.
44178         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
44179         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
44180         * modules/unistd (Makefile.am): Populate it.
44181         * lib/unistd.in.h (lchown): Update declaration.
44182         * doc/posix-functions/lchown.texi (lchown): Document the bug.
44183         * modules/lchown-tests: New file.
44184         * tests/test-lchown.h (test_lchown): Likewise.
44185         * tests/test-lchown.c (main): Likewise.
44186
44187         chown: detect Solaris and FreeBSD bug
44188         * lib/chown.c (rpl_chown): Work around bug.
44189         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
44190         (gl_PREREQ_CHOWN): Delete.
44191         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
44192         * modules/unistd (Makefile.am): Populate it.
44193         * lib/unistd.in.h (chown): Update declaration.
44194         * lib/lchown.c (chown): Update client.
44195         * modules/lchown (Depends-on): Add lstat.
44196         * doc/posix-functions/chown.texi (chown): Document the bug.
44197         * doc/posix-functions/getgroups.texi (getgroups): Document
44198         getgroups pitfall.
44199         * modules/chown-tests: New file.
44200         * tests/test-chown.h (test_chown): Likewise.
44201         * tests/test-chown.c (main): Likewise.
44202
44203 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
44204
44205         gnulib-tool: correctly detect absence of m4 directories
44206         * gnulib-tool: Avoid extra newline on data passed to wc -l.
44207
44208 2009-11-14  Jim Meyering  <meyering@redhat.com>
44209
44210         maint.mk: Prohibit inclusion of "xalloc.h" without use.
44211         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
44212
44213 2009-11-14  John W. Eaton  <jwe@gnu.org>
44214
44215         strftime.h: wrap function declaration in extern "C" block
44216         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
44217
44218 2009-11-13  Eric Blake  <ebb9@byu.net>
44219
44220         getgroups: avoid compiler warning
44221         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
44222
44223         getgroups: work around FreeBSD bug
44224         * lib/getgroups.c (rpl_getgroups): Work around the bug.
44225         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
44226         * doc/posix-functions/getgroups.texi (getgroups): Document it.
44227         * tests/test-getgroups.c (main): Fix buffer overrun.
44228
44229         getgroups: avoid compilation failure
44230         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
44231         * modules/getgroups (Depends-on): Add stdint.
44232
44233 2009-11-13  Jim Meyering  <meyering@redhat.com>
44234
44235         test-getgroups: avoid compilation failure
44236         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
44237
44238 2009-11-13  Eric Blake  <ebb9@byu.net>
44239
44240         mgetgroups: new module, taken from coreutils
44241         * modules/mgetgroups: New file.
44242         * lib/mgetgroups.h: Likewise.
44243         * lib/mgetgroups.c (mgetgroups): Likewise.
44244         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
44245         * MODULES.html.sh (Users and groups): Mention it.
44246
44247         getgroups: don't expose GETGROUPS_T to user
44248         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
44249         an element at a time if GETGROUPS_T is wrong size.
44250         * lib/getugroups.h (getugroups): Change signature.
44251         * lib/unistd.in.h (getgroups): Likewise.
44252         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
44253         signature needs fixing.
44254         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
44255         AC_TYPE_GETGROUPS.
44256         * modules/group-member (Depends-on): Add getgroups.
44257         * lib/group-member.c (group_info, get_group_info): Use gid_t.
44258         (group_member): Rely on getgroups replacement.
44259         * lib/getugroups.c (getugroups): Use gid_t.
44260         * tests/test-getgroups.c (main): Likewise.
44261         * NEWS: Mention the signature change.
44262         * doc/posix-functions/getgroups.texi (getgroups): Mention the
44263         problem with signature.
44264         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
44265         GETGROUPS_T is still useful for setgroups.
44266
44267         getgroups, getugroups: provide stubs for mingw
44268         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
44269         * lib/getugroups.c (getugroups): Likewise.
44270         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
44271         function.  Modernize replacement scheme.
44272         (gl_PREREQ_GETGROUPS): Delete.
44273         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
44274         * modules/getgroups (configure.ac): Declare witness.
44275         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
44276         * modules/unistd (Depends-on): Substitute witness.
44277         * lib/unistd.in.h (getgroups): Declare replacement.
44278
44279         getgroups: avoid calling exit
44280         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
44281         drop xalloc.
44282         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
44283         dependencies.
44284         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
44285         exiting, in the rare case of malloc failure.
44286
44287         getgroups: fix logic error
44288         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
44289         has more than 20 groups.
44290         * modules/getgroups-tests: New test.
44291         * tests/test-getgroups.c: New file.
44292
44293 2009-11-13  Simon Josefsson  <simon@josefsson.org>
44294
44295         * tests/test-base64.c: Improve.
44296
44297 2009-11-13  Simon Josefsson  <simon@josefsson.org>
44298
44299         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
44300         Blake <ebb9@byu.net>.
44301
44302 2009-11-13  Simon Josefsson  <simon@josefsson.org>
44303
44304         * tests/test-xvasprintf.c: Add %s%s related checks.
44305
44306 2009-11-12  Eric Blake  <ebb9@byu.net>
44307
44308         version-etc: match standards.texi style
44309         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
44310         and use <> only for URLs.
44311
44312 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
44313
44314         fts: do not fail on a submount during traversal
44315         * lib/fts.c (fts_build): Read the stat info again after opening
44316         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
44317         Original report at http://bugzilla.redhat.com/501848.
44318
44319 2009-11-12  Jim Meyering  <meyering@redhat.com>
44320
44321         bootstrap: sync from coreutils
44322         * build-aux/bootstrap (bootstrap_epilogue): New function.
44323         Use git_modules_config in one more place.  This make bootstrap's
44324         --gnulib-srcdir option more useful for testing.
44325
44326         bootstrap: generalize autoheader check
44327         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
44328         AC_CONFIG_HEADERS.
44329
44330 2009-11-11  Eric Blake  <ebb9@byu.net>
44331
44332         mkfifoat: use new modules for Solaris and BSD bugs
44333         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
44334         * lib/mkfifoat.c (mknodat): Split...
44335         * lib/mknodat.c (mknodat): ...into new file.
44336         * modules/mkfifoat (Files): Ship new file.
44337         (Depends-on): Add mkfifo, mknod.
44338         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
44339         (Depends-on): Add symlink.
44340         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
44341         redundant with test_mkfifo.h.
44342         (do_mkfifoat, do_mknodat): New helpers.
44343
44344         mknod: new module
44345         * modules/mknod: New file.
44346         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
44347         * lib/mknod.c (mknod): Likewise.
44348         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
44349         defaults.
44350         * modules/sys_stat (Makefile.am): Substitute them.
44351         * lib/sys_stat.in.h (mknod): Declare replacement.
44352         * MODULES.html.sh (Support for systems lacking POSIX:2008):
44353         Document it.
44354         * doc/posix-functions/mknod.texi (mknod): Likewise.
44355         * modules/mknod-tests: New test.
44356         * tests/test-mknod.c: Likewise.
44357
44358         mkfifo: new module
44359         * modules/mkfifo: New file.
44360         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
44361         * lib/mkfifo.c (mkfifo): Likewise.
44362         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
44363         defaults.
44364         * modules/sys_stat (Makefile.am): Substitute them.
44365         * lib/sys_stat.in.h (mkfifo): Declare replacement.
44366         * MODULES.html.sh (Support for systems lacking POSIX:2008):
44367         Document it.
44368         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
44369         * modules/mkfifo-tests: New test.
44370         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
44371         from test-mkfifoat.c.
44372         * tests/test-mkfifo.c: New file.
44373
44374         readlink: detect FreeBSD bug
44375         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
44376         slash on symlink.
44377         * doc/posix-functions/readlink.texi (readlink): Document the bug.
44378         * tests/test-readlink.h (test_readlink): Enhance test.
44379
44380         symlink: detect FreeBSD bug
44381         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
44382         slash on symlink.
44383         * doc/posix-functions/symlink.texi (symlink): Document the bug.
44384         * tests/test-symlink.h (test_symlink): Enhance test.
44385
44386 2009-11-10  Eric Blake  <ebb9@byu.net>
44387
44388         link: detect FreeBSD bug
44389         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
44390         symlink.
44391         * doc/posix-functions/link.texi (link): Document the bug.
44392         * tests/test-link.h (test_link): Enhance test.
44393         * tests/test-linkat.c (main): Update caller.
44394
44395         unlink, remove: detect FreeBSD bug
44396         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
44397         slash on symlink.
44398         * doc/posix-functions/unlink.texi (unlink): Document the bug.
44399         * doc/posix-functions/remove.texi (remove): Likewise.
44400         * tests/test-unlink.h (test_unlink): Enhance test.
44401         * tests/test-remove.c (main): Likewise.
44402
44403 2009-11-09  Eric Blake  <ebb9@byu.net>
44404
44405         rename: detect FreeBSD bug
44406         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
44407         slash on symlink.
44408         * modules/renameat-tests (Depends-on): Add filenamecat.
44409         * tests/test-rename.h (test_rename): Allow one more errno.
44410         * tests/test-renameat.c (main): Likewise.
44411         * doc/posix-functions/rename.texi (rename): Document the bug.
44412
44413         open: detect FreeBSD bug
44414         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
44415         symlink.
44416         * doc/posix-functions/open.texi (open): Document the bug.
44417         * doc/posix-functions/utimes.texi (utimes): Likewise.
44418         * tests/test-open.h (test_open): Add parameters, and test symlink
44419         handling.
44420         * tests/test-open.c (main): Adjust caller.
44421         * tests/test-fcntl-safer.c (main): Likewise.
44422         * modules/open-tests (Depends-on): Add stdbool, symlink.
44423         * modules/fcntl-safer-tests (Depends-on): Likewise.
44424         * tests/test-openat.c (main): Add test-open tests.
44425
44426         stat: detect FreeBSD bug
44427         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
44428         symlink.
44429         * doc/posix-functions/stat.texi (stat): Document the bug.
44430         * tests/test-stat.h (test_stat_func): Add argument.
44431         * tests/test-stat.c (main): Adjust caller.
44432         * tests/test-fstatat.c (main): Likewise.
44433         * modules/stat-tests (Depends-on): Add stdbool, symlink.
44434         Reported by Jim Meyering.
44435
44436 2009-11-09  James Youngman  <jay@gnu.org>
44437
44438         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
44439         * lib/strftime.c: Correct placement of #include "ignore-value.h".
44440
44441 2009-11-08  Jim Meyering  <meyering@redhat.com>
44442
44443         utimens: remove invalid futimesat call
44444         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
44445         It used the file descriptor of the target file as the DIR_FD
44446         parameter and NULL as the file name.  That caused failure with
44447         errno == EFAULT on FreeBSD-8.0-rc2
44448
44449 2009-11-07  Eric Blake  <ebb9@byu.net>
44450
44451         fflush, freadseek: use fseeko, not fseek
44452         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
44453         (clear_ungetc_buffer): Avoid potential problems on large files.
44454         * lib/freadseek.c (freadseek): Likewise.
44455         * modules/freadseek (Depends-on): Add fseeko.
44456         * modules/fseek (configure.ac): Set a witness.
44457         * tests/test-fflush.c (main): Use fseeko.
44458         * tests/test-fpurge.c (fseek): Disable link warning.
44459         * tests/test-freadable.c (fseek): Likewise.
44460         * tests/test-freading.c (fseek): Likewise.
44461         * tests/test-fseeko.c (fseek): Likewise.
44462         * tests/test-ftell.c (fseek): Likewise.
44463         * tests/test-ftello.c (fseek): Likewise.
44464         * tests/test-fwritable.c (fseek): Likewise.
44465         * tests/test-fwriting.c (fseek): Likewise.
44466
44467 2009-11-06  Simon Josefsson  <simon@josefsson.org>
44468
44469         * modules/memchr (Depends-on): Drop getpagesize dependency.
44470
44471 2009-11-06  Simon Josefsson  <simon@josefsson.org>
44472
44473         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
44474         Reported by Ludovic Courtès.
44475         * build-aux/pmccabe2html: Improve example usage.
44476         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
44477
44478 2009-11-06  Jim Meyering  <meyering@redhat.com>
44479
44480         do-release-commit-and-tag: New module.
44481         Automate the release-commit and tag process.
44482         * build-aux/do-release-commit-and-tag: New script, from coreutils.
44483         * modules/do-release-commit-and-tag: New file.
44484         * MODULES.html.sh (Support for maintaining and releasing): Add it.
44485
44486 2009-11-06  Simon Josefsson  <simon@josefsson.org>
44487
44488         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
44489         because test-select.c uses inet_pton.
44490
44491 2009-11-06  Simon Josefsson  <simon@josefsson.org>
44492
44493         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
44494         GETADDRINFO_LIB.  Bump serial number.
44495         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
44496         Suggested by Eric Blake <ebb9@byu.net>.
44497
44498 2009-11-05  Eric Blake  <ebb9@byu.net>
44499
44500         strtod: detect darwin bug
44501         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
44502         Reported by Leo Davis.
44503
44504         freopen-safer: new module
44505         * modules/freopen-safer: New module.
44506         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
44507         * lib/freopen-safer.c (freopen_safer): New file.
44508         * lib/stdio-safer.h (freopen_safer): New declaration.
44509         * lib/stdio--.h (freopen): New override.
44510         * MODULES.html.sh (File stream based Input/Output): Mention it.
44511         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
44512         freopen-safer module.
44513         * doc/posix-functions/stderr.texi (stderr): Likewise.
44514         * doc/posix-functions/stdin.texi (stdin): Likewise.
44515         * doc/posix-functions/stdout.texi (stdout): Likewise.
44516         * modules/freopen-safer-tests: New test.
44517         * tests/test-reopen-safer.c: New file.
44518
44519 2009-11-05  Jim Meyering  <meyering@redhat.com>
44520
44521         maint.mk: Prohibit inclusion of "close-stream.h" without use.
44522         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
44523
44524 2009-11-05  Simon Josefsson  <simon@josefsson.org>
44525
44526         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
44527
44528 2009-11-05  Simon Josefsson  <simon@josefsson.org>
44529
44530         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
44531
44532 2009-11-05  Simon Josefsson  <simon@josefsson.org>
44533
44534         Fix link error.
44535         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
44536         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
44537
44538 2009-11-05  Simon Josefsson  <simon@josefsson.org>
44539
44540         * tests/test-func.c: Also test value of __func__.
44541
44542 2009-11-05  Simon Josefsson  <simon@josefsson.org>
44543
44544         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
44545         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
44546
44547 2009-11-05  Bruno Haible  <bruno@clisp.org>
44548
44549         Fix link error.
44550         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
44551         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
44552         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
44553
44554 2009-11-05  Bruno Haible  <bruno@clisp.org>
44555
44556         Tests for module 'inet_pton'.
44557         * modules/inet_pton-tests: New file.
44558         * tests/test-inet_pton.c: New file.
44559
44560 2009-11-05  Bruno Haible  <bruno@clisp.org>
44561
44562         Tests for module 'inet_ntop'.
44563         * modules/inet_ntop-tests: New file.
44564         * tests/test-inet_ntop.c: New file.
44565
44566 2009-11-04  Eric Blake  <ebb9@byu.net>
44567
44568         stdlib-safer: wrap all mkstemp variants
44569         * modules/mkostemp (configure.ac): Set witness.
44570         * modules/mkostemps (configure.ac): Likewise.
44571         * modules/mkstemps (configure.ac): Likewise.
44572         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
44573         (mkstemps_safer): Wrap more functions.
44574         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
44575         wrapping.
44576         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
44577         (mkstemps_safer): Implement the wrappers.
44578
44579         mkstemps, mkostemps: new modules
44580         * modules/mkostemps: New module.
44581         * modules/mkstemps: Likewise.
44582         * lib/mkostemps.c (mkostemps): New file.
44583         * lib/mkstemps.c (mkstemps): Likewise.
44584         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
44585         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
44586         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
44587         * modules/stdlib (Makefile.am): Substitute them.
44588         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
44589         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
44590         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
44591         * doc/gnulib.texi (Glibc stdlib.h): Include them.
44592         * MODULES.html.sh (File system functions): Mention them.
44593
44594         tempname: resync from glibc
44595         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
44596         same values for __GT_FILE as glibc.  Abort even when assertions
44597         are disabled.
44598         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
44599         match its value otherwise.  Allow idempotent inclusion.
44600         * lib/mkdtemp.c (mkdtemp): Adjust caller.
44601         * lib/mkostemp.c (mkostemp): Likewise.
44602         * lib/mkstemp.c (mkstemp): Likewise.
44603         * lib/tmpfile.c (tmpfile): Likewise.
44604         * NEWS: Document this.
44605
44606         utimens: fix use of futimens on older Linux
44607         * lib/utimens.c (fdutimens): Use updated, rather than original,
44608         timespec to avoid bug in older Linux kernel.
44609         Reported by Simon Josefsson.
44610
44611 2009-11-04  Bruno Haible  <bruno@clisp.org>
44612
44613         Make num_processors more flexible and consistent.
44614         * lib/nproc.h (enum nproc_query): New type.
44615         (num_processors): Add a 'query' argument.
44616         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
44617         (num_processors): Add a 'query' argument. Test the value of the
44618         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
44619         mingw, count the number of CPUs available for the current process.
44620         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
44621         Check for sched_getaffinity and sched_getaffinity_np.
44622         * modules/nproc (Depends-on): Add c-ctype, extensions.
44623         * NEWS: Mention the change.
44624
44625 2009-11-03  Bruno Haible  <bruno@clisp.org>
44626
44627         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
44628
44629 2009-11-03  Jim Meyering  <meyering@redhat.com>
44630
44631         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
44632         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
44633         if it is defined.
44634
44635 2009-11-02  Eric Blake  <ebb9@byu.net>
44636
44637         mktime, timegm: share common declaration
44638         * lib/mktime-internal.h: New file.
44639         * lib/mktime.c: Use it rather than open-coding a declaration.
44640         * lib/timegm.c: Likewise.
44641         * modules/mktime (Files): Ship it.
44642         * modules/timegm (Files): Likewise.
44643         Suggested by Bruno Haible.
44644
44645         test-update-copyright: update test to match script changes
44646         * tests/test-update-copyright.sh: Avoid hard-coding perl
44647         location.  Don't update *.bak created by earlier runs.
44648
44649 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
44650             Simon Josefsson  <simon@josefsson.org>
44651             Bruno Haible  <bruno@clisp.org>
44652
44653         Fix link error on Solaris 8.
44654         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
44655         also in libnsl. Define also INET_PTON_LIB.
44656         * modules/inet_pton (Link): New section.
44657
44658 2009-11-02  Simon Josefsson  <simon@josefsson.org>
44659             Bruno Haible  <bruno@clisp.org>
44660
44661         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
44662         * modules/inet_ntop (Link): New section.
44663         Reported by Boyan Kasarov <bkasarov@gmail.com>.
44664
44665 2009-11-02  Eric Blake  <ebb9@byu.net>
44666
44667         maint: avoid compiler warnings in m4 macros
44668         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
44669         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
44670
44671 2009-11-02  Simon Josefsson  <simon@josefsson.org>
44672
44673         * m4/pmccabe2html.m4: Remove file.
44674         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
44675         function.  Change maintainer.
44676         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
44677         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
44678         Courtès).
44679
44680 2009-10-31  Eric Blake  <ebb9@byu.net>
44681
44682         fseeko: fix m4 regression
44683         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
44684         regression from 2009-10-27.
44685         Reported by Ralf Wildenhues.
44686
44687 2009-10-31  Jim Meyering  <meyering@redhat.com>
44688
44689         inttostr: aesthetics and improved (compile-time) safety
44690         Define inttype_is_signed rather than inttype_is_unsigned,
44691         since the sole use is via "#if inttype_is_signed".
44692         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
44693         inttype_is_unsigned.
44694         * lib/offtostr.c (inttype_is_signed): Likewise.
44695         * lib/uinttostr.c (inttype_is_signed): Likewise.
44696         * lib/umaxtostr.c (inttype_is_signed): Likewise.
44697         * lib/inttostr.c (inttostr): Use verify to cross-check the
44698         inttype_is_signed value and the signedness of the actual type.
44699         * modules/inttostr (Depends-on): Add verify.
44700
44701 2009-10-30  Eric Blake  <ebb9@byu.net>
44702
44703         build: avoid compiler warnings
44704         * lib/fchmodat.c (lchmod): Mark unused variables.
44705         * lib/getopt.c (_getopt_initialize): Likewise.
44706         * lib/mktime.c (__mktime_internal): Provide prototype.
44707         * lib/inttostr.c (inttostr): Avoid compiler warning even with
44708         older gcc that do not understand #pragma GCC diagnostic.
44709         * lib/uinttostr.c (inttype_is_unsigned): Define.
44710         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
44711
44712 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
44713
44714         stat: fix compilation on AIX
44715         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
44716         only see struct stat64.
44717
44718 2009-10-30  Eric Blake  <ebb9@byu.net>
44719
44720         exclude: make more robust
44721         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
44722         rather than masking a coding bug.
44723         Suggested by Bruno Haible.
44724
44725 2009-10-30  Jim Meyering  <meyering@redhat.com>
44726
44727         perl scripts: remove #!/usr/bin/perl in favor of more portable...
44728         Rather than putting #!/usr/bin/perl on the first line,
44729         start with a variant of what's recommended by "man perlrun" that
44730         invokes the first "perl" program from your shell's search path.
44731         * build-aux/gitlog-to-changelog: Replace #!... as above.
44732         Add a "Local Variables" perl mode setting.
44733         Prompted by a patch from Ludovic Courtès.
44734         Improved by Eric Blake.
44735         * build-aux/useless-if-before-free: Likewise.
44736         * build-aux/announce-gen: Likewise.
44737         * build-aux/update-copyright: Likewise.
44738
44739 2009-10-29  Eric Blake  <ebb9@byu.net>
44740
44741         filenamecat-lgpl: adjust clients
44742         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
44743         filenamecat.
44744         * modules/renameat (Depends-on): Likewise.
44745
44746         filenamecat: split into filenamecat-lgpl
44747         * modules/filenamecat-lgpl: New module.
44748         * modules/filenamecat (Files): Move library-safe files into
44749         filenamecat-lgpl.
44750         (Depends-on): Add filenamecat-lgpl.
44751         (configure.ac): Declare witness.
44752         * lib/filenamecat.h (file_name_concat): Only declare when using
44753         GPL module.
44754         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
44755         Move...
44756         * lib/filenamecat-lgpl.c: ...into new file.
44757         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
44758         (gl_FILE_NAME_CONCAT): Use it.
44759         * MODULES.html.sh (File system functions): Mention new module.
44760
44761         argp: avoid memory leak
44762         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
44763         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
44764         base_name, since the latter malloc()s and can call exit().
44765         Leak introduced 2006-07-03.
44766
44767         dirname-lgpl: adjust clients that don't need full dirname
44768         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
44769         * modules/filenamecat (Depends-on): Likewise.
44770         * modules/linkat (Depends-on): Likewise.
44771         * modules/mkancesdirs (Depends-on): Likewise.
44772         * modules/mkdir (Depends-on): Likewise.
44773         * modules/openat (Depends-on): Likewise.
44774         * modules/savewd (Depends-on): Likewise.
44775         * modules/rename (Depends-on): Likewise.
44776         (License): Relax license.
44777         * modules/mkdir-tests (Depends-on): Drop progname.
44778         (Makefile.am): Delete unneeded LDADD.
44779         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
44780
44781         dirname: split into dirname-lgpl
44782         * modules/dirname-lgpl: New module.
44783         * modules/dirname (Files): Move library-safe files into
44784         dirname-lgpl.
44785         (Depends-on): Add dirname-lgpl.
44786         (configure.ac): Declare witness.
44787         * modules/double-slash-root (License): Relax license.
44788         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
44789         module.
44790         * lib/dirname.c (dir_len, mdir_name): Move...
44791         * lib/dirname-lgpl.c: ...into new file.
44792         * lib/basename.c (last_component, base_len): Move...
44793         * lib/basename-lgpl.c: ...into new file.
44794         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
44795         (gl_DIRNAME): Use it.
44796         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
44797         Mention new module.
44798         * modules/dirname-tests (Depends-on): Add progname.
44799         * tests/test-dirname.c (program_name): Delete.
44800
44801         mkdir: make safe for libraries
44802         * modules/mkdir (Depends-on): Drop xalloc.
44803         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
44804         exit.
44805
44806         tests: avoid some compiler warnings
44807         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
44808         literals.
44809         * tests/test-memchr.c (main): Avoid type mismatch.
44810         * tests/test-arpa_inet.c (main): Avoid unused parameters.
44811         * tests/test-base64.c (main): Likewise.
44812         * tests/test-getdelim.c (main): Likewise.
44813         * tests/test-gethostname.c (main): Likewise.
44814         * tests/test-getline.c (main): Likewise.
44815         * tests/test-netinet_in.c (main): Likewise.
44816         * tests/test-select.c (open_server_socket, main): Likewise.
44817         * tests/test-select-stdin.c (main): Likewise.
44818         * tests/test-sockets.c (main): Likewise.
44819         * tests/test-strsignal.c (main): Likewise.
44820         * tests/test-sys_select.c (main): Likewise.
44821         * tests/test-sys_socket.c (main): Likewise.
44822         * tests/test-u64.c (main): Likewise.
44823         * tests/test-xfprintf-posix.c (main): Likewise.
44824         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
44825
44826         sockets: avoid compiler warning
44827         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
44828
44829         maint: detect usage(1) and other suspicious exits
44830         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
44831
44832 2009-10-29  Jim Meyering  <meyering@redhat.com>
44833
44834         timespec: long-to-int truncation could make timespec_cmp malfunction
44835         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
44836         a multiple of 2^32 nanoseconds as no difference.
44837
44838 2009-10-28  Jim Meyering  <meyering@redhat.com>
44839
44840         fprintftime: wrap macro code argument in "do {...} while(0)"
44841         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
44842         cpy macro must be a statement that can be followed by a semicolon.
44843         Now that the else clause contains a comment and is hence longer
44844         than one line, I require curly braces.  That in turn requires
44845         that we wrap this code block in the standard do...while(0).
44846
44847         fprintftime: remove stray semicolon from previous change
44848         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
44849
44850         fprintftime: avoid a warning about ignored fwrite return value
44851         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
44852         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
44853         that is unsafe.
44854         * modules/fprintftime (Depends-on): Add ignore-value.
44855
44856         exclude: avoid an unwarranted warning
44857         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
44858
44859 2009-10-27  Eric Blake  <ebb9@byu.net>
44860
44861         fseek: avoid compilation failure when fflush is replaced
44862         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
44863         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
44864         module is in use.
44865         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
44866         module is not in use; since REPLACE_FSEEK worked otherwise.
44867         (GNULIB_FTELLO): Likewise for ftell.
44868         Reported by Ian Beckwith and others.
44869
44870 2009-10-27  Bruno Haible  <bruno@clisp.org>
44871
44872         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
44873         Reported by Jim Meyering.
44874
44875 2009-10-27  Jim Meyering  <jim@meyering.net>
44876             Bruno Haible  <bruno@clisp.org>
44877
44878         Avoid warning despite dropping the return value of fwrite.
44879         * lib/unicodeio.c: Include ignore-value.h.
44880         (fwrite_success_callback): Explicitly ignore fwrite's return value.
44881         * modules/unicodeio (Depends-on): Add ignore-value.
44882
44883 2009-10-26  Eric Blake  <ebb9@byu.net>
44884
44885         areadlinkat: fix fallback path
44886         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
44887         pointer and zero.
44888
44889 2009-10-22  Pádraig Brady  <P@draigBrady.com>
44890
44891         Use a better IO block size for modern systems
44892         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
44893         * lib/md2.c: Likewise.
44894         * lib/md4.c: Likewise.
44895         * lib/md5.c: Likewise.
44896         * lib/sha1.c: Likewise.
44897         * lib/sha256.c: Likewise.
44898         * lib/sha512.c: Likewise.
44899
44900 2009-10-22  Eric Blake  <ebb9@byu.net>
44901
44902         tests: avoid several compiler warnings
44903         * tests/test-getcwd.c (main): Avoid buffer underflow.
44904         * tests/test-getdate.c (main): String literals are not safe with
44905         putenv, so use setenv.  Declare unused argument.
44906         * modules/getdate-tests (Depends-on): Add setenv.
44907         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
44908         problems with string literals in char *.
44909         * tests/test-hash.c (main): Avoid shadowing declaration.
44910         (insert_new): Treat string literals as char const *.
44911         * tests/test-getopt.h (test_getopt): Likewise.
44912         (getopt_loop): Alter types to minimize casting elsewhere.
44913         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
44914         (test_getopt_long_posix): Likewise.
44915         (do_getopt_long): Add wrapper to minimize casting.
44916         * tests/test-atexit.c (clear_temp_file): Use void.
44917         * tests/test-areadlink-with-size.c (main): Declare unused
44918         arguments.
44919         * tests/test-areadlink.c (main): Likewise.
44920         * tests/test-areadlinkat-with-size.c (main): Likewise.
44921         * tests/test-areadlinkat.c (main): Likewise.
44922         * tests/test-canonicalize-lgpl.c (main): Likewise.
44923         * tests/test-canonicalize.c (main): Likewise.
44924         * tests/test-dirent-safer.c (main): Likewise.
44925         * tests/test-dirname.c (main): Likewise.
44926         * tests/test-dup2.c (main): Likewise.
44927         * tests/test-fchdir.c (main): Likewise.
44928         * tests/test-fcntl-h.c (main): Likewise.
44929         * tests/test-fcntl-safer.c (main): Likewise.
44930         * tests/test-fdopendir.c (main): Likewise.
44931         * tests/test-fdutimensat.c (main): Likewise.
44932         * tests/test-fflush.c (main): Likewise.
44933         * tests/test-filenamecat.c (main): Likewise.
44934         * tests/test-filevercmp.c (main): Likewise.
44935         * tests/test-fopen-safer.c (main): Likewise.
44936         * tests/test-fopen.c (main): Likewise.
44937         * tests/test-fpending.c (main): Likewise.
44938         * tests/test-fpurge.c (main): Likewise.
44939         * tests/test-freading.c (main): Likewise.
44940         * tests/test-fstatat.c (main): Likewise.
44941         * tests/test-fsync.c (main): Likewise.
44942         * tests/test-futimens.c (main): Likewise.
44943         * tests/test-getndelim2.c (main): Likewise.
44944         * tests/test-gettimeofday.c (main): Likewise.
44945         * tests/test-getopt.c (main): Likewise.
44946         * tests/test-i-ring.c (main): Likewise.
44947         * tests/test-inttypes.c (main): Likewise.
44948         * tests/test-link.c (main): Likewise.
44949         * tests/test-lstat.c (main): Likewise.
44950         * tests/test-math.c (main): Likewise.
44951         * tests/test-md5.c (main): Likewise.
44952         * tests/test-memchr2.c (main): Likewise.
44953         * tests/test-memrchr.c (main): Likewise.
44954         * tests/test-mkdir.c (main): Likewise.
44955         * tests/test-mkdirat.c (main): Likewise.
44956         * tests/test-mkfifoat.c (main): Likewise.
44957         * tests/test-open.c (main): Likewise.
44958         * tests/test-openat-safer.c (main): Likewise.
44959         * tests/test-openat.c (main): Likewise.
44960         * tests/test-quotearg.c (main): Likewise.
44961         * tests/test-rawmemchr.c (main): Likewise.
44962         * tests/test-readlink.c (main): Likewise.
44963         * tests/test-remove.c (main): Likewise.
44964         * tests/test-rename.c (main): Likewise.
44965         * tests/test-renameat.c (main): Likewise.
44966         * tests/test-rmdir.c (main): Likewise.
44967         * tests/test-sha1.c (main): Likewise.
44968         * tests/test-signal.c (main): Likewise.
44969         * tests/test-sigaction.c (main): Likewise.
44970         * tests/test-stat.c (main): Likewise.
44971         * tests/test-stat-time.c (main): Likewise.
44972         * tests/test-stddef.c (main): Likewise.
44973         * tests/test-stdint.c (main): Likewise.
44974         * tests/test-stdio.c (main): Likewise.
44975         * tests/test-stdlib.c (main): Likewise.
44976         * tests/test-strchrnul.c (main): Likewise.
44977         * tests/test-strerror.c (main): Likewise.
44978         * tests/test-string.c (main): Likewise.
44979         * tests/test-strtod.c (main): Likewise.
44980         * tests/test-strverscmp.c (main): Likewise.
44981         * tests/test-symlink.c (main): Likewise.
44982         * tests/test-symlinkat.c (main): Likewise.
44983         * tests/test-sys_stat.c (main): Likewise.
44984         * tests/test-sys_time.c (main): Likewise.
44985         * tests/test-time.c (main): Likewise.
44986         * tests/test-unistd.c (main): Likewise.
44987         * tests/test-unlink.c (main): Likewise.
44988         * tests/test-unlinkat.c (main): Likewise.
44989         * tests/test-utimens.c (main): Likewise.
44990         * tests/test-utimensat.c (main): Likewise.
44991         * tests/test-version-etc.c (main): Likewise.
44992         * tests/test-wchar.c (main): Likewise.
44993         * tests/test-wctype.c (main): Likewise.
44994         * tests/test-xprintf-posix.c (main): Likewise.
44995         * tests/test-posixtm.c (main): Likewise.
44996         (STREQ): Delete unused macro.
44997         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
44998         shadowed variables.
44999         * tests/test-memchr.c (main): Likewise.
45000
45001 2009-10-21  Eric Blake  <ebb9@byu.net>
45002
45003         areadlinkat: avoid failure on older glibc
45004         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
45005         rather than mis-comparing 0 against FUNC_RESULT of char*.
45006
45007 2009-10-21  Bruno Haible  <bruno@clisp.org>
45008
45009         * modules/stpncpy (License): Relicense under LGPLv2+.
45010         Reported by David Lutterkort <lutter@redhat.com>.
45011
45012 2009-10-20  Eric Blake  <ebb9@byu.net>
45013
45014         utimensat: work around Solaris 9 bug
45015         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
45016         has trailing slash bugs.
45017         * tests/test-lutimens.h (test_lutimens): Enhance test.
45018         * tests/test-utimens.h (test_utimens): Likewise.
45019         * doc/posix-functions/utime.texi (utime): Enhance documentation.
45020         * doc/posix-functions/utimes.texi (utimes): Likewise.
45021         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
45022         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
45023         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
45024         * doc/posix-functions/futimens.texi (futimens): Likewise.
45025
45026         fdutimensat: new module
45027         * modules/fdutimensat: New file.
45028         * lib/fdutimensat.c (fdutimensat): Likewise.
45029         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
45030         * MODULES.html.sh (File system functions): Mention module.
45031         * modules/fdutimensat-tests: New test.
45032         * tests/test-fdutimensat.c: Likewise.
45033
45034         doc: regenerate INSTALL
45035         * doc/INSTALL: Reflect recent autoconf update.
45036         * doc/INSTALL.ISO: Likewise.
45037         * doc/INSTALL.UTF-8: Likewise.
45038
45039 2009-10-20  Pádraig Brady  <P@draigBrady.com>
45040
45041         acl: warn if ACL support is not detected
45042         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
45043
45044 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
45045
45046         * lib/nproc.h: Add extern "C" block for C++.
45047
45048 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
45049             Bruno Haible  <bruno@clisp.org>
45050
45051         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
45052         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
45053         * doc/posix-functions/isalpha.texi: Likewise.
45054         * doc/posix-functions/isblank.texi: Likewise.
45055         * doc/posix-functions/iscntrl.texi: Likewise.
45056         * doc/posix-functions/isdigit.texi: Likewise.
45057         * doc/posix-functions/isgraph.texi: Likewise.
45058         * doc/posix-functions/islower.texi: Likewise.
45059         * doc/posix-functions/isprint.texi: Likewise.
45060         * doc/posix-functions/ispunct.texi: Likewise.
45061         * doc/posix-functions/isspace.texi: Likewise.
45062         * doc/posix-functions/isupper.texi: Likewise.
45063         * doc/posix-functions/isxdigit.texi: Likewise.
45064
45065 2009-10-18  Bruno Haible  <bruno@clisp.org>
45066
45067         Tests for module 'isblank'.
45068         * modules/isblank-tests: New file.
45069         * tests/test-isblank.c: New file.
45070
45071         New module 'isblank'.
45072         * lib/isblank.c: New file.
45073         * m4/isblank.m4: New file.
45074         * modules/isblank: New file.
45075         * doc/posix-functions/isblank.texi: Mention the new module.
45076
45077 2009-10-18  Bruno Haible  <bruno@clisp.org>
45078
45079         New module 'ctype'.
45080         * lib/ctype.in.h: New file.
45081         * m4/ctype.m4: New file.
45082         * modules/ctype: New file.
45083         * doc/posix-headers/ctype.texi: Mention the new module.
45084
45085 2009-10-18  Jim Meyering  <meyering@redhat.com>
45086
45087         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
45088         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
45089         right after its initialization, rather than farther down.
45090         Keeping these in close proximity makes it easier to ensure
45091         that each such variable is initialized.  E.g.,
45092
45093             LIB_CLOCK_GETTIME=
45094             AC_SUBST([LIB_CLOCK_GETTIME])
45095
45096         This change also increments these serial numbers.
45097         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
45098         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
45099         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
45100
45101 2009-10-18  Bruno Haible  <bruno@clisp.org>
45102
45103         Don't let environment variables perturb build.
45104         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
45105         (gl_PREREQ_GETHRXTIME): ... not here.
45106
45107 2009-10-18  Bruno Haible  <bruno@clisp.org>
45108
45109         Avoid symlink attack in localcharset module.
45110         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
45111         (O_NOFOLLOW): Define fallback.
45112         (get_charset_aliases): Don't open the file if it is a symbolic link.
45113         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
45114         gl_FCNTL_H.
45115         (gl_FCNTL_H): Require it.
45116         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
45117         * modules/localcharset (Files): Add m4/fcntl_h.m4.
45118         Reported by Fergal Glynn <fglynn@veracode.com>.
45119
45120 2009-10-18  Bruno Haible  <bruno@clisp.org>
45121
45122         Implement nproc for mingw.
45123         * lib/nproc.c: Include <windows.h>
45124         (num_processors): On native Windows platforms, try GetSystemInfo.
45125
45126 2009-10-18  Bruno Haible  <bruno@clisp.org>
45127
45128         Implement nproc for IRIX.
45129         * lib/nproc.c: Include <sys/sysmp.h>.
45130         (num_processors): On IRIX systems, try sysmp.
45131         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
45132
45133 2009-10-18  Bruno Haible  <bruno@clisp.org>
45134
45135         Implement nproc for HP-UX.
45136         * lib/nproc.c: Include <sys/pstat.h>
45137         (num_processors): On HP-UX systems, try pstat_getdynamic.
45138         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
45139         pstat_getdynamic.
45140
45141 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
45142             Bruno Haible  <bruno@clisp.org>
45143
45144         Implement nproc for NetBSD, OpenBSD.
45145         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
45146         (ARRAY_SIZE): New macro.
45147         (num_processors): On BSD systems, try sysctl of HW_NCPU.
45148         * m4/nproc.m4: New file.
45149         * modules/nproc (Files): Add m4/nproc.m4.
45150         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
45151         (Makefile.am): Instead, augment lib_SOURCES.
45152
45153 2009-10-18  Bruno Haible  <bruno@clisp.org>
45154
45155         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
45156         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
45157         sys/param.h.
45158
45159 2009-10-16  Eric Blake  <ebb9@byu.net>
45160
45161         utimensat: new module
45162         * modules/utimensat: New file.
45163         * lib/utimensat.c (utimensat): Likewise.
45164         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
45165         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
45166         so we can work around Linux bugs.
45167         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
45168         * modules/sys_stat (Makefile.am): Substitute them.
45169         * lib/sys_stat.in.h (utimensat): Declare it.
45170         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45171         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
45172         * modules/utimensat-tests: New test.
45173         * tests/test-utimensat.c: Likewise.
45174
45175         utimens: let lutimens work on non-symlinks
45176         * lib/utimens.c (lutimens): Fall back to utimens rather than
45177         failing with ENOSYS, when file is not a symlink.
45178         (utimens): Reduce redirection.
45179         * tests/test-lutimens.h (test_lutimens): Update test to cover
45180         non-symlinks.
45181         * tests/test-utimens.h (test_utimens): Update test to cover
45182         symlinks.
45183         * tests/test-utimens.c (main): Update caller.
45184
45185         utimens: cache whether utimensat syscall works
45186         * lib/utimens.c (utimensat_works_really): New cache variable.
45187         (fdutimens, lutimens): Use it to avoid failing syscall.
45188
45189         test-stat-time, test-utimens: improve portability
45190         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
45191         ext4 on alpha, and for cygwin.
45192         * tests/test-utimens-common.h: New file.
45193         (nap): Factor delays into single function.
45194         * tests/test-lutimens.h (test_lutimens): Use new header.
45195         * tests/test-futimens.h (test_futimens): Likewise.
45196         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
45197         timestamps to occur from same machine, as was done previously for
45198         test_utimens.
45199         * modules/utimens-tests (Files): Ship new file.
45200         * modules/futimens-tests (Files): Likewise.
45201         Reported in part by Jim Meyering.
45202
45203         sys_stat: sort replacement declarations
45204         * lib/sys_stat.in.h: Sort declarations.
45205         * lib/futimens.c (futimens): Fix typo.
45206
45207 2009-10-15  Jim Meyering  <meyering@redhat.com>
45208
45209         don't let environment settings perturb build
45210         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
45211         could cause a configure-time and/or build-time malfunction.
45212         Typically, a configure-time function-in-library test is performed
45213         via code like this:
45214
45215           LIB_VAR=
45216           AC_SUBST([LIB_VAR])
45217           prefix_saved_LIBS=$LIBS
45218             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
45219                        [test "$ac_cv_search_FUNC" = "none required" ||
45220                         LIB_VAR=$ac_cv_search_FUNC])
45221           LIBS=$prefix_saved_LIBS
45222
45223         However, in each of the files affected by this change, the LIB_VAR=
45224         initialization was omitted.  Thus, when set in the environment, its
45225         value would propagate into generated Makefiles when FUNC is not found
45226         in LIB_NAME.
45227         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
45228         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
45229         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
45230
45231 2009-10-14  Eric Blake  <ebb9@byu.net>
45232
45233         fchdir: avoid infinite recursion in mingw
45234         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
45235         recursing.
45236
45237         test-stat-time: port to mingw
45238         * tests/test-stat-time.c (force_unlink): Return a value.
45239         (test_ctime) [W32]: Fix compilation error.
45240         (nap): Don't call usleep with too large an argument.  Use
45241         force_unlink.
45242         * doc/pastposix-functions/usleep.texi (usleep): Document the
45243         portability issue.
45244
45245 2009-10-13  Jim Meyering  <meyering@redhat.com>
45246
45247         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
45248         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
45249         * modules/pipe-filter-ii: Likewise.
45250         * modules/sys_socket-tests: Likewise.
45251         * modules/tsearch-tests: Likewise.
45252         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
45253         (check): Depend on it.
45254
45255 2009-10-12  Eric Blake  <ebb9@byu.net>
45256
45257         utimens-tests: port to NFS file systems
45258         * tests/test-utimens.h (test_utimens): Refactor utimecmp
45259         comparisons to avoid spurious failures from timestamp drift
45260         between NFS machines.
45261
45262 2009-10-12  Eric Blake  <ebb9@byu.net>
45263
45264         stat-time-tests: minor cleanups
45265         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
45266         * tests/test-stat-time.c (nap): Separate assignment from call.
45267         Suggested by Paolo Bonzini and Bruno Haible.
45268
45269         sys_stat: guarantee struct timespec
45270         * lib/sys_stat.in.h (includes): Always include <time.h>
45271         * modules/sys_stat (Depends-on): Add time.
45272         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
45273         mode_t permission values.
45274         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
45275         get at subsecond timestamps.
45276
45277 2009-10-10  Eric Blake  <ebb9@byu.net>
45278
45279         futimens: new module
45280         * modules/futimens: New file.
45281         * lib/futimens.c (futimens): Likewise.
45282         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
45283         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
45284         we can work around Linux bugs.
45285         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
45286         * modules/sys_stat (Makefile.am): Substitute them.
45287         * lib/sys_stat.in.h (futimens): Declare it.
45288         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45289         * doc/posix-functions/futimens.texi (futimens): Likewise.
45290         * modules/futimens-tests: New test.
45291         * tests/test-futimens.c: Likewise.
45292
45293         utimens: introduce fdutimens
45294         * lib/utimens.h (fdutimens): New prototype.
45295         * lib/utimens.c (gl_futimens): Move guts...
45296         (fdutimens): ...to new interface.
45297         * tests/test-utimens.c (do_fdutimens): Use it.
45298
45299         utimens: add UTIME_NOW and UTIME_OMIT support
45300         * lib/utimens.c (validate_timespec, update_timespec): New helper
45301         functions.
45302         (gl_futimens, lutimens): Use them.
45303         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
45304         stdbool, sys_stat.
45305         (Link): Mention resulting library dependency.
45306         * modules/utimecmp (Link): Likewise.
45307         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
45308         (Makefile.am): Pick up library dependency.
45309         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
45310         definition.
45311         * tests/test-sys_stat.c: Test the definitions.
45312         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
45313         * NEWS: Document library dependency.
45314
45315         utimecmp: support symlink timestamps
45316         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
45317         hashing when possible.  Use pathconf when available.
45318         (SYSCALL_RESOLUTION): Recognize tighter resolution.
45319         * modules/utimecmp (Depends-on): Add lstat.
45320
45321         utimens: add lutimens interface
45322         * lib/utimens.c (lutimens): New function.
45323         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
45324         * lib/utimens.h (lutimens): Declare new interface.
45325         * tests/test-utimens.c (main): Enhance test.
45326         * tests/test-lutimens.h (test_lutimens): New file.
45327         * modules/utimens-tests (Files): Distribute it.
45328         (Depends-on): Add symlink.
45329         (configure.ac): Check for usleep.
45330
45331         utimens: validate futimens usage
45332         * lib/utimens.c (gl_futimens): Require valid fd up front, using
45333         fewer syscalls on failure later on.  Avoid compiler warning on
45334         mingw.
45335         * modules/utimens (Depends-on): Add dup2.
45336
45337         utimens: add test
45338         * modules/utimens-tests: New test.
45339         * tests/test-utimens.h: New file.
45340         * tests/test-futimens.h: Likewise.
45341         * tests/test-utimens.c: Likewise.
45342
45343         doc: mention timestamp portability issues
45344         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
45345         instead.
45346         * doc/posix-functions/utime.texi (utime): Likewise.
45347         * doc/posix-functions/utimes.texi (utimes): Likewise.
45348         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
45349         instead.
45350         * doc/posix-functions/futimens.texi (futimens): Mention utimens
45351         module.
45352         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
45353         Mention weakness with symlink timestamps.
45354         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
45355         to utimensat/futimens instead.
45356         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
45357
45358         test-dup2: enhance test
45359         * tests/test-dup2.c (main): Also check AT_FDCWD.
45360
45361         test-stat-time: avoid more spurious failures
45362         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
45363         xfs; and avoid race if the two timestamps cross quantization edge.
45364
45365         relocatable: prefer 'file system' over 'filesystem'
45366         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
45367         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
45368         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
45369         * doc/relocatable.texi (Enabling Relocatability): Likewise.
45370         * lib/relocatable.c (compute_curr_prefix): Likewise.
45371
45372 2009-10-10  Jim Meyering  <meyering@redhat.com>
45373
45374         stat-time-tests: check for the usleep function
45375         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
45376
45377 2009-10-10  Bruno Haible  <bruno@clisp.org>
45378
45379         * modules/xnanosleep: Put the Link section after the Include section.
45380
45381 2009-10-09  Eric Blake  <ebb9@byu.net>
45382
45383         dup2: work around FreeBSD 6.1 bug
45384         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
45385         * doc/posix-functions/dup2.texi (dup2): Document it.
45386         Reported by Nelson H. F. Beebe and Jim Meyering.
45387
45388         test-stat-time: port to buggy NFS clients
45389         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
45390         (test_ctime): Also skip test if mtime and ctime are skewed.
45391
45392         maint: prefer 'file system' over 'filesystem'
45393         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
45394         * doc/posix-functions/lstat.texi (lstat): Likewise.
45395         * lib/file-has-acl.c (file_has_acl): Likewise.
45396         * lib/fwriteerror.c [TEST]: Likewise.
45397         * tests/test-areadlink.h (test_areadlink): Likewise.
45398         * tests/test-areadlinkat-with-size.c (main): Likewise.
45399         * tests/test-areadlinkat.c (main): Likewise.
45400         * tests/test-canonicalize-lgpl.c (main): Likewise.
45401         * tests/test-canonicalize.c (main): Likewise.
45402         * tests/test-fstatat.c (main): Likewise.
45403         * tests/test-linkat.c (main): Likewise.
45404         * tests/test-lstat.h (test_lstat_func): Likewise.
45405         * tests/test-mkdir.h (test_mkdir): Likewise.
45406         * tests/test-readlink.h (test_readlink): Likewise.
45407         * tests/test-remove.c (main): Likewise.
45408         * tests/test-rename.h (test_rename): Likewise.
45409         * tests/test-renameat.c (main): Likewise.
45410         * tests/test-rmdir.h (test_rmdir_func): Likewise.
45411         * tests/test-symlink.h (test_symlink): Likewise.
45412         * tests/test-symlinkat.c (main): Likewise.
45413         * tests/test-unlink.h (test_unlink_func): Likewise.
45414         * tests/test-unlinkat.c (main): Likewise.
45415
45416         maint: make realtime library usage explicit
45417         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
45418         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
45419         * modules/settime (Link): Likewise.
45420         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
45421
45422         test-stat-time: speed up execution
45423         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
45424         warning on mingw.
45425         (nap): New helper function.
45426         (prepare_test): Use it to reduce sleep time.
45427         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
45428         execution.
45429         * modules/stat-time-tests (configure.ac): Check for usleep.
45430
45431 2009-10-09  Jim Meyering  <meyering@redhat.com>
45432
45433         selinux-h: always use getfilecon wrappers
45434         * lib/getfilecon.c: New file.
45435         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
45436         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
45437         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
45438         (fgetfilecon): Provide a stub.
45439         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
45440         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
45441         file unconditionally.
45442         When <selinux/selinux.h> is found, arrange to use wrappers.
45443         * modules/selinux-h (Files): Add getfilecon.c.
45444         (Makefile.am): Substitute include-next-related bits
45445         into the now-always-generated selinux/selinux.h file.
45446         * doc/glibc-functions/lgetfilecon.texi: New file.
45447         * doc/glibc-functions/fgetfilecon.texi: New file.
45448         * doc/glibc-functions/getfilecon.texi: New file.
45449         * doc/glibc-functions/getfilecon-desc.texi: New file.
45450         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
45451         which to pull in the new files.
45452         * MODULES.html.sh (Misc): Add selinux-h.
45453
45454 2009-10-08  Jim Meyering  <meyering@redhat.com>
45455
45456         unistd: fix comment typo
45457         * lib/unistd.in.h (euidaccess): Fix a comment typo.
45458
45459 2009-10-08  Eric Blake  <ebb9@byu.net>
45460
45461         areadlink: use SIZE_MAX consistently
45462         * modules/areadlink (Depends-on): Add stdint.
45463         * modules/areadlink-with-size (Depends-on): Likewise.
45464         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
45465         gives NULL; drop sys/types, since unistd gives size_t; and add
45466         stdint for SIZE_MAX.
45467         (SIZE_MAX): Rely on headers.
45468         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
45469         and add stdint.
45470         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
45471         (SIZE_MAX): Likewise.
45472         (INITIAL_BUF_SIZE): Turn into enum.
45473         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
45474
45475 2009-10-08  Jim Meyering  <meyering@redhat.com>
45476
45477         areadlinkat: avoid compilation failure
45478         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
45479         Fix typo in comment.
45480
45481 2009-10-07  Eric Blake  <ebb9@byu.net>
45482
45483         areadlinkat-with-size: new module
45484         * modules/areadlinkat-with-size: New module.
45485         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
45486         * lib/areadlink.h (areadlinkat): Declare it.
45487         * MODULES.html.sh (File system functions): Mention it.
45488         * modules/areadlinkat-with-size-tests: New test.
45489         * tests/test-areadlinkat-with-size.c: New file.
45490
45491         xreadlinkat: new module
45492         * modules/xreadlinkat: New module.
45493         * lib/xreadlinkat.c (xreadlinkat): New file.
45494         * lib/xreadlink.h (xreadlinkat): Declare it.
45495         * MODULES.html.sh (File system functions): Mention it.
45496
45497         areadlinkat: new module
45498         * lib/at-func.c (FUNC_FAIL): New define.
45499         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
45500         * modules/areadlinkat: New module.
45501         * lib/linkat.c (areadlinkat): Move...
45502         * lib/areadlinkat.c (areadlinkat): ...to new file.
45503         * lib/areadlink.h (areadlinkat): Declare it.
45504         * modules/linkat (Depends-on): Add areadlinkat.
45505         * MODULES.html.sh (File system functions): Mention it.
45506         * modules/areadlinkat-tests: New test.
45507         * tests/test-areadlinkat.c: New file.
45508
45509         areadlink, areadlink-with-size: add tests
45510         * modules/areadlink-tests: New test.
45511         * modules/areadlink-with-size-tests: Likewise.
45512         * tests/test-areadlink.h: New file.
45513         * tests/test-areadlink.c: Likewise.
45514         * tests/test-areadlink-with-size.c: Likewise.
45515
45516         maint: minor cleanups
45517         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
45518         _UNUSED_PARAMETER_ instead.
45519         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
45520         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
45521         * modules/linkat-tests (Files): Distribute test-link.h.
45522
45523         openat, utimens: whitespace cleanup
45524         * lib/openat.c: Prefer space throughout, rather than mix of 8
45525         spaces vs. tabs.
45526         * lib/at-func.c: Likewise.
45527         * lib/utimens.c: Likewise.
45528
45529         openat: avoid using wrong fd
45530         * lib/openat.c (openat_permissive): Reject user's fd if saving the
45531         working directory chooses same fd.
45532         * lib/at-func.c (AT_FUNC_NAME): Likewise.
45533
45534         mkdir, mkdirat: fix cygwin 1.5.x bug
45535         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
45536         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
45537         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
45538         bug.
45539         (gl_PREREQ_MKDIR): Delete unused macro.
45540         * modules/mkdir (Files): Track file rename.
45541         (configure.ac): Update macro name.
45542         * modules/openat (Depends-on): Add mkdir.
45543         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
45544
45545         mkdir, mkdirat: add tests
45546         * modules/mkdir-tests: New test.
45547         * tests/test-mkdir.h: New file.
45548         * tests/test-mkdir.c: Likewise.
45549         * tests/test-mkdirat.c: Likewise.
45550         * modules/openat-tests (Files): Add new files.
45551         (Makefile.am): Run new test.
45552
45553 2009-10-06  Eric Blake  <ebb9@byu.net>
45554
45555         doc: tweak *at function documentation
45556         * doc/posix-functions/faccessat.texi (faccessat): Mention
45557         known issue with replacement.
45558         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
45559         * doc/posix-functions/linkat.texi (linkat): Likewise.
45560         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
45561         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
45562         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
45563         * doc/posix-functions/renameat.texi (renameat): Likewise.
45564         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
45565
45566         openat: fix GNU/Hurd bug in unlinkat
45567         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
45568         broken.
45569         * doc/posix-functions/unlink.texi (unlink): Document this.
45570         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
45571
45572         fdopendir: fix GNU/Hurd bug
45573         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
45574         allowing non-directory fds.
45575         * lib/fdopendir.c (rpl_fdopendir): Work around it.
45576         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
45577         * modules/dirent (Makefile.am): Substitute it.
45578         * lib/dirent.in.h (fdopendir): Declare replacement.
45579         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
45580         * tests/test-fdopendir.c (main): Test something other than
45581         /dev/null, since on Hurd that behaves like a directory.
45582
45583         test-symlink: port to GNU/Hurd
45584         * tests/test-symlink.h (test_symlink): Relax expected errno.
45585
45586         doc: tweak more cygwin information
45587         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
45588         now compatible with glibc.
45589         * doc/posix-functions/getopt.texi (getopt): Likewise.
45590
45591         getopt-gnu: add another test
45592         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
45593         guarantee behavior relied on by m4.
45594         * tests/test-getopt.c (main): Use it.
45595         * modules/getopt-posix-tests (Depends-on): Add setenv.
45596         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
45597
45598         getopt: fix compilation on darwin
45599         * lib/getopt.in.h (includes): Leave breadcrumbs during system
45600         include.
45601         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
45602         Reported by Ludovic Courtès.
45603
45604 2009-10-06  Bruno Haible  <bruno@clisp.org>
45605
45606         * modules/size_max (Description): Discourage its use.
45607         Reported by Simon Josefsson.
45608
45609 2009-10-06  Jim Meyering  <meyering@redhat.com>
45610
45611         linkat: avoid compilation failure
45612         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
45613
45614 2009-10-05  Eric Blake  <ebb9@byu.net>
45615
45616         linkat: support Linux 2.6.17
45617         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
45618         linkat on Linux, but allow cache variable override.
45619         * lib/linkat.c (rpl_linkat): Define override.
45620         * modules/linkat (Depends-on): Add symlinkat.
45621         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
45622         * modules/unistd (Makefile.am): Substitute it.
45623         * lib/unistd.in.h (linkat): Declare replacement.
45624         Reported by Pádraig Brady.
45625
45626         quotearg: port test to systems with C.UTF-8 locale
45627         * tests/test-quotearg.c (struct result_strings): Add another
45628         member, differentiating between C.ASCII and C.UTF-8 handling.
45629         (compare_strings): Add parameter.
45630         (main): Adjust all callers.
45631
45632         getopt: avoid clash with FreeBSD _getopt_internal
45633         * lib/getopt.in.h (_getopt_internal): Override the name.
45634         * lib/getopt_int.h (includes): Pick up any overrides.
45635         Reported by Reuben Thomas.
45636
45637         hash: allow C89 compilation
45638         * lib/hash.c (check_tuning): Move declaration before statement.
45639         Reported by Reuben Thomas.
45640
45641 2009-10-05  Karl Berry  <karl@gnu.org>
45642
45643         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
45644
45645 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
45646             Bruno Haible  <bruno@clisp.org>
45647
45648         * lib/uname.c (uname): Use a table-driven algorithm to compute
45649         Windows NT versions.
45650
45651 2009-10-04  Bruno Haible  <bruno@clisp.org>
45652
45653         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
45654         program_invocation_short_name.
45655         * modules/progname (configure.ac): Test for presence of
45656         program_invocation_short_name.
45657         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
45658
45659 2009-10-04  Bruno Haible  <bruno@clisp.org>
45660
45661         * lib/progname.c (set_program_name): Fix comment.
45662         Reported by Jim Meyering.
45663
45664 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
45665             Bruno Haible  <bruno@clisp.org>
45666
45667         * lib/uname.c: Include <string.h>.
45668         (uname): Do only one call to GetVersionEx in the common case.
45669
45670 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
45671             Bruno Haible  <bruno@clisp.org>
45672
45673         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
45674         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
45675         (uname): Add support for Windows CE and various non-x86 CPU types.
45676
45677 2009-10-03  Bruno Haible  <bruno@clisp.org>
45678
45679         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
45680         invocation to tests/configure.ac.
45681         Reported by Ian Beckwith <ianb@erislabs.net>.
45682
45683 2009-10-02  Eric Blake  <ebb9@byu.net>
45684
45685         fchdir: avoid compiler warning
45686         * lib/fchdir.c (canonicalize_file_name)
45687         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
45688
45689         test-open: support mingw errno values
45690         * tests/test-open.h (test_open): Relax test.
45691         * tests/test-fopen.h (test_fopen): Likewise.
45692         * tests/test-openat-safer.c (main): Likewise.
45693
45694         open: fix opening directory on mingw
45695         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
45696
45697         test-open: on GNU/Hurd, /dev/null is a directory
45698         * tests/test-fopen.h (main): Rename...
45699         (test_fopen): ...to this.  Use a guaranteed non-directory when
45700         confirming open behavior on trailing slash.
45701         * tests/test-openat-safer.c (main): Likewise.
45702         * tests/test-open.h (main): Likewise....
45703         (test_open): ...to this.
45704         * tests/test-fopen.c (main): Adjust caller.
45705         * tests/test-fopen-safer.c (main): Likewise.
45706         * tests/test-open.c (main): Likewise.
45707         * tests/test-fcntl-safer.c (main): Likewise.
45708         Reported by Samuel Thibault.
45709
45710         rename, fchdir: don't ignore chdir failure
45711         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
45712         * lib/rename.c (rpl_rename) [W32]: Likewise.
45713         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
45714         an empty destination directory if source cannot be renamed,
45715         although there is still possibility for failure.
45716         * doc/posix-functions/rename.texi (rename): Document the race.
45717         Reported by Jim Meyering.
45718
45719         maint: cleanup whitespace in recent commits
45720         * lib/rename.c (rpl_rename): Remove tabs.
45721         * tests/test-link.h (test_link): Likewise.
45722         * lib/fchdir.c (get_name): Likewise.
45723         Reported by Jim Meyering.
45724
45725 2009-10-02  Ben Pfaff  <blp@gnu.org>
45726
45727         relocatable-prog-wrapper: Add missing dependency on
45728         double-slash-root.
45729         * modules/relocatable-prog-wrapper: Add dependency.
45730         Reported by Ian Beckwith <ianb@erislabs.net>.
45731
45732 2009-10-02  Eric Blake  <ebb9@byu.net>
45733
45734         renameat: fix Solaris bugs
45735         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
45736         needed fixing.
45737         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
45738         * modules/stdio (Makefile.am): Substitute it.
45739         * lib/stdio.in.h (renameat): Declare replacement.
45740         * lib/renameat.c (rpl_renameat): Implement fix.
45741
45742         renameat: new module
45743         * modules/renameat: New file.
45744         * lib/renameat.c (renameat): Likewise.
45745         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
45746         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
45747         * modules/stdio (Makefile.am): Substitute them.
45748         * lib/stdio.in.h (renameat): Declare it.
45749         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45750         * doc/posix-functions/renameat.texi (renameat): Likewise.
45751         * modules/renameat-tests: New test.
45752         * tests/test-renameat.c: Likewise.
45753
45754         rename: fix mingw bugs
45755         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
45756         directory overwrite bugs.
45757
45758         rename: fix another cygwin 1.5 bug
45759         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
45760         checks.
45761         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
45762         unnecessary cygwin workarounds.  Also work around bug with moving
45763         full directory onto an empty one.
45764         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
45765
45766         rename-dest-slash: merge into rename module
45767         * modules/rename-dest-slash (Status): Mark obsolete.
45768         (Depends-on): Add rename.
45769         (Files): Let rename do it all.
45770         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
45771         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
45772         * m4/rename-dest-slash.m4: ...so this file can be deleted.
45773         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
45774         * lib/rename.c (rpl_rename): Update comments.
45775
45776         rename: fix cygwin 1.5.x bugs
45777         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
45778         * lib/rename.c (rpl_rename): Work around them.
45779         * modules/rename (Depends-on): Add same-inode.
45780
45781         rename: fix Solaris 10 bug
45782         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
45783         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
45784         was the only bug.
45785
45786         rename: fix Solaris 9 bug
45787         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
45788         on non-directory.  Avoid calling exit.
45789         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
45790         strdup.
45791         * modules/rename-tests (Depends-on): Drop lstat.
45792         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
45793         (gl_PREREQ_RENAME): Delete unused macro.
45794
45795         rename-dest-slash: fix NetBSD bug
45796         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
45797         links.
45798         * modules/rename-dest-slash (Depends-on): Add same-inode.
45799
45800         rename-tests: new test, exposes several platform bugs
45801         * modules/rename-tests: New file.
45802         * tests/test-rename.h: Likewise.
45803         * tests/test-rename.c: Likewise.
45804         * doc/posix-functions/rename.texi (rename): Improve documentation,
45805         including bugs that will eventually be fixed in gnulib.
45806
45807 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
45808
45809         * lib/uname.c: Include <stdlib.h>
45810         (uname): Assume version info is available.
45811
45812 2009-10-02  Jim Meyering  <meyering@redhat.com>
45813
45814         gnu-web-doc-update: correct --help output
45815         * build-aux/gnu-web-doc-update: Make --help output relevant.
45816
45817         gnu-web-doc-update: add standard options
45818         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
45819
45820         gnu-web-doc-update: New module.
45821         Use this script to automatically update the on-line web documentation
45822         for your GNU project at http://www.gnu.org/software/$pkg/manual/
45823         * modules/gnu-web-doc-update: New file, from coreutils.
45824         * build-aux/gnu-web-doc-update: New script.
45825
45826 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
45827
45828         link: LoadLibrary is not needed.
45829         * lib/link.c: Use GetModuleHandle.
45830
45831 2009-10-01  Eric Blake  <ebb9@byu.net>
45832
45833         getopt: bump serial number
45834         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
45835         change.
45836
45837         tests: tighten link, rmdir, and remove tests
45838         * tests/test-link.h (includes): No need to use <config.h> here.
45839         Clean up if directory hard link was created, otherwise test for
45840         trailing '.'.
45841         * tests/test-linkat.c (main): Simplify.
45842         * tests/test-remove.c (main): Enhance test for trailing '.'.
45843         * tests/test-rmdir.h (test_rmdir_func): Likewise.
45844
45845 2009-10-01  Jim Meyering  <meyering@redhat.com>
45846
45847         maint.mk: requiring "make major" was annoying, for a "minor" release.
45848         What is intended is "stable", to contrast with alpha and beta,
45849         so require "make stable", not "make major".
45850         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
45851         (get_tool_versions): Likewise.
45852         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
45853
45854 2009-09-30  Ben Pfaff  <blp@gnu.org>
45855
45856         Fix broken build of replacement for Windows tmpfile().
45857         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
45858         flags argument added along with the 'mkostemp' module.
45859
45860 2009-09-28  Bruno Haible  <bruno@clisp.org>
45861
45862         Avoid identifier clash with POSIX function 'remove' defined as a macro.
45863         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
45864         to 'remove_elt'.
45865         (gl_list_remove): Update.
45866         * lib/gl_list.c (gl_list_remove): Update.
45867         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
45868         to 'remove_elt'.
45869         (gl_oset_remove): Update.
45870         * lib/gl_list.c (gl_oset_remove): Update.
45871         Reported by Eric Blake.
45872
45873 2009-09-28  Eric Blake  <ebb9@byu.net>
45874
45875         doc: mention yet more cygwin 1.7 status
45876         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
45877         cygwin.
45878         * doc/glibc-functions/execvpe.texi (execvpe): New file.
45879         * doc/gnulib.texi (Glibc unistd.h): Mention it.
45880
45881         argp: fix test failure
45882         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
45883         that are not upper-case.  Pass correct range to tolower.
45884
45885 2009-09-27  Jim Meyering  <meyering@redhat.com>
45886
45887         test-yesno: work around sparc-dash here-document infelicity
45888         Without this change, the literal \177 byte in a here document
45889         would make dash 0.5.5.1-3 access uninitialized memory.
45890         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
45891         Instead, use a marker, "@", and filter through tr to create the desired
45892         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
45893
45894 2009-09-27  Bruno Haible  <bruno@clisp.org>
45895
45896         Disable untested support for new flavours of ACLs on AIX.
45897         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
45898         progress.
45899         * lib/set-mode-acl.c (qset_acl): Likewise.
45900
45901 2008-12-07  Bruno Haible  <bruno@clisp.org>
45902
45903         Add support for new flavours of ACLs on AIX. (Untested.)
45904         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
45905         (file_has_acl): Add support for newer AIX.
45906         * lib/set-mode-acl.c (qset_acl): Likewise.
45907         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
45908         Rainer Tammer <tammer@tammer.net>.
45909
45910 2009-09-26  Eric Blake  <ebb9@byu.net>
45911
45912         argp: fix compilation of getopt
45913         * lib/getopt.in.h (includes): Use different guard than glibc.
45914         Reported by Sergey Poznyakoff.
45915
45916         doc: mention more cygwin 1.7 status
45917         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
45918         bug.
45919         * doc/posix-functions/execl.texi (execl): Likewise.
45920         * doc/posix-functions/execle.texi (execle): Likewise.
45921         * doc/posix-functions/execlp.texi (execlp): Likewise.
45922         * doc/posix-functions/execv.texi (execv): Likewise.
45923         * doc/posix-functions/execve.texi (execve): Likewise.
45924         * doc/posix-functions/execvp.texi (execvp): Likewise.
45925         * doc/glibc-functions/canonicalize_file_name.texi
45926         (canonicalize_file_name): Cygwin 1.7 now provides this.
45927         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
45928         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
45929         on AT_SYMLINK_NOFOLLOW.
45930
45931 2009-09-24  Eric Blake  <ebb9@byu.net>
45932
45933         test-linkat: make test more robust
45934         * tests/test-linkat.c (main): Avoid collision with EEXIST.
45935
45936         getopt: fix inclusion guards for cygwin
45937         * modules/getopt-posix (Depends-on): Add include-next.
45938         (Makefile.am): Substitute more items in replacement header.
45939         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
45940         <getopt.h>.
45941         * lib/getopt.in.h (includes): Use split inclusion guard, and
45942         prefer <getopt.h> over include <unistd.h> when one is present.
45943         (option): Also override name of 'struct option'.
45944
45945         same-inode: revert prior change; it is not yet ready
45946         * NEWS: Undo mention of this change.
45947         * lib/same-inode.h (same-inode.h): Undo tri-state change.
45948         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
45949         * lib/cycle-check.c (cycle_check): Likewise.
45950         * lib/same.c (same_name): Likewise.
45951         * lib/at-func2.c (at_func2): Likewise.
45952
45953 2009-09-23  Eric Blake  <ebb9@byu.net>
45954
45955         linkat: new module
45956         * modules/linkat: New file.
45957         * lib/at-func2.c (at_func2): Likewise.
45958         * lib/linkat.c (linkat): Likewise.
45959         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
45960         * lib/openat-priv.h (at_func2): Add declaration.
45961         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
45962         * modules/unistd (Makefile.am): Substitute them.
45963         * lib/unistd.in.h (linkat): Declare it.
45964         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45965         * doc/posix-functions/linkat.texi (linkat): Likewise.
45966         * doc/posix-functions/link.texi (link): Tweak wording.
45967         * tests/test-link.c (main): Move guts...
45968         * tests/test-link.h (test_link): ...into new file.
45969         * modules/linkat-tests: New test.
45970         * tests/test-linkat.c: Likewise.
45971         * modules/link-tests (Files): Ship new file.
45972         (Depends-on): Add stdbool.
45973
45974         dirname: add library-safe mdir_name
45975         * lib/dirname.h (mdir_name): New prototype.
45976         * lib/dirname.c (dir_name): Move guts...
45977         (mdir_name): ...to new function that avoids xalloc_die.
45978
45979         fchdir: another mingw fix
45980         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
45981         * lib/fchdir.c (get_name): New helper method; skips canonicalize
45982         on mingw (where it has not yet been ported), and make it optional
45983         elsewhere.
45984         (_gl_register_fd): Use it.
45985
45986         same-inode: make SAME_INODE tri-state, to port to mingw
45987         * NEWS: Mention this change.
45988         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
45989         st_ino always being 0.
45990         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
45991         * lib/cycle-check.c (cycle_check): Likewise.
45992         * lib/same.c (same_name): Likewise.
45993
45994         lstat: avoid mingw compilation error
45995         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
45996         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
45997         lstat ourselves.
45998         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
45999         was adequate.
46000         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
46001         the checks for lstat.
46002         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
46003
46004         link: fix test failure on Solaris 9
46005         * lib/link.c (rpl_link): Don't assume link will catch bogus
46006         trailing slash on source.
46007
46008         test-symlinkat: enhance test
46009         * tests/test-readlink.c (main): Move guts...
46010         * tests/test-readlink.h (test_readlink): ...into new file.
46011         * tests/test-symlink.c (main): Move guts...
46012         * tests/test-symlink.h (test_symlink): ...into new file.
46013         * tests/test-symlinkat.c (main): Use new files for further
46014         coverage.
46015         (do_symlink, do_readlink): New helper functions.
46016         * modules/symlink-tests (Files): Ship new file.
46017         (Depends-on): Add stdbool.
46018         * modules/readlink-tests (Files): Ship new file.
46019         (Depends-on): Add stdbool.
46020         * modules/symlinkat-tests (Files): Use new files.
46021
46022 2009-09-23  Eric Blake  <ebb9@byu.net>
46023
46024         readlink: document portability issue with symlink length
46025         * doc/posix-functions/lstat.texi (lstat): Mention that some file
46026         systems have bogus st_size on symlinks, and mention the
46027         areadlink-with-size module.
46028         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
46029         * doc/posix-functions/readlink.texi (readlink): Mention the
46030         areadlink module, and ERANGE failure.
46031         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
46032         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
46033
46034         readlink: fix Solaris 9 bug with trailing slash
46035         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
46036         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
46037         * doc/posix-functions/readlink.texi (readlink): Document this.
46038         * modules/readlink-tests: New test.
46039         * tests/test-readlink.c: Likewise.
46040
46041         readlink: fix cygwin 1.5.x bug with return type
46042         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
46043         * lib/unistd.in.h (readlink): Use ssize_t.
46044         * lib/readlink.c (readlink): Likewise.
46045         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
46046         * modules/unistd (Makefile.am): Substitute it.
46047         * lib/unistd.in.h (readlink): Declare replacement.
46048         * doc/posix-functions/readlink.texi (readlink): Document this.
46049
46050         symlink: use throughout gnulib
46051         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
46052         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
46053         symlink is not used.
46054         * modules/symlinkat (Depends-on): Add symlink.
46055         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
46056         * modules/canonicalize-tests (Depends-on): Likewise.
46057         * modules/lstat-tests (Depends-on): Likewise.
46058         * modules/openat-tests (Depends-on): Likewise.
46059         * modules/remove-tests (Depends-on): Likewise.
46060         * modules/rmdir-tests (Depends-on): Likewise.
46061         * modules/unlink-tests (Depends-on): Likewise.
46062         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
46063         * tests/test-canonicalize.c (symlink): Likewise.
46064         * tests/test-fstatat.c (symlink): Likewise.
46065         * tests/test-lstat.c (symlink): Likewise.
46066         * tests/test-remove.c (symlink): Likewise.
46067         * tests/test-rmdir.c (symlink): Likewise.
46068         * tests/test-unlink.c (symlink): Likewise.
46069         * tests/test-unlinkat.c (symlink): Likewise.
46070
46071         symlink: new module, for Solaris 9 bug
46072         * modules/symlink: New file.
46073         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
46074         * lib/symlink.c: Likewise.
46075         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
46076         * modules/unistd (Makefile.am): Substitute them.
46077         * lib/unistd.in.h (symlink): Declare replacement.
46078         * MODULES.html.sh (File system functions): Mention it.
46079         * doc/posix-functions/symlink.texi (symlink): Likewise.
46080         * modules/symlink-tests: New test.
46081         * tests/test-symlink.c: Likewise.
46082
46083 2009-09-23  Bruno Haible  <bruno@clisp.org>
46084
46085         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
46086         when needed.
46087         Test case: gnulib-tool --import --with-tests atexit inttypes.
46088         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
46089
46090 2009-09-23  Bruno Haible  <bruno@clisp.org>
46091
46092         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
46093         subcommand, not in a subshell.
46094
46095 2009-09-22  Eric Blake  <ebb9@byu.net>
46096
46097         unistd: sort replacement declarations
46098         * lib/unistd.in.h: Sort declarations.
46099
46100         open, openat: minor optimization
46101         * lib/open.c (open): If open succeeded, len is non-zero.
46102         * lib/openat.c (rpl_openat): Likewise.
46103
46104         link-follow: ensure correct result
46105         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
46106         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
46107         distinguish between possible failures.
46108
46109 2009-09-21  Eric Blake  <ebb9@byu.net>
46110
46111         fts: avoid compiler warning
46112         * lib/fts.c (dirent_inode_sort_may_be_useful)
46113         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
46114
46115 2009-09-19  Bruno Haible  <bruno@clisp.org>
46116
46117         * lib/progreloc.c (canonicalize_file_name): New declaration.
46118
46119 2009-09-19  Eric Blake  <ebb9@byu.net>
46120
46121         link: fix quoting
46122         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
46123
46124         openat: fix openat bugs on Solaris 9
46125         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
46126         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
46127         * modules/openat (Depends-on): Add open.
46128         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
46129         * modules/fcntl-h (Makefile.am): Substitute it.
46130         * lib/fcntl.in.h (openat): Declare replacement.
46131         * doc/posix-functions/openat.texi (openat): Document this.
46132
46133         openat: move fstatat and unlinkat into correct files
46134         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
46135         compiled.
46136         * lib/openat.c (fstatat, unlinkat): Move...
46137         * lib/fstatat.c (fstatat): ...into correct files.
46138         * lib/unlinkat.c (unlinkat): Likewise.
46139
46140         openat: fix unlinkat bugs on Solaris 9
46141         * lib/unlinkat.c (unlinkat): New file.
46142         * modules/openat (Depends-on): Add unlink.
46143         (Files): Distribute it.
46144         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
46145         trailing slash behavior is broken.
46146         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
46147         * modules/unistd (Makefile.am): Substitute it.
46148         * lib/unistd.in.h (unlinkat): Declare replacement.
46149         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
46150
46151         openat: fix fstatat bugs on Solaris 9
46152         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
46153         stat.
46154         * doc/posix-functions/fstatat.texi (fstatat): Document this.
46155
46156         test-unlinkat: enhance test, to expose Solaris 9 bug
46157         * tests/test-unlink.c (main): Factor guts...
46158         * tests/test-unlink.h (test_rmdir_func): ...into new file.
46159         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
46160         * tests/test-rmdir.c (main): Adjust caller.
46161         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
46162         (unlinker): New helper function.
46163         (rmdirat): Enhance check.
46164         * modules/rmdir-tests (Depends-on): Add stdbool.
46165         * modules/unlink-tests (Depends-on): Likewise.
46166         (Files): Add test-unlink.h.
46167         * modules/openat-tests (Files): Likewise.
46168         (Depends-on): Add unlinkdir.
46169
46170         test-fstatat: new test, to expose Solaris 9 bugs
46171         * tests/test-stat.c (main): Factor guts...
46172         * tests/test-stat.h (test_stat_func): ...into new file.
46173         * tests/test-lstat.c (main): Factor guts...
46174         * tests/test-lstat.h (test_lstat_func): ...into new file.
46175         * tests/test-fstatat.c: New file.
46176         * modules/stat-tests (Files): Add test-stat.h.
46177         * modules/lstat-tests (Files): Add test-lstat.h.
46178         (Depends-on): Add stdbool.
46179         * modules/openat-tests (Depends-on): Add pathmax.
46180         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
46181         (Makefile.am): Run new test.
46182
46183         remove: new module, for mingw and Solaris 9 bugs
46184         * modules/remove: New file.
46185         * lib/remove.c: Likewise.
46186         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
46187         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
46188         * modules/stdio (Makefile.am): Use them.
46189         * lib/stdio.in.h (remove): Declare replacement.
46190         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
46191         * doc/posix-functions/remove.texi (remove): Likewise.
46192         * modules/remove-tests: New test.
46193         * tests/test-remove.c: Likewise.
46194
46195         unlink: new module, for Solaris 9 bug
46196         * modules/unlink: New file.
46197         * lib/unlink.c: Likewise.
46198         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
46199         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
46200         * modules/unistd (Makefile.am): Use them.
46201         * lib/unistd.in.h (stat): Declare replacement.
46202         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
46203         * doc/posix-functions/unlink.texi (unlink): Likewise.
46204         * modules/unlink-tests: New test.
46205         * tests/test-unlink.c: Likewise.
46206
46207         lstat: fix Solaris 9 bug
46208         * lib/lstat.c (lstat): Also check for trailing slash on
46209         non-symlink, non-directories.  Use stat module to simplify logic.
46210         * doc/posix-functions/lstat.texi (lstat): Document it.
46211         * modules/lstat-tests (Depends-on): Add errno, same-inode.
46212         (configure.ac): Check for symlink.
46213         * tests/test-lstat.c (main): Add more tests.
46214
46215         stat: add as dependency to other modules
46216         * modules/chown (Depends-on): Add stat.
46217         * modules/euidaccess (Depends-on): Likewise.
46218         * modules/fchdir (Depends-on): Likewise.
46219         * modules/isdir (Depends-on): Likewise.
46220         * modules/link (Depends-on): Likewise.
46221         * modules/lstat (Depends-on): Likewise.
46222         * modules/mkdir-p (Depends-on): Likewise.
46223         * modules/modechange (Depends-on): Likewise.
46224         * modules/open (Depends-on): Likewise.
46225         * modules/readlink (Depends-on): Likewise.
46226         * modules/same (Depends-on): Likewise.
46227
46228         stat: fix Solaris 9 bug
46229         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
46230         slash.
46231         * lib/stat.c (rpl_stat): Work around it.
46232         * doc/posix-functions/stat.texi (stat): Update documentation.
46233
46234         stat: new module, for mingw bug
46235         * modules/stat: New file.
46236         * lib/stat.c: Likewise.
46237         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
46238         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
46239         * modules/sys_stat (Makefile.am): Use them.
46240         * lib/sys_stat.in.h (stat): Declare replacement.
46241         * lib/openat.c (fstatat): Deal with lstat and stat being function
46242         macros.
46243         * modules/openat (Depends-on): Add inline.
46244         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
46245         * doc/posix-functions/stat.texi (stat): Likewise.
46246         * modules/stat-tests: New test.
46247         * tests/test-stat.c: Likewise.
46248
46249 2009-09-19  Jim Meyering  <meyering@redhat.com>
46250
46251         syntax-check: detect unnecessary inclusion of canonicalize.h
46252         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
46253
46254 2009-09-19  Eric Blake  <ebb9@byu.net>
46255
46256         canonicalize-lgpl: adjust clients to use correct header
46257         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
46258         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
46259         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
46260         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
46261         * lib/progreloc.c (includes): Likewise.
46262
46263 2009-09-19  Jim Meyering  <meyering@redhat.com>
46264
46265         test-posixtm.c: correct a comment
46266         * tests/test-posixtm.c: Correct first-line comment.
46267         Spotted by Eric Blake.
46268
46269 2009-09-16  Jim Meyering  <meyering@redhat.com>
46270
46271         posixtm-tests: make T const-correct; add a test case
46272         * tests/test-posixtm.c (T): Declare const.
46273         Add a test for -(2^31+1).
46274         Remove useless can-succeed-only-in-2002 test.
46275
46276         posixtm-tests: adjust the sole failing test
46277         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
46278         expected output matches what mktime now produces.  Cross-checked via
46279         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
46280
46281         posixtm: move #ifdef'd tests into a new module
46282         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
46283         * tests/test-posixtm.c: ... this new file.
46284         * modules/posixtm-tests: New module.
46285
46286 2009-09-19  Eric Blake  <ebb9@byu.net>
46287
46288         openat: simplify use of at-func.c
46289         * lib/at-func.c (includes): Include prerequisites here, to
46290         simplify requirements on client files.
46291         * lib/openat-priv.h: Add double-inclusion guard.
46292         * lib/faccessat.c (includes): Simplify.
46293         * lib/fchmodat.c (includes): Likewise.
46294         * lib/fchownat.c (includes): Likewise.
46295         * lib/mkdirat.c (includes): Likewise.
46296         * lib/mkfifoat.c (includes): Likewise.
46297         * lib/symlinkat.c (includes): Likewise.
46298
46299         openat: allow return of fd 0
46300         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
46301         * modules/save-cwd (Depends-on): Replace fcntl-safer with
46302         unistd-safer.
46303         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
46304         <fcntl.h>; this module does not leak fds.
46305         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
46306         must be allowed to return 0, leaving openat_safer to add the
46307         safety.
46308         (openat_permissive): Avoid writing to just-opened fd 2 if
46309         restoring the current directory fails.
46310         * lib/openat-die.c (openat_restore_fail): Add comment.
46311         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
46312         (save_cwd): Guarantee safe fd, but without use of open_safer.
46313         * tests/test-openat.c: New test.
46314         * modules/openat-tests (Files, Makefile.am): Distribute and build
46315         new file.
46316
46317         relocatable-prog-wrapper: fix build
46318         * modules/relocatable-prog-wrapper (Files): Update name of
46319         canonicalize m4 file, broken on 2009-09-17.
46320         Reported by emad hajjar <aleppos@hotmail.com>.
46321
46322 2009-09-19  Bruno Haible  <bruno@clisp.org>
46323
46324         * lib/safe-alloc.h: Use the standard header with GPL copyright.
46325         * lib/safe-alloc.c: Likewise.
46326         Reported by Ian Beckwith <ianb@erislabs.net>.
46327
46328 2009-09-18  Bruno Haible  <bruno@clisp.org>
46329
46330         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
46331         Reported by <erobles@sensacd.com.mx>.
46332
46333 2009-09-17  Eric Blake  <ebb9@byu.net>
46334
46335         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
46336         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
46337         slashes when checking if last component is missing.
46338         * tests/test-canonicalize.c (main): Test this.
46339
46340         canonicalize, canonicalize-lgpl: honor // if distinct from /
46341         * modules/canonicalize (Files): Add double-slash-root.m4.
46342         * modules/canonicalize-lgpl (Files): Likewise.
46343         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
46344         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
46345         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
46346         fallback definition.
46347         (canonicalize_filename_mode): Use it to protect //.
46348         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
46349         (__realpath): Likewise.
46350         * tests/test-canonicalize.c (main): Test this.
46351         * tests/test-canonicalize-lgpl.c (main): Likewise.
46352         * modules/canonicalize-tests (Depends-on): Add same-inode.
46353         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
46354
46355         canonicalize-lgpl: fix glibc bug with trailing slash
46356         * m4/canonicalize-lgpl.m4: Move contents...
46357         * m4/canonicalize.m4: ...here.
46358         (gl_CANONICALIZE_LGPL): Factor realpath check...
46359         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
46360         glibc 2.3.5 bug, fixed 2005-04-27.
46361         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
46362         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
46363         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
46364         * modules/canonicalize-lgpl (Files): Manage file rename.
46365         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
46366         * modules/stdlib (Makefile.am): Substitute witness.
46367         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
46368         is needed.
46369         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
46370         replacement is required.
46371         * lib/canonicalize.c (canonicalize_file_name): Likewise.
46372         * doc/glibc-functions/canonicalize_file_name.texi
46373         (canonicalize_file_name): Document this.
46374         * doc/posix-functions/realpath.texi (realpath): Likewise.
46375
46376         canonicalize-lgpl: reject non-directory with trailing slash
46377         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
46378         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
46379         catches failures in glibc 2.3.5.
46380         * tests/test-canonicalize.c (main): Likewise.
46381
46382         canonicalize-lgpl: use native realpath if it works
46383         * lib/canonicalize-lgpl.c (realpath): Guard with
46384         FUNC_REALPATH_WORKS.
46385         * lib/stdlib.in.h (realpath): Make declaration optional based on
46386         HAVE_REALPATH.
46387         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
46388         native realpath works.
46389         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
46390         * modules/stdlib (Makefile.am): Substitute witness.
46391
46392         canonicalize, canonicalize-lgpl: use <stdlib.h>
46393         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
46394         (Include): Mention <stdlib.h>.
46395         (configure.ac): Mention functions we provide.
46396         * modules/canonicalize (configure.ac): Likewise.
46397         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
46398         realpath if canonicalize_file_name is missing.
46399         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
46400         * modules/stdlib (Makefile.am): Substitute witnesses.
46401         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
46402         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
46403         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
46404         * NEWS: Document this.
46405         * doc/glibc-functions/canonicalize_file_name.texi
46406         (canonicalize_file_name): Likewise.
46407         * doc/posix-functions/realpath.texi (realpath): Likewise.
46408         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
46409
46410         test-canonicalize: consolidate into single C program
46411         * tests/test-canonicalize.sh: Delete; move setup into...
46412         * tests/test-canonicalize.c (main): ...the program, making it
46413         easier to run in debugger.  Add some tests.
46414         * modules/canonicalize-tests (Files): Remove unused file.
46415         (Depends-on): Add progname.
46416         (configure.ac, Makefile.am): Simplify.
46417
46418         test-canonicalize-lgpl: consolidate into single C program
46419         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
46420         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
46421         easier to run in debugger.  Add some tests.
46422         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
46423         (configure.ac, Makefile.am): Simplify.
46424
46425         canonicalize: avoid resolvepath
46426         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
46427         unnecessary checks.
46428         * lib/canonicalize.c (includes): Simplify.
46429         (canonicalize_file_name): Drop resolvepath implementation.
46430         * modules/canonicalize (Depends-on): Drop filenamecat.
46431
46432         canonicalize: don't lose errno
46433         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
46434         over calls to free.
46435
46436         canonicalize: simplify errno handling
46437         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
46438         assignment.
46439
46440         canonicalize, canonicalize-lgpl: update module dependencies
46441         * modules/canonicalize (Depends-on): Add extensions, lstat,
46442         pathmax, stdlib.
46443         (Files): Drop pathmax.h.
46444         (configure.ac): Adjust macro name.
46445         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
46446         lstat, stdlib, sys_stat.
46447         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
46448         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
46449         extensions.
46450         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
46451         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
46452         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
46453         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
46454         declaration, if available.
46455         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
46456         we can rely on the readlink module.
46457         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
46458         (includes): Use <unistd.h> unconditionally.
46459
46460 2009-09-17  Eric Blake  <ebb9@byu.net>
46461
46462         maint: make Include sections of modules consistent
46463         * modules/alloca: Use only header name; no need to list #include.
46464         * modules/alloca-opt: Likewise.
46465         * modules/arpa_inet: Likewise.
46466         * modules/canon-host: Likewise.
46467         * modules/configmake: Likewise.
46468         * modules/dirent: Likewise.
46469         * modules/eealloc: Likewise.
46470         * modules/environ: Likewise.
46471         * modules/fchdir: Likewise.
46472         * modules/fcntl: Likewise.
46473         * modules/fcntl-h: Likewise.
46474         * modules/gethrxtime: Likewise.
46475         * modules/gettime: Likewise.
46476         * modules/ignore-value: Likewise.
46477         * modules/inet_ntop: Likewise.
46478         * modules/inet_pton: Likewise.
46479         * modules/inttypes: Likewise.
46480         * modules/isnand-nolibm: Likewise.
46481         * modules/isnanf-nolibm: Likewise.
46482         * modules/mbchar: Likewise.
46483         * modules/mbfile: Likewise.
46484         * modules/mbiter: Likewise.
46485         * modules/mbuiter: Likewise.
46486         * modules/netdb: Likewise.
46487         * modules/netinet_in: Likewise.
46488         * modules/nproc: Likewise.
46489         * modules/pagealign_alloc: Likewise.
46490         * modules/poll: Likewise.
46491         * modules/printf-frexp: Likewise.
46492         * modules/pthread: Likewise.
46493         * modules/putenv: Likewise.
46494         * modules/random_r: Likewise.
46495         * modules/relocatable-prog: Likewise.
46496         * modules/search: Likewise.
46497         * modules/select: Likewise.
46498         * modules/selinux-h: Likewise.
46499         * modules/settime: Likewise.
46500         * modules/signal: Likewise.
46501         * modules/size_max: Likewise.
46502         * modules/socklen: Likewise.
46503         * modules/ssize_t: Likewise.
46504         * modules/stdarg: Likewise.
46505         * modules/stdbool: Likewise.
46506         * modules/stddef: Likewise.
46507         * modules/stdint: Likewise.
46508         * modules/stdio: Likewise.
46509         * modules/stdlib: Likewise.
46510         * modules/string: Likewise.
46511         * modules/strings: Likewise.
46512         * modules/sys_file: Likewise.
46513         * modules/sys_ioctl: Likewise.
46514         * modules/sys_select: Likewise.
46515         * modules/sys_socket: Likewise.
46516         * modules/sys_stat: Likewise.
46517         * modules/sys_time: Likewise.
46518         * modules/sys_times: Likewise.
46519         * modules/sys_utsname: Likewise.
46520         * modules/sys_wait: Likewise.
46521         * modules/sysexits: Likewise.
46522         * modules/time: Likewise.
46523         * modules/times: Likewise.
46524         * modules/tmpfile: Likewise.
46525         * modules/trim: Likewise.
46526         * modules/unistd: Likewise.
46527         * modules/wchar: Likewise.
46528         * modules/wctype: Likewise.
46529
46530 2009-09-17  Bruno Haible  <bruno@clisp.org>
46531
46532         Make getdate.y compile on QNX and NetBSD 5 / i386.
46533         * m4/getdate.m4 (gl_GETDATE): Conditionally define
46534         TIME_T_FITS_IN_LONG_INT.
46535         * lib/getdate.y (long_time_t): New type.
46536         (relative_time): Change type of 'seconds' field to long_time_t.
46537         (get_date): Update types of local variables. Check against overflow
46538         during conversion from long_time_t to time_t.
46539         Reported by Matt Kraai <kraai@ftbfs.org>
46540         and Hasso Tepper <hasso@netbsd.org>.
46541
46542 2009-09-17  Bruno Haible  <bruno@clisp.org>
46543
46544         * modules/COPYING: Update copyright years.
46545         * modules/README: Likeiwse.
46546         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
46547         Reported by Ian Beckwith <ianb@erislabs.net>.
46548
46549 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
46550
46551         * users.txt: Update references for gnuit package.
46552
46553 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
46554
46555         * m4/getdelim.m4: Fix typo in copyright line.
46556
46557 2009-09-17  Bruno Haible  <bruno@clisp.org>
46558
46559         * lib/atoll.c: Use the standard header with GPL copyright.
46560         * lib/argz.in.h: Likewise.
46561         * lib/glob.c: Likewise.
46562         * lib/glob-libc.h: Likewise.
46563         * lib/random_r.c: Likewise.
46564         * lib/siglist.h: Likewise.
46565         * lib/strsignal.c: Likewise.
46566         Reported by Ian Beckwith <ianb@erislabs.net>.
46567
46568 2009-09-17  Eric Blake  <ebb9@byu.net>
46569
46570         rmdir: ensure correct dependency order
46571         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
46572
46573 2009-09-17  Bruno Haible  <bruno@clisp.org>
46574
46575         Disable assertion that fails on NetBSD 5 / i386.
46576         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
46577         Reported by Sam Steingold <sds@gnu.org>
46578         and Hasso Tepper <hasso@netbsd.org>.
46579
46580 2009-09-16  Eric Blake  <ebb9@byu.net>
46581
46582         unlinkdir: port to mingw
46583         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
46584         on which no one can unlink a directory.
46585
46586         stdlib: sort witness names
46587         * modules/stdlib (Makefile.am): Sort replacements.
46588         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
46589         * lib/stdlib.in.h: Likewise.
46590
46591         parse-duration-tests: avoid link failure
46592         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
46593         LIBINTL.
46594         Reported by Tom G. Christensen.
46595
46596         openat-tests: ensure unlinkat behaves like rmdir
46597         * tests/test-rmdir.c (main): Factor guts...
46598         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
46599         * modules/rmdir-tests (Files): Ship new file.
46600         * modules/openat-tests: New test.
46601         * tests/test-unlinkat.c: Likewise.
46602
46603         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
46604         * modules/rmdir-errno (Status, Notice): Now obsolete.
46605
46606         rmdir: work around cygwin 1.5.x and mingw bugs
46607         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
46608         * lib/rmdir.c (rmdir): Work around it.
46609         * modules/rmdir (Status, Notice): No longer obsolete.
46610         (Files): Add dos.m4.
46611         (Depends-on): Add unistd.
46612         (configure.ac): Set witnesses.
46613         (License): Relax to LGPLv2+.
46614         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
46615         * modules/unistd (Makefile.am): Substitute witnesses.
46616         * lib/unistd.in.h (rmdir): Declare replacement.
46617         * doc/posix-functions/rmdir.texi (rmdir): Document this.
46618         * modules/rmdir-tests: New tests.
46619         * tests/test-rmdir.c: Likewise.
46620
46621 2009-09-15  Eric Blake  <ebb9@byu.net>
46622
46623         fchdir: improve use of replacement functions
46624         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
46625         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
46626         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
46627         REPLACE_CLOSEDIR.
46628         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
46629         * modules/sys_stat (Makefile.am): Substitute correct witness.
46630         * modules/dirent (Makefile.am): Likewise.
46631         * modules/unistd (Makefile.am): Likewise.
46632         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
46633         * lib/unistd.in.h (dup): Likewise.
46634         * lib/sys_stat.in.h (fstat): Likewise.
46635
46636         maint: ignore gnulib-tool temp files
46637         * .gitignore: Ignore files created during gnulib-tool --test.
46638
46639 2009-09-13  Jim Meyering  <meyering@redhat.com>
46640
46641         posixtm: don't reject a time that specify "60" as the number of seconds
46642         * lib/posixtm.c (posixtime): The code to reject invalid dates
46643         would also reject a time specified with the .60 suffix.
46644         But POSIX allows that, in order to accommodate leap seconds.
46645         So don't reject it.
46646         (main): Adjust tests accordingly.
46647         * modules/posixtm (Depends-on): Add stpcpy.
46648
46649 2009-09-11  Jim Meyering  <meyering@redhat.com>
46650
46651         announce-gen: include [$release_type] in emitted Subject:
46652         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
46653         e.g., [stable] in the emitted Subject: line.
46654
46655 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46656
46657         Remove obsolete macros from several modules.
46658         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
46659         obsolete Autoconf macros with their modern counterparts.
46660         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
46661         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
46662         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
46663         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
46664         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
46665         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
46666         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
46667         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
46668         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
46669         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
46670         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
46671         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
46672         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
46673         * m4/sockets.m4 (gl_SOCKETS): Likewise.
46674         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
46675         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
46676         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
46677         * m4/time_r.m4 (gl_TIME_R): Likewise.
46678         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
46679         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
46680         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
46681
46682         Fix copyright header in build-aux scripts.
46683         * build-aux/git-version-gen: Fix copyright header to match GPLv3
46684         recommendation.
46685         * build-aux/ncftpput-ftp: Likewise.
46686         * build-aux/update-copyright: Likewise.
46687
46688 2009-09-09  Eric Blake  <ebb9@byu.net>
46689
46690         test-link: allow Linux choice of errno
46691         * tests/test-link.c (main): Relax test for alternate error.
46692
46693         strndup: fix improper m4 caching
46694         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
46695         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
46696         (gl_PREREQ_STRNDUP): Delete.
46697         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
46698         * modules/string (Makefile.am): Substitute it.
46699         * lib/string.in.h (strndup): Modernize prototype.
46700
46701         getcwd: port to mingw
46702         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
46703         different from the POSIX assumptions made throughout the getcwd
46704         module; fortunately, the mingw getcwd does not need replacement.
46705         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
46706         * modules/getcwd-tests: New test.
46707         * tests/test-getcwd.c: Likewise.
46708
46709         link: fix platform bugs
46710         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
46711         * lib/link.c (link): Work around them.  Fix related mingw bug.
46712         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
46713         * modules/unistd (Makefile.am): Substitute it.
46714         * lib/unistd.in.h (link): Declare replacement.
46715         * doc/posix-functions/link.texi (link): Document this.
46716         * modules/link (Depends-on): Add strdup-posix, sys_stat.
46717
46718         test-link: consolidate into single C program, test more cases
46719         * tests/test-link.sh: Delete.
46720         * tests/test-link.c: Test more error conditions.  Exposes bugs on
46721         at least Cygwin and Solaris.
46722         * modules/link-tests (Files): Remove unused file.
46723         (Depends-on): Add errno, sys_stat.
46724         (Makefile.am): Simplify.
46725
46726 2009-09-08  Bruno Haible  <bruno@clisp.org>
46727
46728         Work around towlower, towupper bug on mingw.
46729         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
46730         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
46731         * doc/posix-functions/towlower.texi: Mention the mingw bug.
46732         * doc/posix-functions/towupper.texi: Likewise.
46733         Reported by Eric Blake.
46734
46735 2009-09-08  Jim Meyering  <meyering@redhat.com>
46736
46737         build: don't try to run autoheader if we don't use it
46738         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
46739         is not used in configure.ac.
46740
46741 2009-09-08  Eric Blake  <ebb9@byu.net>
46742
46743         euidaccess: fix compilation error
46744         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
46745
46746         rawmemchr: relax license
46747         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
46748         okay.
46749         Reported by Jim Meyering.
46750
46751         mkfifoat: new module
46752         * modules/mkfifoat: New file.
46753         * lib/mkfifoat.c: Likewise.
46754         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
46755         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
46756         * modules/sys_stat (Makefile.am): Use them.
46757         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
46758         * MODULES.html.sh (File system functions): Mention module.
46759         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
46760         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
46761         * modules/mkfifoat-tests: New test.
46762         * tests/test-mkfifoat.c: Likewise.
46763
46764         strchrnul: relax license
46765         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
46766         okay.
46767         Reported by Jim Meyering.
46768
46769 2009-09-08  Eric Blake  <ebb9@byu.net>
46770
46771         fstatat: fix compilation on Solaris
46772         * lib/fstatat.c (includes): Add fcntl.h.
46773         Reported by Pádraig Brady.
46774
46775 2009-09-07  Eric Blake  <ebb9@byu.net>
46776
46777         rename: modernize replacement
46778         * modules/rename (Depends-on): Add stdio.
46779         (configure.ac): Declare witness.
46780         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
46781         stdio take care of replacement.
46782         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
46783         * modules/stdio (Makefile.am): Substitute them.
46784         * lib/stdio.in.h (rename): Declare replacement.
46785         * lib/rename.c (includes): Allow cross-compilation to non-windows
46786         machines.
46787         * doc/posix-functions/rename.texi (rename): Improve
46788         documentation.
46789
46790         stdio: sort witness names
46791         * modules/stdio (Makefile.am): Sort replacements.
46792         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
46793         * lib/stdio.in.h: Likewise.
46794
46795         getcwd: minor cleanups
46796         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
46797         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
46798
46799         openat: provide more convenience names
46800         * modules/faccessat (configure.ac): Add C witness.
46801         * lib/unistd.in.h (readlinkat): Fix typo.
46802         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
46803         convenience wrappers.
46804         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
46805         wrappers in syntax checks.
46806
46807 2009-09-06  Eric Blake  <ebb9@byu.net>
46808
46809         doc: fix comments in recent patches
46810         * lib/faccessat.c: Mention correct function.
46811         * lib/fchmodat.c: Likewise.
46812         * lib/fchownat.c: Likewise.
46813         * lib/symlinkat.c: Likewise.
46814         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
46815         constants.
46816
46817         faccessat, symlinkat: continue cleanup of previous patch
46818         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
46819         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
46820         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
46821         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
46822         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
46823         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
46824         set.
46825
46826 2009-09-06  Bruno Haible  <bruno@clisp.org>
46827
46828         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
46829         (fstatat): Declare if GNULIB_FSTATAT is set.
46830         (mkdirat): Declare if GNULIB_MKDIRAT is set.
46831         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
46832         (unlinkat): Declare if GNULIB_UNLINKAT is set.
46833         * modules/fcntl-h (Files): Remove m4/openat.m4.
46834         * modules/sys_stat (Files): Remove m4/openat.m4.
46835         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
46836         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
46837         * modules/unistd (Files): Remove m4/openat.m4.
46838         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
46839         GNULIB_OPENAT.
46840         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
46841         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
46842         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
46843         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
46844         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
46845         gl_OPENAT_DEFAULTS.
46846         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
46847         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
46848         Don't require gl_OPENAT_DEFAULTS.
46849         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
46850         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
46851         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
46852         (gl_OPENAT_DEFAULTS): Remove macro.
46853
46854 2009-09-06  Bruno Haible  <bruno@clisp.org>
46855
46856         * modules/openat (configure.ac): Remove unneeded witness.
46857
46858 2009-09-06  Bruno Haible  <bruno@clisp.org>
46859
46860         Set errno to ENOSYS when a function is entirely unsupported.
46861         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
46862         EOPNOTSUPP.
46863         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
46864         * modules/chown (Depends-on): Remove errno.
46865
46866 2009-09-06  Bruno Haible  <bruno@clisp.org>
46867
46868         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
46869
46870 2009-09-06  Bruno Haible  <bruno@clisp.org>
46871
46872         * lib/sys_stat.in.h: Fix preprocessor command indentation.
46873
46874 2009-09-06  Ben Pfaff  <blp@gnu.org>
46875             Bruno Haible  <bruno@clisp.org>
46876
46877         Work around a glibc bug in strtok_r.
46878         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
46879         Undefine if UNDEFINE_STRTOK_R is set.
46880         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
46881         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46882         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
46883         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
46884         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
46885         UNDEFINE_STRTOK_R.
46886         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
46887
46888 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
46889
46890         exclude: minor fix
46891         * lib/exclude.c: Include wctype.h
46892
46893 2009-09-06  Akim Demaille  <demaille@gostai.com>
46894
46895         bootstrap: improve error message
46896         * build-aux/bootstrap (find_tool): Upon failure, report the list
46897         of candidates.
46898         Honor the initial value of the envvar.
46899
46900 2009-09-05  Eric Blake  <ebb9@byu.net>
46901
46902         symlinkat: new module
46903         * modules/symlinkat: New file.
46904         * lib/symlinkat.c: Likewise.
46905         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
46906         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
46907         * modules/unistd (Makefile.am): Use them.
46908         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
46909         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
46910         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
46911         * MODULES.html.sh (File system functions): Mention module.
46912         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
46913         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
46914         * modules/symlinkat-tests: New test.
46915         * tests/test-symlinkat.c: Likewise.
46916
46917         test-openat-safer: add more checks
46918         * tests/test-openat-safer.c (main): Check more code paths.
46919
46920 2009-09-05  Jim Meyering  <meyering@redhat.com>
46921
46922         syntax-check: detect unnecessary inclusion of openat.h
46923         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
46924
46925 2009-09-05  Bruno Haible  <bruno@clisp.org>
46926
46927         Support towlower, towupper.
46928         * doc/posix-functions/towlower.texi: Mention module wctype.
46929         * doc/posix-functions/towupper.texi: Likewise.
46930         * lib/wctype.in.h (towlower, towupper): New functions.
46931         * tests/test-wctype.c: Include stdio.h, stdlib.h.
46932         (ASSERT): New macro.
46933         (e): New variable.
46934         (main): Test also towlower, towupper. Test WEOF argument.
46935         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46936
46937 2009-09-05  Bruno Haible  <bruno@clisp.org>
46938
46939         Fix conversion behaviour when the input is invalid.
46940         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
46941         mark occurring in first pass of indirect conversion.
46942         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
46943         input.
46944         Found by clang's static analyzer.
46945
46946 2009-09-05  Bruno Haible  <bruno@clisp.org>
46947
46948         * tests/test-striconveh.c (main): Test indirect conversion on platforms
46949         where direct conversion is possible.
46950
46951 2009-09-04  Eric Blake  <ebb9@byu.net>
46952
46953         openat: fail with ENOENT on empty name
46954         * lib/openat-proc.c (openat_proc_name): Special-case the empty
46955         buffer.
46956
46957         link-follow: fix logic bug in prior patch
46958         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
46959         reversed sense of yes and no in prior patch.  Avoid confusing
46960         compilation failure with desired semantics.
46961
46962         link-follow: accommodate mingw and cross-compilation
46963         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
46964         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
46965         cross-compilation results to -1, to make linkat easier to
46966         implement when cross-compiling.  Trivially support mingw.
46967         * modules/link-follow (configure.ac): Call new name.
46968         * NEWS: Mention this.
46969
46970 2009-09-03  Eric Blake  <ebb9@byu.net>
46971
46972         faccessat: compile replacement
46973         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
46974         needed.
46975
46976         fts: fix compilation error
46977         * lib/fts.c (includes): Re-add "openat.h", for
46978         openat_needs_fchdir.
46979
46980         faccessat: new module
46981         * modules/faccessat: New file.
46982         * lib/faccessat.c: Likewise.
46983         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
46984         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
46985         * modules/unistd (Makefile.am): Use it.
46986         * lib/unistd.in.h (faccessat): Declare it.
46987         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
46988         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
46989         * MODULES.html.sh (File system functions): Mention it.
46990         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
46991         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
46992
46993         euidaccess: prefer POSIX over non-standard implementation
46994         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
46995         * lib/euidaccess.c (euidaccess): Use it if available.
46996
46997         openat: make template easier to use
46998         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
46999         AT_FUNC_F2 to be undefined.
47000         (VALIDATE_FLAG): New macro; use it to reject bad flags.
47001         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
47002         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
47003         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
47004         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
47005         Likewise.
47006         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
47007         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
47008         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
47009         Likewise.
47010
47011         openat: declare in POSIX headers
47012         * NEWS: Mention this.
47013         * modules/openat (configure.ac): Declare witnesses.
47014         (Depends-on): Add fcntl-h, sys_stat, unistd.
47015         (Include): Mention correct headers.
47016         * modules/fcntl-h (Depends-on): Add link-warning.
47017         (Files): Add openat.m4.
47018         (Makefile.am): Substitute witnesses.
47019         * modules/sys_stat (Files, Makefile.am): Likewise.
47020         * modules/unistd (Files, Makefile.am): Likewise.
47021         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
47022         (gl_OPENAT_DEFAULTS): New macro.
47023         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
47024         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
47025         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
47026         (SYS_STAT_H): Remove unused variable.
47027         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
47028         * lib/fcntl--.h (includes): Remove unneeded header.
47029         * lib/openat-safer.c (includes): Likewise.
47030         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
47031         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
47032         appropriate headers.
47033         (__OPENAT_PREFIX): Delete.
47034         * lib/fcntl.in.h (openat): Provide declaration.
47035         (AT_FDCWD): Fix Solaris bug.
47036         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
47037         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
47038         * lib/fchmodat.c (includes):  Adjust to find declaration.
47039         * lib/fchownat.c (includes): Likewise.
47040         * lib/mkdirat.c (includes): Likewise.
47041         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
47042         still visible.
47043
47044 2009-09-02  Eric Blake  <ebb9@byu.net>
47045
47046         errno: use consistently
47047         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
47048         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
47049         * lib/canonicalize.c (ELOOP): Likewise.
47050         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
47051         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
47052         * lib/lchown.c (EOPNOTSUPP): Likewise.
47053         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
47054         * lib/savewd.c (ESTALE): Likewise.
47055         * lib/settime.c (ENOSYS): Likewise.
47056         * lib/utimens.c (ENOSYS): Likewise.
47057         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
47058         * lib/chdir-safer.c (ELOOP): Likewise.
47059         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
47060         * modules/c-stack (Depends-on): Add errno.
47061         * modules/canonicalize (Depends-on): Likewise.
47062         * modules/chdir-safer (Depends-on): Likewise.
47063         * modules/fdopendir (Depends-on): Likewise.
47064         * modules/inet_ntop (Depends-on): Likewise.
47065         * modules/inet_pton (Depends-on): Likewise.
47066         * modules/lchown (Depends-on): Likewise.
47067         * modules/openat (Depends-on): Likewise.
47068         * modules/savewd (Depends-on): Likewise.
47069         * modules/settime (Depends-on): Likewise.
47070         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
47071
47072         fts: avoid leaking fds
47073         * modules/fts (Depends-on): Add cloexec.
47074         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
47075         flag.
47076
47077         fts: make directory fds more robust
47078         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
47079         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
47080
47081         backupfile, chdir-long, fts, savedir: make safer
47082         * lib/backupfile.c (includes): Use "dirent--.h", since
47083         numbered_backup can write to stderr during readdir.
47084         * lib/savedir.c (includes): Likewise.
47085         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
47086         emulation can write to stderr on failure.
47087         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
47088         * lib/getcwd.c: Document why opendir_safer is unused.
47089         * lib/glob.c: Likewise.
47090         * lib/scandir.c: Likewise.
47091         * lib/openat-proc.c: Likewise, for open_safer.
47092         * modules/backupfile (Depends-on): Add dirent-safer.
47093         * modules/savedir (Depends-on): Likewise.
47094         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
47095         * modules/chdir-long (Depends-on): Add openat-safer.
47096
47097         openat-safer: new module
47098         * modules/openat-safer: New file.
47099         * lib/openat-safer.c: Likewise.
47100         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
47101         * lib/fcntl-safer.h (openat_safer): Declare.
47102         * lib/fcntl--.h (openat): Override.
47103         * MODULES.html.sh (File descriptor based I/O): Mention it.
47104         * lib/openat.h: Add double-inclusion guards.
47105         * lib/openat.c (includes): Only include "fcntl-safer.h", not
47106         "fcntl--.h", so we can implement openat.
47107         * modules/openat-safer-tests: New test.
47108         * tests/test-openat-safer.c: New file.
47109
47110         dirent-safer: new module
47111         * modules/dirent-safer: New file.
47112         * lib/dirent--.h: Likewise.
47113         * lib/dirent-safer.h: Likewise.
47114         * lib/opendir-safer.c: Likewise.
47115         * m4/dirent-safer.m4: Likewise.
47116         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
47117         * modules/dirent-safer-tests: New test.
47118         * tests/test-dirent-safer.c: New file.
47119         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
47120
47121         fdopendir: optimize on mingw
47122         * lib/unistd.in.h (_gl_directory_name): New prototype.
47123         * lib/fchdir.c (_gl_directory_name): Implement it.
47124         (fchdir): Use it to simplify implementation.
47125         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
47126         fchdir, when available, to avoid calling [f]chdir().
47127
47128         fdopendir: split into its own module
47129         * lib/openat.c (fdopendir): Move...
47130         * lib/fdopendir.c: ...into new file.
47131         * modules/fdopendir: New module.
47132         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
47133         * modules/openat (Depends-on): Add fdopendir.
47134         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
47135         fdopendir here.
47136         * modules/savedir (Depends-on): Only need fdopendir, not full
47137         openat.
47138         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
47139         * lib/openat.h (fdopendir): Drop prototype.
47140         * lib/dirent.in.h (fdopendir): Provide prototype.
47141         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
47142         * modules/dirent (Makefile.am): Substitute them.
47143         * MODULES.html.sh (File system functions): Mention it.
47144         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
47145         * modules/fdopendir-tests: New file.
47146         * tests/test-fdopendir.c: Likewise.
47147
47148         fchdir: use more consistent macro convention
47149         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
47150         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
47151         REPLACE_FCHDIR, rather than relying on config.h macros.
47152         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
47153         inside a single make-time REPLACE_FCHDIR block, rather than using
47154         the config.h FCHDIR_REPLACEMENT.
47155         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
47156         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
47157         Manage fstat replacement.
47158         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
47159         REPLACE_FCHDIR.
47160         * modules/sys_stat (Files): Add m4/unistd_h.m4.
47161         (Makefile.am): Substitute REPLACE_FCHDIR.
47162         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
47163         FCHDIR_REPLACEMENT.
47164         * lib/dup-safer.c (dup_safer): Likewise.
47165         * lib/dup2.c (rpl_dup2): Likewise.
47166         * lib/dup3.c (rpl_dup3): Likewise.
47167         * lib/open.c (rpl_open): Likewise.
47168
47169         fchdir: simplify error handling, and support dup3
47170         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
47171         stdbool, malloc-posix, realloc-posix.
47172         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
47173         (ensure_dirs_slot): Return false on allocation failure.
47174         (rpl_dup2): Delete.
47175         (_gl_register_dup): New function.
47176         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
47177         (_gl_register_fd): Close fd on allocation failure.
47178         * lib/fcntl.in.h (_gl_register_fd): Update signature.
47179         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
47180         prototype.
47181         (rpl_dup2_fchdir): Delete prototype.
47182         * lib/open.c (open): Update caller.
47183         * lib/dup2.c (dup2): Track fchdir metadata.
47184         * lib/dup3.c (dup3): Likewise.
47185         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
47186         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
47187
47188 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47189
47190         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
47191         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
47192         don't pass arguments to AC_OUTPUT.
47193
47194 2009-09-02  Bruno Haible  <bruno@clisp.org>
47195
47196         * modules/mkdtemp (License): Relicense under LGPLv2+.
47197         Reported by Paolo Bonzini.
47198
47199 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47200
47201         Replace uses of obsolete autoconf macros in Jim's modules.
47202         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
47203         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
47204         can evoke a warning from autoconf when run with -Wobsolete
47205         enabled.  They were declared obsolete for good reasons (see
47206         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
47207         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
47208         should not continue using the deprecated macros.
47209         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
47210         obsolete Autoconf macros with modern counterparts.
47211         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
47212         * m4/dos.m4 (gl_AC_DOS): Likewise.
47213         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
47214         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
47215         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
47216         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
47217         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
47218         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
47219         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
47220         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
47221         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
47222         Likewise.
47223         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
47224         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
47225         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
47226         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
47227         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
47228         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
47229
47230 2009-09-01  Eric Blake  <ebb9@byu.net>
47231
47232         fchdir: fix off-by-one bug in previous patch
47233         * lib/fchdir.c (rpl_fstat): Use correct bounds.
47234         (_gl_unregister_fd): Delete useless if.
47235
47236 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
47237
47238         maint.mk: sort the list of syntax-check rules
47239         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
47240         easier to get a sense of progress when the rules are run sequentially
47241         and take a long time.
47242
47243 2009-09-01  Simon Josefsson  <simon@josefsson.org>
47244
47245         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
47246         * modules/netinet_in: Likewise.
47247         * modules/sys_file: Likewise.
47248         * modules/sys_ioctl: Likewise.
47249         * modules/sys_select: Likewise.
47250         * modules/sys_socket: Likewise.
47251         * modules/sys_stat: Likewise.
47252         * modules/sys_time: Likewise.
47253         * modules/sys_times: Likewise.
47254         * modules/sys_utsname: Likewise.
47255         * modules/sys_wait: Likewise.
47256
47257 2009-09-01  Jim Meyering  <meyering@redhat.com>
47258
47259         fts: help ensure that return values are not ignored
47260         * lib/fts_.h (__GNUC_PREREQ): Define.
47261         (__attribute_warn_unused_result__): Define.
47262         (fts_children, fts_close, fts_open, fts_read): Declare with
47263         __attribute_warn_unused_result__.
47264
47265         fts: fts_close now fails also when closing a dir file descriptor fails
47266         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
47267         and propagate to caller, along with errno.
47268
47269         announce-gen: correct formatting in --help output
47270         * build-aux/announce-gen (usage): Move the one-line description in
47271         --help output "up", to where it belongs, just after Usage:.
47272
47273 2009-08-31  Eric Blake  <ebb9@byu.net>
47274
47275         fchdir: port to mingw
47276         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
47277         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
47278         opened, then use a substitute.
47279         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
47280         replacement.
47281         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
47282         (_gl_register_fd): No need to check stat if open already filters
47283         all directories.
47284         (fchdir): Fix error condition to match POSIX.
47285         * modules/fchdir (Depends-on): Add sys_stat.
47286         * doc/posix-functions/open.texi (open): Document the limitation.
47287         * modules/fchdir-tests: New file.
47288         * tests/test-fchdir.c: Likewise.
47289
47290         canonicalize: allow cross-testing from cygwin to mingw
47291         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
47292         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
47293         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
47294         Likewise.
47295         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
47296         target does not support symlinks.
47297         * tests/test-canonicalize-lgpl.sh: Likewise.
47298
47299         chown: avoid compilation warning on mingw
47300         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
47301         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
47302         mingw.
47303         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
47304         * modules/chown (Depends-on): Add errno.
47305
47306 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
47307
47308         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
47309         command.
47310
47311 2009-08-31  Jim Meyering  <meyering@redhat.com>
47312
47313         canonicalize: remove useless initialization
47314         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
47315         initialization of local, "end".
47316
47317 2009-08-30  Bruno Haible  <bruno@clisp.org>
47318
47319         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
47320         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
47321         ENOSYS.
47322
47323 2009-08-30  Bruno Haible  <bruno@clisp.org>
47324
47325         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
47326         /usr/xpg4/bin/tr when it exists.
47327         * tests/test-pipe-filter-gi1.sh: Likewise.
47328
47329 2009-08-30  Bruno Haible  <bruno@clisp.org>
47330
47331         Work around deficient /usr/bin/id program on Solaris.
47332         * tests/test-file-has-acl.sh (ID): New variable.
47333         * tests/test-set-mode-acl.sh (ID): Likewise.
47334         * tests/test-copy-acl.sh (ID): Likewise.
47335         * tests/test-copy-file.sh (ID): Likewise.
47336
47337 2009-08-30  Bruno Haible  <bruno@clisp.org>
47338
47339         New module 'xstriconveh'.
47340         * lib/xstriconveh.h: New file.
47341         * lib/xstriconveh.c: New file.
47342         * modules/xstriconveh: New file.
47343
47344 2009-08-30  Bruno Haible  <bruno@clisp.org>
47345
47346         Make it easier to use mem_cd_iconveh.
47347         * lib/striconveh.h (iconveh_t): New type.
47348         (iconveh_open, iconveh_close): New declarations.
47349         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
47350         with a single 'const iconveh_t *' argument.
47351         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
47352         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
47353         with a single 'const iconveh_t *' argument.
47354         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
47355         * tests/test-striconveh.c (main): Update.
47356         * NEWS: Mention the change.
47357
47358 2009-08-30  Bruno Haible  <bruno@clisp.org>
47359
47360         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
47361         problem.
47362
47363 2009-08-30  Bruno Haible  <bruno@clisp.org>
47364
47365         Work around iconv_open problem on Solaris.
47366         * lib/iconv_open-solaris.gperf: New file.
47367         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
47368         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
47369         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
47370         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
47371         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
47372         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
47373
47374 2009-08-29  Jim Meyering  <meyering@redhat.com>
47375
47376         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
47377         * top/maint.mk (cvs-check): Remove target; it was just an alias
47378         to the better-named vc-diff-check.
47379         (maintainer-distcheck): Remove rule.  It was used only from
47380         the (alpha/beta/major) target, and all of its commands but one
47381         were coreutils-specific.
47382         (vc-dist): Remove rule.
47383         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
47384         Run vc-diff-check, not vc-dist.
47385         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
47386
47387 2009-08-27  Bruno Haible  <bruno@clisp.org>
47388
47389         * tests/test-bitrotate.c (main): Remove test that uses a shift count
47390         of 0.
47391
47392 2009-08-27  Bruno Haible  <bruno@clisp.org>
47393
47394         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
47395         compilers.
47396         * doc/func.texi: Document the SunPRO C bug.
47397
47398 2009-08-27  Bruno Haible  <bruno@clisp.org>
47399
47400         Fix link error on Solaris.
47401         * tests/test-parse-duration.c (xstrdup): Remove function.
47402
47403 2009-08-26  Pádraig Brady  <P@draigbrady.com>
47404
47405         ignore-value: handle pointer types, too
47406         * lib/ignore-value.h (__attribute__): Remove definition.
47407         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
47408         of a more concise and more-often effective "(void) i" statement.
47409         (ignore_ptr): New function to suppress warnings from functions that
47410         return pointers, and to make it explicit that one function doesn't
47411         handle all cases.
47412
47413 2009-08-25  Bruno Haible  <bruno@clisp.org>
47414
47415         dup2: work around a Linux bug.
47416         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
47417         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
47418         * doc/posix-functions/dup2.texi: Mention the Linux bug.
47419         Reported by Simon Josefsson.
47420
47421 2009-08-25  Jim Meyering  <meyering@redhat.com>
47422
47423         libguestfs uses gnulib
47424         * users.txt: Add libguestfs.
47425
47426 2009-08-24  Eric Blake  <ebb9@byu.net>
47427
47428         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
47429         * lib/pipe2.c (includes): Add binary-io.h.
47430         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
47431
47432 2009-08-24  Bruno Haible  <bruno@clisp.org>
47433
47434         Tolerate declared but missing accept4 syscall.
47435         * lib/accept4.c (accept4): Invoke original accept4 function first, if
47436         available.
47437         * lib/sys_socket.in.h (accept4): If the function is already present,
47438         override it.
47439         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
47440         * modules/accept4 (Makefile.am): Compile accept4.c always.
47441         Reported by Paolo Bonzini and Eric Blake.
47442
47443 2009-08-23  Bruno Haible  <bruno@clisp.org>
47444
47445         New module 'accept4'.
47446         * lib/sys_socket.in.h (accept4): New declaration.
47447         * lib/accept4.c: New file.
47448         * m4/accept4.m4: New file.
47449         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
47450         GNULIB_ACCEPT4, HAVE_ACCEPT4.
47451         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
47452         HAVE_ACCEPT4.
47453         * modules/accept4: New file.
47454         * doc/glibc-functions/accept4.texi: Mention the new module.
47455
47456 2009-08-24  Jim Meyering  <meyering@redhat.com>
47457
47458         progname: also set global program_invocation_name, when possible
47459         Before this change, a libtool-enabled program that calls glibc's
47460         error function would report the program name as
47461         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
47462         * modules/progname (configure.ac): Check for a declaration of
47463         program_invocation_name.
47464         * lib/progname.c:  Include <errno.h>.
47465         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
47466         Set program_invocation_name.
47467
47468 2009-08-23  Bruno Haible  <bruno@clisp.org>
47469
47470         * lib/dup3.c: Include <string.h>.
47471
47472 2009-08-23  Bruno Haible  <bruno@clisp.org>
47473
47474         * lib/dup3.c (dup3): Test only once whether the system actually exists.
47475         * lib/pipe2.c (pipe2): Likewise.
47476         Suggested by Eric Blake.
47477
47478 2009-08-23  Bruno Haible  <bruno@clisp.org>
47479
47480         Tolerate declared but missing dup3 syscall.
47481         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
47482         * lib/unistd.in.h (dup3): If the function is already present,
47483         override it.
47484         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
47485         * modules/dup3 (Makefile.am): Compile dup3.c always.
47486         Reported by Paolo Bonzini.
47487
47488 2009-08-23  Bruno Haible  <bruno@clisp.org>
47489
47490         Tolerate declared but missing pipe2 syscall.
47491         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
47492         available.
47493         * lib/unistd.in.h (pipe2): If the function is already present,
47494         override it.
47495         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
47496         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
47497         Reported by Paolo Bonzini.
47498
47499 2009-08-23  Bruno Haible  <bruno@clisp.org>
47500
47501         * lib/pipe2.c (pipe2): Move #ifs inside function.
47502
47503 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
47504
47505         quotearg: document limitations of quote_these_too
47506         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
47507         those limitations are created.
47508         * lib/quotearg.h (set_char_quoting): Document that digits and
47509         letters that are special after backslash are not permitted.
47510         (quotearg_char): Cross-reference set_char_quoting documentation.
47511
47512 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
47513
47514         quotearg: implement custom_quoting_style
47515         * lib/quotearg.c: (struct quoting_options): Add left_quote and
47516         right_quote fields.
47517         (set_custom_quoting): New public function.
47518         (quotearg_buffer_restyled): Add left_quote and right_quote
47519         arguments, handle them very much like locale quoting, and update
47520         all uses.
47521         (quotearg_n_custom): New public function.
47522         (quotearg_n_custom_mem): New public function.
47523         (quotearg_custom): New public function.
47524         (quotearg_custom_mem): New public function.
47525         * lib/quotearg.h: Prototype and document new public functions.
47526         (enum quoting_style): For escape_quoting_style and
47527         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
47528         ignored even though they're otherwise like c_quoting_style.
47529         Add custom_quoting_style member and document with comparison to
47530         clocale_quoting_style.
47531         * tests/test-quotearg.c (custom_quotes): New array.
47532         (custom_results): New array.
47533         (main): Extend to test custom quoting.
47534
47535 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
47536
47537         quotearg: fix right quote escaping when it's in quote_these_too
47538         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
47539         quote, be sure to prepend only one backslash.
47540         * tests/test-quotearg.c (use_quote_double_quotes): New function.
47541         (main): Test it.
47542
47543 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
47544
47545         quotearg-tests: test escaping of embedded locale quotes
47546         * tests/test-quotearg.c (struct result_strings): Add member for
47547         new input.
47548         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
47549         (inputs): Add new input.
47550         (results_g): Add expected results.
47551         (flag_results): Likewise.
47552         (locale_results): Likewise.
47553         (compare_strings): Check those.
47554
47555 2009-08-23  Bruno Haible  <bruno@clisp.org>
47556
47557         Tests for module 'dup3'.
47558         * modules/dup3-tests: New file.
47559         * tests/test-dup3.c: New file.
47560
47561         New module 'dup3'.
47562         * lib/unistd.in.h (dup3): New declaration.
47563         * lib/dup3.c: New file.
47564         * m4/dup3.m4: New file.
47565         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
47566         HAVE_DUP3.
47567         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
47568         * modules/dup3: New file.
47569         * doc/glibc-functions/dup3.texi: Mention the new module.
47570
47571 2009-08-23  Bruno Haible  <bruno@clisp.org>
47572
47573         Tweak the dup2 test.
47574         * tests/test-dup2.c (main): Create the test file empty. Verify that an
47575         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
47576         the test file is still empty. Fix argument order of lseek.
47577
47578 2009-08-23  Bruno Haible  <bruno@clisp.org>
47579
47580         Avoid test link errors when the modules getopt-gnu, gettext are used.
47581         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
47582         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47583
47584 2009-08-23  Bruno Haible  <bruno@clisp.org>
47585
47586         Fix getdtablesize() on mingw.
47587         * lib/getdtablesize.c (getdtablesize): Implement differently.
47588         * lib/unistd.in.h (getdtablesize): Improve comment.
47589
47590 2009-08-23  Bruno Haible  <bruno@clisp.org>
47591
47592         New module 'mkostemp'.
47593         Based on Ulrich Drepper's 2007-08-10 change in glibc.
47594         * lib/stdlib.in.h (mksotemp): New declaration.
47595         * lib/mkostemp.c: New file, from glibc with modifications.
47596         * lib/tempname.h (GT_FILE): Remove outdated comment.
47597         (gen_tempname): Add flags argument.
47598         * lib/tempname.c (__GT_BIGFILE): Remove macro.
47599         (__GT_FILE): Map to 1.
47600         (small_open, large_open): Remove macros.
47601         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
47602         * lib/mkstemp.c (mkstemp): Update.
47603         * lib/mkdtemp.c (mkdtemp): Likewise.
47604         * m4/mkostemp.m4: New file.
47605         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
47606         HAVE_MKOSTEMP.
47607         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
47608         HAVE_MKOSTEMP.
47609         * modules/mkostemp: New file, based on modules/mkstemp.
47610         * doc/glibc-functions/mkostemp.texi: Mention the new module.
47611         * NEWS: Mention the change.
47612
47613 2009-08-23  Bruno Haible  <bruno@clisp.org>
47614
47615         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
47616         Reported by Eric Blake.
47617
47618 2009-08-23  Bruno Haible  <bruno@clisp.org>
47619
47620         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
47621         Reported by Eric Blake.
47622
47623 2009-08-23  Bruno Haible  <bruno@clisp.org>
47624
47625         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
47626         * modules/pipe2 (Depends-on): Likewise.
47627
47628 2009-08-23  Eric Blake  <ebb9@byu.net>
47629
47630         fcntl-h: add O_TTY_INIT support
47631         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
47632         * tests/test-fcntl-h.c (o): Test it.
47633         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
47634
47635         fcntl-h: rename from fcntl, in preparation for fcntl(2)
47636         * modules/fcntl: Move <fcntl.h> header replacement...
47637         * modules/fcntl-h: ...to new name, so as not to collide with
47638         like-named function.
47639         * tests/test-fcntl.c: Rename...
47640         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
47641         * modules/fcntl-tests: Rename...
47642         * modules/fcntl-h-tests: ...to this.  Update test file name.
47643         * modules/chdir-long (Depends-on): Update clients.
47644         * modules/chdir-safer (Depends-on): Likewise.
47645         * modules/fcntl-safer (Depends-on): Likewise.
47646         * modules/fts (Depends-on): Likewise.
47647         * modules/mkancesdirs (Depends-on): Likewise.
47648         * modules/mkdir-p (Depends-on): Likewise.
47649         * modules/open (Depends-on): Likewise.
47650         * modules/savewd (Depends-on): Likewise.
47651         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
47652         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
47653
47654 2009-08-22  Bruno Haible  <bruno@clisp.org>
47655
47656         * modules/binary-io (License): Relicense under LGPL.
47657         * modules/pipe2 (License): Likewise.
47658
47659 2009-08-22  Bruno Haible  <bruno@clisp.org>
47660
47661         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
47662         return value.
47663         * lib/pipe-filter-gi.c (filter_init): Likewise.
47664         Reported by Eric Blake.
47665
47666 2009-08-22  Bruno Haible  <bruno@clisp.org>
47667
47668         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
47669         * modules/pipe (Depends-on): Add pipe2.
47670
47671 2009-08-22  Bruno Haible  <bruno@clisp.org>
47672
47673         Tests for module 'pipe2'.
47674         * modules/pipe2-tests: New file.
47675         * tests/test-pipe2.c: New file.
47676
47677         New module 'pipe2'.
47678         * lib/unistd.in.h (pipe2): New declaration.
47679         * lib/pipe2.c: New file.
47680         * m4/pipe2.m4: New file.
47681         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
47682         HAVE_PIPE2.
47683         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
47684         * modules/pipe2: New file.
47685         * doc/glibc-functions/pipe2.texi: Mention the new module.
47686
47687 2009-08-22  Bruno Haible  <bruno@clisp.org>
47688
47689         Reference some new glibc functions.
47690         * doc/glibc-functions/accept4.texi: New file.
47691         * doc/glibc-functions/dup3.texi: New file.
47692         * doc/glibc-functions/mkostemp.texi: New file.
47693         * doc/glibc-functions/pipe2.texi: New file.
47694         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
47695         (Glibc sys/socket.h): Refer to accept4.
47696         (Glibc unistd.h): Refer to dup3, pipe2.
47697         Reported by Eric Blake.
47698
47699 2009-08-22  Jim Meyering  <meyering@redhat.com>
47700             Bruno Haible  <bruno@clisp.org>
47701
47702         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
47703         This makes it so packages using automake-1.11's silent-rules option
47704         can print e.g., a single "GEN    configmake.h" line, rather than
47705         the 30+ statements that perform the job.  If you want to see the
47706         actual commands, you can still run "make V=1".
47707         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
47708         so that make output is abbreviated when those variables are defined
47709         appropriately.
47710         * modules/argz: Likewise.
47711         * modules/arpa_inet: Likewise.
47712         * modules/byteswap: Likewise.
47713         * modules/configmake: Likewise.
47714         * modules/dirent: Likewise.
47715         * modules/errno: Likewise.
47716         * modules/fcntl: Likewise.
47717         * modules/float: Likewise.
47718         * modules/fnmatch: Likewise.
47719         * modules/getopt-posix: Likewise.
47720         * modules/glob: Likewise.
47721         * modules/iconv_open: Likewise.
47722         * modules/inttypes: Likewise.
47723         * modules/localcharset: Likewise.
47724         * modules/locale: Likewise.
47725         * modules/math: Likewise.
47726         * modules/netdb: Likewise.
47727         * modules/netinet_in: Likewise.
47728         * modules/poll: Likewise.
47729         * modules/posix_spawnp-tests: Likewise.
47730         * modules/sched: Likewise.
47731         * modules/search: Likewise.
47732         * modules/selinux-h: Likewise.
47733         * modules/signal: Likewise.
47734         * modules/spawn: Likewise.
47735         * modules/stdarg: Likewise.
47736         * modules/stdbool: Likewise.
47737         * modules/stddef: Likewise.
47738         * modules/stdint: Likewise.
47739         * modules/stdio: Likewise.
47740         * modules/stdlib: Likewise.
47741         * modules/string: Likewise.
47742         * modules/strings: Likewise.
47743         * modules/sys_file: Likewise.
47744         * modules/sys_ioctl: Likewise.
47745         * modules/sys_select: Likewise.
47746         * modules/sys_socket: Likewise.
47747         * modules/sys_stat: Likewise.
47748         * modules/sys_time: Likewise.
47749         * modules/sys_times: Likewise.
47750         * modules/sys_utsname: Likewise.
47751         * modules/sys_wait: Likewise.
47752         * modules/sysexits: Likewise.
47753         * modules/time: Likewise.
47754         * modules/unistd: Likewise.
47755         * modules/wchar: Likewise.
47756         * modules/wctype: Likewise.
47757
47758 2009-08-22  Jim Meyering  <meyering@redhat.com>
47759
47760         announce-gen: detect write failure
47761         * build-aux/announce-gen: Add Coda at end.
47762         Remove equivalent-but-more-verbose block at top.
47763
47764 2009-08-19  Akim Demaille  <demaille@gostai.com>
47765
47766         bootstrap: --help to stdout.
47767         * bootstrap (usage): Don't send --help to stderr.
47768         Use a here doc instead of a long string.
47769
47770 2009-08-21  Eric Blake  <ebb9@byu.net>
47771
47772         test-popen-safer: split from test-popen
47773         * tests/test-popen.c (main): Move...
47774         * tests/test-popen.h: ...into new file.
47775         * tests/test-popen-safer2.c: New file.
47776         * modules/popen-tests (Files): Add test-popen.h.
47777         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
47778         Suggested by Bruno Haible.
47779
47780         test-fcntl-safer: split from test-open
47781         * tests/test-open.c (main): Move...
47782         * tests/test-open.h: ...into new file.
47783         * tests/test-fcntl-safer.c: New file.
47784         * modules/open-tests (Files): Add test-open.h.
47785         * modules/fcntl-safer-tests: New file.
47786         Suggested by Bruno Haible.
47787
47788         test-fopen-safer: split from test-fopen
47789         * tests/test-fopen.c (main): Move...
47790         * tests/test-fopen.h: ...into new file.
47791         * tests/test-fopen-safer.c: New file.
47792         * modules/fopen-tests (Files): Add test-fopen.h.
47793         * modules/fopen-safer-tests: New file.
47794         Suggested by Bruno Haible.
47795
47796 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
47797
47798         popen-safer: test O_CLOEXEC at run-time.
47799         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
47800
47801 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
47802
47803         fcntl: move more flags to the header
47804         * lib/cloexec.c: Do not define FD_CLOEXEC here.
47805         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
47806         * lib/fcntl.in.h: Do both things here.
47807
47808 2009-08-21  Jim Meyering  <meyering@redhat.com>
47809
47810         consistently remove $@-t before redirecting to it
47811         * modules/argz: Remove $@-t and $@ before redirecting to the former.
47812         * modules/alloca-opt: Likewise.
47813         * modules/byteswap: Likewise.
47814         * modules/fnmatch: Likewise.
47815         * modules/getopt-posix: Likewise.
47816         * modules/glob: Likewise.
47817         * modules/poll: Likewise.
47818         * modules/posix_spawnp-tests: Likewise.
47819         * modules/sys_socket: Likewise.
47820         * modules/sysexits: Likewise.
47821
47822 2009-08-21  Eric Blake  <ebb9@byu.net>
47823
47824         popen: simplify access to original popen
47825         * lib/popen.c (rpl_popen): No need to worry about popen being a
47826         macro.
47827         Reported by Bruno Haible.
47828
47829 2009-08-20  Eric Blake  <ebb9@byu.net>
47830
47831         build: avoid some compiler warnings
47832         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
47833         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
47834         type.
47835         (new_exclude_segment, excluded_file_pattern_p)
47836         (excluded_file_name_p): Reduce scope.
47837         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
47838         old-style declaration.
47839
47840 2009-08-20  Simon Josefsson  <simon@josefsson.org>
47841
47842         * tests/test-exclude1.sh: Handle Windows EOL.
47843         * tests/test-exclude2.sh: Likewise.
47844         * tests/test-exclude3.sh: Likewise.
47845         * tests/test-exclude4.sh: Likewise.
47846         * tests/test-exclude5.sh: Likewise.
47847         * tests/test-exclude6.sh: Likewise.
47848         * tests/test-exclude7.sh: Likewise.
47849
47850 2009-08-19  Akim Demaille  <demaille@gostai.com>
47851
47852         bootstrap: find sha1sum when named gsha1sum.
47853         * bootstrap (find_tool): New.
47854         ($SHA1SUM): New.
47855         Use it.
47856
47857 2009-08-20  Jim Meyering  <meyering@redhat.com>
47858
47859         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
47860         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
47861         expression that converts "." in a file name to "\." in the resulting
47862         regexp.  Start with a dummy statement, so that prior shell variable
47863         definitions are expanded portably.  Reported by Simon Josefsson.
47864
47865 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
47866
47867         Fix polling for writeability of a screen buffer.
47868         * lib/poll.c: Distinguish input and screen buffers for the
47869         Win32 implementation.
47870         * lib/select.c: Likewise.
47871
47872 2009-08-19  Eric Blake  <ebb9@byu.net>
47873
47874         popen-safer: prevent popen from clobbering std descriptors
47875         * modules/popen-safer: New file.
47876         * lib/popen-safer.c: Likewise.
47877         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
47878         * lib/stdio--.h (popen): Provide override.
47879         * lib/stdio-safer.h (popen_safer): Provide declaration.
47880         * tests/test-popen.c (includes): Partially test this.
47881         * modules/popen-safer-tests: New file, for more tests.
47882         * tests/test-popen-safer.c: Likewise.
47883         * MODULES.html.sh (file stream based Input/Output): Mention it.
47884
47885         tests: test some of the *-safer modules
47886         * modules/fopen-safer (Depends-on): Add fopen.
47887         * modules/fcntl-safer (Depends-on): Add fcntl.
47888         * modules/stdlib-safer (Depends-on): Add stdlib.
47889         (configure.ac): Set indicator.
47890         * modules/unistd-safer (configure.ac): Likewise.
47891         * modules/tmpfile-safer (configure.ac): Likewise.
47892         (Depends-on): Add tmpfile.
47893         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
47894         active.
47895         * tests/test-fopen.c (includes): Test safer versions when they are
47896         in use.
47897         * tests/test-open.c (includes): Likewise.
47898
47899         popen: fix cygwin 1.5 bug when stdin closed
47900         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
47901         * modules/popen: New file.
47902         * modules/popen-tests: Likewise.
47903         * tests/test-popen.c: Likewise.
47904         * m4/popen.m4: Likewise.
47905         * lib/popen.c: Likewise.
47906         * lib/stdio.in.h (popen): New declaration.
47907         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
47908         * modules/stdio (Makefile.am): Likewise.
47909         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
47910
47911 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
47912
47913         maint.mk: give full control over update-copyright exclusions
47914         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
47915         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
47916         (update-copyright): Don't force inclusion of top-level
47917         ChangeLog.  Don't force exclusion of all COPYING files, but make
47918         them the default exclusion instead.
47919
47920 2009-08-16  Bruno Haible  <bruno@clisp.org>
47921
47922         Fix test failures on Solaris 10.
47923         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
47924         tests when Solaris iconv() is used.
47925         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
47926         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
47927         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
47928         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
47929         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
47930
47931 2009-08-16  Bruno Haible  <bruno@clisp.org>
47932
47933         Fix test failures on Solaris 10.
47934         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
47935         'tr' program and pass it as first argument.
47936         * tests/test-pipe-filter-gi1.sh: Likewise.
47937         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
47938         program as first argument.
47939         * tests/test-pipe-filter-gi1.c (main): Likewise.
47940
47941 2009-08-16  Eric Blake  <ebb9@byu.net>
47942
47943         fpurge: fix previous commits
47944         * modules/fpurge (Makefile.am): Make replacement conditional,
47945         partially reverting 2007-04-29 change; missed in previous
47946         attempt.
47947         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
47948         is missing.
47949
47950 2009-08-16  Bruno Haible  <bruno@clisp.org>
47951
47952         Clarify fpurge's effect on the file position.
47953         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
47954         * tests/test-fpurge.c (main): Make a second pass for checking the file
47955         position.
47956
47957 2009-08-16  Bruno Haible  <bruno@clisp.org>
47958
47959         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
47960         declaration of fpurge is missing.
47961         * tests/test-fpurge.c (main): Check that the file has not more contents
47962         than expected. Close the file before removing it.
47963
47964 2009-08-15  Eric Blake  <ebb9@byu.net>
47965
47966         fpurge: don't wrap working cygwin implementation
47967         * lib/fpurge.c (fpurge): Fix comment typo.
47968         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
47969         1.7 to avoid replacement.
47970         * tests/test-fpurge.c (main): Enhance test.
47971
47972 2009-08-15  Eric Blake  <ebb9@byu.net>
47973         and Jim Meyering  <meyering@redhat.com>
47974
47975         test-update-copyright: skip if perl is insufficient
47976         * tests/test-update-copyright.sh: Failure to run maintainer tool
47977         should not cause testsuite failure on cygwin 1.5.
47978
47979 2009-08-14  Eric Blake  <ebb9@byu.net>
47980
47981         doc: mention more functions added in cygwin 1.7.0
47982         * doc/posix-headers/limits.texi (limits.h): Update for recent
47983         cygwin additions.
47984         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
47985         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
47986         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
47987         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
47988         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
47989
47990 2009-08-14  Eric Blake  <ebb9@byu.net>
47991
47992         maint.mk: simplify update-copyright rule
47993         * top/maint.mk (update-copyright-local): Delete, and document how
47994         to do it in cfg.mk instead.
47995         (update-copyright-exclude-regexp): Delete, and document how to do
47996         it in .x-update-copyright instead.
47997         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
47998         exclude ChangeLog.
47999
48000 2009-08-14  Bruno Haible  <bruno@clisp.org>
48001
48002         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
48003
48004 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
48005
48006         maint.mk: support update-copyright-env
48007         * top/maint.mk (update-copyright-env): Define place-holder.
48008         (update-copyright): Expand $(update-copyright-env) before
48009         invoking update-copyright.
48010
48011 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
48012
48013         update-copyright: implement forced reformatting
48014         * build-aux/update-copyright: Implement and document
48015         UPDATE_COPYRIGHT_FORCE.
48016         * tests/test-update-copyright.sh: Test it.
48017
48018 2009-08-14  Eric Blake  <ebb9@byu.net>
48019         and Bruno Haible  <bruno@clisp.org>
48020
48021         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
48022         * tests/test-locale.c: Revert previous patch related to NULL.
48023         * tests/test-stdio.c: Likewise.
48024         * tests/test-stdlib.c: Likewise.
48025         * tests/test-string.c: Likewise.
48026         * tests/test-unistd.c: Likewise.
48027         * modules/time-tests (Depends-on): Add verify.
48028         * modules/wchar-tests (Depends-on): Likewise.
48029         * tests/test-time.c: Test for NULL compliance.
48030         * tests/test-wchar.c: Likewise.
48031         * modules/locale (Depends-on): Add stddef.
48032         * modules/stdio (Depends-on): Likewise.
48033         * modules/stdlib (Depends-on): Likewise.
48034         * modules/string (Depends-on): Likewise.
48035         * modules/time (Depends-on): Likewise.
48036         * modules/unistd (Depends-on): Likewise.
48037         * modules/wchar (Depends-on): Likewise.
48038         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
48039         * lib/stdlib.in.h (includes): Likewise.
48040         * lib/string.in.h (includes): Likewise.
48041         * lib/time.in.h (includes): Likewise.
48042         * lib/unistd.in.h (includes): Likewise.
48043         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
48044         replaced.
48045         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
48046         * m4/stddef_h.m4: New file.
48047         * modules/stddef: Likewise.
48048         * lib/stddef.in.h: Likewise.
48049         * modules/stddef-tests: Likewise.
48050         * tests/test-stddef.c: Likewise.
48051         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
48052         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
48053         * doc/posix-headers/locale.texi (locale.h): Likewise.
48054         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
48055         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
48056         * doc/posix-headers/string.texi (string.h): Likewise.
48057         * doc/posix-headers/time.texi (time.h): Likewise.
48058         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
48059         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
48060
48061 2009-08-14  Eric Blake  <ebb9@byu.net>
48062
48063         doc: improve git diff of texinfo files
48064         * .gitattributes: Add rule for *.texi files, with hint on how to
48065         use it.
48066         Copied from m4, and based on a report by Bruno Haible.
48067
48068 2009-08-14  Bruno Haible  <bruno@clisp.org>
48069
48070         Disable multithread support by default on Cygwin 1.5.x for real.
48071         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
48072
48073 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
48074
48075         update-copyright: much ado about intervals
48076         * build-aux/update-copyright: Implement and document
48077         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
48078         of copyright year intervals.
48079         Also, document UPDATE_COPYRIGHT_YEAR.
48080         * tests/test-update-copyright.sh: Test it.
48081
48082         update-copyright: convert 2-digit to 4-digit years
48083         * build-aux/update-copyright: Implement and document.
48084         * tests/test-update-copyright.sh: Update.
48085
48086 2009-08-14  Jim Meyering  <meyering@redhat.com>
48087
48088         test-exclude: avoid coreutils "make check" failure
48089         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
48090         just as in test-argmatch.c.
48091
48092 2009-08-13  Eric Blake  <ebb9@byu.net>
48093
48094         test-dup2: fix bad assumption
48095         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
48096         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
48097
48098         test-version-etc: fix CRLF portability issue
48099         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
48100         recognize \r.
48101         * tests/test-argp-version-etc-1.sh: Likewise.
48102
48103         getopt: update client modules
48104         * modules/argp (Depends-on): Use getopt-gnu.
48105         * modules/git-merge-changelog (Depends-on): Likewise.
48106         * modules/long-options (Depends-on): Likewise.
48107         * modules/xstrtol (Depends-on): Likewise.
48108
48109 2009-08-13  Simon Josefsson  <simon@josefsson.org>
48110
48111         * tests/test-version-etc.sh: Don't fail on different
48112         project/version.  Don't fail on CRLF differences.  Rewrite to use
48113         multiple -e instead of multiple sed forks, suggested by Eric Blake
48114         <ebb9@byu.net>.
48115         * tests/test-argp-version-etc-1.sh: Likewise.
48116
48117 2009-08-13  Simon Josefsson  <simon@josefsson.org>
48118
48119         * tests/test-version-etc.sh: Don't fail on different
48120         project/version.
48121
48122 2009-08-12  Bruno Haible  <bruno@clisp.org>
48123
48124         Tests for modules 'getopt-posix', 'getopt-gnu'.
48125         * modules/getopt-posix-tests: New file.
48126         * tests/test-getopt.c: New file.
48127         * tests/test-getopt.h: New file.
48128         * tests/test-getopt_long.h: New file.
48129
48130         New modules 'getopt-posix', 'getopt-gnu'.
48131         * modules/getopt-gnu: New file, renamed from modules/getopt.
48132         * modules/getopt-posix: New file.
48133         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
48134         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
48135         (gl_GETOPT): Remove macro.
48136         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
48137         Disable the test against BSD systems that declare optreset. Test
48138         against mingw bug. Test against lack of support of optional arguments
48139         on many platforms.
48140         * doc/glibc-headers/getopt.texi: Update module name and list of
48141         relevant platforms.
48142         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
48143         'getopt-gnu' and more portability problems.
48144         * NEWS: Mention the changes.
48145
48146 2009-08-12  Bruno Haible  <bruno@clisp.org>
48147
48148         Ensure that optarg etc. get declared by <unistd.h>.
48149         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
48150         AC_USE_SYSTEM_EXTENSIONS.
48151         * modules/getopt (Depends-on): Add 'extensions'.
48152
48153 2009-08-12  Bruno Haible  <bruno@clisp.org>
48154
48155         Avoid test link errors.
48156         * modules/pipe-filter-ii-tests (Makefile.am): Define
48157         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
48158         * modules/pipe-filter-gi-tests (Makefile.am): Define
48159         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
48160         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48161
48162 2009-08-12  Bruno Haible  <bruno@clisp.org>
48163
48164         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
48165         gl_GETOPT_SUBSTITUTE before.
48166         (gl_GETOPT): Use it.
48167         * m4/argp.m4 (gl_ARGP): Update.
48168         Reported by Sergey Poznyakoff.
48169
48170         * m4/getopt.m4: Reorder macros.
48171         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
48172         (gl_GETOPT_SUBSTITUTE): Remove macro.
48173
48174 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
48175
48176         Minor improvement in gitlog-to-changelog
48177
48178         * build-aux/gitlog-to-changelog: New option `--format' makes
48179         output format string configurable.
48180
48181 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
48182
48183         Optimize exclude: use hash tables for non-wildcard patterns.
48184
48185         * lib/exclude.c: Include hash.h and mbuiter.h
48186         (struct exclude_pattern, exclude_segment): New data types.
48187         (struct exclude): Rewrite.
48188         (fnmatch_pattern_has_wildcards): New function.
48189         (new_exclude_segment, free_exclude_segment): New functions.
48190         (excluded_file_pattern_p, excluded_file_name_p): New functions.
48191         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
48192         * lib/exclude.h (is_fnmatch_pattern): New prototype.
48193         * modules/exclude: Depend on hash and mbuiter.
48194
48195         * modules/exclude-tests: New file.
48196         * tests/test-exclude.c: New file.
48197         * tests/test-exclude1.sh: New file.
48198         * tests/test-exclude2.sh: New file.
48199         * tests/test-exclude3.sh: New file.
48200         * tests/test-exclude4.sh: New file.
48201         * tests/test-exclude5.sh: New file.
48202         * tests/test-exclude6.sh: New file.
48203         * tests/test-exclude7.sh: New file.
48204
48205 2009-08-12  Bruno Haible  <bruno@clisp.org>
48206
48207         Ensure that getopt() gets declared by <unistd.h>.
48208         * lib/unistd.in.h: Conditionally include getopt.h.
48209         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
48210         Set GNULIB_UNISTD_H_GETOPT.
48211         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48212         GNULIB_UNISTD_H_GETOPT.
48213         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
48214
48215 2009-08-12  Bruno Haible  <bruno@clisp.org>
48216
48217         Clarify logic.
48218         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
48219         gl_replace_getopt instead of GETOPT_H.
48220
48221 2009-08-12  Bruno Haible  <bruno@clisp.org>
48222
48223         * m4/getopt.m4: Add comments.
48224
48225 2009-08-12  Bruno Haible  <bruno@clisp.org>
48226
48227         Disable multithread support by default on Cygwin 1.5.x.
48228         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
48229         set gl_use_threads=no if not specified otherwise.
48230
48231 2009-08-11  Bruno Haible  <bruno@clisp.org>
48232
48233         Avoid compilation error on NetBSD 5.0.
48234         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
48235         * tests/test-stdio.c: Likewise.
48236         * tests/test-stdlib.c: Likewise.
48237         * tests/test-string.c: Likewise.
48238         * tests/test-unistd.c: Likewise.
48239         Reported by Greg Troxel <gdt@ir.bbn.com>
48240         at <https://savannah.gnu.org/support/?106973>.
48241
48242 2009-08-11  Bruno Haible  <bruno@clisp.org>
48243
48244         * modules/dup2-tests (Depends-on): Remove close.
48245
48246         Undo 2009-07-19 commit.
48247         * modules/acl-tests (Depends-on): Remove close.
48248         * modules/binary-io-tests (Depends-on): Likewise.
48249         * modules/closein-tests (Depends-on): Likewise.
48250         * modules/flock-tests (Depends-on): Likewise.
48251         * modules/fsync-tests (Depends-on): Likewise.
48252         * modules/lseek-tests (Depends-on): Likewise.
48253         * modules/pipe-tests (Depends-on): Likewise.
48254         * modules/posix_spawn-tests (Depends-on): Likewise.
48255         * modules/posix_spawnp-tests (Depends-on): Likewise.
48256         * modules/stat-time-tests (Depends-on): Likewise.
48257         * modules/yesno-tests (Depends-on): Likewise.
48258
48259 2009-08-10  Bruno Haible  <bruno@clisp.org>
48260
48261         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
48262
48263 2009-08-10  Bruno Haible  <bruno@clisp.org>
48264
48265         Fix a gcc warning.
48266         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
48267
48268 2009-08-10  Bruno Haible  <bruno@clisp.org>
48269
48270         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
48271         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
48272         not only the first time.
48273         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
48274         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
48275         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
48276         is 1, not only the the first time.
48277
48278 2009-08-10  Bruno Haible  <bruno@clisp.org>
48279
48280         Make it possible to use module 'gethostname' without module 'close'.
48281         * lib/unistd.in.h (close): Evoke a link error only if
48282         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
48283         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48284         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
48285         * modules/unistd (Makefile.am): Substitute
48286         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
48287         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
48288         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
48289         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
48290         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
48291         * modules/sys_ioctl (Makefile.am): Substitute
48292         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
48293         * modules/socket (configure.ac): On native Windows, set
48294         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
48295         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
48296         Reported by Sam Steingold <sds@gnu.org>.
48297
48298 2009-08-10  Bruno Haible  <bruno@clisp.org>
48299
48300         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
48301         * modules/ioctl (configure.ac): Likewise.
48302
48303 2009-08-10  Bruno Haible  <bruno@clisp.org>
48304
48305         Avoid collision between gnulib wrapper and libintl wrapper.
48306         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
48307         already defined in intl/printf.c.
48308         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
48309         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
48310
48311 2009-08-09  Bruno Haible  <bruno@clisp.org>
48312
48313         Make <sys/select.h> really self-contained, also on Solaris 10.
48314         * lib/sys_select.in.h: Include <string.h>.
48315         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
48316         Solaris 10 problem.
48317         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
48318         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
48319         Reported by Jim Meyering.
48320
48321 2009-08-09  Bruno Haible  <bruno@clisp.org>
48322
48323         Avoid warnings from 'aclocal' that are due to a use of macro name
48324         AM_XGETTEXT_OPTION that is not defined in automake.
48325         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
48326         automake.
48327         * modules/error (configure.ac): Likewise.
48328         * modules/propername (configure.ac): Likewise.
48329         * modules/vasprintf (configure.ac): Likewise.
48330         * modules/verror (configure.ac): Likewise.
48331         * modules/xprintf (configure.ac): Likewise.
48332         * modules/xvasprintf (configure.ac): Likewise.
48333
48334 2009-08-08  Bruno Haible  <bruno@clisp.org>
48335
48336         Avoid compilation error in C++ mode.
48337         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
48338         Reported by Sam Steingold <sds@gnu.org>.
48339
48340 2009-08-08  Bruno Haible  <bruno@clisp.org>
48341
48342         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
48343         for the various Unix platforms.
48344         * doc/posix-headers/limits.texi: Update platforms list regarding
48345         HOST_NAME_MAX.
48346         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48347
48348 2009-08-07  Jim Meyering  <meyering@redhat.com>
48349
48350         selinux-at: fix typo in a comment
48351         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
48352         Spotted by Paolo Bonzini.
48353
48354         selinux-at: remove redundant m4 code, add documentation
48355         * modules/selinux-at (configure.ac): Remove redundant code.
48356         LIB_SELINUX is already set via the dependent module, selinux-h.
48357         (Include): Add quotes around selinux-at.h.
48358         * lib/selinux-at.h: Add documentation.
48359         Reported by Bruno Haible in
48360         http://marc.info/?l=gnulib-bug&m=124958988300749
48361
48362 2009-08-07  Bruno Haible  <bruno@clisp.org>
48363
48364         Avoid link error on MacOS X 10.3 and 10.4.
48365         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
48366         on non-ELF systems.
48367         * lib/argp-pv.c (argp_program_version): Likewise.
48368         Reported by Simon Josefsson.
48369
48370 2009-08-07  Simon Josefsson  <simon@josefsson.org>
48371
48372         * tests/test-version-etc.sh: Use $EXEEXT.
48373
48374 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
48375
48376         update-copyright: update documentation to point to maint.mk
48377         * build-aux/update-copyright: Here.
48378
48379 2009-08-06  Jim Meyering  <meyering@redhat.com>
48380
48381         maint.mk: support update-copyright-local
48382         * top/maint.mk (update-copyright-local): Define place-holder.
48383         (update-copyright): Depend on $(update-copyright-local).
48384
48385 2009-08-06  Jim Meyering  <meyering@redhat.com>
48386
48387         selinux-at: new module
48388         Initially written for coreutils, this module will soon be
48389         used by findutils, too.
48390         * MODULES.html.sh [Misc]: Add selinux-at.
48391         * lib/selinux-at.h: New file, from coreutils.
48392         * lib/selinux-at.c: Likewise.
48393         * modules/selinux-at: Likewise.
48394         (License): Change from LGPL to GPL, since it depends
48395         on the GPL'd openat module.
48396
48397         doc: update README
48398         * README: Remove references to cogito.
48399         Remove cvs-repo-updating instructions from 2007.
48400         Don't imply that CVS is better if you have limited disk space.
48401
48402 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
48403
48404         update-copyright: support C-style comments
48405         * build-aux/update-copyright: Implement and document.
48406         * tests/test-update-copyright.sh: Test.
48407
48408 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
48409
48410         update-copyright: support omitted "(C)"
48411         * build-aux/update-copyright: Implement and document.  Also,
48412         allow variable whitespace before "(C)".
48413         * tests/test-update-copyright.sh: Test.
48414
48415 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
48416
48417         update-copyright: don't trip on non-FSF copyright statements
48418         * build-aux/update-copyright: Fix so that the first correctly
48419         formatted FSF copyright statement is recognized no matter what
48420         appears before it.  Update documentation.
48421         * tests/test-update-copyright.sh: Test that.
48422
48423 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
48424
48425         update-copyright: clean up code a little
48426         * build-aux/update-copyright: Append "_re" to the name of any
48427         variable holding a regular expression.
48428         Replace "old" and "new" with "stmt" in variable names.
48429         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
48430         handled correctly.
48431         Format code more consistently.
48432
48433 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
48434
48435         update-copyright-tests: improve portability
48436         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
48437         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
48438
48439 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
48440
48441         update-copyright: support @copyright{} and &copy;
48442         * build-aux/update-copyright: Implement and document.
48443         * tests/test-update-copyright.sh: Test.
48444
48445 2009-08-04  Jim Meyering  <meyering@redhat.com>
48446
48447         update-copyright-tests: correctly test EOL=\r\n handling
48448         * tests/test-update-copyright.sh: Put \r at the end of some lines
48449         for the dos-eol tests.  Based on a patch by Joel E. Denny.
48450
48451         maint.mk: make update-copyright exclusion list more configurable
48452         * top/maint.mk (update-copyright): Default to excluding COPYING,
48453         but allow an override, in case someone does want to update that file.
48454
48455         maint.mk: don't update copyright date in COPYING
48456         * top/maint.mk (update-copyright): Exclude COPYING.
48457
48458         maint.mk: add a copyright-updating rule
48459         * top/maint.mk (update-copyright): New rule.
48460         Derived from coreutils/Makefile.am.
48461
48462         update-copyright: rename some variables
48463         * build-aux/update-copyright: Rename a few variables for clarity.
48464         Tweak syntax.  List Joel E. Denny as coauthor.
48465
48466 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
48467
48468         update-copyright: fix bug for 2-digit last year and add tests
48469         * build-aux/update-copyright: Fix bug.
48470         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
48471         specified.
48472         * modules/update-copyright-tests: New
48473         * tests/test-update-copyright.sh: New.
48474
48475 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
48476
48477         update-copyright: handle leading tabs in line prefix
48478         * build-aux/update-copyright: Count leading tabs as 8 spaces
48479         when computing margin.  This helps with the formatting of
48480         ChangeLogs, for example.
48481         Fix documentation a little.
48482
48483 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
48484
48485         update-copyright: support EOL=\r\n
48486         * build-aux/update-copyright: Implement that.
48487
48488 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
48489
48490         update-copyright: automatically format copyright statements
48491         * build-aux/update-copyright: Implement that.
48492         Also, be a little more predictable and safer by always failing
48493         when the full copyright format is not perfectly recognized as an
48494         unbroken whole.  Discussed at
48495         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
48496         Rewrite documentation.
48497
48498 2009-08-03  Bruno Haible  <bruno@clisp.org>
48499
48500         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
48501
48502 2009-08-02  Bruno Haible  <bruno@clisp.org>
48503
48504         Tests for module 'uname'.
48505         * modules/uname-tests: New file.
48506         * tests/test-uname.c: New file.
48507
48508         New module 'uname'.
48509         * lib/uname.c: New file.
48510         * m4/uname.m4: New file.
48511         * modules/uname: New file.
48512         * doc/posix-functions/uname.texi: Mention the new module.
48513
48514 2009-08-02  Bruno Haible  <bruno@clisp.org>
48515
48516         Tests for module 'sys_utsname'.
48517         * modules/sys_utsname-tests: New file.
48518         * tests/test-sys_utsname.c: New file.
48519
48520         New module 'sys_utsname'.
48521         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
48522         * m4/sys_utsname_h.m4: New file.
48523         * modules/sys_utsname: New file.
48524         * doc/posix-headers/sys_utsname.texi: Mention the new module.
48525
48526 2009-08-02  Bruno Haible  <bruno@clisp.org>
48527
48528         Implicitly initialize the sockets library.
48529         * lib/gethostname.c: Include sockets.h.
48530         (rpl_gethostname): Invoke gl_sockets_startup.
48531         * lib/socket.c: Include sockets.h.
48532         (rpl_socket): Invoke gl_sockets_startup.
48533         * modules/gethostname (Depends-on): Add sockets.
48534         * modules/socket (Depends-on): Likewise.
48535         * tests/test-poll.c: Don't include sockets.h.
48536         (main): Don't invoke gl_sockets_startup.
48537         * tests/test-select.c: Don't include sockets.h.
48538         (main): Don't invoke gl_sockets_startup.
48539
48540 2009-08-02  Bruno Haible  <bruno@clisp.org>
48541
48542         Allow multiple calls to gl_sockets_startup.
48543         * lib/sockets.c (initialized_sockets_version): New variable.
48544         (gl_sockets_startup): Do nothing if already called for this or a higher
48545         version.
48546         (gl_sockets_cleanup): Reset initialized_sockets_version.
48547
48548 2009-08-03  Simon Josefsson  <simon@josefsson.org>
48549
48550         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
48551         different project/version.
48552
48553 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
48554             Bruno Haible  <bruno@clisp.org>
48555
48556         Tests for module 'pipe-filter-gi'.
48557         * modules/pipe-filter-gi-tests: New file.
48558         * tests/test-pipe-filter-gi1.sh: New file.
48559         * tests/test-pipe-filter-gi1.c: New file.
48560         * tests/test-pipe-filter-gi2.sh: New file.
48561         * tests/test-pipe-filter-gi2-main.c: New file.
48562         * tests/test-pipe-filter-gi2-child.c: New file.
48563
48564         New module 'pipe-filter-gi'.
48565         * lib/pipe-filter-gi.c: New file.
48566         * modules/pipe-filter-gi: New file.
48567
48568 2009-08-02  Bruno Haible  <bruno@clisp.org>
48569             Paolo Bonzini  <bonzini@gnu.org>
48570
48571         Tests for module 'pipe-filter-ii'.
48572         * modules/pipe-filter-ii-tests: New file.
48573         * tests/test-pipe-filter-ii1.sh: New file.
48574         * tests/test-pipe-filter-ii1.c: New file.
48575         * tests/test-pipe-filter-ii2.sh: New file.
48576         * tests/test-pipe-filter-ii2-main.c: New file.
48577         * tests/test-pipe-filter-ii2-child.c: New file.
48578
48579         New module 'pipe-filter-ii'.
48580         * lib/pipe-filter.h: New file.
48581         * lib/pipe-filter-ii.c: New file.
48582         * lib/pipe-filter-aux.h: New file.
48583         * modules/pipe-filter-ii: New file.
48584
48585 2009-08-02  Simon Josefsson  <simon@josefsson.org>
48586
48587         * lib/gc-libgcrypt.c: Change copyright to FSF.
48588         * lib/gc-gnulib.c: Likewise.
48589
48590 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
48591
48592         * lib/gethostname.c: Include limits.h.
48593
48594 2009-08-02  Simon Josefsson  <simon@josefsson.org>
48595             Bruno Haible  <bruno@clisp.org>
48596
48597         Ensure HOST_NAME_MAX as part of the gethostname module.
48598         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
48599         define also HOST_NAME_MAX.
48600         * tests/test-gethostname.c: Include <limits.h>.
48601         (main): Check also HOST_NAME_MAX.
48602         * doc/posix-headers/limits.texi: Document the mingw problem.
48603
48604 2009-08-02  Bruno Haible  <bruno@clisp.org>
48605
48606         * lib/gethostname.c (gethostname): Fix handling of large len argument.
48607         Add comments.
48608
48609 2009-03-31  Simon Josefsson  <simon@josefsson.org>
48610
48611         * lib/gethostname.c: Add Windows wrapper.
48612         * m4/gethostname.m4: Look for gethostname in -lws2_32.
48613         * modules/gethostname: Depend on sys_socket & errno, for also
48614         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
48615         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
48616
48617 2009-07-31  Jim Meyering  <meyering@redhat.com>
48618
48619         getloadavg: fix symbol name in comment
48620         * lib/getloadavg.c: Correct a typo I introduced when adding
48621         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
48622         Matt Kraai spotted the problem.
48623
48624 2009-07-29  Matt Kraai  <mkraai@beckman.com>
48625
48626         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
48627         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
48628         code also if ! defined N_NAME_POINTER.
48629         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
48630         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
48631         but the n_name member is a 12-byte array.
48632
48633 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
48634
48635         update-copyright: generalize comment handling
48636         * build-aux/update-copyright: Handle copyright statements
48637         within more comment styles.
48638         Document usage.
48639         Report any file with an external copyright holder or parse failure.
48640
48641 2009-07-29  Jim Meyering  <meyering@redhat.com>
48642
48643         mktime: correct setting of REPLACE_MKTIME
48644         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
48645
48646         update-copyright: new module
48647         * modules/update-copyright: New file.
48648         * build-aux/update-copyright: New file.
48649         * MODULES.html.sh (maint+release support): Add update-copyright.
48650
48651 2009-07-27  Bruno Haible  <bruno@clisp.org>
48652
48653         Fix compilation error when <ctime> is used and mktime is replaced.
48654         * lib/time.in.h (mktime): New declaration.
48655         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
48656         REPLACE_MKTIME instead of defining mktime in config.h.
48657         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
48658         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
48659         Reported by Ross McFarland <rwmcfa1@neces.com>.
48660
48661 2009-07-27  Bruno Haible  <bruno@clisp.org>
48662
48663         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
48664         Reported by Matt Kraai <mkraai@beckman.com>.
48665
48666 2009-07-25  Jim Meyering  <meyering@redhat.com>
48667
48668         maint.mk: avoid warnings about missing files
48669         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
48670         diagnostic when .prev-version does not exist.
48671         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
48672         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
48673         nonexistent cfg.mk.
48674         Suggestions from Simon Josefsson.
48675
48676 2009-07-25  Bruno Haible  <bruno@clisp.org>
48677
48678         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
48679         defined as macros. Needed on QNX 6.4.1.
48680         Reported by Matt Kraai <mkraai@beckman.com>.
48681
48682 2009-07-23  Jim Meyering  <meyering@redhat.com>
48683
48684         maint.mk: invoke "make dist" with a working value of XZ_OPT
48685         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
48686
48687 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
48688
48689         Make fseeko.c compile on QNX.
48690         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
48691
48692 2009-07-22  Peter Simons  <simons@cryp.to>
48693
48694         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
48695         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
48696         * lib/md4.h: Likewise.
48697         * lib/md5.h: Likewise.
48698         * lib/sha1.h: Likewise.
48699         * lib/sha256.h: Likewise.
48700         * lib/sha512.h: Likewise.
48701
48702         tests-sha1: don't assign literal string to 'char *' variable
48703         * tests/test-sha1.c (main): Declare locals with "const" to match
48704         attributes of the right hand side.
48705
48706 2009-07-21  Eric Blake  <ebb9@byu.net>
48707
48708         dup2: fix more mingw problems
48709         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
48710         fd to itself.
48711         * doc/posix-functions/dup2.texi (dup2): Document the bug.
48712         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
48713         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
48714         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
48715         care of mingw bugs.
48716
48717 2009-07-21  Jim Meyering  <meyering@redhat.com>
48718
48719         vc-list-files: avoid failure when /bin/sh is dash
48720         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
48721         On some Debian based systems, /bin/sh is a symlink to dash, and running
48722         this command would omit the "/" following each 'tests' prefix:
48723           dash -x build-aux/vc-list-files -C . tests
48724         That is because bash and dash work differently:
48725           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
48726           bash ok
48727           dash odd
48728
48729 2009-07-21  Eric Blake  <ebb9@byu.net>
48730
48731         dup2-tests: test previous patch
48732         * modules/dup2-tests: New file.
48733         * tests/test-dup2.c: Likewise.
48734         * tests/test-open.c (main): Avoid unspecified behavior.
48735         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
48736         test.
48737
48738         dup2: work around mingw and cygwin 1.5 bug
48739         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
48740         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
48741         * modules/unistd (Makefile.am): Substitute it.
48742         * lib/unistd.in.h (dup2): Declare the replacement.
48743         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
48744         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
48745         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
48746         * modules/execute (Depends-on): Add dup2.
48747         * modules/fseterr (Depends-on): Likewise.
48748         * modules/pipe (Depends-on): Likewise.
48749         * modules/posix_spawn-internal (Depends-on): Likewise.
48750
48751 2009-07-21  Bruno Haible  <bruno@clisp.org>
48752
48753         * modules/.gitattributes: New file.
48754
48755 2009-07-20  Bruno Haible  <bruno@clisp.org>
48756
48757         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
48758         (main): Use it.
48759
48760 2009-07-20  Eric Blake  <ebb9@byu.net>
48761
48762         test-pipe: make a bit more robust.
48763         * tests/test-pipe.c (myerr): Allow error messages regardless of
48764         what we do to stderr.
48765         (test_pipe): Rearrange to avoid deadlock.
48766         (child_main): Try a larger read, to ensure we avoided deadlock.
48767         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
48768         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
48769         if misused.
48770
48771 2009-07-19  Jim Meyering  <meyering@redhat.com>
48772
48773         fts: avoid false-positive cycle-detection
48774         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
48775         for each new command line argument.
48776
48777 2009-07-19  Bruno Haible  <bruno@clisp.org>
48778
48779         Fix build error on mingw with the modules sys_select and unistd.
48780         * modules/acl-tests (Depends-on): Add close.
48781         * modules/binary-io-tests (Depends-on): Likewise.
48782         * modules/closein-tests (Depends-on): Likewise.
48783         * modules/flock-tests (Depends-on): Likewise.
48784         * modules/fsync-tests (Depends-on): Likewise.
48785         * modules/lseek-tests (Depends-on): Likewise.
48786         * modules/pipe-tests (Depends-on): Likewise.
48787         * modules/posix_spawn-tests (Depends-on): Likewise.
48788         * modules/posix_spawnp-tests (Depends-on): Likewise.
48789         * modules/stat-time-tests (Depends-on): Likewise.
48790         * modules/yesno-tests (Depends-on): Likewise.
48791
48792 2009-07-19  Bruno Haible  <bruno@clisp.org>
48793
48794         Unify conditionals.
48795         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
48796         macros, not at the compiler macros.
48797         * lib/pipe.c: Likewise.
48798         * lib/execute.c: Likewise.
48799         * lib/spawni.c: Likewise.
48800
48801 2009-07-19  Bruno Haible  <bruno@clisp.org>
48802
48803         Fix handling of closed stdin/stdout/stderr on mingw.
48804         * lib/w32spawn.h: Include unistd.h.
48805         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
48806         file descriptor with O_NOINHERIT flag.
48807         (fd_safer_noinherit): New function, based on fd-safer.c.
48808         (dup_safer_noinherit): New function, based on dup-safer.c.
48809         (undup_safer_noinherit): New function.
48810         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
48811         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
48812         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
48813         instead of fd_safer.
48814         * tests/test-pipe.c: Include <windows.h>.
48815         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
48816         result.
48817
48818         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
48819         from main.
48820         (test_pipe): Pass an extra argument for disambiguation.
48821         (main): Invoke parent_main or child_main.
48822
48823         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
48824         consistently.
48825
48826 2009-07-18  Eric Blake  <ebb9@byu.net>
48827
48828         test-pipe: fix mingw build
48829         * tests/test-pipe.c (main): Avoid fcntl on mingw.
48830
48831 2009-07-18  Bruno Haible  <bruno@clisp.org>
48832
48833         * modules/pipe-tests (Makefile.am): Fix typo.
48834
48835 2009-07-18  Eric Blake  <ebb9@byu.net>
48836
48837         error: fix mingw build
48838         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
48839         Reported by Bruno Haible.
48840
48841         error: avoid undefined use of stdout
48842         * lib/error.c (error, error_at_line): Check that fd 1 is open
48843         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
48844         is handling faults and the close_stdout module wants to report the
48845         detection of closed stdout as an error.
48846
48847 2009-07-17  Eric Blake  <ebb9@byu.net>
48848
48849         pipe: be robust in face of closed fds
48850         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
48851         should cause child to misbehave.
48852         * modules/pipe-tests: New module.
48853         * tests/test-pipe.c: New file.
48854         * tests/test-pipe.sh: New file.
48855         Reported by Akim Demaille.
48856
48857 2009-07-14  Bruno Haible  <bruno@clisp.org>
48858
48859         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
48860         Reported by anonymous kc.
48861
48862 2009-07-07  Jim Meyering  <meyering@redhat.com>
48863
48864         maint.mk: don't look for translatable strings in *.m4 or *.mk
48865         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
48866         when searching for translatable strings.
48867
48868 2009-07-05  Jim Meyering  <meyering@redhat.com>
48869
48870         remove superfluous parentheses in STREQ definition
48871         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
48872         * lib/getugroups.c (STREQ): Likewise.
48873         * lib/fnmatch.c (STREQ): Likewise.
48874         Spotted by Bruno Haible.
48875
48876 2009-07-04  Jim Meyering  <meyering@redhat.com>
48877
48878         argv-iter: new module
48879         * MODULES.html.sh: Add argv-iter.
48880         * lib/argv-iter.c, lib/argv-iter.h: New files.
48881         * modules/argv-iter: New file.
48882         * modules/argv-iter-tests: New file.
48883         * tests/test-argv-iter.c: Test it.
48884
48885 2009-07-04  Bruno Haible  <bruno@clisp.org>
48886
48887         Fix assertion.
48888         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
48889         contains more exact copies of a given entry than file2, leave the extra
48890         copies unpaired rather than aborting.
48891         Reported by Eric Blake.
48892
48893 2009-07-02  Bruno Haible  <bruno@clisp.org>
48894
48895         Speedup git-merge-changelog for git cherry-pick.
48896         * lib/git-merge-changelog.c (struct entries_mapping): New type.
48897         (entries_mapping_get): New function, extracted from compute_mapping.
48898         (entries_mapping_reverse_get): New function.
48899         (compute_mapping): Add a 'full' argument. Return the result in a
48900         'struct entries_mapping'.
48901         (main): Update. Access the mappings through entries_mapping_get.
48902         Reported by Eric Blake.
48903
48904 2009-07-02  Bruno Haible  <bruno@clisp.org>
48905
48906         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
48907         best_i.
48908
48909 2009-07-02  Bruno Haible  <bruno@clisp.org>
48910
48911         Speed up approximate search for matching ChangeLog entries.
48912         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
48913         argument. Call fstrcmp_bounded instead of fstrcmp.
48914         (compute_mapping, try_split_merged_entry, main): Update callers.
48915
48916 2009-07-02  Bruno Haible  <bruno@clisp.org>
48917
48918         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
48919
48920 2009-06-30  Bruno Haible  <bruno@clisp.org>
48921
48922         Reduce the number of uc_is_cased calls.
48923         * lib/unicase.h (casing_suffix_context_t): Add
48924         'first_char_except_ignorable' field.
48925         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
48926         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
48927         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
48928         Update initializer.
48929         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
48930         case-ignorable characters.
48931         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
48932         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
48933         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
48934         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
48935         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
48936
48937 2009-06-30  Bruno Haible  <bruno@clisp.org>
48938
48939         Tests for module 'unicase/ignorable'.
48940         * modules/unicase/ignorable-tests: New file.
48941         * tests/unicase/test-ignorable.c: New file, generated by
48942         gen-uni-tables.
48943
48944         Tests for module 'unicase/cased'.
48945         * modules/unicase/cased-tests: New file.
48946         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
48947         * tests/unicase/test-predicate-part1.h: New file, derived from
48948         tests/unictype/test-predicate-part1.h.
48949         * tests/unicase/test-predicate-part2.h: New file, same as
48950         tests/unictype/test-predicate-part2.h.
48951
48952         Fix evaluation of "Before C" condition of FINAL_SIGMA.
48953         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
48954         (output_casing_properties): New function.
48955         (main): Call it.
48956         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
48957         * lib/unicase/cased.c: Include unictype/bitmap.h.
48958         (uc_is_cased): Define through a bitmap lookup.
48959         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
48960         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
48961         (uc_is_case_ignorable): Define through a bitmap lookup.
48962         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
48963         lib/unictype/bitmap.h.
48964         (Depends-on): Add inline. Clean up.
48965         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
48966         lib/unictype/bitmap.h.
48967         (Depends-on): Add inline. Clean up.
48968         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
48969         recognition.
48970         * tests/unicase/test-u16-tolower.c (main): Likewise.
48971         * tests/unicase/test-u32-tolower.c (main): Likewise.
48972
48973 2009-06-30  Bruno Haible  <bruno@clisp.org>
48974
48975         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
48976         * lib/unicase/u16-casemap.c: Likewise.
48977         * lib/unicase/u32-casemap.c: Likewise.
48978
48979 2009-06-29  Bruno Haible  <bruno@clisp.org>
48980
48981         Define u32_casefold as a wrapper around u32_ct_casefold.
48982         * lib/unicase/u32-casefold.c: Update.
48983         * modules/unicase/u32-casefold (Depends-on): Add
48984         unicase/u32-ct-casefold, unicase/empty-prefix-context,
48985         unicase/empty-suffix-context. Clean up.
48986
48987         Define u16_casefold as a wrapper around u16_ct_casefold.
48988         * lib/unicase/u16-casefold.c: Update.
48989         * modules/unicase/u16-casefold (Depends-on): Add
48990         unicase/u16-ct-casefold, unicase/empty-prefix-context,
48991         unicase/empty-suffix-context. Clean up.
48992
48993         Define u8_casefold as a wrapper around u8_ct_casefold.
48994         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
48995         * lib/unicase/u8-casefold.c: Update.
48996         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
48997         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
48998
48999         Define u32_totitle as a wrapper around u32_ct_totitle.
49000         * lib/unicase/u32-totitle.c: Update.
49001         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
49002         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
49003
49004         Define u16_totitle as a wrapper around u16_ct_totitle.
49005         * lib/unicase/u16-totitle.c: Update.
49006         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
49007         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
49008
49009         Define u8_totitle as a wrapper around u8_ct_totitle.
49010         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
49011         functions.
49012         (FUNC): Delegate to U_CT_TOTITLE.
49013         * lib/unicase/u8-totitle.c: Update.
49014         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
49015         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
49016
49017         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
49018         invocation.
49019         * modules/unicase/u32-tolower (Depends-on): Add
49020         unicase/empty-prefix-context, unicase/empty-suffix-context.
49021
49022         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
49023         invocation.
49024         * modules/unicase/u16-tolower (Depends-on): Add
49025         unicase/empty-prefix-context, unicase/empty-suffix-context.
49026
49027         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
49028         * modules/unicase/u8-tolower (Depends-on): Add
49029         unicase/empty-prefix-context, unicase/empty-suffix-context.
49030
49031         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
49032         invocation.
49033         * modules/unicase/u32-toupper (Depends-on): Add
49034         unicase/empty-prefix-context, unicase/empty-suffix-context.
49035
49036         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
49037         invocation.
49038         * modules/unicase/u16-toupper (Depends-on): Add
49039         unicase/empty-prefix-context, unicase/empty-suffix-context.
49040
49041         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
49042         * modules/unicase/u8-toupper (Depends-on): Add
49043         unicase/empty-prefix-context, unicase/empty-suffix-context.
49044
49045         New module 'unicase/u32-ct-casefold'.
49046         * lib/unicase/u32-ct-casefold.c: New file.
49047         * modules/unicase/u32-ct-casefold: New file.
49048
49049         New module 'unicase/u16-ct-casefold'.
49050         * lib/unicase/u16-ct-casefold.c: New file.
49051         * modules/unicase/u16-ct-casefold: New file.
49052
49053         New module 'unicase/u8-ct-casefold'.
49054         * lib/unicase/u8-ct-casefold.c: New file.
49055         * lib/unicase/u-ct-casefold.h: New file, derived from
49056         lib/unicase/u-casefold.h.
49057         * modules/unicase/u8-ct-casefold: New file.
49058
49059         New module 'unicase/u32-ct-totitle'.
49060         * lib/unicase/u32-ct-totitle.c: New file.
49061         * modules/unicase/u32-ct-totitle: New file.
49062
49063         New module 'unicase/u16-ct-totitle'.
49064         * lib/unicase/u16-ct-totitle.c: New file.
49065         * modules/unicase/u16-ct-totitle: New file.
49066
49067         New module 'unicase/u8-ct-totitle'.
49068         * lib/unicase/u8-ct-totitle.c: New file.
49069         * lib/unicase/u-ct-totitle.h: New file, derived from
49070         lib/unicase/u-totitle.h.
49071         * modules/unicase/u8-ct-totitle: New file.
49072
49073         New module 'unicase/u32-ct-tolower'.
49074         * lib/unicase/u32-ct-tolower.c: New file.
49075         * modules/unicase/u32-ct-tolower: New file.
49076
49077         New module 'unicase/u16-ct-tolower'.
49078         * lib/unicase/u16-ct-tolower.c: New file.
49079         * modules/unicase/u16-ct-tolower: New file.
49080
49081         New module 'unicase/u8-ct-tolower'.
49082         * lib/unicase/u8-ct-tolower.c: New file.
49083         * modules/unicase/u8-ct-tolower: New file.
49084
49085         New module 'unicase/u32-ct-toupper'.
49086         * lib/unicase/u32-ct-toupper.c: New file.
49087         * modules/unicase/u32-ct-toupper: New file.
49088
49089         New module 'unicase/u16-ct-toupper'.
49090         * lib/unicase/u16-ct-toupper.c: New file.
49091         * modules/unicase/u16-ct-toupper: New file.
49092
49093         New module 'unicase/u8-ct-toupper'.
49094         * lib/unicase/u8-ct-toupper.c: New file.
49095         * modules/unicase/u8-ct-toupper: New file.
49096
49097         Add context arguments to u*_casemap functions.
49098         * lib/unicase/unicasemap.h: Include unicase.h.
49099         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
49100         suffix_context arguments.
49101         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
49102         functions.
49103         (FUNC): Add prefix_context and suffix_context arguments. Use
49104         uc_is_cased and uc_is_case_ignorable.
49105         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
49106         * lib/unicase/u16-casemap.c: Likewise.
49107         * lib/unicase/u32-casemap.c: Likewise.
49108         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
49109         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
49110         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
49111         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
49112         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
49113         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
49114
49115         New module 'unicase/u32-suffix-context'.
49116         * lib/unicase/u32-suffix-context.c: New file.
49117         * modules/unicase/u32-suffix-context: New file.
49118
49119         New module 'unicase/u16-suffix-context'.
49120         * lib/unicase/u16-suffix-context.c: New file.
49121         * modules/unicase/u16-suffix-context: New file.
49122
49123         New module 'unicase/u8-suffix-context'.
49124         * lib/unicase/u8-suffix-context.c: New file.
49125         * lib/unicase/u-suffix-context.h: New file.
49126         * modules/unicase/u8-suffix-context: New file.
49127
49128         New module 'unicase/empty-suffix-context'.
49129         * lib/unicase/empty-suffix-context.c: New file.
49130         * modules/unicase/empty-suffix-context: New file.
49131
49132         New module 'unicase/u32-prefix-context'.
49133         * lib/unicase/u32-prefix-context.c: New file.
49134         * modules/unicase/u32-prefix-context: New file.
49135
49136         New module 'unicase/u16-prefix-context'.
49137         * lib/unicase/u16-prefix-context.c: New file.
49138         * modules/unicase/u16-prefix-context: New file.
49139
49140         New module 'unicase/u8-prefix-context'.
49141         * lib/unicase/u8-prefix-context.c: New file.
49142         * lib/unicase/u-prefix-context.h: New file.
49143         * lib/unicase/context.h: New file.
49144         * modules/unicase/u8-prefix-context: New file.
49145
49146         New module 'unicase/empty-prefix-context'.
49147         * lib/unicase/empty-prefix-context.c: New file.
49148         * modules/unicase/empty-prefix-context: New file.
49149
49150         New module 'unicase/ignorable'.
49151         * lib/unicase/ignorable.c: New file.
49152         * modules/unicase/ignorable: New file.
49153
49154         New module 'unicase/cased'.
49155         * lib/unicase/caseprop.h: New file.
49156         * lib/unicase/cased.c: New file.
49157         * modules/unicase/cased: New file.
49158
49159         New functions for case mapping of substrings.
49160         * lib/unicase.h (casing_prefix_context_t): New type.
49161         (unicase_empty_prefix_context): New variable.
49162         (u8_casing_prefix_context, u16_casing_prefix_context,
49163         u32_casing_prefix_context, u8_casing_prefixes_context,
49164         u16_casing_prefixes_context, u32_casing_prefixes_context): New
49165         declarations.
49166         (casing_suffix_context_t): New type.
49167         (unicase_empty_suffix_context): New variable.
49168         (u8_casing_suffix_context, u16_casing_suffix_context,
49169         u32_casing_suffix_context, u8_casing_suffixes_context,
49170         u16_casing_suffixes_context, u32_casing_suffixes_context,
49171         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
49172         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
49173         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
49174         declarations.
49175
49176 2009-06-28  Jim Meyering  <meyering@redhat.com>
49177
49178         boostrap: indent only with spaces
49179         * build-aux/bootstrap: Indent only with spaces, never TABs.
49180
49181         bootstrap: split long lines
49182         * build-aux/bootstrap: Keep line length < 80.
49183
49184         bootstrap: sync from coreutils
49185         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
49186         just as autoreconf does.  Verify a list of prerequisite
49187         package-name,version-number pairs if defined in bootstrap.conf.
49188         Refer to README-prereq, if prerequisites are not satisfied.
49189
49190 2009-06-27  Eric Blake  <ebb9@byu.net>
49191
49192         tests: add test for bogus NULL definition
49193         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
49194         * tests/test-stdlib.c: Likewise.
49195         * tests/test-string.c: Likewise.
49196         * tests/test-locale.c: Likewise.
49197         * tests/test-unistd.c: Likewise.
49198         * modules/stdio-tests (Depends-on): Add verify.
49199         * modules/stdlib-tests (Depends-on): Likewise.
49200         * modules/string-tests (Depends-on): Likewise.
49201         * modules/locale-tests (Depends-on): Likewise.
49202         * modules/unistd-tests (Depends-on): Likewise.
49203
49204 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
49205
49206         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
49207         self-explaining comment.
49208         * m4/selinux-selinux-h: Update serial.
49209         (gl_LIBSELINUX): New macro, adding a warning for missing development
49210         packages to code extracted from...
49211         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
49212         Add warning for missing development packages here, too.
49213
49214 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
49215
49216         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
49217
49218 2009-06-25  Eric Blake  <ebb9@byu.net>
49219
49220         version-etc: fix regression
49221         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
49222         gcc.
49223         (version_etc): Use it, to catch bugs with trailing NULL.
49224         * lib/version-etc.c (version_etc_arn): Delete unused argument.
49225         (version_etc_va): Fix logic bug.
49226         * modules/version-etc-tests: Add test.
49227         * tests/test-version-etc.c: New file.
49228         * tests/test-version-etc.sh: Likewise.
49229
49230 2009-06-25  Sam Steingold  <sds@gnu.org>
49231
49232         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
49233         mbtowc declaration.
49234
49235 2009-06-25  Eric Blake  <ebb9@byu.net>
49236
49237         fpurge: migrate into <stdio.h>
49238         * lib/fpurge.h: Delete...
49239         * lib/stdio.in.h (fpurge): ...and declare here, instead.
49240         * lib/fpurge.c (fpurge): Change declaring header.
49241         * modules/fpurge (Files): Drop deleted file.
49242         (Depends-on): Add stdio.
49243         (configure.ac): Set witness.
49244         * modules/stdio (Makefile.am): Support fpurge macros.
49245         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
49246         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
49247         * lib/fflush.c: Update client.
49248         * tests/test-fpurge.c: Likewise.
49249         * NEWS: Mention the change.
49250
49251 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
49252
49253         * lib/argp-version-etc.c (program_authors): Add const
49254         qualifier.
49255         * lib/version-etc.c: Fix typos in the comments.
49256         * modules/argp-version-etc: Depends on version-etc.
49257
49258 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
49259
49260         argp-version-etc: new module.
49261
49262         * lib/argp-version-etc.c: New file.
49263         * lib/argp-version-etc.h: New file.
49264         * modules/argp-version-etc: New file.
49265         * modules/argp-version-etc-tests: New file.
49266         * tests/test-argp-version-etc.c: New test.
49267         * tests/test-argp-version-etc-1.sh: New test.
49268
49269 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
49270
49271         Provide additional interfaces and documentation for version-etc
49272         module.
49273
49274         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
49275         interfaces.
49276         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
49277         prototypes.
49278
49279 2009-06-24  Bruno Haible  <bruno@clisp.org>
49280
49281         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
49282         HAVE_LIB${NAME} macro.
49283         Reported by Sam Steingold <sds@gnu.org>.
49284
49285 2009-06-23  Simon Josefsson  <simon@josefsson.org>
49286
49287         * modules/hash-tests (test_hash_LDADD): Link to libintl when
49288         needed.
49289
49290 2009-06-21  Bruno Haible  <bruno@clisp.org>
49291
49292         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
49293         work.
49294         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
49295         together with LIB${NAME}, LTLIB${NAME}.
49296         Reported by Sam Steingold <sds@gnu.org>.
49297
49298 2009-06-20  Jim Meyering  <meyering@redhat.com>
49299
49300         tests: make sc_require_test_exit_idiom more generic
49301         * top/maint.mk (Exit_witness_file): New overridable variable.
49302         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
49303         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
49304
49305 2009-06-19  Jim Meyering  <meyering@redhat.com>
49306
49307         hash: reverse order of src/dst parameters in an internal interface
49308         * lib/hash.c (transfer_entries): Reverse order of parameters to
49309         put DST before SRC.  Adjust callers.
49310
49311         tests: test-hash: avoid wholesale duplication
49312         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
49313         Instead, use a loop and add a single conditional.
49314
49315         tests: test-hash: allow seed selection via a command line argument
49316         * tests/test-hash.c (get_seed): New function.
49317         (main): Use it.
49318
49319 2009-06-19  Eric Blake  <ebb9@byu.net>
49320
49321         hash: avoid memory leak on allocation failure
49322         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
49323         failure.  Factor repeated algorithm...
49324         (transfer_entries): ...into new helper routine.
49325         (hash_delete): React to hash_rehash return value.
49326
49327         hash: reduce memory pressure in hash_rehash no-op case
49328         * lib/hash.c (next_prime): Avoid overflow.
49329         (hash_initialize): Factor bucket size computation...
49330         (compute_bucket_size): ...into new helper function.
49331         (hash_rehash): Use new function and open coding to reduce memory
49332         pressure, and avoid a memory leak in USE_OBSTACK code.
49333         Reported by Jim Meyering.
49334
49335 2009-06-18  Eric Blake  <ebb9@byu.net>
49336
49337         hash: make rotation more obvious
49338         * modules/hash (Depends-on): Add bitrotate and stdint.
49339         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
49340         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
49341         (SIZE_MAX): Rely on headers for definition.
49342         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
49343         (raw_hasher): Use rotr_sz.
49344         Suggested by Jim Meyering.
49345
49346         hash: fix memory leak in last patch
49347         * lib/hash.c (hash_rehash): Avoid memory leak.
49348
49349         hash: avoid no-op rehashing
49350         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
49351
49352         hash: provide default callback functions
49353         * lib/hash.c (raw_hasher, raw_comparator): New functions.
49354         (hash_initialize): Use them as defaults.
49355         * tests/test-hash.c (main): Test this.
49356
49357         hash: minor optimization
49358         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
49359         when possible.
49360         (hash_initialize): Document this promise.
49361         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
49362         * tests/test-hash.c (hash_compare_strings): Test this.
49363
49364 2009-06-18  Bruno Haible  <bruno@clisp.org>
49365
49366         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
49367         going to be replaced anyway.
49368
49369 2009-06-18  Bruno Haible  <bruno@clisp.org>
49370
49371         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
49372         in one place.
49373         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
49374         be replaced anyway.
49375
49376 2009-06-18  Eric Blake  <ebb9@byu.net>
49377
49378         hash: check for resize before insertion
49379         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
49380         threshold before insertion, so that a pathological hash_rehash
49381         that fills every bucket can still trigger another rehash.
49382
49383 2009-06-18  Jim Meyering  <meyering@redhat.com>
49384
49385         hash-tests: add a loop around the small tests
49386         * tests/test-hash.c (main): Repeat small tests with selected
49387         small initial table sizes.
49388
49389 2009-06-17  Eric Blake  <ebb9@byu.net>
49390
49391         hash: minor cleanups
49392         * lib/hash.h (hash_entry): Make opaque, by moving...
49393         * lib/hash.c (hash_entry): ...here.
49394         (hash_insert): Clarify restrictions on what can be inserted.
49395         (hash_get_next): Clarify when it is safe to remove an element
49396         during traversal.
49397         (check_tuning): Skip verification when tuning is known safe.
49398         (hash_initialize): Clarify restrictions on tuning.
49399
49400 2009-06-17  Jim Meyering  <jim@meyering.net>
49401         and Eric Blake  <ebb9@byu.net>
49402
49403         hash-tests: new module
49404         * modules/hash-tests: New file.
49405         * tests/test-hash.c: New file.
49406
49407 2009-06-17  Eric Blake  <ebb9@byu.net>
49408
49409         strstr-simple: document new module
49410         * MODULES.html.sh: Document new module.
49411
49412         strstr, strcasestr: replace on platforms with broken memchr
49413         * modules/strstr: Split into...
49414         * modules/strstr-simple: ...new module that does not care about
49415         performance, but does care about glibc bug.
49416         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
49417         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
49418         if platform memchr is broken, per Debian bug 521737.
49419         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
49420         memchr.
49421         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
49422         * doc/posix-functions/strstr.texi (strstr): Document the fix.
49423         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
49424         * modules/mountlist (Depends-on): Add strstr-simple.
49425         * modules/gen-uni-tables (Depends-on): Likewise.
49426         * modules/argz (Depends-on): Add strstr.
49427
49428 2009-06-17  Bruno Haible  <bruno@clisp.org>
49429
49430         * modules/posix_spawn-internal (Depends-on): Add errno.
49431
49432 2009-06-17  Bruno Haible  <bruno@clisp.org>
49433
49434         Define missing ESTALE on Interix 3.5.
49435         * lib/errno.in.h (ESTALE): Assign a value if missing.
49436         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
49437         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
49438         missing.
49439         * doc/posix-headers/errno.texi: Mention the Interix bug.
49440         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
49441
49442 2009-06-15  Eric Blake  <ebb9@byu.net>
49443
49444         memchr, memchr2: add valgrind exception
49445         * lib/memchr.valgrind: New file.
49446         * lib/memchr2.valgrind: New file.
49447         * modules/memchr (Files): Distribute valgrind file.
49448         * modules/memchr2 (Files): Likewise.
49449
49450         docs: memchr is no longer obsolete
49451         * MODULES.html.sh: Move memchr from obsolete to string.h section.
49452         * lib/string.in.h (memchr): Simplify logic.
49453
49454 2009-06-14  Jim Meyering  <meyering@redhat.com>
49455
49456         link-follow: fix the "checking..." message to not mention trailing slash
49457         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
49458         never considered trailing slashes.
49459
49460 2009-06-14  Bruno Haible  <bruno@clisp.org>
49461
49462         * m4/memchr.m4: Mention also the bug on IA-64.
49463         * doc/posix-functions/memchr.texi: Likewise.
49464
49465 2009-06-12  Eric Blake  <ebb9@byu.net>
49466
49467         memchr: detect broken x86_64 and alpha implementations
49468         * modules/memchr-tests (Depends-on): Move mmap detection...
49469         * modules/memchr (Depends-on): ...here.
49470         (configure.ac): Set indicator.
49471         * lib/string.in.h (memchr): Declare replacement.
49472         * modules/string (Makefile.am): Trigger replacement.
49473         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
49474         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
49475         bugs.
49476         * doc/posix-functions/memchr.texi (memchr): Document the bug.
49477         * modules/getpagesize (License): Relax license.
49478
49479 2009-06-11  Bruno Haible  <bruno@clisp.org>
49480
49481         * lib/idpriv.h: Add more references.
49482
49483 2009-06-08  Bruno Haible  <bruno@clisp.org>
49484
49485         Tests for module 'idpriv-droptemp'.
49486         * modules/idpriv-droptemp-tests: New file.
49487         * tests/test-idpriv-droptemp.sh: New file.
49488         * tests/test-idpriv-droptemp.su.sh: New file.
49489         * tests/test-idpriv-droptemp.c: New file.
49490
49491         New module 'idpriv-droptemp'.
49492         * lib/idpriv-droptemp.c: New file.
49493         * modules/idpriv-droptemp: New file.
49494
49495 2009-06-08  Bruno Haible  <bruno@clisp.org>
49496
49497         Tests for module 'idpriv-drop'.
49498         * modules/idpriv-drop-tests: New file.
49499         * tests/test-idpriv-drop.sh: New file.
49500         * tests/test-idpriv-drop.su.sh: New file.
49501         * tests/test-idpriv-drop.c: New file.
49502
49503         New module 'idpriv-drop'.
49504         * lib/idpriv.h: New file.
49505         * lib-idpriv-drop.c: New file.
49506         * m4/idpriv.m4: New file.
49507         * modules/idpriv-drop: New file.
49508
49509 2009-06-08  Bruno Haible  <bruno@clisp.org>
49510
49511         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
49512         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
49513         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
49514         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
49515         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
49516         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
49517         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
49518
49519 2009-06-08  Eric Blake  <ebb9@byu.net>
49520
49521         test-strstr: use memory fence, when possible
49522         * tests/test-strstr.c (main): Use memory fence, in order to be
49523         more likely to trigger Debian bug 521737.
49524         * modules/strstr-tests (Files): Pull in additional files.
49525
49526         memchr: no longer obsolete, for wider field testing
49527         * modules/memchr (Status, Notice): Delete, this module is no
49528         longer obsolete.
49529         * modules/vasnprintf (Depends-on): Add memchr.
49530
49531 2009-06-07  Jim Meyering  <meyering@redhat.com>
49532
49533         hash: declare some functions with the warn_unused_result attribute
49534         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
49535
49536 2009-06-07  Bruno Haible  <bruno@clisp.org>
49537
49538         * tests/test-alignof.c: Don't test int64_t if it does not exist.
49539         Reported by Eric Blake.
49540
49541 2009-06-06  Eric Blake  <ebb9@byu.net>
49542
49543         test-alignof: fix typo with long double
49544         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
49545         compiler error.
49546
49547 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
49548
49549         Escape non-texinfo { and }s.
49550         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
49551         markup error.
49552
49553 2009-06-04  Jim Meyering  <meyering@redhat.com>
49554
49555         gitlog-to-changelog: don't infloop on an empty commit log
49556         * build-aux/gitlog-to-changelog: Warn about an empty log message.
49557         Reported by Boris Petersen <transacid@centerim.org>.
49558
49559 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
49560
49561         version-etc: extend for packagers
49562         Add three new configure options, intended for packagers:
49563           --with-packager="packager name"
49564           --with-packager-version="packager-specific version"
49565           --with-packager-bug-reports="packager bug reporting"
49566         An example with coreutils:
49567           $ ./configure \
49568             --with-packager=Gentoo \
49569             --with-packager-bug-report=http://bugs.gentoo.org/ \
49570             --with-packager-version="patchset 1.6"
49571           $ ./src/ls --version | head -n2
49572           ls (GNU coreutils) 7.1-dirty
49573           Packaged by Gentoo (patchset 1.6)
49574         Note that the bug reporting info via --help doesn't show up because
49575         coreutils uses its own custom emit_bug_reporting_address() implementation
49576         in src/system.h.  If it didn't, it'd look like:
49577           $ ./src/ls --help | tail -n4
49578           Report bugs to <bug-coreutils@gnu.org>.
49579           Report Gentoo bugs to <http://bugs.gentoo.org/>.
49580           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
49581           General help using GNU software: <http://www.gnu.org/gethelp/>.
49582         * lib/version-etc.c: Print new information, if provided.
49583         * m4/version-etc.m4: New file.
49584         * modules/version-etc (Files): Add m4/version-etc.m4.
49585         (configure.ac): Add gl_VERSION_ETC.
49586
49587 2009-05-31  Bruno Haible  <bruno@clisp.org>
49588
49589         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
49590         and 'int64_t'.
49591         * modules/alignof-tests (Dependencies): Add stdint.
49592         Reported by Eric Blake.
49593
49594 2009-05-31  Bruno Haible  <bruno@clisp.org>
49595
49596         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
49597         restriction due to compiler bugs.
49598         Reported by Eric Blake.
49599
49600 2009-05-31  Simon Josefsson  <simon@josefsson.org>
49601             Bruno Haible  <bruno@clisp.org>
49602
49603         Fix test-alignof failure.
49604         * lib/alignof.h (alignof_slot): New macro.
49605         (alignof_type): New macro, with the same semantics as the previous
49606         'alignof'.
49607         (alignof): Alias to alignof_slot.
49608         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
49609         check that the results are usable as constant expressions.
49610
49611 2009-05-31  Bruno Haible  <bruno@clisp.org>
49612
49613         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
49614         * tests/test-memchr.c (main): Check that memchr does not read past the
49615         first occurrence of the byte.
49616         * tests/test-strstr.c (main): Update comment.
49617         Suggested by Eric Blake.
49618
49619 2009-05-30  Bruno Haible  <bruno@clisp.org>
49620
49621         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
49622         detail how to use dumpbin.
49623         Reported by David Byron <dbyron@dbyron.com>.
49624
49625 2009-06-02  Simon Josefsson  <simon@josefsson.org>
49626
49627         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
49628
49629 2009-06-02  Simon Josefsson  <simon@josefsson.org>
49630
49631         * m4/manywarnings.m4: Add GCC 4.4 warnings.
49632
49633 2009-05-28  Bruno Haible  <bruno@clisp.org>
49634
49635         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
49636         build-aux/ files.
49637
49638 2009-05-28  Simon Josefsson  <simon@josefsson.org>
49639
49640         * gnulib-tool (func_import): Transform license on build-aux/ files too.
49641
49642 2009-05-27  Simon Josefsson  <simon@josefsson.org>
49643
49644         * gnulib-tool (sed_transform_main_lib_file)
49645         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
49646         regexps.
49647
49648 2009-05-26  Simon Josefsson  <simon@josefsson.org>
49649
49650         * tests/test-strstr.c: Add another self-test.
49651         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
49652         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
49653
49654 2009-05-23  Bruno Haible  <bruno@clisp.org>
49655
49656         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
49657         change.
49658
49659 2009-05-21  Bruno Haible  <bruno@clisp.org>
49660
49661         Simplify use of mode_t varargs.
49662         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
49663         uses 'mode_t' or 'int'.
49664         * lib/openat.c (openat): Likewise.
49665         * lib/open-safer.c (open_safer): Likewise.
49666         * m4/mode_t.m4: New file.
49667         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
49668         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
49669         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
49670         * modules/open (Files): Add m4/mode_t.m4.
49671         * modules/openat (Files): Likewise.
49672         * modules/fcntl-safer (Files): Likewise.
49673         Suggested by Eric Blake.
49674
49675 2009-05-21  Pádraig Brady  <P@draigbrady.com>
49676
49677         * doc/glibc-functions/fallocate.texi: New file.
49678         * doc/gnulib.texi: Include it.
49679
49680 2009-05-21  Eric Blake  <ebb9@byu.net>
49681             Bruno Haible  <bruno@clisp.org>
49682
49683         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
49684         invocations.
49685         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
49686
49687 2009-05-21  Eric Blake  <ebb9@byu.net>
49688             Bruno Haible  <bruno@clisp.org>
49689
49690         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
49691         include_next. Fix of 2008-11-20 commit.
49692         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
49693         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
49694         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
49695         NEXT_MATH_H.
49696         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
49697         instead of NEXT_MATH_H.
49698
49699 2009-05-21  Bruno Haible  <bruno@clisp.org>
49700
49701         Avoid redefinition warnings for SIZE_MAX.
49702         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
49703         Reported by Simon Josefsson.
49704
49705 2009-05-21  Bruno Haible  <bruno@clisp.org>
49706
49707         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
49708         AC_CACHE_VAL.
49709
49710 2009-05-20  Bruno Haible  <bruno@clisp.org>
49711
49712         Make zeroptr.h work on mingw.
49713         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
49714         mprotect.
49715         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
49716         * modules/memchr2-tests (configure.ac): Likewise.
49717         * modules/memcmp-tests (configure.ac): Likewise.
49718         * modules/memmem-tests (configure.ac): Likewise.
49719         * modules/memrchr-tests (configure.ac): Likewise.
49720         Reported by Simon Josefsson.
49721
49722 2009-05-20  Simon Josefsson  <simon@josefsson.org>
49723
49724         * tests/test-glob.c: Include string.h for strcmp prototype.
49725
49726 2009-05-20  Simon Josefsson  <simon@josefsson.org>
49727
49728         * modules/getdelim (Depends-on): Add explicit stdint, although it
49729         was implicitly already pulled in via realloc-posix.
49730         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
49731
49732 2009-05-20  Simon Josefsson  <simon@josefsson.org>
49733
49734         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
49735         G. Christensen" <tgc@jupiterrise.com>.
49736         * m4/sys_socket_h.m4: Check for sa_family_t.
49737         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
49738         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
49739         * tests/test-sys_socket.c: Check that sa_family_t works.
49740
49741 2009-05-18  Eric Blake  <ebb9@byu.net>
49742
49743         maint.mk: allow gnulib_dir in VPATH build
49744         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
49745
49746 2009-05-15  Jim Meyering  <meyering@redhat.com>
49747
49748         maint.mk: Give gnulib_dir a default definition.
49749         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
49750         Thus, most packages no longer need to specify this variable in cfg.mk
49751
49752 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
49753
49754         rename.m4: fix typos that would make non-mingw cross-configure fail
49755         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
49756
49757 2009-05-13  Eric Blake  <ebb9@byu.net>
49758
49759         mmap-anon: avoid out-of-order autoconf expansion
49760         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
49761         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
49762         * modules/memchr-tests (Depends-on): Add extensions.
49763         * modules/memchr2-tests (Depends-on): Add extensions.
49764         * modules/memcmp-tests (Depends-on): Add extensions.
49765         * modules/memmem-tests (Depends-on): Add extensions.
49766         * modules/memrchr-tests (Depends-on): Add extensions.
49767
49768 2009-05-13  Bruno Haible  <bruno@clisp.org>
49769
49770         Make some tests ISO C 99 compliant.
49771         * tests/zerosize-ptr.h: New file.
49772         * tests/test-memchr.c: Include zerosize-ptr.h.
49773         (main): Use a zero-size object pointer instead of NULL.
49774         * tests/test-memchr2.c: Include zerosize-ptr.h.
49775         (main): Use a zero-size object pointer instead of NULL.
49776         * tests/test-memcmp.c: Include zerosize-ptr.h.
49777         (main): Use a zero-size object pointer instead of NULL.
49778         * tests/test-memmem.c: Include zerosize-ptr.h.
49779         (main): Use a zero-size object pointer instead of NULL.
49780         * tests/test-memrchr.c: Include zerosize-ptr.h.
49781         (main): Use a zero-size object pointer instead of NULL.
49782         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
49783         m4/mmap-anon.m4.
49784         (Depends-on): Add getpagesize.
49785         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49786         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
49787         m4/mmap-anon.m4.
49788         (Depends-on): Add getpagesize.
49789         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49790         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
49791         m4/mmap-anon.m4.
49792         (Depends-on): Add getpagesize.
49793         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49794         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
49795         m4/mmap-anon.m4.
49796         (Depends-on): Add getpagesize.
49797         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49798         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
49799         m4/mmap-anon.m4.
49800         (Depends-on): Add getpagesize.
49801         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49802
49803 2009-05-12  Bruno Haible  <bruno@clisp.org>
49804
49805         Tests for module 'alignof'.
49806         * modules/alignof-tests: New file.
49807         * tests/test-alignof.c: New file.
49808
49809 2009-05-12  Bruno Haible  <bruno@clisp.org>
49810
49811         Fix alignof macro.
49812         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
49813         vendor compilers that are always correct.
49814
49815 2009-05-12  Bruno Haible  <bruno@clisp.org>
49816
49817         Make the MAP_ANONYMOUS detection work on HP-UX 11.
49818         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
49819         not whether its fully works.
49820
49821 2009-05-12  Bruno Haible  <bruno@clisp.org>
49822
49823         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
49824
49825 2009-05-12  Jim Meyering  <meyering@redhat.com>
49826
49827         * top/maint.mk: Adjust backslash alignment.
49828
49829 2009-05-11  Simon Josefsson  <simon@josefsson.org>
49830
49831         * top/maint.mk: Make $(srcdir)/build-aux configurable.
49832
49833 2009-05-11  Eric Blake  <ebb9@byu.net>
49834
49835         argp: avoid undefined behavior
49836         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
49837         macros.
49838
49839 2009-05-08  Simon Josefsson  <simon@josefsson.org>
49840
49841         * tests/test-vc-list-files-git.sh: Do git config of user.email and
49842         user.name to prevent git commit from complaining.
49843
49844 2009-05-10  Bruno Haible  <bruno@clisp.org>
49845
49846         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
49847         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
49848         it rewrites every file name only once.
49849         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
49850
49851 2009-05-08  Bruno Haible  <bruno@clisp.org>
49852
49853         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
49854         instead of 'max'.
49855
49856 2009-05-08  Simon Josefsson  <simon@josefsson.org>
49857
49858         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
49859         sockaddr_storage test.
49860
49861 2009-05-07  Simon Josefsson  <simon@josefsson.org>
49862
49863         * modules/sys_socket (Makefile.am): Substitute
49864         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
49865         * m4/sys_socket_h.m4: Check for sockaddr_storage.
49866         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
49867         * tests/test-sys_socket.c: Check sockaddr_storage.
49868
49869 2009-05-08  Bruno Haible  <bruno@clisp.org>
49870
49871         New module 'alignof'.
49872         * lib/alignof.h: New file.
49873         * modules/alignof: New file.
49874
49875 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
49876             Bruno Haible  <bruno@clisp.org>
49877
49878         Fix test-file-has-acl on FreeBSD.
49879         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
49880         mask is implicitly added.
49881         * tests/test-file-has-acl.c: Include <signal.h>.
49882         (main): Terminate the test after 5 seconds.
49883         * modules/acl-tests (configure.ac): Check for alarm function.
49884
49885 2009-05-04  Bruno Haible  <bruno@clisp.org>
49886
49887         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
49888         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
49889         * modules/errno (configure.ac): Drop AC_REQUIRE.
49890         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
49891         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
49892
49893 2009-05-04  Simon Josefsson  <simon@josefsson.org>
49894
49895         * modules/glob-tests: New module.
49896         * tests/test-glob.c: Add.
49897
49898 2009-05-04  Simon Josefsson  <simon@josefsson.org>
49899
49900         * modules/fnmatch-tests: New module.
49901         * tests/test-fnmatch.c: Add.
49902
49903 2009-05-04  Eric Blake  <ebb9@byu.net>
49904
49905         maint: make the new no-submodule-changes rule VPATH-safe
49906         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
49907
49908 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
49909             Bruno Haible  <bruno@clisp.org>
49910
49911         acl: Fix infinite loop on FreeBSD.
49912         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
49913         of return value from acl_get_entry.
49914         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
49915         Likewise.
49916
49917 2009-05-03  Bruno Haible  <bruno@clisp.org>
49918
49919         * lib/acl-internal.h (acl_entries): Clarify return value.
49920         * lib/acl_entries.c (acl_entries): Likewise.
49921
49922 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
49923
49924         Bug fix in acl module.
49925         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
49926
49927 2009-05-03  Bruno Haible  <bruno@clisp.org>
49928
49929         Create gperf-generated file in the source dir, not in the build dir.
49930         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
49931         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
49932         * modules/unicase/locale-language (unicase/locale-languages.h):
49933         Likewise.
49934         * modules/unicase/special-casing (unicase/special-casing-table.h):
49935         Likewise.
49936         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
49937         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
49938         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
49939         Reported by Ralf Wildenhues.
49940
49941 2009-05-03  Bruno Haible  <bruno@clisp.org>
49942
49943         * modules/fnmatch (Description, configure.ac): Taken from
49944         fnmatch-posix.
49945         * modules/fnmatch-posix: Turn into a symbolic reference to the
49946         'fnmatch' module, and deprecate.
49947         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
49948
49949 2009-05-03  Bruno Haible  <bruno@clisp.org>
49950
49951         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
49952         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
49953         Reported by Ralf Wildenhues.
49954
49955 2009-05-04  Simon Josefsson  <simon@josefsson.org>
49956
49957         * m4/fnmatch.m4: Fix fnmatch re-define.
49958
49959 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
49960
49961         priv-set: new module and tests; adapt write-any-file
49962         * lib/priv-set.c: New file.
49963         * lib/priv-set.h: New file.
49964         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
49965         * lib/write-any-file.c: Simplify by using priv-set module.
49966         * m4/priv-set.m4: New file.
49967         * modules/priv-set: New file.
49968         * modules/unlinkdir: Add dependency on priv-set module.
49969         * modules/write-any-file: Likewise.
49970
49971         Tests for module 'priv-set'.
49972         * modules/priv-set-tests: New file.
49973         * tests/test-priv-set.c: New file.
49974
49975 2009-05-03  Jim Meyering  <meyering@redhat.com>
49976             Bruno Haible  <bruno@clisp.org>
49977
49978         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
49979         use the converted UTF-8 variant of the name instead.
49980
49981 2009-05-03  Jim Meyering  <meyering@redhat.com>
49982
49983         tests: tighten some getdate tests
49984         * tests/test-getdate.c (main): Tighten tests: require equality,
49985         not just greater than.  Set TZ envvar to UTC0.
49986
49987 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
49988
49989         getdate: correctly interpret "next monday" when run on a Monday
49990         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
49991         that e.g., "next tues" (when run on a tuesday) results in a date
49992         that is one week in the future, and not today's date.
49993         I.e., add a week when the wday is the same as the current one.
49994         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
49995         and earlier by Martin Bernreuther and Jan Minář.
49996         * tests/test-getdate.c (main): Check that "next DAY" is always in
49997         the future and that "last DAY" is always in the past.
49998
49999 2009-05-02  Jim Meyering  <meyering@redhat.com>
50000
50001         build: ensure that a release build fails when a submodule is unclean
50002         * top/maint.mk (no-submodule-changes): New rule.
50003         (alpha beta major): Depend on it.
50004
50005 2009-05-02  Bruno Haible  <bruno@clisp.org>
50006
50007         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
50008         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
50009         shell variable gl_fnmatch_required to detect which variant is
50010         requested.
50011         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
50012         gl_FUNC_FNMATCH_POSIX.
50013         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
50014         exclude fnmatch-posix.
50015
50016 2009-05-02  Bruno Haible  <bruno@clisp.org>
50017
50018         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
50019         * modules/mbsrtowcs (License): Change to LGPLv2+.
50020         * modules/strnlen1 (License): Likewise.
50021         Reported by Simon Josefsson.
50022
50023 2009-05-02  Bruno Haible  <bruno@clisp.org>
50024
50025         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
50026         "cross".
50027         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
50028         gnulib-tool was called with option --source-base=lib.
50029
50030 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50031
50032         Use automake *-local hooks without commands, for extensibility.
50033         * modules/localcharset (Makefile.am): Rename install-exec-local
50034         rule to install-exec-localcharset, and make it a prerequisite of
50035         install-exec-local.  Likewise, rename the uninstall-local rule to
50036         uninstall-localcharset, and make it a prerequisite of the former.
50037
50038 2009-05-01  Bruno Haible  <bruno@clisp.org>
50039
50040         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
50041         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
50042         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
50043         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
50044         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
50045         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
50046         m4/locale-zh.m4, m4/codeset.m4.
50047
50048         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
50049         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
50050         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
50051         m4/locale-zh.m4.
50052
50053         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
50054         REPLACE_WCRTOMB if mbstate_t must be replaced.
50055         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
50056         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
50057
50058 2009-05-01  Bruno Haible  <bruno@clisp.org>
50059
50060         Avoid compiler warnings when redefining macros defined by <libintl.h>.
50061         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
50062         dngettext, dcngettext, textdomain, bindtextdomain,
50063         bind_textdomain_codeset): Undefine before redefining.
50064
50065 2009-04-30  Bruno Haible  <bruno@clisp.org>
50066
50067         Fix bug introduced on 2009-04-25.
50068         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
50069         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
50070         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
50071         is defined.
50072         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
50073         is defined.
50074         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
50075         is defined.
50076         Reported by Elbert_Pol <elbert.pol@gmail.com>.
50077
50078 2009-04-28  Bruno Haible  <bruno@clisp.org>
50079
50080         Comment tweaks.
50081         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
50082         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
50083         * lib/unicase.h (u*_casexfrm): Likewise.
50084         Reported by Paolo Bonzini.
50085
50086 2009-04-28  Bruno Haible  <bruno@clisp.org>
50087
50088         Fix a compilation error.
50089         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
50090         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
50091         Reported by Jim Meyering.
50092
50093 2009-04-27  Bruno Haible  <bruno@clisp.org>
50094
50095         New module 'libunistring'.
50096         * modules/libunistring: New file.
50097         * m4/libunistring.m4: New file.
50098         * MODULES.html.sh (Unicode string functions): Add it.
50099
50100 2009-04-27  Eric Blake  <ebb9@byu.net>
50101
50102         maint.mk: allow package-specific header to provide <config.h>
50103         * top/maint.mk (sc_require_config_h): New variable.
50104         (sc_require_config_h, sc_require_config_h_first): Use it.
50105
50106 2009-04-27  Simon Josefsson  <simon@josefsson.org>
50107
50108         * top/maint.mk (sc_avoid_if_before_free): Except
50109         useless-if-before-free script.
50110
50111 2009-04-27  Eric Blake  <ebb9@byu.net>
50112
50113         maintainer-makefile: depend on all required helper scripts
50114         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
50115         useless-if-before-free.
50116         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
50117         version, rather than assuming gnulib checkout is available.
50118         Reported by Simen Josefsson.
50119
50120 2009-04-26  Bruno Haible  <bruno@clisp.org>
50121
50122         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
50123         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
50124         "../" or "..".
50125
50126 2009-04-26  Bruno Haible  <bruno@clisp.org>
50127
50128         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
50129         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
50130         AC_LIB_HAVE_LINKFLAGS.
50131
50132 2009-04-26  Bruno Haible  <bruno@clisp.org>
50133
50134         Simplify calling convention of u*_conv_from_encoding.
50135         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
50136         u32_conv_from_encoding): Expect a resultbuf argument and return the
50137         result directly as a pointer.
50138         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
50139         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
50140         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
50141         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
50142         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
50143         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
50144         Update.
50145         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
50146         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
50147         * lib/vasnprintf.c (VASNPRINTF): Update.
50148         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
50149         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
50150         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
50151         * NEWS: Mention the change.
50152
50153 2009-04-26  Bruno Haible  <bruno@clisp.org>
50154
50155         Simplify calling convention of u*_conv_to_encoding.
50156         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
50157         u32_conv_to_encoding): Expect a resultbuf argument and return the
50158         result directly as a pointer.
50159         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
50160         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
50161         freeing scaled_offsets if mem_iconveha failed.
50162         * lib/unicase/u-casexfrm.h (FUNC): Update.
50163         * lib/uninorm/u-normxfrm.h (FUNC): Update.
50164         * lib/vasnprintf.c (VASNPRINTF): Update.
50165         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
50166         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
50167         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
50168         * NEWS: Mention the change.
50169
50170 2009-04-26  Bruno Haible  <bruno@clisp.org>
50171
50172         Avoid test failures on AIX and OSF/1.
50173         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
50174         malloc(0).
50175         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
50176         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
50177         Likewise.
50178         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
50179         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
50180         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
50181         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
50182         * doc/posix-functions/malloc.texi: Document the portability problem
50183         related to malloc(0).
50184
50185 2009-04-26  Bruno Haible  <bruno@clisp.org>
50186
50187         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
50188         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
50189         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
50190
50191 2009-04-25  Bruno Haible  <bruno@clisp.org>
50192
50193         Avoid link error when creating a namespace clean library.
50194         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
50195         as macro with arguments if already defined as an alias.
50196         * lib/signbitf.c (gl_signbitf): Don't undefine.
50197         * lib/signbitd.c (gl_signbitd): Don't undefine.
50198         * lib/signbitl.c (gl_signbitl): Don't undefine.
50199
50200 2009-04-25  Jim Meyering  <meyering@redhat.com>
50201
50202         vc-list-files: fix another quoting bug
50203         * build-aux/vc-list-files: Avoid sed backslash expansion
50204         of pathological directory names.
50205
50206 2009-04-25  Eric Blake  <ebb9@byu.net>
50207
50208         vc-list-files: fix shell quoting error
50209         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
50210         timestamp.
50211
50212 2009-04-25  Jim Meyering  <meyering@redhat.com>
50213
50214         vc-list-files: restore lost functionality with subdir argument
50215         * build-aux/vc-list-files: When given a non-"." sub-directory
50216         argument, substitute the $dir/ prefix back onto each resulting name.
50217         Otherwise, coreutils' root_tests check would fail.
50218
50219 2009-04-24  Eric Blake  <ebb9@byu.net>
50220
50221         vc-list-files: ignore git symlinks
50222         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
50223         than ls-files, to ignore git symlinks.
50224
50225         maint.mk: import improvements from m4
50226         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
50227         (move_if_change): Delete unused macro.
50228         (news-date-check, vc-diff-check): Support VPATH builds.
50229         (announcement): Likewise.  Split --bootstrap-tools list...
50230         (boostrap-tools): ...into separate list, which can be overridden
50231         in cfg.mk.
50232         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
50233         requiring dependency on useless-if-before-free module.
50234         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
50235         Support VPATH builds.
50236
50237 2009-04-24  Jim Meyering  <meyering@redhat.com>
50238
50239         maint.mk: remove coreutils-specific rules and variables
50240         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
50241         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
50242         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
50243
50244         maint.mk: remove obsolete rule
50245         * top/maint.mk (rel-check): Remove rule.
50246         (WGET, WGETFLAGS): Remove now-unused variables.
50247
50248 2009-04-24  Simon Josefsson  <simon@josefsson.org>
50249
50250         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
50251         consistency.
50252
50253         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
50254         '$(PATH_SEPARATOR)' instead of ':'.
50255
50256 2009-04-24  Simon Josefsson  <simon@josefsson.org>
50257
50258         * lib/getopt1.c (main): Use 'const' for static array.
50259
50260 2009-04-24  Simon Josefsson  <simon@josefsson.org>
50261
50262         * top/maint.mk: Sync with coreutils.
50263         * NEWS: Explain incompatibilities.
50264
50265 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50266             Bruno Haible  <bruno@clisp.org>
50267
50268         Fix cross-compilation results.
50269         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
50270         statement, as third argument of AC_TRY_RUN.
50271         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
50272         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
50273         Likewise.
50274         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
50275         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
50276         Likewise.
50277         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
50278         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
50279         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
50280
50281 2009-04-20  Bruno Haible  <bruno@clisp.org>
50282
50283         Avoid test failure on mingw.
50284         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
50285
50286 2009-04-20  Bruno Haible  <bruno@clisp.org>
50287
50288         Avoid compilation error on mingw.
50289         * modules/localename-tests (Depends-on): Add locale.
50290
50291 2009-04-19  Bruno Haible  <bruno@clisp.org>
50292
50293         Support for building a shared library on Windows platforms.
50294         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
50295         (main): Test the presence of UNINORM_NFC here.
50296         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
50297         (main): Test the presence of UNINORM_NFD here.
50298         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
50299         (main): Test the presence of UNINORM_NFKC here.
50300         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
50301         (main): Test the presence of UNINORM_NFKD here.
50302
50303 2009-04-19  Bruno Haible  <bruno@clisp.org>
50304
50305         Avoid a compiler warning.
50306         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
50307         Change type of variable 'sequence'.
50308
50309 2009-04-19  Bruno Haible  <bruno@clisp.org>
50310
50311         * modules/configmake (Makefile.am): When the contents of configmake.h
50312         does not change, arrange to preserve its modification time.
50313
50314 2009-04-17  Simon Josefsson  <simon@josefsson.org>
50315
50316         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
50317         gettext domain.
50318
50319 2009-04-16  Jim Meyering  <meyering@redhat.com>
50320
50321         useless-if-before-free: improve conversion code
50322         * build-aux/useless-if-before-free: Adjust code-in-comment to match
50323         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
50324
50325 2009-04-14  Bruno Haible  <bruno@clisp.org>
50326
50327         * modules/fcntl (Depends-on): Add extensions.
50328         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
50329
50330 2009-04-12  Ben Pfaff  <blp@gnu.org>
50331
50332         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
50333         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
50334
50335 2009-03-20  Ben Pfaff  <blp@gnu.org>
50336
50337         Make rename replace existing destinations on Windows.
50338         * m4/rename.m4: Add test for Mingw.
50339         * lib/rename.c: Add rename replacement that uses MoveFileEx with
50340         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
50341         * doc/posix-functions/rename.texi: Document.
50342
50343 2009-04-10  Bruno Haible  <bruno@clisp.org>
50344
50345         New include file "iconveh.h".
50346         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
50347         * lib/striconveh.h: Include it.
50348         (enum iconv_ilseq_handler): Remove definition.
50349         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
50350         striconveh.h.
50351         * lib/striconveha.c: Include striconveh.h.
50352         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
50353         * modules/striconveh (Files): Add lib/iconveh.h.
50354         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
50355         lib/striconveh.h.
50356
50357 2009-04-10  Bruno Haible  <bruno@clisp.org>
50358
50359         * lib/uniconv.h: Update comment.
50360
50361 2009-04-10  Bruno Haible  <bruno@clisp.org>
50362
50363         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
50364         always.
50365         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
50366         * lib/unistr/u16-mbtouc-aux.c: Likewise.
50367         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
50368         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
50369         "unistring-notinline.h", so that the function gets defined always.
50370         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
50371         * lib/unistr/u8-uctomb.c: Likewise.
50372         * lib/unistr/u16-mbtouc.c: Likewise.
50373         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
50374         * lib/unistr/u16-uctomb.c: Likewise.
50375         * lib/unistr/u32-mbtouc.c: Likewise.
50376         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
50377         * lib/unistr/u32-uctomb.c: Likewise.
50378
50379 2009-04-10  Bruno Haible  <bruno@clisp.org>
50380
50381         Mark 'utime' obsolete.
50382         * modules/utime (Status, Notice): New sections.
50383         Suggested by Jim Meyering.
50384
50385         Fix cross-compile guess for utime test.
50386         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
50387         autoconf.
50388         * doc/posix-functions/utime.texi: Give more precisions.
50389         Reported by Jan <ipif@ymail.com>.
50390
50391 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
50392
50393         filevercmp: correct today's change
50394         * lib/filevercmp.c: Also handle coreutils' test inputs.
50395         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
50396
50397         Fix regression in 'filevercmp' module. Thanks Sven Joachim
50398         for reporting it.
50399         * lib/filevercmp.c: Special handle for "", "." and "..".
50400         * tests/test-filevercmp.c: Enlarge the set suite.
50401
50402 2009-04-07  Jim Meyering  <meyering@redhat.com>
50403
50404         useless-if-before-free: show how to remove braced useless free, too
50405         * build-aux/useless-if-before-free: still only in a comment, though.
50406
50407 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
50408
50409         maint.mk: import changes to syntax-check macros from coreutils
50410         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
50411         Use them in the relevant macros.
50412
50413 2009-04-06  Bruno Haible  <bruno@clisp.org>
50414
50415         Fix unportable use of bit-fields.
50416         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
50417         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
50418         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
50419
50420 2009-04-06  Bruno Haible  <bruno@clisp.org>
50421
50422         Avoid test failures on AIX and OSF/1.
50423         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
50424         that malloc(0) = NULL.
50425         * tests/unicase/test-u8-tolower.c (check): Likewise.
50426         * tests/unicase/test-u8-totitle.c (check): Likewise.
50427         * tests/unicase/test-u8-toupper.c (check): Likewise.
50428         * tests/unicase/test-u16-casefold.c (check): Likewise.
50429         * tests/unicase/test-u16-tolower.c (check): Likewise.
50430         * tests/unicase/test-u16-totitle.c (check): Likewise.
50431         * tests/unicase/test-u16-toupper.c (check): Likewise.
50432         * tests/unicase/test-u32-casefold.c (check): Likewise.
50433         * tests/unicase/test-u32-tolower.c (check): Likewise.
50434         * tests/unicase/test-u32-totitle.c (check): Likewise.
50435         * tests/unicase/test-u32-toupper.c (check): Likewise.
50436         * tests/uninorm/test-u8-nfc.c (check): Likewise.
50437         * tests/uninorm/test-u8-nfd.c (check): Likewise.
50438         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
50439         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
50440         * tests/uninorm/test-u16-nfc.c (check): Likewise.
50441         * tests/uninorm/test-u16-nfd.c (check): Likewise.
50442         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
50443         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
50444         * tests/uninorm/test-u32-nfc.c (check): Likewise.
50445         * tests/uninorm/test-u32-nfd.c (check): Likewise.
50446         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
50447         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
50448
50449 2009-04-05  Bruno Haible  <bruno@clisp.org>
50450
50451         Work around an autoconf limitation.
50452         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
50453         comment line if it would be longer than 3 KB.
50454
50455 2009-04-05  Bruno Haible  <bruno@clisp.org>
50456
50457         Avoid test failure with libiconv-1.13.
50458         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
50459         of the expected test results.
50460
50461 2009-04-05  Bruno Haible  <bruno@clisp.org>
50462
50463         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
50464         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
50465         that it should be installed.
50466
50467 2009-04-05  Bruno Haible  <bruno@clisp.org>
50468
50469         * gnulib-tool: New option --copy-file.
50470         (func_usage): Document it.
50471         (func_dest_tmpfilename): Moved out of func_import.
50472         (func_add_file, func_update_file): New functions, extracted from
50473         func_import.
50474         (func_import): Update.
50475
50476 2009-04-05  Karl Berry  <karl@gnu.org>
50477
50478         * README: prominently mention gnulib-tool.
50479         Rearrange sections so getting the code is near the top.
50480
50481 2009-04-05  Bruno Haible  <bruno@clisp.org>
50482
50483         * lib/unicase.h: Mention u*_cmp2.
50484         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
50485         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
50486         * lib/unicase/ulc-casecmp.c: Likewise.
50487         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
50488         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
50489         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
50490         unistr/u8-cmp.
50491         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
50492         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
50493         unistr/u16-cmp.
50494         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
50495         unistr/u32-cmp.
50496
50497         * lib/uninorm.h: Mention u*_cmp2.
50498         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
50499         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
50500         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
50501         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
50502         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
50503         unistr/u8-cmp.
50504         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
50505         unistr/u16-cmp.
50506         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
50507         unistr/u32-cmp.
50508
50509         New module 'unistr/u32-cmp2'.
50510         * lib/unistr/u32-cmp2.c: New file.
50511         * modules/unistr/u32-cmp2: New file.
50512
50513         New module 'unistr/u16-cmp2'.
50514         * lib/unistr/u16-cmp2.c: New file.
50515         * modules/unistr/u16-cmp2: New file.
50516
50517         New module 'unistr/u8-cmp2'.
50518         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
50519         * lib/unistr/u8-cmp2.c: New file.
50520         * lib/unistr/u-cmp2.h: New file.
50521         * modules/unistr/u8-cmp2: New file.
50522
50523 2009-04-05  Bruno Haible  <bruno@clisp.org>
50524
50525         * lib/unictype.h (uc_property_is_valid): New macro.
50526         * tests/unictype/test-pr_byname.c (main): Use it.
50527
50528         * lib/unistr.h: Doc fixes.
50529         * lib/uniconv.h: Doc fixes.
50530         * lib/unictype.h: Doc fixes.
50531
50532 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
50533
50534         Port coreutils 7.2 to Solaris 8.
50535
50536         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
50537         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
50538         for Solaris 8.  This is a bit of a hack, as it means it's the
50539         caller's responsibility to add -lnsl if needed, but most likely it
50540         won't be needed since only getaddrinfo uses this and getaddrinfo
50541         isn't needed on Solaris 8.
50542
50543         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
50544         problem to Solaris 8 encountered with coreutils 7.2, which
50545         resulted in a message "fnmatch.c:292: warning: passing argument 4
50546         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
50547         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
50548
50549 2009-04-03  Simon Josefsson  <simon@josefsson.org>
50550
50551         * m4/ld-version-script.m4: Add FIXME comment.
50552
50553 2009-04-02  Simon Josefsson  <simon@josefsson.org>
50554
50555         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
50556         SOVERSION variable.
50557
50558 2009-04-02  Bruno Haible  <bruno@clisp.org>
50559
50560         * Makefile (info, html, dvi, pdf): Combine the rules.
50561         Suggested by Jim Meyering.
50562
50563 2009-04-01  Bruno Haible  <bruno@clisp.org>
50564
50565         * Makefile (info, html, dvi, pdf): New targets.
50566         Reported by Reuben Thomas <rrt@sc3d.org>.
50567
50568 2009-04-01  Bruno Haible  <bruno@clisp.org>
50569
50570         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
50571         can be put into PATH.
50572         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
50573
50574 2009-04-01  Bruno Haible  <bruno@clisp.org>
50575
50576         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
50577
50578 2009-04-01  Bruno Haible  <bruno@clisp.org>
50579
50580         Rename module 'visibility'.
50581         * modules/lib-symbol-visibility: Renamed from modules/visibility.
50582         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
50583         * doc/gnulib.texi: Update.
50584         * MODULES.html.sh (Misc): Update.
50585         * NEWS: Mention the change.
50586
50587 2009-04-01  Simon Josefsson  <simon@josefsson.org>
50588
50589         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
50590         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
50591         Eric Blake <ebb9@byu.net> for review.
50592         * MODULES.html.sh: Add lib-msvc-compat.
50593         * doc/gnulib.texi: Link to new section.
50594         * m4/ld-output-def.m4: New file.
50595         * doc/ld-output-def.texi: New file.
50596
50597 2009-04-01  Simon Josefsson  <simon@josefsson.org>
50598
50599         Rename ld-version-script to lib-symbol-versions.  Suggested by
50600         Bruno Haible <bruno@clisp.org>.
50601         * modules/ld-version-script: Renamed to lib-symbol-versions.
50602         * doc/ld-version-script.texi: Fix module name.
50603         * MODULES.html.sh: Add lib-symbol-versions.
50604
50605 2009-03-31  Simon Josefsson  <simon@josefsson.org>
50606
50607         * modules/u64-tests: New file.
50608         * tests/test-u64.c: New file.
50609
50610 2009-03-04  Simon Josefsson  <simon@josefsson.org>
50611
50612         * MODULES.html.sh: Mention u64.
50613         * modules/u64: New module.
50614         * modules/crypto/sha512: Depend on u64 module instead of providing
50615         u64.h.
50616
50617 2009-03-27  Eric Blake  <ebb9@byu.net>
50618
50619         test-strerror: make debugging EAI_SYSTEM easier
50620         * modules/getaddrinfo-tests (Depends-on): Add strerror.
50621         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
50622         failure was EAI_SYSTEM.
50623
50624 2009-03-25  Bruno Haible  <bruno@clisp.org>
50625
50626         Fix a problem with --enable-relocatable on Solaris 7.
50627         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
50628         since 2008-02-24.
50629
50630 2009-03-25  Eric Blake  <ebb9@byu.net>
50631
50632         test-sockets: avoid gcc warning
50633         * tests/test-sockets.c (main): Silence compiler warning.
50634
50635 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
50636
50637         New modules nproc, pthread, contributed by Glen Lenker.
50638
50639         * MODULES.html.sh: Add pthread, nproc.
50640         * lib/nproc.c: New file.
50641         * lib/nproc.h: New file.
50642         * lib/pthread.in.h: New file.
50643         * m4/pthread.m4: New file.
50644         * modules/nproc: New file.
50645         * modules/pthread: New file.
50646
50647 2009-03-24  Simon Josefsson  <simon@josefsson.org>
50648
50649         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
50650         New variable.
50651
50652 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
50653
50654         filevercmp: handle simple~ and numbered.~3~ backup suffixes
50655         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
50656         * tests/test-filevercmp.c: Add tests for backup suffixes.
50657
50658 2009-03-24  Simon Josefsson  <simon@josefsson.org>
50659
50660         * modules/stdlib (Depends-on): Add stdint, needed when defining
50661         struct random_data on, for example, HP-UX 10.20.  Reported by
50662         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50663
50664 2009-03-24  Simon Josefsson  <simon@josefsson.org>
50665
50666         * lib/readline.c (readline): Call fflush on stdout after printing
50667         prompt.
50668
50669 2009-03-20  Bruno Haible  <bruno@clisp.org>
50670
50671         Remove dependency from 'close' module to -lws2_32 on native Windows.
50672         * lib/close-hook.h: New file.
50673         * lib/close-hook.c: New file.
50674         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
50675         w32sock.h.
50676         (_gl_close_fd_maybe_socket): Remove function.
50677         (rpl_close): Invoke execute_all_close_hooks instead of
50678         _gl_close_fd_maybe_socket.
50679         * lib/sockets.c: Include close-hook.h, w32sock.h.
50680         (close_fd_maybe_socket): New function, essentially from lib/close.c.
50681         (close_sockets_hook): New variable.
50682         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
50683         (gl_sockets_cleanup): Unregister it.
50684         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
50685         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
50686         * modules/close-hook: New file.
50687         * modules/close (Files): Remove lib/w32sock.h.
50688         (Depends-on): Add close-hook.
50689         (Link): Remove section.
50690         * modules/sockets (Files): Add lib/w32sock.h.
50691         (Depends-on): Add close-hook.
50692         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
50693         invocation.
50694         * NEWS: Mention that LIB_CLOSE is gone.
50695
50696 2009-03-23  Eric Blake  <ebb9@byu.net>
50697
50698         signal-tests: test previous patch
50699         * tests/test-signal.c: New file.
50700         * modules/signal-tests: Likewise.
50701
50702         signal.h: always support 'volatile sig_atomic_t'
50703         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
50704         (gl_SIGNAL_H_DEFAULTS): Add a default.
50705         * modules/signal (Makefile.am): Substitute if needed.
50706         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
50707         users can blindly add volatile.
50708         * doc/posix-headers/signal.texi (signal.h): Document it.
50709         Reported by Matthew Woehlke.
50710
50711 2009-03-23  Jim Meyering  <meyering@redhat.com>
50712
50713         pathmax: PATH_MAX: use pathconf only when available
50714         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
50715         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
50716         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
50717         This avoids a link failure in a PSP cross-compilation environment
50718         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
50719
50720         * lib/vasnprintf.c (divide): Fix typo in comment.
50721
50722 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50723
50724         * gnulib-tool (func_filter_filelist): Fix comment.
50725
50726 2009-03-20  Bruno Haible  <bruno@clisp.org>
50727
50728         Make sockets.h self-contained.
50729         * lib/sockets.c: Include sockets.h first.
50730         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
50731
50732 2009-03-19  Eric Blake  <ebb9@byu.net>
50733
50734         doc: mention more functions added in cygwin 1.7.0
50735         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
50736         addition.
50737         * doc/posix-functions/log2f.texi: Likewise.
50738
50739 2009-03-19  Jim Meyering  <meyering@redhat.com>
50740
50741         fsusage: avoid syntax error due to statement-before-declaration
50742         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
50743         after all declarations.  Reported by Matthew Woehlke in
50744         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
50745
50746 2009-03-18  Eric Blake  <ebb9@byu.net>
50747
50748         build-aux/compile: sync from automake
50749         * build-aux/compile: New file, from automake.
50750         * config/srclist.txt: Mention build-aux/compile.
50751
50752 2009-03-17  Bruno Haible  <bruno@clisp.org>
50753
50754         * lib/git-merge-changelog.c: Fix typo in comment.
50755         Reported by Reuben Thomas <rrt@sc3d.org>.
50756
50757 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
50758
50759         * m4/regex.m4: update and improve help for
50760         --without-included-regex.
50761
50762 2009-03-17  Simon Josefsson  <simon@josefsson.org>
50763
50764         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
50765         failure on missing include files.
50766
50767 2009-03-17  Eric Blake  <ebb9@byu.net>
50768
50769         doc: mention more functions added in cygwin 1.7.0
50770         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
50771         addition.
50772         * doc/posix-functions/fwscanf.texi: Likewise.
50773         * doc/posix-functions/swprintf.texi: Likewise.
50774         * doc/posix-functions/swscanf.texi: Likewise.
50775         * doc/posix-functions/vfwprintf.texi: Likewise.
50776         * doc/posix-functions/vfwscanf.texi: Likewise.
50777         * doc/posix-functions/vswprintf.texi: Likewise.
50778         * doc/posix-functions/vswscanf.texi: Likewise.
50779         * doc/posix-functions/vwprintf.texi: Likewise.
50780         * doc/posix-functions/vwscanf.texi: Likewise.
50781         * doc/posix-functions/wcscasecmp.texi: Likewise.
50782         * doc/posix-functions/wcsdup.texi: Likewise.
50783         * doc/posix-functions/wcsftime.texi: Likewise.
50784         * doc/posix-functions/wcsncasecmp.texi: Likewise.
50785         * doc/posix-functions/wprintf.texi: Likewise.
50786         * doc/posix-functions/wscanf.texi: Likewise.
50787         * doc/glibc-functions/gethostbyname2.texi: Likewise.
50788
50789 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50790
50791         maint.mk: really add $(AM_MAKEFLAGS)
50792         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
50793         was inadvertently omitted in the last commit.
50794         Spotted by Bruno Haible.
50795
50796         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
50797         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
50798         $(AM_MAKEFLAGS)' rather than plain `make'.
50799
50800         gnulib-tool: execute $MAKE not make
50801         * gnulib-tool: Default $MAKE to 'make'.
50802         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
50803         than make.  Initialize $MAKE in the do-autobuild script.
50804
50805         gnulib-tool: use $MAKE not make in generated files
50806         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
50807         make, in generated files.  Initialize $MAKE in the do-autobuild
50808         script.
50809
50810         * top/GNUmakefile (_have-git-version-gen): Fix typo.
50811
50812         GNUmakefile: disable parallelism only for multiple, recursive targets
50813         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
50814         additions in the Makefile.
50815         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
50816         by Automake.
50817         (.NOTPARALLEL): Only disable parallel builds if multiple targets
50818         are listed on the command line and at least one of them is
50819         listed in $(ALL_RECURSIVE_TARGETS).
50820
50821 2009-03-14  Bruno Haible  <bruno@clisp.org>
50822
50823         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
50824         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
50825         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
50826         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
50827         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
50828         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
50829         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
50830         unistr/u8-uctomb.
50831         * modules/unistr/u8-strchr (Depends-on): Likewise.
50832         * modules/unistr/u8-strrchr (Depends-on): Likewise.
50833         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
50834         unistr/u16-uctomb.
50835         * modules/unistr/u16-strchr (Depends-on): Likewise.
50836         * modules/unistr/u16-strrchr (Depends-on): Likewise.
50837
50838 2009-03-12  Bruno Haible  <bruno@clisp.org>
50839
50840         Work around select() bug on Interix 3.5.
50841         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
50842         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
50843         * m4/select.m4: New file.
50844         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
50845         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
50846         * modules/select (Files): Add m4/select.m4.
50847         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
50848         * modules/nanosleep (Depends-on): Add select.
50849         * modules/poll (Depends-on): Likewise.
50850         * doc/posix-functions/select.texi: Mention the Interix bug.
50851         Reported by Markus Duft <mduft@gentoo.org>.
50852
50853         * lib/select.c: Renamed from lib/winsock-select.c.
50854         * modules/select (Files): Add lib/select.c, remove
50855         lib/winsock-select.c.
50856         (configure.ac): Update.
50857
50858 2009-03-12  Jim Meyering  <meyering@redhat.com>
50859
50860         avoid gcc warnings about unused macro definitions
50861         * lib/readtokens.c (STREQ): Remove unused definition.
50862         * lib/xmalloc.c (SIZE_MAX): Likewise.
50863         * lib/openat-die.c (N_): Likewise.
50864         * lib/mountlist.c (SIZE_MAX): Remove definition.
50865         Instead, include <stdint.h>.
50866         * lib/readutmp.c: Likewise.
50867         * modules/readutmp (Depends-on): Add stdint.
50868         * modules/mountlist (Depends-on): Add stdint.
50869         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
50870
50871 2009-03-10  Bruno Haible  <bruno@clisp.org>
50872
50873         Tests for module 'mbmemcasecoll'.
50874         * modules/mbmemcasecoll-tests: New file.
50875         * tests/test-mbmemcasecoll1.sh: New file.
50876         * tests/test-mbmemcasecoll2.sh: New file.
50877         * tests/test-mbmemcasecoll3.sh: New file.
50878         * tests/test-mbmemcasecoll.c: New file.
50879
50880         New module 'mbmemcasecoll'.
50881         * lib/mbmemcasecoll.h: New file.
50882         * lib/mbmemcasecoll.c: New file.
50883         * modules/mbmemcasecoll: New file.
50884
50885         * tests/test-mbmemcasecmp.h: New file, extracted from
50886         tests/test-mbmemcasecmp.c.
50887         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
50888         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
50889         (main): Update.
50890         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
50891
50892 2009-03-09  Bruno Haible  <bruno@clisp.org>
50893
50894         Tests for module 'mbmemcasecmp'.
50895         * modules/mbmemcasecmp-tests: New file.
50896         * tests/test-mbmemcasecmp1.sh: New file.
50897         * tests/test-mbmemcasecmp2.sh: New file.
50898         * tests/test-mbmemcasecmp3.sh: New file.
50899         * tests/test-mbmemcasecmp.c: New file.
50900
50901         New module 'mbmemcasecmp'.
50902         * lib/mbmemcasecmp.h: New file.
50903         * lib/mbmemcasecmp.c: New file.
50904         * modules/mbmemcasecmp: New file.
50905
50906 2009-03-09  Bruno Haible  <bruno@clisp.org>
50907
50908         Tests for module 'unicase/ulc-casecoll'.
50909         * modules/unicase/ulc-casecoll-tests: New file.
50910         * tests/unicase/test-ulc-casecoll1.sh: New file.
50911         * tests/unicase/test-ulc-casecoll2.sh: New file.
50912         * tests/unicase/test-ulc-casecoll.c: New file.
50913
50914         New module 'unicase/ulc-casecoll'.
50915         * lib/unicase.h (ulc_casecoll): New declaration.
50916         * lib/unicase/ulc-casecoll.c: New file.
50917         * modules/unicase/ulc-casecoll: New file.
50918
50919         New module 'unicase/ulc-casexfrm'.
50920         * lib/unicase.h (ulc_casexfrm): New declaration.
50921         * lib/unicase/ulc-casexfrm.c: New file.
50922         * modules/unicase/ulc-casexfrm: New file.
50923
50924 2009-03-09  Bruno Haible  <bruno@clisp.org>
50925
50926         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
50927         invocations.
50928
50929         * m4/mbscasecmp.m4: Remove file.
50930         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
50931         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
50932
50933         * m4/mbscasestr.m4: Remove file.
50934         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
50935         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
50936
50937         * m4/mbschr.m4: Remove file.
50938         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
50939         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
50940
50941         * m4/mbscspn.m4: Remove file.
50942         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
50943         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
50944
50945         * m4/mbslen.m4: Remove file.
50946         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
50947         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
50948
50949         * m4/mbsncasecmp.m4: Remove file.
50950         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
50951         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
50952
50953         * m4/mbsnlen.m4: Remove file.
50954         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
50955         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
50956
50957         * m4/mbspbrk.m4: Remove file.
50958         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
50959         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
50960
50961         * m4/mbspcasecmp.m4: Remove file.
50962         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
50963         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
50964
50965         * m4/mbsrchr.m4: Remove file.
50966         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
50967         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
50968
50969         * m4/mbssep.m4: Remove file.
50970         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
50971         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
50972
50973         * m4/mbsspn.m4: Remove file.
50974         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
50975         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
50976
50977         * m4/mbsstr.m4: Remove file.
50978         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
50979         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
50980
50981         * m4/mbstok_r.m4: Remove file.
50982         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
50983         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
50984
50985         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
50986
50987         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
50988         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
50989
50990         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
50991
50992 2009-03-08  Bruno Haible  <bruno@clisp.org>
50993
50994         Tests for module 'unicase/ulc-casecmp'.
50995         * modules/unicase/ulc-casecmp-tests: New file.
50996         * tests/unicase/test-ulc-casecmp1.sh: New file.
50997         * tests/unicase/test-ulc-casecmp2.sh: New file.
50998         * tests/unicase/test-ulc-casecmp.c: New file.
50999
51000         New module 'unicase/ulc-casecmp'.
51001         * lib/unicase.h (ulc_casecmp): New declaration.
51002         * lib/unicase/ulc-casecmp.c: New file.
51003         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
51004         'const SRC_UNIT *'.
51005         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
51006         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
51007         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
51008         * modules/unicase/ulc-casecmp: New file.
51009
51010         Tests for module 'unicase/u32-is-cased'.
51011         * modules/unicase/u32-is-cased-tests: New file.
51012         * tests/unicase/test-u32-is-cased.c: New file.
51013
51014         Tests for module 'unicase/u16-is-cased'.
51015         * modules/unicase/u16-is-cased-tests: New file.
51016         * tests/unicase/test-u16-is-cased.c: New file.
51017
51018         Tests for module 'unicase/u8-is-cased'.
51019         * modules/unicase/u8-is-cased-tests: New file.
51020         * tests/unicase/test-u8-is-cased.c: New file.
51021         * tests/unicase/test-is-cased.h: New file.
51022
51023         New module 'unicase/u32-is-cased'.
51024         * lib/unicase/u32-is-cased.c: New file.
51025         * modules/unicase/u32-is-cased: New file.
51026
51027         New module 'unicase/u16-is-cased'.
51028         * lib/unicase/u16-is-cased.c: New file.
51029         * modules/unicase/u16-is-cased: New file.
51030
51031         New module 'unicase/u8-is-cased'.
51032         * lib/unicase/u8-is-cased.c: New file.
51033         * lib/unicase/u-is-cased.h: New file.
51034         * modules/unicase/u8-is-cased: New file.
51035
51036         Tests for module 'unicase/u32-is-casefolded'.
51037         * modules/unicase/u32-is-casefolded-tests: New file.
51038         * tests/unicase/test-u32-is-casefolded.c: New file.
51039
51040         Tests for module 'unicase/u16-is-casefolded'.
51041         * modules/unicase/u16-is-casefolded-tests: New file.
51042         * tests/unicase/test-u16-is-casefolded.c: New file.
51043
51044         Tests for module 'unicase/u8-is-casefolded'.
51045         * modules/unicase/u8-is-casefolded-tests: New file.
51046         * tests/unicase/test-u8-is-casefolded.c: New file.
51047         * tests/unicase/test-is-casefolded.h: New file.
51048
51049         New module 'unicase/u32-is-casefolded'.
51050         * lib/unicase/u32-is-casefolded.c: New file.
51051         * modules/unicase/u32-is-casefolded: New file.
51052
51053         New module 'unicase/u16-is-casefolded'.
51054         * lib/unicase/u16-is-casefolded.c: New file.
51055         * modules/unicase/u16-is-casefolded: New file.
51056
51057         New module 'unicase/u8-is-casefolded'.
51058         * lib/unicase/u8-is-casefolded.c: New file.
51059         * modules/unicase/u8-is-casefolded: New file.
51060
51061         Tests for module 'unicase/u32-is-titlecase'.
51062         * modules/unicase/u32-is-titlecase-tests: New file.
51063         * tests/unicase/test-u32-is-titlecase.c: New file.
51064
51065         Tests for module 'unicase/u16-is-titlecase'.
51066         * modules/unicase/u16-is-titlecase-tests: New file.
51067         * tests/unicase/test-u16-is-titlecase.c: New file.
51068
51069         Tests for module 'unicase/u8-is-titlecase'.
51070         * modules/unicase/u8-is-titlecase-tests: New file.
51071         * tests/unicase/test-u8-is-titlecase.c: New file.
51072         * tests/unicase/test-is-titlecase.h: New file.
51073
51074         New module 'unicase/u32-is-titlecase'.
51075         * lib/unicase/u32-is-titlecase.c: New file.
51076         * modules/unicase/u32-is-titlecase: New file.
51077
51078         New module 'unicase/u16-is-titlecase'.
51079         * lib/unicase/u16-is-titlecase.c: New file.
51080         * modules/unicase/u16-is-titlecase: New file.
51081
51082         New module 'unicase/u8-is-titlecase'.
51083         * lib/unicase/u8-is-titlecase.c: New file.
51084         * modules/unicase/u8-is-titlecase: New file.
51085
51086         Tests for module 'unicase/u32-is-lowercase'.
51087         * modules/unicase/u32-is-lowercase-tests: New file.
51088         * tests/unicase/test-u32-is-lowercase.c: New file.
51089
51090         Tests for module 'unicase/u16-is-lowercase'.
51091         * modules/unicase/u16-is-lowercase-tests: New file.
51092         * tests/unicase/test-u16-is-lowercase.c: New file.
51093
51094         Tests for module 'unicase/u8-is-lowercase'.
51095         * modules/unicase/u8-is-lowercase-tests: New file.
51096         * tests/unicase/test-u8-is-lowercase.c: New file.
51097         * tests/unicase/test-is-lowercase.h: New file.
51098
51099         New module 'unicase/u32-is-lowercase'.
51100         * lib/unicase/u32-is-lowercase.c: New file.
51101         * modules/unicase/u32-is-lowercase: New file.
51102
51103         New module 'unicase/u16-is-lowercase'.
51104         * lib/unicase/u16-is-lowercase.c: New file.
51105         * modules/unicase/u16-is-lowercase: New file.
51106
51107         New module 'unicase/u8-is-lowercase'.
51108         * lib/unicase/u8-is-lowercase.c: New file.
51109         * modules/unicase/u8-is-lowercase: New file.
51110
51111         Tests for module 'unicase/u32-is-uppercase'.
51112         * modules/unicase/u32-is-uppercase-tests: New file.
51113         * tests/unicase/test-u32-is-uppercase.c: New file.
51114
51115         Tests for module 'unicase/u16-is-uppercase'.
51116         * modules/unicase/u16-is-uppercase-tests: New file.
51117         * tests/unicase/test-u16-is-uppercase.c: New file.
51118
51119         Tests for module 'unicase/u8-is-uppercase'.
51120         * modules/unicase/u8-is-uppercase-tests: New file.
51121         * tests/unicase/test-u8-is-uppercase.c: New file.
51122         * tests/unicase/test-is-uppercase.h: New file.
51123
51124         New module 'unicase/u32-is-uppercase'.
51125         * lib/unicase/u32-is-uppercase.c: New file.
51126         * modules/unicase/u32-is-uppercase: New file.
51127
51128         New module 'unicase/u16-is-uppercase'.
51129         * lib/unicase/u16-is-uppercase.c: New file.
51130         * modules/unicase/u16-is-uppercase: New file.
51131
51132         New module 'unicase/u8-is-uppercase'.
51133         * lib/unicase/u8-is-uppercase.c: New file.
51134         * modules/unicase/u8-is-uppercase: New file.
51135
51136         New module 'unicase/u32-is-invariant'.
51137         * lib/unicase/u32-is-invariant.c: New file.
51138         * modules/unicase/u32-is-invariant: New file.
51139
51140         New module 'unicase/u16-is-invariant'.
51141         * lib/unicase/u16-is-invariant.c: New file.
51142         * modules/unicase/u16-is-invariant: New file.
51143
51144         New module 'unicase/u8-is-invariant'.
51145         * lib/unicase/u8-is-invariant.c: New file.
51146         * lib/unicase/invariant.h: New file.
51147         * lib/unicase/u-is-invariant.h: New file.
51148         * modules/unicase/u8-is-invariant: New file.
51149
51150         Tests for module 'unicase/u32-casecoll'.
51151         * modules/unicase/u32-casecoll-tests: New file.
51152         * tests/unicase/test-u32-casecoll.c: New file.
51153
51154         Tests for module 'unicase/u16-casecoll'.
51155         * modules/unicase/u16-casecoll-tests: New file.
51156         * tests/unicase/test-u16-casecoll.c: New file.
51157
51158         Tests for module 'unicase/u8-casecoll'.
51159         * modules/unicase/u8-casecoll-tests: New file.
51160         * tests/unicase/test-u8-casecoll.c: New file.
51161
51162         New module 'unicase/u32-casecoll'.
51163         * lib/unicase/u32-casecoll.c: New file.
51164         * modules/unicase/u32-casecoll: New file.
51165
51166         New module 'unicase/u16-casecoll'.
51167         * lib/unicase/u16-casecoll.c: New file.
51168         * modules/unicase/u16-casecoll: New file.
51169
51170         New module 'unicase/u8-casecoll'.
51171         * lib/unicase/u8-casecoll.c: New file.
51172         * lib/unicase/u-casecoll.h: New file.
51173         * modules/unicase/u8-casecoll: New file.
51174
51175         New module 'unicase/u32-casexfrm'.
51176         * lib/unicase/u32-casexfrm.c: New file.
51177         * modules/unicase/u32-casexfrm: New file.
51178
51179         New module 'unicase/u16-casexfrm'.
51180         * lib/unicase/u16-casexfrm.c: New file.
51181         * modules/unicase/u16-casexfrm: New file.
51182
51183         New module 'unicase/u8-casexfrm'.
51184         * lib/unicase/u8-casexfrm.c: New file.
51185         * lib/unicase/u-casexfrm.h: New file.
51186         * modules/unicase/u8-casexfrm: New file.
51187
51188         Tests for module 'unicase/u32-casecmp'.
51189         * modules/unicase/u32-casecmp-tests: New file.
51190         * tests/unicase/test-u32-casecmp.c: New file.
51191
51192         Tests for module 'unicase/u16-casecmp'.
51193         * modules/unicase/u16-casecmp-tests: New file.
51194         * tests/unicase/test-u16-casecmp.c: New file.
51195
51196         Tests for module 'unicase/u8-casecmp'.
51197         * modules/unicase/u8-casecmp-tests: New file.
51198         * tests/unicase/test-u8-casecmp.c: New file.
51199         * tests/unicase/test-casecmp.h: New file.
51200
51201         New module 'unicase/u32-casecmp'.
51202         * lib/unicase/u32-casecmp.c: New file.
51203         * modules/unicase/u32-casecmp: New file.
51204
51205         New module 'unicase/u16-casecmp'.
51206         * lib/unicase/u16-casecmp.c: New file.
51207         * modules/unicase/u16-casecmp: New file.
51208
51209         New module 'unicase/u8-casecmp'.
51210         * lib/unicase/u8-casecmp.c: New file.
51211         * lib/unicase/u-casecmp.h: New file.
51212         * modules/unicase/u8-casecmp: New file.
51213
51214         Tests for module 'unicase/u32-casefold'.
51215         * modules/unicase/u32-casefold-tests: New file.
51216         * tests/unicase/test-u32-casefold.c: New file.
51217
51218         Tests for module 'unicase/u16-casefold'.
51219         * modules/unicase/u16-casefold-tests: New file.
51220         * tests/unicase/test-u16-casefold.c: New file.
51221
51222         Tests for module 'unicase/u8-casefold'.
51223         * modules/unicase/u8-casefold-tests: New file.
51224         * tests/unicase/test-u8-casefold.c: New file.
51225
51226         New module 'unicase/u32-casefold'.
51227         * lib/unicase/u32-casefold.c: New file.
51228         * modules/unicase/u32-casefold: New file.
51229
51230         New module 'unicase/u16-casefold'.
51231         * lib/unicase/u16-casefold.c: New file.
51232         * modules/unicase/u16-casefold: New file.
51233
51234         New module 'unicase/u8-casefold'.
51235         * lib/unicase/u8-casefold.c: New file.
51236         * lib/unicase/u-casefold.h: New file.
51237         * modules/unicase/u8-casefold: New file.
51238
51239         New module 'unicase/tocasefold'.
51240         * lib/unicase/casefold.h: New file.
51241         * lib/unicase/tocasefold.c: New file.
51242         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
51243         * modules/unicase/tocasefold: New file.
51244
51245         Tests for module 'unicase/u32-totitle'.
51246         * modules/unicase/u32-totitle-tests: New file.
51247         * tests/unicase/test-u32-totitle.c: New file.
51248
51249         Tests for module 'unicase/u16-totitle'.
51250         * modules/unicase/u16-totitle-tests: New file.
51251         * tests/unicase/test-u16-totitle.c: New file.
51252
51253         Tests for module 'unicase/u8-totitle'.
51254         * modules/unicase/u8-totitle-tests: New file.
51255         * tests/unicase/test-u8-totitle.c: New file.
51256
51257         New module 'unicase/u32-totitle'.
51258         * lib/unicase/u32-totitle.c: New file.
51259         * modules/unicase/u32-totitle: New file.
51260
51261         New module 'unicase/u16-totitle'.
51262         * lib/unicase/u16-totitle.c: New file.
51263         * modules/unicase/u16-totitle: New file.
51264
51265         New module 'unicase/u8-totitle'.
51266         * lib/unicase/u8-totitle.c: New file.
51267         * lib/unicase/u-totitle.h: New file.
51268         * modules/unicase/u8-totitle: New file.
51269
51270         Tests for module 'unicase/u32-tolower'.
51271         * modules/unicase/u32-tolower-tests: New file.
51272         * tests/unicase/test-u32-tolower.c: New file.
51273
51274         Tests for module 'unicase/u16-tolower'.
51275         * modules/unicase/u16-tolower-tests: New file.
51276         * tests/unicase/test-u16-tolower.c: New file.
51277
51278         Tests for module 'unicase/u8-tolower'.
51279         * modules/unicase/u8-tolower-tests: New file.
51280         * tests/unicase/test-u8-tolower.c: New file.
51281
51282         New module 'unicase/u32-tolower'.
51283         * lib/unicase/u32-tolower.c: New file.
51284         * modules/unicase/u32-tolower: New file.
51285
51286         New module 'unicase/u16-tolower'.
51287         * lib/unicase/u16-tolower.c: New file.
51288         * modules/unicase/u16-tolower: New file.
51289
51290         New module 'unicase/u8-tolower'.
51291         * lib/unicase/u8-tolower.c: New file.
51292         * modules/unicase/u8-tolower: New file.
51293
51294         Tests for module 'unicase/u32-toupper'.
51295         * modules/unicase/u32-toupper-tests: New file.
51296         * tests/unicase/test-u32-toupper.c: New file.
51297
51298         Tests for module 'unicase/u16-toupper'.
51299         * modules/unicase/u16-toupper-tests: New file.
51300         * tests/unicase/test-u16-toupper.c: New file.
51301
51302         Tests for module 'unicase/u8-toupper'.
51303         * modules/unicase/u8-toupper-tests: New file.
51304         * tests/unicase/test-u8-toupper.c: New file.
51305
51306         New module 'unicase/u32-toupper'.
51307         * lib/unicase/u32-toupper.c: New file.
51308         * modules/unicase/u32-toupper: New file.
51309
51310         New module 'unicase/u16-toupper'.
51311         * lib/unicase/u16-toupper.c: New file.
51312         * modules/unicase/u16-toupper: New file.
51313
51314         New module 'unicase/u8-toupper'.
51315         * lib/unicase/u8-toupper.c: New file.
51316         * modules/unicase/u8-toupper: New file.
51317
51318         New module 'unicase/u32-casemap'.
51319         * lib/unicase/u32-casemap.c: New file.
51320         * modules/unicase/u32-casemap: New file.
51321
51322         New module 'unicase/u16-casemap'.
51323         * lib/unicase/u16-casemap.c: New file.
51324         * modules/unicase/u16-casemap: New file.
51325
51326         New module 'unicase/u8-casemap'.
51327         * lib/unicase/unicasemap.h: New file.
51328         * lib/unicase/u8-casemap.c: New file.
51329         * lib/unicase/u-casemap.h: New file.
51330         * modules/unicase/u8-casemap: New file.
51331
51332         New module 'unicase/special-casing'.
51333         * lib/unicase/special-casing.h: New file.
51334         * lib/unicase/special-casing.c: New file.
51335         * lib/unicase/special-casing-table.gperf: New file, generated by
51336         gen-uni-tables.c.
51337         * modules/unicase/special-casing: New file.
51338
51339         Tests for module 'unicase/locale-language'.
51340         * modules/unicase/locale-language-tests: New file.
51341         * tests/unicase/test-locale-language.sh: New file.
51342         * tests/unicase/test-locale-language.c: New file.
51343
51344         New module 'unicase/locale-language'.
51345         * lib/unicase/locale-language.c: New file.
51346         * lib/unicase/locale-languages.gperf: New file.
51347         * modules/unicase/locale-language: New file.
51348
51349         Generate more tables for case conversion and case folding.
51350         * lib/gen-uni-tables.c (SCC_*): New enum items.
51351         (struct special_casing_rule): New type.
51352         (casing_rules, num_casing_rules, allocated_casing_rules): New
51353         variables.
51354         (add_casing_rule, fill_casing_rules): New functions.
51355         (struct casefold_rule): New type.
51356         (casefolding_rules, num_casefolding_rules,
51357         allocated_casefolding_rules): New variables.
51358         (fill_casefolding_rules): New function.
51359         (unicode_casefold): New variable.
51360         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
51361         sort_casing_rules, output_casing_rules): New functions.
51362         (main): Accept to more arguments: SpecialCasing.txt and
51363         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
51364         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
51365         Output mapping for casefolding.
51366
51367         * lib/unicase.h: Include stdbool.h, uninorm.h.
51368         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
51369         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
51370         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
51371         arguments.
51372         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
51373         resultp arguments.
51374         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
51375         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
51376         resultp arguments.
51377         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
51378         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
51379         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
51380         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
51381         declarations.
51382         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
51383
51384 2009-03-08  Bruno Haible  <bruno@clisp.org>
51385
51386         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
51387         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
51388         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
51389         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
51390
51391 2009-03-07  Bruno Haible  <bruno@clisp.org>
51392
51393         Adjust u*_normcmp, u*_normcoll API.
51394         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
51395         u16_normcoll, u32_normcoll): Change failure conventions.
51396         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
51397         errno and return -1.
51398         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
51399
51400 2009-03-07  Bruno Haible  <bruno@clisp.org>
51401
51402         Tests for module 'uninorm/u32-normcoll'.
51403         * modules/uninorm/u32-normcoll-tests: New file.
51404         * tests/uninorm/test-u32-normcoll.c: New file.
51405
51406         Tests for module 'uninorm/u16-normcoll'.
51407         * modules/uninorm/u16-normcoll-tests: New file.
51408         * tests/uninorm/test-u16-normcoll.c: New file.
51409
51410         Tests for module 'uninorm/u8-normcoll'.
51411         * modules/uninorm/u8-normcoll-tests: New file.
51412         * tests/uninorm/test-u8-normcoll.c: New file.
51413
51414 2009-03-07  Bruno Haible  <bruno@clisp.org>
51415
51416         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
51417         tests/uninorm/test-u32-normcmp.c.
51418         * tests/uninorm/test-u32-normcmp.c: Include it.
51419         (test_nonascii): New function, extracted from main. Add some more
51420         tests.
51421         (main): Invoke test_ascii and test_nonascii.
51422         * modules/uninorm/u32-normcmp-tests (Files): Add
51423         tests/uninorm/test-u32-normcmp.h.
51424         (Depends-on): Remove uninorm/u32-normcmp.
51425
51426         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
51427         tests/uninorm/test-u16-normcmp.c.
51428         * tests/uninorm/test-u16-normcmp.c: Include it.
51429         (test_nonascii): New function, extracted from main. Add some more
51430         tests.
51431         (main): Invoke test_ascii and test_nonascii.
51432         * modules/uninorm/u16-normcmp-tests (Files): Add
51433         tests/uninorm/test-u16-normcmp.h.
51434         (Depends-on): Remove uninorm/u16-normcmp.
51435
51436         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
51437         tests/uninorm/test-u8-normcmp.c.
51438         * tests/uninorm/test-u8-normcmp.c: Include it.
51439         (test_nonascii): New function, extracted from main. Add some more
51440         tests.
51441         (main): Invoke test_ascii and test_nonascii.
51442         * modules/uninorm/u8-normcmp-tests (Files): Add
51443         tests/uninorm/test-u8-normcmp.h.
51444         (Depends-on): Remove uninorm/u8-normcmp.
51445
51446 2009-03-07  Bruno Haible  <bruno@clisp.org>
51447
51448         New module 'uninorm/u32-normcoll'.
51449         * lib/uninorm/u32-normcoll.c: New file.
51450         * modules/uninorm/u32-normcoll: New file.
51451
51452         New module 'uninorm/u16-normcoll'.
51453         * lib/uninorm/u16-normcoll.c: New file.
51454         * modules/uninorm/u16-normcoll: New file.
51455
51456         New module 'uninorm/u8-normcoll'.
51457         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
51458         declarations.
51459         * lib/uninorm/u8-normcoll.c: New file.
51460         * lib/uninorm/u-normcoll.h: New file.
51461         * modules/uninorm/u8-normcoll: New file.
51462
51463         New module 'uninorm/u32-normxfrm'.
51464         * lib/uninorm/u32-normxfrm.c: New file.
51465         * modules/uninorm/u32-normxfrm: New file.
51466
51467         New module 'uninorm/u16-normxfrm'.
51468         * lib/uninorm/u16-normxfrm.c: New file.
51469         * modules/uninorm/u16-normxfrm: New file.
51470
51471         New module 'uninorm/u8-normxfrm'.
51472         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
51473         declarations.
51474         * lib/uninorm/u8-normxfrm.c: New file.
51475         * lib/uninorm/u-normxfrm.h: New file.
51476         * modules/uninorm/u8-normxfrm: New file.
51477
51478 2009-03-07  Bruno Haible  <bruno@clisp.org>
51479
51480         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
51481         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
51482         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
51483
51484 2009-03-07  Bruno Haible  <bruno@clisp.org>
51485
51486         New module 'memxfrm'.
51487         * lib/memxfrm.h: New file.
51488         * lib/memxfrm.c: New file.
51489         * modules/memxfrm: New file.
51490
51491 2009-03-07  Bruno Haible  <bruno@clisp.org>
51492
51493         New module 'memcmp2'.
51494         * lib/memcmp2.h: New file.
51495         * lib/memcmp2.c: New file.
51496         * modules/memcmp2: New file.
51497
51498 2009-03-07  Bruno Haible  <bruno@clisp.org>
51499
51500         Tests for module 'uninorm/decomposing-form'.
51501         * modules/uninorm/decomposing-form-tests: New file.
51502         * tests/uninorm/test-decomposing-form.c: New file.
51503
51504         New module 'uninorm/decomposing-form'.
51505         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
51506         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
51507         Add 'decomposing_variant' field.
51508         * lib/uninorm/decomposing-form.c: New file.
51509         * lib/uninorm/nfc.c (uninorm_nfc): Update.
51510         * lib/uninorm/nfd.c (uninorm_nfd): Update.
51511         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
51512         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
51513         * modules/uninorm/decomposing-form: New file.
51514         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
51515         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
51516
51517 2009-03-07  Bruno Haible  <bruno@clisp.org>
51518
51519         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
51520         strings.
51521
51522 2009-03-06  Bruno Haible  <bruno@clisp.org>
51523
51524         Tests for module 'uninorm/u32-normcmp'.
51525         * tests/uninorm/test-u32-normcmp.c: New file.
51526         * modules/uninorm/u32-normcmp-tests: New file.
51527
51528         Tests for module 'uninorm/u16-normcmp'.
51529         * tests/uninorm/test-u16-normcmp.c: New file.
51530         * modules/uninorm/u16-normcmp-tests: New file.
51531
51532         Tests for module 'uninorm/u8-normcmp'.
51533         * tests/uninorm/test-u8-normcmp.c: New file.
51534         * modules/uninorm/u8-normcmp-tests: New file.
51535
51536         New module 'uninorm/u32-normcmp'.
51537         * lib/uninorm/u32-normcmp.c: New file.
51538         * modules/uninorm/u32-normcmp: New file.
51539
51540         New module 'uninorm/u16-normcmp'.
51541         * lib/uninorm/u16-normcmp.c: New file.
51542         * modules/uninorm/u16-normcmp: New file.
51543
51544         New module 'uninorm/u8-normcmp'.
51545         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
51546         declarations.
51547         * lib/uninorm/u8-normcmp.c: New file.
51548         * lib/uninorm/u-normcmp.h: New file.
51549         * modules/uninorm/u8-normcmp: New file.
51550
51551 2009-03-06  Bruno Haible  <bruno@clisp.org>
51552
51553         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
51554         Reported by Eric Blake.
51555
51556 2009-03-06  Eric Blake  <ebb9@byu.net>
51557             Bruno Haible  <bruno@clisp.org>
51558
51559         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
51560         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
51561         condition.
51562         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
51563         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
51564         condition.
51565         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
51566
51567 2009-03-06  Eric Blake  <ebb9@byu.net>
51568
51569         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
51570         to avoid compiler warnings.
51571         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
51572
51573 2009-03-05  Bruno Haible  <bruno@clisp.org>
51574
51575         * tests/test-ftell.c (main): Disable test beyond end of file on
51576         FreeMiNT.
51577         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
51578
51579 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
51580
51581         * lib/filevercmp.c: Move hidden files up in ordering.
51582         * tests/test-filevercmp.c: Add tests for hidden files.
51583
51584 2009-03-04  Bruno Haible  <bruno@clisp.org>
51585
51586         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
51587         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
51588         AM_CFLAGS.
51589         Reported by Simon Josefsson.
51590
51591 2009-03-03  Bruno Haible  <bruno@clisp.org>
51592
51593         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
51594         Reported by Simon Josefsson.
51595
51596         * doc/ld-version-script.texi: Update node reference.
51597
51598 2009-03-03  Bruno Haible  <bruno@clisp.org>
51599
51600         * modules/visibility (License): Change to 'unlimited'.
51601         Suggested by Simon Josefsson.
51602
51603 2009-03-03  Jim Meyering  <meyering@redhat.com>
51604
51605         unlinkdir: cannot_unlink_dir may modify process state
51606         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
51607         it's neither thread-safe nor appropriate for use in a library.
51608
51609 2009-03-03  Eric Blake  <ebb9@byu.net>
51610
51611         test-closein: silence test under Darwin
51612         * tests/test-closein.sh: Ignore stderr from cat, since we don't
51613         care if it dies from EPIPE or EBADF.
51614
51615 2009-03-03  Bruno Haible  <bruno@clisp.org>
51616
51617         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
51618         earlier.
51619         * doc/visibility.texi: Fix @node and @section.
51620
51621 2009-03-03  Simon Josefsson  <simon@josefsson.org>
51622
51623         * doc/gnulib.texi: Link to sections for ld version script and
51624         visibility.
51625         * doc/visibility.texi: Add @node and @section.
51626         * modules/ld-version-script: New module.
51627         * m4/ld-version-script.m4: New file.
51628         * doc/ld-version-script.texi: New file.
51629
51630 2009-03-02  David Lutterkort  <lutter@redhat.com>
51631
51632         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
51633         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51634
51635 2009-03-02  Bruno Haible  <bruno@clisp.org>
51636
51637         * doc/visibility.texi: Mention libtool's -export-symbols option.
51638
51639 2009-03-02  Jim Meyering  <meyering@redhat.com>
51640
51641         announce-gen: new option: --no-print-checksums
51642         * build-aux/announce-gen (usage): Describe it.
51643         (print_checksums): Print a newline here, not in the [*] footnote.
51644         (main): Honor it.
51645
51646 2009-03-01  Bruno Haible  <bruno@clisp.org>
51647
51648         Use socklen_t in the native Windows replacements prototypes.
51649         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
51650         instead of 'int'.
51651         * lib/getsockopt.c (rpl_getsockopt): Likewise.
51652         * lib/setsockopt.c (rpl_setsockopt): Likewise.
51653         * modules/getsockopt (Depends-on): Add socklen.
51654         * modules/setsockopt (Depends-on): Add socklen.
51655
51656 2009-03-01  Bruno Haible  <bruno@clisp.org>
51657
51658         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
51659         least 4.2.
51660
51661 2009-03-01  Eric Blake  <ebb9@byu.net>
51662             Bruno Haible  <bruno@clisp.org>
51663
51664         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
51665         error messages.
51666         * lib/wait-process.c (wait_subprocess): Omit error message about
51667         deadly signal sent to the child of termsigp != NULL.
51668
51669 2009-03-01  Eric Blake  <ebb9@byu.net>
51670
51671         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
51672
51673 2009-03-01  Bruno Haible  <bruno@clisp.org>
51674
51675         Avoid a gcc warning.
51676         * tests/test-sched.c (b): Make global.
51677         Reported by Eric Blake.
51678
51679 2009-01-19  Martin Lambers  <marlam@marlam.de>
51680
51681         Provide POSIX semantics for socket timeout options on W32.
51682         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
51683         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
51684         * modules/setsockopt: Depend on sys_time module for struct timeval.
51685         * modules/getsockopt: Depend on sys_time module for struct timeval.
51686
51687 2009-03-01  Simon Josefsson  <simon@josefsson.org>
51688
51689         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
51690         __USE_GNU, for consistency with netdb.in.h.
51691         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
51692
51693 2009-03-01  Bruno Haible  <bruno@clisp.org>
51694
51695         More support for FreeMiNT.
51696         * lib/fseeko.c (rpl_fseeko): Complete last commit.
51697         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
51698
51699 2009-03-01  Bruno Haible  <bruno@clisp.org>
51700
51701         More support for FreeMiNT.
51702         * lib/fpurge.c (fpurge): Correct last commit.
51703         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
51704
51705 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51706
51707         Fix unportable awk script in vc-list-files.
51708         * build-aux/vc-list-files: In the replacement awk script, use
51709         substr with a second argument of 1, not zero.
51710         Report by Simon Josefsson.
51711
51712 2009-02-28  Bruno Haible  <bruno@clisp.org>
51713
51714         More support for FreeMiNT.
51715         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
51716         to FreeMiNT today.
51717         * lib/fwriting.c (fwriting): Likewise.
51718         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
51719
51720 2009-02-28  Bruno Haible  <bruno@clisp.org>
51721
51722         * tests/test-freadseek.c (main): Disable test beyond end of file on
51723         FreeMiNT.
51724         * tests/test-ftello.c (main): Likewise.
51725         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
51726
51727 2009-02-28  Bruno Haible  <bruno@clisp.org>
51728
51729         Add tentative support for FreeMiNT.
51730         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
51731         * lib/fpurge.c (fpurge): Likewise.
51732         * lib/freadable.c (freadable): Likewise.
51733         * lib/freading.c (freading): Likewise.
51734         * lib/freadptr.c (freadptr): Likewise.
51735         * lib/freadseek.c (freadptrinc): Likewise.
51736         * lib/fseeko.c (rpl_fseeko): Likewise.
51737         * lib/fseterr.c (fseterr): Likewise.
51738         * lib/fwritable.c (fwritable): Likewise.
51739         * lib/fwriting.c (fwriting): Likewise.
51740         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
51741         Hourihane.
51742         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
51743
51744 2009-02-28  Bruno Haible  <bruno@clisp.org>
51745
51746         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
51747         SIGCHLD.
51748         Reported by Jim Meyering.
51749
51750 2009-02-28  Bruno Haible  <bruno@clisp.org>
51751
51752         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
51753         Mention the results of these tests on various platforms.
51754         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
51755         order.
51756         * doc/posix-functions/printf.texi: Likewise.
51757         * doc/posix-functions/snprintf.texi: Likewise.
51758         * doc/posix-functions/sprintf.texi: Likewise.
51759         * doc/posix-functions/vfprintf.texi: Likewise.
51760         * doc/posix-functions/vprintf.texi: Likewise.
51761         * doc/posix-functions/vsnprintf.texi: Likewise.
51762         * doc/posix-functions/vsprintf.texi: Likewise.
51763         * doc/glibc-functions/obstack_printf.texi: Likewise.
51764         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
51765
51766 2009-02-28  Bruno Haible  <bruno@clisp.org>
51767
51768         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
51769         Reported by Loïc Minier <lool@dooz.org>.
51770
51771 2009-02-27  Bruno Haible  <bruno@clisp.org>
51772
51773         * gnulib-tool (func_import): Make the sed expression used to create the
51774         sed script for updating the .gitignore file POSIX compliant.
51775         Reported by Eric Blake.
51776
51777 2009-02-27  Bruno Haible  <bruno@clisp.org>
51778
51779         * gnulib-tool (sed): Don't alias as "sed --posix".
51780         Reported by Eric Blake.
51781
51782 2009-02-27  Bruno Haible  <bruno@clisp.org>
51783
51784         Avoid test link errors.
51785         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
51786         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
51787         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
51788         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
51789         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51790
51791 2009-02-27  Bruno Haible  <bruno@clisp.org>
51792
51793         Avoid spurious "(cached)" in configure output.
51794         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
51795         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
51796         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
51797         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
51798         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
51799         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
51800         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
51801         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
51802         Reported by Eric Blake.
51803
51804 2009-02-27  Eric Blake  <ebb9@byu.net>
51805
51806         printf: fix regression in previous patch
51807         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
51808
51809 2009-02-27  Bruno Haible  <bruno@clisp.org>
51810
51811         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
51812         value.
51813         * lib/stdint.in.h: Likewise.
51814         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
51815
51816 2009-02-27  Eric Blake  <ebb9@byu.net>
51817
51818         doc: mention more functions added in cygwin 1.7.0
51819         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
51820         addition.
51821         * doc/posix-functions/open_wmemstream.texi: Likewise.
51822         * doc/posix-functions/wcsnlen.texi: Likewise.
51823         * doc/posix-functions/wcsnrtombs.texi: Likewise.
51824         * doc/posix-functions/wcstod.texi: Likewise.
51825         * doc/posix-functions/wcstof.texi: Likewise.
51826         * doc/posix-functions/wcstoimax.texi: Likewise.
51827         * doc/posix-functions/wcstok.texi: Likewise.
51828         * doc/posix-functions/wcstoumax.texi: Likewise.
51829
51830         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
51831         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
51832         * doc/posix-functions/fprintf.texi: Update.
51833         * doc/posix-functions/printf.texi: Update.
51834         * doc/posix-functions/snprintf.texi: Update.
51835         * doc/posix-functions/sprintf.texi: Update.
51836         * doc/posix-functions/vfprintf.texi: Update.
51837         * doc/posix-functions/vprintf.texi: Update.
51838         * doc/posix-functions/vsnprintf.texi: Update.
51839         * doc/posix-functions/vsprintf.texi: Update.
51840         * doc/glibc-functions/obstack_printf.texi: Update.
51841         * doc/glibc-functions/obstack_vprintf.texi: Update.
51842
51843 2009-02-26  Eric Blake  <ebb9@byu.net>
51844
51845         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
51846         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
51847         compilation bug by using runtime conversion.
51848         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
51849         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
51850         * modules/ceill-tests (Files): Use nan.h.
51851         * modules/floorl-tests (Files): Likewise.
51852         * modules/frexpl-tests (Files): Likewise.
51853         * modules/isnanl-tests (Files): Likewise.
51854         * modules/ldexpl-tests (Files): Likewise.
51855         * modules/roundl-tests (Files): Likewise.
51856         * modules/truncl-tests (Files): Likewise.
51857         * tests/test-ceill.c (main): Use a working NaN.
51858         * tests/test-floorl.c (main): Likewise.
51859         * tests/test-frexpl.c (main): Likewise.
51860         * tests/test-isnan.c (test_long_double): Likewise.
51861         * tests/test-isnanl.h (main): Likewise.
51862         * tests/test-ldexpl.h (main): Likewise.
51863         * tests/test-roundl.h (main): Likewise.
51864         * tests/test-truncl.h (main): Likewise.
51865         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
51866
51867 2009-02-26  Eric Blake  <ebb9@byu.net>
51868             Bruno Haible  <bruno@clisp.org>
51869
51870         Work around a *printf bug with %ls on Solaris.
51871         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
51872         precision is specified, sprintf stops converting the wide string
51873         argument when the number of bytes that have been produced by this
51874         conversion equals or exceeds the precision.
51875         * doc/posix-functions/fprintf.texi: Update.
51876         * doc/posix-functions/printf.texi: Update.
51877         * doc/posix-functions/snprintf.texi: Update.
51878         * doc/posix-functions/sprintf.texi: Update.
51879         * doc/posix-functions/vfprintf.texi: Update.
51880         * doc/posix-functions/vprintf.texi: Update.
51881         * doc/posix-functions/vsnprintf.texi: Update.
51882         * doc/posix-functions/vsprintf.texi: Update.
51883         * doc/glibc-functions/obstack_printf.texi: Update.
51884         * doc/glibc-functions/obstack_vprintf.texi: Update.
51885
51886 2009-02-26  Eric Blake  <ebb9@byu.net>
51887
51888         stdlib: favor compiler check of random.h
51889         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
51890         to avoid an ObjC random.h installed by Swarm.
51891
51892 2009-02-26  Bruno Haible  <bruno@clisp.org>
51893
51894         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
51895         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
51896         Reported by Gary V. Vaughan <gary@gnu.org>.
51897
51898 2009-02-26  Bruno Haible  <bruno@clisp.org>
51899
51900         Fix *printf behaviour regarding the %ls directive.
51901         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
51902         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
51903         NEED_PRINTF_DIRECTIVE_LS.
51904         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
51905         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
51906         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51907         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
51908         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
51909         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
51910         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
51911         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51912         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51913         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51914         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51915         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
51916         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51917         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51918         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51919         * doc/posix-functions/fprintf.texi: Update.
51920         * doc/posix-functions/printf.texi: Update.
51921         * doc/posix-functions/snprintf.texi: Update.
51922         * doc/posix-functions/sprintf.texi: Update.
51923         * doc/posix-functions/vfprintf.texi: Update.
51924         * doc/posix-functions/vprintf.texi: Update.
51925         * doc/posix-functions/vsnprintf.texi: Update.
51926         * doc/posix-functions/vsprintf.texi: Update.
51927         * doc/glibc-functions/obstack_printf.texi: Update.
51928         * doc/glibc-functions/obstack_vprintf.texi: Update.
51929         Reported by Eric Blake.
51930
51931 2009-02-25  Bruno Haible  <bruno@clisp.org>
51932
51933         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
51934         with known value.
51935         Reported by Gary V. Vaughan <gary@gnu.org>.
51936
51937 2009-02-25  Bruno Haible  <bruno@clisp.org>
51938
51939         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
51940         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
51941         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
51942         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
51943         Reported by Gary V. Vaughan <gary@gnu.org>.
51944
51945 2009-02-25  Bruno Haible  <bruno@clisp.org>
51946
51947         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
51948         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
51949         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
51950         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
51951         Reported by Gary V. Vaughan <gary@gnu.org>.
51952
51953 2009-02-25  Eric Blake  <ebb9@byu.net>
51954
51955         tests: skip fseek/ftell tests if ungetc is broken
51956         * m4/ungetc.m4: New file.
51957         * modules/fseek-tests: Split test, so ungetc dependency is
51958         separate from rest of test.
51959         * modules/fseeko-tests: Likewise.
51960         * modules/ftell-tests: Likewise.
51961         * modules/ftello-tests: Likewise.
51962         * tests/test-fseek.c (main): Isolate ungetc dependency.
51963         * tests/test-fseeko.c (main): Likewise.
51964         * tests/test-ftell.c (main): Likewise.
51965         * tests/test-ftello.c (main): Likewise.
51966         * tests/test-fseek2.sh: New file.
51967         * tests/test-fseeko2.sh: Likewise.
51968         * tests/test-ftell2.sh: Likewise.
51969         * tests/test-ftello2.sh: Likewise.
51970
51971 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
51972
51973         test-getaddrinfo: fix usage of skip return code 77
51974         * tests/test-gettaddrinfo.c: Return skip code 77 only
51975         for first occurrence of skip (4x77 is not 77)
51976
51977 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
51978
51979         strtod: avoid C99 decl-after-statement
51980         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
51981
51982 2009-02-24  Eric Blake  <ebb9@byu.net>
51983
51984         strtod: detect HP-UX 11.31 bug
51985         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
51986         Reported by Gary V. Vaughan.
51987
51988 2009-02-23  Bruno Haible  <bruno@clisp.org>
51989
51990         Fix invalid read past end of memory block.
51991         * lib/vasnprintf.c (DCHAR_SET): Define.
51992         (local_wcslen): Define only when needed.
51993         (local_strnlen, local_wcsnlen): New functions.
51994         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
51995         directives that involve a conversion ourselves.
51996         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
51997         wcsnlen, mbrtowc, wcrtomb.
51998         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
51999         * tests/test-vasprintf-posix.c (test_function): Likewise.
52000         * tests/test-snprintf-posix.h (test_function): Likewise.
52001         * tests/test-sprintf-posix.h (test_function): Likewise.
52002         Reported by Ben Pfaff <blp@cs.stanford.edu>.
52003
52004 2009-02-22  Bruno Haible  <bruno@clisp.org>
52005
52006         Implement new clarified decomposition of Hangul syllables.
52007         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
52008         of type LTV, return only a pairwise decomposition.
52009         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
52010         Likewise.
52011         * tests/uninorm/test-decomposition.c (main): Updated expected result.
52012         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
52013         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
52014
52015 2009-02-22  Bruno Haible  <bruno@clisp.org>
52016
52017         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
52018         zero-length results and shrink excess allocated memory.
52019         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
52020         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
52021         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
52022         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
52023         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
52024         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
52025         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
52026         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
52027         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
52028         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
52029         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
52030         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
52031
52032 2009-02-21  Bruno Haible  <bruno@clisp.org>
52033
52034         * doc/gnulib.texi: Include safe-alloc.texi earlier.
52035         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
52036         spaces after a period. Put a space between a macro name and its
52037         argument list. Trivial rewordings.
52038         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
52039         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
52040         (main): Return 0 explicitly.
52041
52042 2009-02-21  Bruno Haible  <bruno@clisp.org>
52043
52044         Tests for module 'uninorm/filter'.
52045         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
52046         * modules/uninorm/filter-tests: New file.
52047
52048         New module 'uninorm/filter'.
52049         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
52050         uninorm_filter_flush, uninorm_filter_free): New declarations.
52051         * lib/uninorm/uninorm-filter.c: New file.
52052         * modules/uninorm/filter: New file.
52053
52054 2009-02-21  Bruno Haible  <bruno@clisp.org>
52055
52056         Tests for module 'uninorm/nfkc'.
52057         * tests/uninorm/test-nfkc.c: New file.
52058         * tests/uninorm/test-u8-nfkc.c: New file.
52059         * tests/uninorm/test-u16-nfkc.c: New file.
52060         * tests/uninorm/test-u32-nfkc.c: New file.
52061         * tests/uninorm/test-u32-nfkc-big.sh: New file.
52062         * tests/uninorm/test-u32-nfkc-big.c: New file.
52063         * modules/uninorm/nfkc-tests: New file.
52064
52065         New module 'uninorm/nfkc'.
52066         * lib/uninorm/nfkc.c: New file.
52067         * modules/uninorm/nfkc: New file.
52068
52069         Tests for module 'uninorm/nfkd'.
52070         * tests/uninorm/test-nfkd.c: New file.
52071         * tests/uninorm/test-u8-nfkd.c: New file.
52072         * tests/uninorm/test-u16-nfkd.c: New file.
52073         * tests/uninorm/test-u32-nfkd.c: New file.
52074         * tests/uninorm/test-u32-nfkd-big.sh: New file.
52075         * tests/uninorm/test-u32-nfkd-big.c: New file.
52076         * modules/uninorm/nfkd-tests: New file.
52077
52078         New module 'uninorm/nfkd'.
52079         * lib/uninorm/nfkd.c: New file.
52080         * modules/uninorm/nfkd: New file.
52081
52082         Tests for module 'uninorm/nfc'.
52083         * tests/uninorm/test-nfc.c: New file.
52084         * tests/uninorm/test-u8-nfc.c: New file.
52085         * tests/uninorm/test-u16-nfc.c: New file.
52086         * tests/uninorm/test-u32-nfc.c: New file.
52087         * tests/uninorm/test-u32-nfc-big.sh: New file.
52088         * tests/uninorm/test-u32-nfc-big.c: New file.
52089         * modules/uninorm/nfc-tests: New file.
52090
52091         New module 'uninorm/nfc'.
52092         * lib/uninorm/nfc.c: New file.
52093         * modules/uninorm/nfc: New file.
52094
52095         Tests for module 'uninorm/nfd'.
52096         * tests/uninorm/test-nfd.c: New file.
52097         * tests/uninorm/test-u8-nfd.c: New file.
52098         * tests/uninorm/test-u16-nfd.c: New file.
52099         * tests/uninorm/test-u32-nfd.c: New file.
52100         * tests/uninorm/test-u32-nfd-big.sh: New file.
52101         * tests/uninorm/test-u32-nfd-big.c: New file.
52102         * tests/uninorm/test-u32-normalize-big.h: New file.
52103         * tests/uninorm/test-u32-normalize-big.c: New file.
52104         * tests/uninorm/NormalizationTest.txt: New file, created from
52105         Unicode 5.1.0 NormalizationTest.txt.
52106         * modules/uninorm/nfd-tests: New file.
52107
52108         New module 'uninorm/nfd'.
52109         * lib/uninorm/nfd.c: New file.
52110         * modules/uninorm/nfd: New file.
52111
52112         New module 'uninorm/u32-normalize'.
52113         * lib/uninorm/u32-normalize.c: New file.
52114         * modules/uninorm/u32-normalize: New file.
52115
52116         New module 'uninorm/u16-normalize'.
52117         * lib/uninorm/u16-normalize.c: New file.
52118         * modules/uninorm/u16-normalize: New file.
52119
52120         New module 'uninorm/u8-normalize'.
52121         * lib/uninorm/u8-normalize.c: New file.
52122         * lib/uninorm/normalize-internal.h: New file.
52123         * lib/uninorm/u-normalize-internal.h: New file.
52124         * modules/uninorm/u8-normalize: New file.
52125
52126         New module 'uninorm/decompose-internal'.
52127         * lib/uninorm/decompose-internal.c: New file.
52128         * modules/uninorm/decompose-internal: New file.
52129
52130         Tests for module 'uninorm/composition'.
52131         * tests/uninorm/test-composition.c: New file.
52132         * modules/uninorm/composition-tests: New file.
52133
52134         New module 'uninorm/composition'.
52135         * lib/uninorm/composition.c: New file.
52136         * lib/uninorm/composition-table.gperf: New file, generated by
52137         gen-uni-tables.
52138         * modules/uninorm/composition: New file.
52139
52140         Tests for module 'uninorm/compat-decomposition'.
52141         * tests/uninorm/test-compat-decomposition.c: New file.
52142         * modules/uninorm/compat-decomposition-tests: New file.
52143
52144         New module 'uninorm/compat-decomposition'.
52145         * lib/uninorm/decompose-internal.h: New file.
52146         * lib/uninorm/compat-decomposition.c: New file.
52147         * modules/uninorm/compat-decomposition: New file.
52148
52149         Tests for module 'uninorm/canonical-decomposition'.
52150         * tests/uninorm/test-canonical-decomposition.c: New file.
52151         * modules/uninorm/canonical-decomposition-tests: New file.
52152
52153         New module 'uninorm/canonical-decomposition'.
52154         * lib/uninorm/canonical-decomposition.c: New file.
52155         * modules/uninorm/canonical-decomposition: New file.
52156
52157         Tests for module 'uninorm/decomposition'.
52158         * tests/uninorm/test-decomposition.c: New file.
52159         * modules/uninorm/decomposition-tests: New file.
52160
52161         New module 'uninorm/decomposition'.
52162         * lib/uninorm/decomposition.c: New file.
52163         * modules/uninorm/decomposition: New file.
52164
52165         New module 'uninorm/decomposition-table'.
52166         * lib/uninorm/decomposition-table.h: New file.
52167         * lib/uninorm/decomposition-table.c: New file.
52168         * lib/uninorm/decomposition-table1.h: New file, generated by
52169         gen-uni-tables.
52170         * lib/uninorm/decomposition-table2.h: New file, generated by
52171         gen-uni-tables.
52172         * modules/uninorm/decomposition-table: New file.
52173
52174         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
52175         (UC_DECOMP_*): New enumeration items.
52176         (get_decomposition): New function.
52177         (struct decomp_table): New type.
52178         (output_decomposition, output_decomposition_tables): New functions.
52179         (unicode_composition_exclusions): New variable.
52180         (fill_composition_exclusions, debug_output_composition_tables): New
52181         functions.
52182         (main): Accept one more argument. Invoke fill_composition_exclusions.
52183         Output decomposition and composition tables.
52184
52185         New module 'uninorm/base'.
52186         * lib/uninorm.h: New file.
52187         * lib/unictype.h: Update comment.
52188         * modules/uninorm/base: New file.
52189
52190 2009-02-21  David Lutterkort  <lutter@redhat.com>
52191
52192         Tests for module 'safe-alloc'.
52193         * tests/test-safe-alloc.c: New file.
52194         * modules/safe-alloc-tests: New file.
52195
52196         New module 'safe-alloc'.
52197         * lib/safe-alloc.h: New file.
52198         * lib/safe-alloc.c: New file.
52199         * m4/safe-alloc.m4: New file.
52200         * modules/safe-alloc: New file.
52201         * doc/safe-alloc.texi: New file.
52202         * doc/gnulib.texi: Include it.
52203         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
52204         safe-alloc.
52205
52206 2009-02-18  Bruno Haible  <bruno@clisp.org>
52207
52208         Fix link error on non-glibc systems.
52209         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
52210         variable.
52211         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52212
52213 2009-02-18  Jim Meyering  <meyering@redhat.com>
52214
52215         fts: avoid used-uninitialized error due to recent change
52216         * lib/fts.c (fts_read): Guard uses of the new member,
52217         parent->fts_n_dirs_remaining, since it's not relevant for
52218         the parent of a directory specified on the command-line.
52219
52220 2009-02-17  James Youngman  <jay@gnu.org>
52221             Bruno Haible  <bruno@clisp.org>
52222
52223         * m4/include_next.m4: Reformulate comment.
52224
52225 2009-02-16  Jim Meyering  <meyering@redhat.com>
52226
52227         fts: add #if guards so that the fts_lgpl module still builds
52228         * lib/fts.c: Guard just-added hash-table-using parts with
52229         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
52230         Reported by Simon Josefsson.
52231
52232 2009-02-15  Bruno Haible  <bruno@clisp.org>
52233
52234         * modules/array-mergesort-tests: New file.
52235         * tests/test-array-mergesort.c: New file.
52236
52237         New module 'array-mergesort'.
52238         * modules/array-mergesort: New file.
52239         * lib/array-mergesort.h: New file.
52240
52241 2009-02-15  Bruno Haible  <bruno@clisp.org>
52242
52243         Fix 2009-02-07 commit.
52244         * lib/gen-uni-tables.c (output_predicate, output_category,
52245         output_combclass, output_bidi_category, output_decimal_digit,
52246         output_digit, output_numeric, output_mirror, output_scripts,
52247         output_ident_category, output_simple_mapping): Fix format directives.
52248         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
52249
52250 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
52251
52252         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
52253         fixes are available from IBM.
52254
52255 2009-02-13  Jim Meyering  <meyering@redhat.com>
52256
52257         fts: arrange not to stat non-directories in more cases
52258         This makes GNU find (when it doesn't need to stat each file)
52259         *much* more efficient at traversing reiserfs file systems.
52260         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
52261         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
52262         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
52263         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
52264         (leaf_optimization_applies): New function.
52265         (LCO_hash, LCO_compare): New helper functions.
52266         (link_count_optimize_ok): New function.
52267         (fts_stat): Initialize new member (if dir).
52268         (fts_read): Decrement parent's fts_n_dirs_remaining count if
52269         we've just stat'ed a directory.  Skip the stat call when possible.
52270         ---
52271         Note this AFS-related exchange:
52272         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
52273         and note find's pioctl call in find/fstype.c.
52274         But that is necessary only if you want to enable the
52275         optimization for AFS, and for now, I don't.
52276
52277         fts: move a function definition "up" (no semantic change)
52278         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
52279         "up" to precede upcoming use of a related function.
52280
52281 2009-02-11  Jim Meyering  <meyering@redhat.com>
52282
52283         fts: correct internal computation of nlinks (optimization-related)
52284         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
52285         whether the current entry is a directory, so don't test it.
52286
52287 2009-02-10  Bruno Haible  <bruno@clisp.org>
52288
52289         Tests for module 'uniwbrk/ulc-wordbreaks'.
52290         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
52291         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
52292         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
52293
52294         Tests for module 'uniwbrk/u32-wordbreaks'.
52295         * modules/uniwbrk/u32-wordbreaks-tests: New file.
52296         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
52297
52298         Tests for module 'uniwbrk/u16-wordbreaks'.
52299         * modules/uniwbrk/u16-wordbreaks-tests: New file.
52300         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
52301
52302         Tests for module 'uniwbrk/u8-wordbreaks'.
52303         * modules/uniwbrk/u8-wordbreaks-tests: New file.
52304         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
52305
52306 2009-02-10  Bruno Haible  <bruno@clisp.org>
52307
52308         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
52309         property.
52310         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
52311         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
52312         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
52313
52314 2009-02-10  Simon Josefsson  <simon@josefsson.org>
52315
52316         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
52317         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
52318
52319 2009-02-10  Bruno Haible  <bruno@clisp.org>
52320
52321         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
52322         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
52323         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
52324         * lib/unilbrk/u8-possible-linebreaks.c: Update.
52325         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
52326         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
52327
52328 2009-02-09  Simon Josefsson  <simon@josefsson.org>
52329
52330         * lib/sockets.h (gl_fd_to_handle): New function.
52331
52332         * tests/test-sockets.c: Call gl_fd_to_handle.
52333
52334 2009-02-09  Bruno Haible  <bruno@clisp.org>
52335
52336         * doc/havelib.texi: Document the conventions on bi-arch systems.
52337
52338 2009-02-08  Bruno Haible  <bruno@clisp.org>
52339
52340         Document the AC_LIB_LINKFLAGS macro.
52341         * doc/havelib.texi: New file, mostly written on 2005-05-24.
52342         * doc/gnulib.texi: Include it.
52343
52344 2009-02-08  Bruno Haible  <bruno@clisp.org>
52345
52346         Fix wrong order of sections, compared to TOC.
52347         * doc/gnulib.texi: Include relocatable-maint.texi after the
52348         "Regular expressions" node, not before.
52349
52350 2009-02-08  Bruno Haible  <bruno@clisp.org>
52351
52352         Tests for module 'unicase/totitle'.
52353         * modules/unicase/totitle-tests: New file.
52354
52355         Tests for module 'unicase/tolower'.
52356         * modules/unicase/tolower-tests: New file.
52357
52358         Tests for module 'unicase/toupper'.
52359         * modules/unicase/toupper-tests: New file.
52360         * tests/unicase/test-mapping-part1.h: New file.
52361         * tests/unicase/test-mapping-part2.h: New file.
52362
52363         New module 'unicase/totitle'.
52364         * modules/unicase/totitle: New file.
52365         * lib/unicase/totitle.c: New file.
52366
52367         New module 'unicase/tolower'.
52368         * modules/unicase/tolower: New file.
52369         * lib/unicase/tolower.c: New file.
52370
52371         New module 'unicase/toupper'.
52372         * modules/unicase/toupper: New file.
52373         * lib/unicase/toupper.c: New file.
52374         * lib/unicase/simple-mapping.h: New file.
52375
52376         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
52377         (mapping_table): New structure.
52378         (output_simple_mapping): New function.
52379         (main): Invoke output_simple_mapping_test and output_simple_mapping.
52380         * modules/gen-uni-tables (Description): Update.
52381         * lib/unicase/toupper.h: New file, automatically generated by
52382         gen-uni-tables.
52383         * lib/unicase/tolower.h: New file, automatically generated by
52384         gen-uni-tables.
52385         * lib/unicase/totitle.h: New file, automatically generated by
52386         gen-uni-tables.
52387         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
52388         gen-uni-tables.
52389         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
52390         gen-uni-tables.
52391         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
52392         gen-uni-tables.
52393
52394         New module 'unicase/base'.
52395         * modules/unicase/base: New file.
52396         * lib/unicase.h: New file.
52397
52398 2009-02-08  Bruno Haible  <bruno@clisp.org>
52399
52400         New module 'uniwbrk/ulc-wordbreaks'.
52401         * modules/uniwbrk/ulc-wordbreaks: New file.
52402         * lib/uniwbrk/ulc-wordbreaks.c: New file.
52403
52404         New module 'uniwbrk/u32-wordbreaks'.
52405         * modules/uniwbrk/u32-wordbreaks: New file.
52406         * lib/uniwbrk/u32-wordbreaks.c: New file.
52407
52408         New module 'uniwbrk/u16-wordbreaks'.
52409         * modules/uniwbrk/u16-wordbreaks: New file.
52410         * lib/uniwbrk/u16-wordbreaks.c: New file.
52411
52412         New module 'uniwbrk/u8-wordbreaks'.
52413         * modules/uniwbrk/u8-wordbreaks: New file.
52414         * lib/uniwbrk/u8-wordbreaks.c: New file.
52415         * lib/uniwbrk/u-wordbreaks.h: New file.
52416
52417         New module 'uniwbrk/table'.
52418         * modules/uniwbrk/table: New file.
52419         * lib/uniwbrk/wbrktable.h: New file.
52420         * lib/uniwbrk/wbrktable.c: New file.
52421
52422         New module 'uniwbrk/wordbreak-property'.
52423         * modules/uniwbrk/wordbreak-property: New file.
52424         * lib/uniwbrk/wordbreak-property.c: New file.
52425
52426         * lib/gen-uni-tables.c (WBP_*): New enum items.
52427         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
52428         (unicode_org_wbp): New variable.
52429         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
52430         New functions.
52431         (wbp_table): New structure.
52432         (output_wbp, output_wbrk_tables): New functions.
52433         (main): Accept additional argument. Invoke fill_org_wbp,
52434         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
52435         output_wbrk_tables.
52436         * modules/gen-uni-tables (Description): Update.
52437         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
52438         gen-uni-tables.
52439
52440         New module 'uniwbrk/base'.
52441         * modules/uniwbrk/base: New file.
52442         * lib/uniwbrk.h: New file.
52443
52444 2009-02-08  Bruno Haible  <bruno@clisp.org>
52445
52446         Update to Unicode 5.1.0.
52447         * lib/gen-uni-tables.c (is_property_alphabetic): Include
52448         U+2185..U+2188.
52449         (is_property_default_ignorable_code_point): Don't include characters
52450         of category Cc or Cs and not-a-characters.
52451         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
52452         U+0D79, U+109E, U+109F, U+A60C.
52453         * lib/unictype/bidi_of.h: Regenerated.
52454         * lib/unictype/blocks.h: Regenerated.
52455         * lib/unictype/categ_C.h: Regenerated.
52456         * lib/unictype/categ_Cf.h: Regenerated.
52457         * lib/unictype/categ_Cn.h: Regenerated.
52458         * lib/unictype/categ_L.h: Regenerated.
52459         * lib/unictype/categ_Ll.h: Regenerated.
52460         * lib/unictype/categ_Lm.h: Regenerated.
52461         * lib/unictype/categ_Lo.h: Regenerated.
52462         * lib/unictype/categ_Lu.h: Regenerated.
52463         * lib/unictype/categ_M.h: Regenerated.
52464         * lib/unictype/categ_Mc.h: Regenerated.
52465         * lib/unictype/categ_Me.h: Regenerated.
52466         * lib/unictype/categ_Mn.h: Regenerated.
52467         * lib/unictype/categ_N.h: Regenerated.
52468         * lib/unictype/categ_Nd.h: Regenerated.
52469         * lib/unictype/categ_Nl.h: Regenerated.
52470         * lib/unictype/categ_No.h: Regenerated.
52471         * lib/unictype/categ_P.h: Regenerated.
52472         * lib/unictype/categ_Pd.h: Regenerated.
52473         * lib/unictype/categ_Pe.h: Regenerated.
52474         * lib/unictype/categ_Pf.h: Regenerated.
52475         * lib/unictype/categ_Pi.h: Regenerated.
52476         * lib/unictype/categ_Po.h: Regenerated.
52477         * lib/unictype/categ_Ps.h: Regenerated.
52478         * lib/unictype/categ_S.h: Regenerated.
52479         * lib/unictype/categ_Sk.h: Regenerated.
52480         * lib/unictype/categ_Sm.h: Regenerated.
52481         * lib/unictype/categ_So.h: Regenerated.
52482         * lib/unictype/categ_of.h: Regenerated.
52483         * lib/unictype/combining.h: Regenerated.
52484         * lib/unictype/ctype_alnum.h: Regenerated.
52485         * lib/unictype/ctype_alpha.h: Regenerated.
52486         * lib/unictype/ctype_graph.h: Regenerated.
52487         * lib/unictype/ctype_lower.h: Regenerated.
52488         * lib/unictype/ctype_print.h: Regenerated.
52489         * lib/unictype/ctype_punct.h: Regenerated.
52490         * lib/unictype/ctype_upper.h: Regenerated.
52491         * lib/unictype/decdigit.h: Regenerated.
52492         * lib/unictype/digit.h: Regenerated.
52493         * lib/unictype/mirror.h: Regenerated.
52494         * lib/unictype/numeric.h: Regenerated.
52495         * lib/unictype/pr_alphabetic.h: Regenerated.
52496         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
52497         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
52498         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
52499         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
52500         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
52501         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
52502         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
52503         * lib/unictype/pr_combining.h: Regenerated.
52504         * lib/unictype/pr_dash.h: Regenerated.
52505         * lib/unictype/pr_decimal_digit.h: Regenerated.
52506         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
52507         * lib/unictype/pr_deprecated.h: Regenerated.
52508         * lib/unictype/pr_diacritic.h: Regenerated.
52509         * lib/unictype/pr_extender.h: Regenerated.
52510         * lib/unictype/pr_format_control.h: Regenerated.
52511         * lib/unictype/pr_grapheme_base.h: Regenerated.
52512         * lib/unictype/pr_grapheme_extend.h: Regenerated.
52513         * lib/unictype/pr_grapheme_link.h: Regenerated.
52514         * lib/unictype/pr_id_continue.h: Regenerated.
52515         * lib/unictype/pr_id_start.h: Regenerated.
52516         * lib/unictype/pr_ideographic.h: Regenerated.
52517         * lib/unictype/pr_ignorable_control.h: Regenerated.
52518         * lib/unictype/pr_lowercase.h: Regenerated.
52519         * lib/unictype/pr_math.h: Regenerated.
52520         * lib/unictype/pr_numeric.h: Regenerated.
52521         * lib/unictype/pr_other_alphabetic.h: Regenerated.
52522         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
52523         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
52524         * lib/unictype/pr_other_id_continue.h: Regenerated.
52525         * lib/unictype/pr_other_lowercase.h: Regenerated.
52526         * lib/unictype/pr_other_math.h: Regenerated.
52527         * lib/unictype/pr_punctuation.h: Regenerated.
52528         * lib/unictype/pr_sentence_terminal.h: Regenerated.
52529         * lib/unictype/pr_soft_dotted.h: Regenerated.
52530         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
52531         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
52532         * lib/unictype/pr_unified_ideograph.h: Regenerated.
52533         * lib/unictype/pr_uppercase.h: Regenerated.
52534         * lib/unictype/pr_xid_continue.h: Regenerated.
52535         * lib/unictype/pr_xid_start.h: Regenerated.
52536         * lib/unictype/pr_zero_width.h: Regenerated.
52537         * lib/unictype/scripts.h: Regenerated.
52538         * lib/unictype/scripts_byname.gperf: Regenerated.
52539         * lib/unictype/sy_java_ident.h: Regenerated.
52540         * lib/unilbrk/lbrkprop1.h: Regenerated.
52541         * lib/unilbrk/lbrkprop2.h: Regenerated.
52542         * tests/unictype/test-categ_C.c: Regenerated.
52543         * tests/unictype/test-categ_Cf.c: Regenerated.
52544         * tests/unictype/test-categ_Cn.c: Regenerated.
52545         * tests/unictype/test-categ_L.c: Regenerated.
52546         * tests/unictype/test-categ_Ll.c: Regenerated.
52547         * tests/unictype/test-categ_Lm.c: Regenerated.
52548         * tests/unictype/test-categ_Lo.c: Regenerated.
52549         * tests/unictype/test-categ_Lu.c: Regenerated.
52550         * tests/unictype/test-categ_M.c: Regenerated.
52551         * tests/unictype/test-categ_Mc.c: Regenerated.
52552         * tests/unictype/test-categ_Me.c: Regenerated.
52553         * tests/unictype/test-categ_Mn.c: Regenerated.
52554         * tests/unictype/test-categ_N.c: Regenerated.
52555         * tests/unictype/test-categ_Nd.c: Regenerated.
52556         * tests/unictype/test-categ_Nl.c: Regenerated.
52557         * tests/unictype/test-categ_No.c: Regenerated.
52558         * tests/unictype/test-categ_P.c: Regenerated.
52559         * tests/unictype/test-categ_Pd.c: Regenerated.
52560         * tests/unictype/test-categ_Pe.c: Regenerated.
52561         * tests/unictype/test-categ_Pf.c: Regenerated.
52562         * tests/unictype/test-categ_Pi.c: Regenerated.
52563         * tests/unictype/test-categ_Po.c: Regenerated.
52564         * tests/unictype/test-categ_Ps.c: Regenerated.
52565         * tests/unictype/test-categ_S.c: Regenerated.
52566         * tests/unictype/test-categ_Sk.c: Regenerated.
52567         * tests/unictype/test-categ_Sm.c: Regenerated.
52568         * tests/unictype/test-categ_So.c: Regenerated.
52569         * tests/unictype/test-ctype_alnum.c: Regenerated.
52570         * tests/unictype/test-ctype_alpha.c: Regenerated.
52571         * tests/unictype/test-ctype_graph.c: Regenerated.
52572         * tests/unictype/test-ctype_lower.c: Regenerated.
52573         * tests/unictype/test-ctype_print.c: Regenerated.
52574         * tests/unictype/test-ctype_punct.c: Regenerated.
52575         * tests/unictype/test-ctype_upper.c: Regenerated.
52576         * tests/unictype/test-decdigit.h: Regenerated.
52577         * tests/unictype/test-digit.h: Regenerated.
52578         * tests/unictype/test-numeric.h: Regenerated.
52579         * tests/unictype/test-pr_alphabetic.c: Regenerated.
52580         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
52581         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
52582         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
52583         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
52584         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
52585         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
52586         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
52587         * tests/unictype/test-pr_combining.c: Regenerated.
52588         * tests/unictype/test-pr_dash.c: Regenerated.
52589         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
52590         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
52591         * tests/unictype/test-pr_deprecated.c: Regenerated.
52592         * tests/unictype/test-pr_diacritic.c: Regenerated.
52593         * tests/unictype/test-pr_extender.c: Regenerated.
52594         * tests/unictype/test-pr_format_control.c: Regenerated.
52595         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
52596         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
52597         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
52598         * tests/unictype/test-pr_id_continue.c: Regenerated.
52599         * tests/unictype/test-pr_id_start.c: Regenerated.
52600         * tests/unictype/test-pr_ideographic.c: Regenerated.
52601         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
52602         * tests/unictype/test-pr_lowercase.c: Regenerated.
52603         * tests/unictype/test-pr_math.c: Regenerated.
52604         * tests/unictype/test-pr_numeric.c: Regenerated.
52605         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
52606         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
52607         Regenerated.
52608         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
52609         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
52610         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
52611         * tests/unictype/test-pr_other_math.c: Regenerated.
52612         * tests/unictype/test-pr_punctuation.c: Regenerated.
52613         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
52614         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
52615         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
52616         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
52617         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
52618         * tests/unictype/test-pr_uppercase.c: Regenerated.
52619         * tests/unictype/test-pr_xid_continue.c: Regenerated.
52620         * tests/unictype/test-pr_xid_start.c: Regenerated.
52621         * tests/unictype/test-pr_zero_width.c: Regenerated.
52622
52623         Update to Unicode 5.1.0.
52624         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
52625         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
52626         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
52627         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
52628         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
52629         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
52630         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
52631         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
52632         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
52633         (nonspacing_table_ind): Update.
52634         * tests/uniwidth/test-uc_width2.sh: Update expected result.
52635
52636         Update to Unicode 5.1.0.
52637         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
52638         code transform.
52639         * lib/uniname/uniname.c (unicode_character_name,
52640         unicode_name_character): Add the range 0x1Fxxx to the code transform.
52641         * lib/uniname/uninames.h: Regenerated.
52642         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
52643
52644 2009-02-07  Bruno Haible  <bruno@clisp.org>
52645
52646         Merge gen-ctype and gen-lbrk into a single program.
52647         * lib/gen-uni-tables.c: New file, incorporating
52648         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
52649         Add directory prefixes to the names of the generated files.
52650         * lib/unictype/gen-ctype.c: Remove file.
52651         * lib/unilbrk/gen-lbrk.c: Remove file.
52652         * modules/gen-uni-tables: New file.
52653         * modules/unictype/gen-ctype: Remove file.
52654         * modules/unilbrk/gen-lbrk: Remove file.
52655
52656 2009-02-07  Bruno Haible  <bruno@clisp.org>
52657
52658         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
52659
52660         New module 'unistr/u32-strcoll'.
52661         * modules/unistr/u32-strcoll: New file.
52662         * lib/unistr/u32-strcoll.c: New file.
52663
52664         New module 'unistr/u16-strcoll'.
52665         * modules/unistr/u16-strcoll: New file.
52666         * lib/unistr/u16-strcoll.c: New file.
52667
52668         New module 'unistr/u8-strcoll'.
52669         * modules/unistr/u8-strcoll: New file.
52670         * lib/unistr/u8-strcoll.c: New file.
52671         * lib/unistr/u-strcoll.h: New file.
52672
52673 2009-02-07  Bruno Haible  <bruno@clisp.org>
52674
52675         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
52676         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
52677         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
52678         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
52679         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
52680         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
52681
52682 2009-02-07  Bruno Haible  <bruno@clisp.org>
52683
52684         Make 64-bit clean.
52685         * lib/unictype/gen-ctype.c (output_predicate, output_category,
52686         output_combclass, output_bidi_category, output_decimal_digit,
52687         output_digit, output_numeric, output_mirror, output_scripts,
52688         output_ident_category): Use proper width specifier in format strings.
52689
52690 2009-02-07  Bruno Haible  <bruno@clisp.org>
52691
52692         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
52693         failure behaviour.
52694
52695 2009-02-07  Jim Meyering  <meyering@redhat.com>
52696
52697         regex: avoid compilation failure with upcoming gcc-4.4
52698         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
52699         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
52700         "... error: integer overflow in preprocessor expression".
52701
52702 2009-02-05  Ben Pfaff  <blp@gnu.org>
52703
52704         Fix link errors on Windows when close module is used.
52705         * modules/close: Add $(LIB_CLOSE) to Link section.
52706         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
52707         $(LIB_CLOSE) on Windows.
52708
52709 2009-02-05  Jim Meyering  <meyering@redhat.com>
52710
52711         still avoid unused-parameter warnings, but do it cleanly
52712         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
52713         (get_fs_usage): Cast to void instead.
52714         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
52715         (dev_from_mount_options, read_file_system_list): Cast to void.
52716         Prompted by Bruno Haible.
52717
52718 2009-02-04  Jim Meyering  <meyering@redhat.com>
52719
52720         fsusage.c: correct copyright year
52721         * lib/fsusage.c: Reflect year in which the change is pushed into
52722
52723         avoid misc. warnings
52724         * lib/fsusage.c (UNUSED_PARAM): Define.
52725         (get_fs_usage): Mark parameter "disk" as unused.
52726         * lib/getugroups.c (getgrent): Use "void" in prototype.
52727         * lib/mountlist.c: Mark unused parameters.
52728         (read_file_system_list): Declare a local with "const".
52729         * lib/nanosleep.c (getnow): Declare static.
52730         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
52731
52732         dirfd: set errno upon failure
52733         * lib/dirfd.c: Include <errno.h>.
52734         Set errno to ENOTSUP when returning -1.
52735         * modules/dirfd (Depends-on): Add errno.
52736         Suggested by John Kodis <kodis@comcast.net>.
52737
52738 2009-02-01  Bruno Haible  <bruno@clisp.org>
52739
52740         Don't assume sizeof (long) >= sizeof (void *).
52741         * lib/memcmp.c: Include stdint.h.
52742         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
52743         srcp2 to 'const byte *'.
52744         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
52745         types to uintptr_t.
52746         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
52747         * modules/memcmp (Depends-on): Add stdint.
52748         Reported by Ozkan Sezer <sezeroz@gmail.com>.
52749
52750 2009-01-30  Eric Blake  <ebb9@byu.net>
52751
52752         fix more require-before-expand issues
52753         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
52754         expand, AC_PROG_AWK.
52755         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
52756
52757 2009-01-28  Eric Blake  <ebb9@byu.net>
52758
52759         version-etc: use consistent URL formatting
52760         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
52761         Improve formatting.  Use fputs for string without %.
52762
52763 2009-01-28  Jim Meyering  <meyering@redhat.com>
52764
52765         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
52766         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
52767         "underquoted definition of NAME" from autoconf-2.59.
52768
52769 2009-01-28  Bruno Haible  <bruno@clisp.org>
52770
52771         * doc/gnulib.texi: Add "Obsolete modules" to index.
52772
52773 2009-01-28  Jim Meyering  <meyering@redhat.com>
52774
52775         useless-if-before-free: recognize more variants
52776         * build-aux/useless-if-before-free: Also recognize e.g.,
52777         if (NULL != p) free (p);
52778
52779 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
52780
52781         test-getaddrinfo: skip (don't fail) this test when there's no network
52782         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
52783         on the presumption that it means you lack network access.
52784
52785 2009-01-26  Jim Meyering  <meyering@redhat.com>
52786
52787         fflush: avoid warnings on modern systems
52788         * lib/fflush.c (rpl_fflush): Move declarations of locals,
52789         pos and result, into scopes where they're used.
52790
52791 2009-01-26  Eric Blake  <ebb9@byu.net>
52792
52793         Silence warning reintroduced by recent extensions patch.
52794         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
52795         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
52796         autoconf.
52797
52798         Backport improved autoconf semantics of AC_DEFUN_ONCE.
52799         * m4/00gnulib.m4: New file.
52800         * gnulib-tool (func_get_filelist): Always use it.
52801         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
52802         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
52803
52804 2009-01-25  Bruno Haible  <bruno@clisp.org>
52805
52806         Make test-quotearg work on MacOS X and AIX.
52807         * tests/test-quotearg.sh: New file.
52808         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
52809         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
52810         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
52811         include <libintl.h>.
52812         (fake_locale): Remove variable.
52813         (gettext, dgettext, dcgettext): Remove functions.
52814         (main): Instead of setting a fake locale, set a real locale. Call
52815         textdomain and bindtextdomain.
52816         * modules/quotearg-tests (Files): Add the new files.
52817         (Depends-on): Add gettext, setenv, unsetenv.
52818         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
52819         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
52820         Augment TESTS_ENVIRONMENT.
52821
52822 2009-01-25  Bruno Haible  <bruno@clisp.org>
52823
52824         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
52825         fr_FR.ISO8859-1 locale on MacOS X.
52826         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
52827         ja_JP.eucJP locale on MacOS X.
52828         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
52829         zh_CN.GB18030 locale on MacOS X.
52830
52831 2009-01-25  Bruno Haible  <bruno@clisp.org>
52832
52833         Avoid link errors on MacOS X 10.3.
52834         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
52835         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
52836
52837 2009-01-25  Bruno Haible  <bruno@clisp.org>
52838
52839         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
52840         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
52841         * modules/pipe (Files): Remove m4/posix_spawn.m4.
52842         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
52843         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
52844         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
52845         posix_spawnattr_init, posix_spawnattr_setsigmask,
52846         posix_spawnattr_setflags, posix_spawnattr_destroy.
52847
52848         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
52849         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
52850         * modules/execute (Files): Remove m4/posix_spawn.m4.
52851         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
52852         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
52853         posix_spawnattr_init, posix_spawnattr_setsigmask,
52854         posix_spawnattr_setflags, posix_spawnattr_destroy.
52855
52856 2009-01-25  Bruno Haible  <bruno@clisp.org>
52857
52858         * lib/glthread/threadlib.c: Include <stdlib.h>.
52859
52860 2009-01-25  Bruno Haible  <bruno@clisp.org>
52861
52862         * lib/glthread/threadlib.c (dummy): New declaration.
52863
52864 2009-01-25  Bruno Haible  <bruno@clisp.org>
52865
52866         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
52867         multibyte characters also for the GB18030 encoding. Don't crash when
52868         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
52869
52870 2009-01-25  Bruno Haible  <bruno@clisp.org>
52871
52872         Avoid redefining 'struct random_data' on OSF/1 5.1.
52873         * lib/stdlib.in.h: Include <random.h> if it exists.
52874         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
52875         HAVE_RANDOM_H. Include <random.h> when testing whether
52876         'struct random_data' exists.
52877         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
52878
52879 2009-01-25  Bruno Haible  <bruno@clisp.org>
52880
52881         Don't install charset.alias on MacOS X >= 10.3.
52882         * lib/localcharset.c (DARWIN7): New macro.
52883         (get_charset_aliases): Hardcode the result for Darwin7.
52884         * modules/localcharset (install-exec-local): Don't install
52885         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
52886
52887 2009-01-25  Bruno Haible  <bruno@clisp.org>
52888
52889         Don't install charset.alias on mingw and Cygwin.
52890         * modules/localcharset (install-exec-local): Don't install
52891         charset.alias on mingw and Cygwin, if the file does not yet exist.
52892         The result for these platforms is hardcoded in localcharset.c.
52893
52894 2009-01-25  Bruno Haible  <bruno@clisp.org>
52895
52896         Make it possible again to use AC_GNU_SOURCE together with gnulib.
52897         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
52898         before requiring AC_USE_SYSTEM_EXTENSIONS.
52899
52900 2009-01-25  Jim Meyering  <meyering@redhat.com>
52901
52902         c-strtod: avoid warnings
52903         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
52904         "assignment discards qualifiers from pointer target type" warnings.
52905
52906 2009-01-24  Bruno Haible  <bruno@clisp.org>
52907
52908         Add support for non-UTF-8 locales on MacOS X.
52909         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
52910         canonical encodings. For Darwin 7 and newer, don't map traditional
52911         encodings to UTF-8.
52912         Reported by Vincent Lefevre <vincent@vinc17.org>
52913         at <http://savannah.gnu.org/bugs/?25235>.
52914
52915 2009-01-24  Bruno Haible  <bruno@clisp.org>
52916
52917         * doc/gnulib.texi (Obsolete modules): New section.
52918         Reported by Mike Frysinger <vapier@gentoo.org>.
52919
52920 2009-01-24  Bruno Haible  <bruno@clisp.org>
52921
52922         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
52923         (%.dvi): New rule.
52924
52925 2009-01-24  Bruno Haible  <bruno@clisp.org>
52926
52927         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
52928         Reported by Eric Blake.
52929
52930 2009-01-24  Bruno Haible  <bruno@clisp.org>
52931
52932         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
52933         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
52934         Reported by Gary V. Vaughan <gary@gnu.org>.
52935
52936 2009-01-24  Bruno Haible  <bruno@clisp.org>
52937
52938         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
52939
52940 2009-01-23  Bruno Haible  <bruno@clisp.org>
52941
52942         Make c-strtod, c-strtold usable in libraries.
52943         * lib/c-strtod.c: Include string.h instead of xalloc.h.
52944         (C_STRTOD): Call strdup instead of xstrdup.
52945         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
52946         * modules/c-strtold (Depends-on): Likewise.
52947         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
52948         * NEWS: Mention the change.
52949         Reported by Michael Gold <mgold@ncf.ca>.
52950
52951 2009-01-23  Jim Meyering  <meyering@redhat.com>
52952
52953         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
52954         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
52955         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
52956
52957 2009-01-23  Simon Josefsson  <simon@josefsson.org>
52958
52959         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
52960         GNU CoreUtils.
52961         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
52962         * modules/version-etc (Description): Update.
52963
52964 2009-01-22  Bruno Haible  <bruno@clisp.org>
52965
52966         Cache the C locale object.
52967         * lib/c-strtod.c (c_locale_cache): New variable.
52968         (c_locale): New function.
52969         (C_STRTOD): Use it, and don't call freelocale.
52970         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
52971         Suggested by Paolo Bonzini.
52972
52973 2009-01-21  Bruno Haible  <bruno@clisp.org>
52974
52975         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
52976         conditions other than overflow.
52977
52978 2009-01-21  Bruno Haible  <bruno@clisp.org>
52979
52980         * lib/c-strtod.c: Include errno.h.
52981         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
52982         value from STRTOD_L and STRTOD.
52983
52984 2009-01-21  Bruno Haible  <bruno@clisp.org>
52985         and Jim Meyering  <meyering@redhat.com>
52986
52987         nanosleep: skip configure test (fail it) for apple universal builds
52988         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
52989         universal builds, assume that nanosleep does not work.
52990         * modules/nanosleep (Depends-on): Add multiarch.
52991
52992         mktime: skip configure test (fail it) for apple universal builds
52993         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
52994         universal builds, assume that mktime does not work.
52995         * modules/mktime (Depends-on): Add multiarch.
52996
52997 2009-01-21  Eric Blake  <ebb9@byu.net>
52998
52999         multiarch: avoid expand-before-require warning
53000         * modules/multiarch (configure.ac): Require, rather than expand,
53001         gl_MULTIARCH.
53002         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
53003         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
53004         enforce that all clients require it.  Partial reversion of
53005         2008-12-29 patch.
53006
53007         error: avoid expand-before-require warning
53008         * modules/errno (configure.ac): Require, rather than expand,
53009         gl_HEADER_ERRNO_H.
53010         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
53011         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
53012         enforce that all clients require it.
53013
53014         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
53015         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
53016         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
53017         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
53018
53019 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
53020
53021         Revert:
53022         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
53023
53024         regex: do not depend on obsolete modules.
53025         * modules/regex: Remove memcmp and memmove.
53026
53027 2009-01-20  Bruno Haible  <bruno@clisp.org>
53028
53029         Make the 'link' module link on Windows NT 4.
53030         * lib/link.c (_WIN32_WINNT): Don't define.
53031         (CreateHardLinkFuncType): New type.
53032         (CreateHardLinkFunc, initialized): New variables.
53033         (initialize): New function.
53034         (link): Invoke CreateHardLink indirectly through the function pointer.
53035
53036 2009-01-20  Bruno Haible  <bruno@clisp.org>
53037
53038         Fix compilation failure on mingw.
53039         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
53040
53041 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
53042
53043         * doc/c-strtod.texi: Mention a couple of restrictions.
53044
53045 2009-01-20  Jim Meyering  <meyering@redhat.com>
53046
53047         gettimeofday: move more declarations out of functions
53048         * lib/gettimeofday.c: Move extern declarations of tzset and
53049         gmtime out of containing functions.  Prompted by Bruno Haible.
53050
53051 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
53052
53053         regex: do not depend on obsolete modules.
53054         * modules/regex: Remove memcmp and memmove.
53055
53056 2009-01-19  Bruno Haible  <bruno@clisp.org>
53057
53058         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
53059         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
53060         gl_BIGENDIAN, not AC_C_BIGENDIAN.
53061         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
53062         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
53063
53064 2009-01-19  Bruno Haible  <bruno@clisp.org>
53065
53066         * tests/test-link.c: Include <errno.h>.
53067         (main): Exit with code 77 when a hard link cannot be created due to
53068         the file system.
53069         * tests/test-link.sh: Skip test when a hard link cannot be created due
53070         to the file system.
53071         Suggested by Eric Blake.
53072
53073 2009-01-19  Martin Lambers  <marlam@marlam.de>
53074
53075         * modules/link-tests: New file.
53076         * tests/test-link.sh: New file.
53077         * tests/test-link.c: New file.
53078
53079 2009-01-19  Eric Blake  <ebb9@byu.net>
53080
53081         doc: mention another function added in cygwin 1.7.0
53082         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
53083         Another new function in cygwin 1.7.
53084
53085 2009-01-19  Bruno Haible  <bruno@clisp.org>
53086
53087         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
53088         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
53089         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
53090         gl_BIGENDIAN, not AC_C_BIGENDIAN.
53091         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
53092         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
53093         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
53094         * m4/md4.m4 (gl_MD4): Likewise.
53095         * m4/md5.m4 (gl_MD5): Likewise.
53096         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
53097         * m4/sha1.m4 (gl_SHA1): Likewise.
53098         * m4/sha256.m4 (gl_SHA256): Likewise.
53099         * m4/sha512.m4 (gl_SHA512): Likewise.
53100
53101 2009-01-19  Bruno Haible  <bruno@clisp.org>
53102
53103         * modules/uniname/uniname-tests (Depends-on): Add progname.
53104         * tests/uniname/test-uninames.c: Include progname.h.
53105         (main): Call set_program_name.
53106
53107         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
53108         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
53109         (main): Call set_program_name.
53110
53111         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
53112         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
53113         (main): Call set_program_name.
53114
53115         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
53116         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
53117         (main): Call set_program_name.
53118
53119         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
53120         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
53121         (main): Call set_program_name.
53122
53123         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
53124         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
53125         (main): Call set_program_name.
53126
53127         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
53128         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
53129         (main): Call set_program_name.
53130
53131         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
53132         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
53133         (main): Call set_program_name.
53134
53135         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
53136         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
53137         (main): Call set_program_name.
53138
53139 2009-01-19  Eric Blake  <ebb9@byu.net>
53140
53141         test-unistd: test previous patch
53142         * tests/test-unistd.c: Test *_FILENO macros.
53143
53144         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
53145         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
53146         Guarantee a definition.
53147         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
53148         * modules/unistd-safer (Depends-on): Add dependency on unistd.
53149         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
53150         * lib/dup-safer.c (STDERR_FILENO): Likewise.
53151         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
53152         Likewise.
53153         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
53154         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
53155         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
53156         Likewise.
53157         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
53158         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
53159         (STDERR_FILENO): Likewise.
53160         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
53161         (STDERR_FILENO): Likewise.
53162         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
53163         (STDERR_FILENO): Likewise.
53164         Reported by Elbert Pol.
53165
53166 2009-01-19  Eric Blake  <ebb9@byu.net>
53167
53168         doc: mention more functions added in cygwin 1.7.0
53169         * doc/posix-functions/abort.texi (abort): Update wording related
53170         to cygwin.
53171         * doc/posix-functions/daylight.texi (daylight): Likewise.
53172         * doc/posix-functions/optarg.texi (optarg): Likewise.
53173         * doc/posix-functions/optarg.texi (opterr): Likewise.
53174         * doc/posix-functions/optarg.texi (optind): Likewise.
53175         * doc/posix-functions/optarg.texi (optopt): Likewise.
53176         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
53177         worked in 1.5.x, and was withdrawn in 1.7.
53178         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
53179         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
53180         cygwin versions.
53181         * doc/posix-functions/perror.texi (perror): Likewise.
53182         * doc/posix-functions/printf.texi (printf): Likewise.
53183         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
53184         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
53185         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
53186         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
53187         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
53188         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
53189         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
53190         Likewise.
53191         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
53192         Likewise.
53193         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
53194         this function.
53195         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
53196         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
53197         Likewise.
53198         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
53199         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
53200         * doc/posix-functions/confstr.texi (confstr): Likewise.
53201         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
53202         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
53203         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
53204         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
53205         * doc/posix-functions/fputws.texi (fputws): Likewise.
53206         * doc/posix-functions/fwide.texi (fwide): Likewise.
53207         * doc/posix-functions/getwc.texi (getwc): Likewise.
53208         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
53209         * doc/posix-functions/putwc.texi (putwc): Likewise.
53210         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
53211         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
53212         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
53213         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
53214         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
53215         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
53216         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
53217         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
53218         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
53219         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
53220         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
53221
53222 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
53223
53224         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
53225         * lib/ioctl.c: Include <sys/ioctl.h>.
53226
53227 2009-01-19  Simon Josefsson  <simon@josefsson.org>
53228
53229         * modules/getdate-tests (Depends-on): Add progname.
53230         * tests/test-getdate.c: Use progname module, to avoid link errors
53231         on non-glibc systems.
53232
53233 2009-01-18  Simon Josefsson  <simon@josefsson.org>
53234
53235         * modules/filenamecat-tests (Depends-on): Add progname.
53236         * modules/fstrcmp-tests (Depends-on): Likewise.
53237
53238         * tests/test-filenamecat.c: Use progname module, to avoid link
53239         errors on non-glibc systems.
53240         * tests/test-fstrcmp.c: Likewise.
53241
53242 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
53243
53244         gettimeofday: avoid warning: nested extern declaration of 'localtime'
53245         * lib/gettimeofday.c: Move extern declaration out of function.
53246
53247 2009-01-18  Bruno Haible  <bruno@clisp.org>
53248
53249         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
53250         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
53251         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
53252
53253 2009-01-18  Bruno Haible  <bruno@clisp.org>
53254
53255         * lib/strftime.c (MEMPCPY): Remove unused macro.
53256         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
53257
53258 2009-01-18  Martin Lambers  <marlam@marlam.de>
53259
53260         New module 'link'.
53261         * lib/unistd.in.h (link): New declaration.
53262         * lib/link.c: New file.
53263         * m4/link.m4: New file.
53264         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
53265         HAVE_LINK.
53266         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
53267         * modules/link: New file.
53268         * doc/posix-functions/link.texi: Mention the new module.
53269
53270 2009-01-18  Bruno Haible  <bruno@clisp.org>
53271
53272         * tests/test-avltree_list.c (main): Call set_program_name.
53273         * tests/test-avltree_oset.c (main): Likewise.
53274         * tests/test-obstack-printf.c: Include progname.h.
53275         (main): Call set_program_name.
53276         * tests/test-quotearg.c: Include progname.h.
53277         (main): Call set_program_name.
53278         * tests/test-xmemdup0.c: Include progname.h.
53279         (main): Call set_program_name.
53280
53281 2009-01-18  Bruno Haible  <bruno@clisp.org>
53282
53283         New module 'alphasort'.
53284         * lib/dirent.in.h (alphasort): New declaration.
53285         * lib/alphasort.c: New file, from glibc with modifications.
53286         * m4/alphasort.m4: New file.
53287         * modules/alphasort: New file.
53288         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
53289         HAVE_ALPHASORT.
53290         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
53291         HAVE_ALPHASORT.
53292         * doc/posix-functions/alphasort.texi: Mention the new module and the
53293         portability problems.
53294
53295 2009-01-18  Bruno Haible  <bruno@clisp.org>
53296
53297         New module 'scandir'.
53298         * lib/dirent.in.h (scandir): New declaration.
53299         * lib/scandir.c: New file, from glibc with modifications.
53300         * m4/scandir.m4: New file.
53301         * modules/scandir: New file.
53302         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
53303         HAVE_SCANDIR.
53304         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
53305         HAVE_SCANDIR.
53306         * doc/posix-functions/scandir.texi: Mention the new module and the
53307         portability problems.
53308
53309 2009-01-17  Bruno Haible  <bruno@clisp.org>
53310
53311         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
53312         Update documentation.
53313         (func_remove_suffix): Escape all dots in the suffix. Update
53314         documentation.
53315         (func_filter_filelist): Update documentation.
53316         Reported by Ralf Wildenhues.
53317
53318 2009-01-17  Bruno Haible  <bruno@clisp.org>
53319
53320         * modules/dprintf-posix-tests: New file.
53321         * tests/test-dprintf-posix.sh: New file.
53322         * tests/test-dprintf-posix.c: New file.
53323
53324         New modules 'dprintf', 'dprintf-posix'.
53325         * lib/stdio.in.h (dprintf): New declaration.
53326         * lib/dprintf.c: New file.
53327         * m4/dprintf.m4: New file.
53328         * m4/dprintf-posix.m4: New file.
53329         * modules/dprintf: New file.
53330         * modules/dprintf-posix: New file.
53331         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
53332         HAVE_DPRINTF, REPLACE_DPRINTF.
53333         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
53334         HAVE_DPRINTF, REPLACE_DPRINTF.
53335         * doc/posix-functions/dprintf.texi: Mention the new modules.
53336
53337 2009-01-17  Bruno Haible  <bruno@clisp.org>
53338
53339         * modules/vdprintf-posix-tests: New file.
53340         * tests/test-vdprintf-posix.sh: New file.
53341         * tests/test-vdprintf-posix.c: New file.
53342
53343         New modules 'vdprintf', 'vdprintf-posix'.
53344         * lib/stdio.in.h (vdprintf): New declaration.
53345         * lib/vdprintf.c: New file.
53346         * m4/vdprintf.m4: New file.
53347         * m4/vdprintf-posix.m4: New file.
53348         * modules/vdprintf: New file.
53349         * modules/vdprintf-posix: New file.
53350         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
53351         HAVE_VDPRINTF, REPLACE_VDPRINTF.
53352         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
53353         HAVE_VDPRINTF, REPLACE_VDPRINTF.
53354         * doc/posix-functions/vdprintf.texi: Mention the new modules.
53355
53356 2009-01-17  Bruno Haible  <bruno@clisp.org>
53357
53358         Fix replacement of fopen on mingw.
53359         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
53360         mingw.
53361
53362 2009-01-17  Bruno Haible  <bruno@clisp.org>
53363
53364         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
53365         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
53366
53367 2009-01-17  Bruno Haible  <bruno@clisp.org>
53368
53369         Avoid test-fflush2.sh failure on mingw.
53370         * tests/test-fflush2.c: Include binary-io.h.
53371         (main): Put standard input into binary mode.
53372         * modules/fflush-tests (Depends-on): Add binary-io.
53373
53374 2009-01-17  Bruno Haible  <bruno@clisp.org>
53375
53376         * lib/wchar.in.h: In another particular situation, include only the
53377         system's <wchar.h> file.
53378         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
53379         Reported by Albert Chin-A-Young <china@thewrittenword.com>
53380         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
53381
53382 2009-01-17  Bruno Haible  <bruno@clisp.org>
53383
53384         Support for stripping executables in --enable-relocatable.
53385         * build-aux/install-reloc: Expect one more argument, or an environment
53386         variable RELOC_STRIP_PROG. If set, strip the destination program and
53387         its wrapper.
53388         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
53389         RELOC_STRIP_PROG.
53390         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
53391         to set RELOCATABLE_STRIP.
53392         * NEWS: Mention the new Makefile requirement.
53393
53394 2009-01-17  Bruno Haible  <bruno@clisp.org>
53395
53396         * build-aux/install-reloc: Remove debugging information left over by
53397         C compiler on MacOS X.
53398
53399 2009-01-17  Bruno Haible  <bruno@clisp.org>
53400
53401         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
53402         * lib/progreloc.c (find_executable): Fix type of pointer passed to
53403         _NSGetExecutablePath.
53404
53405 2009-01-16  Jim Meyering  <meyering@redhat.com>
53406
53407         strerror: avoid warnings about discarding "const"
53408         * lib/strerror.c (rpl_strerror): Instead of returning a const
53409         string from each and every "case", use a variable, and add a single
53410         cast after the switch.
53411
53412 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
53413
53414         * lib/arpa_inet.in.h: Add extern "C" block for C++.
53415
53416 2009-01-16  Bruno Haible  <bruno@clisp.org>
53417
53418         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
53419         array initializer syntax that also works in C++ mode.
53420         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53421
53422 2009-01-16  Jim Meyering  <meyering@redhat.com>
53423
53424         poll: suppress a warning
53425         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
53426         to ignore "...unsigned expression < 0 is always false" warnings.
53427
53428 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
53429
53430         poll: remove declarations of unused variables
53431         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
53432         sockbuf and optlen.
53433
53434 2009-01-15  Bruno Haible  <bruno@clisp.org>
53435
53436         Make fflush-after-ungetc POSIX compliant on BSD systems.
53437         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
53438         (clear_ungetc_buffer): Implement also for other systems.
53439         (rpl_fflush): On glibc systems, invoke
53440         clear_ungetc_buffer_preserving_position. Otherwise, invoke
53441         clear_ungetc_buffer after fetching the stream's position, not before.
53442
53443 2009-01-15  Bruno Haible  <bruno@clisp.org>
53444
53445         Make fflush-after-ungetc POSIX compliant on glibc systems.
53446         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
53447         after ungetc.
53448         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
53449         (rpl_fflush): On glibc systems, simply call the system's fflush
53450         function after clearing the ungetc buffer.
53451         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
53452         Instead, lseek only to the end of file, then use the system's fseeko
53453         for the rest. On glibc systems, reset the EOF indicator bit.
53454
53455 2009-01-15  Jim Meyering  <meyering@redhat.com>
53456
53457         openmp.m4: revert quote-adding change, for portability to older autoconf
53458         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
53459         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
53460         Simon Josefsson noticed the problem when using autoconf-2.61.
53461
53462 2009-01-15  Bruno Haible  <bruno@clisp.org>
53463
53464         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
53465         * tests/test-fflush2.c (ASSERT): Always fail.
53466         (main): Add two tests for fflush() after ungetc(), taking into account
53467         the Austin Group's clarification.
53468         Suggested by Eric Blake.
53469
53470 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
53471
53472         mktime.m4: remove K&R-style function prototypes
53473         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
53474         for the Sun C++ compiler.
53475
53476 2009-01-14  Bruno Haible  <bruno@clisp.org>
53477
53478         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
53479         while including <wchar.h>.
53480         * lib/wchar.in.h: In two particular situations on HP-UX, include only
53481         the system's <wchar.h> file.
53482         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53483
53484 2009-01-14  Bruno Haible  <bruno@clisp.org>
53485
53486         * m4/csharp.m4: Don't mention gettext on the serial number line.
53487         * m4/csharpexec.m4: Likewise.
53488         * m4/eaccess.m4: Likewise.
53489         * m4/javaexec.m4: Likewise.
53490         * m4/sig_atomic_t.m4: Likewise.
53491         * m4/tmpdir.m4: Likewise.
53492         * m4/intldir.m4: Bump gettext version.
53493         * m4/lib-ld.m4: Likewise.
53494
53495 2009-01-14  Bruno Haible  <bruno@clisp.org>
53496
53497         * lib/progname.c (set_program_name): Add more comments.
53498         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
53499
53500 2009-01-14  Simon Josefsson  <simon@josefsson.org>
53501
53502         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
53503         were sys/stat.h does not define it.
53504
53505 2009-01-14  Jim Meyering  <meyering@redhat.com>
53506
53507         many *.m4 files: improve m4 quoting
53508         99% of this change was performed by running the following commands:
53509         git ls-files | grep '\.m4$' | xargs perl -pi \
53510           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
53511           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
53512           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
53513           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
53514         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
53515         The remainder were to add Copyright dates, increment serial numbers,
53516         undo some changes in comments, exclude m4/intl.m4, and add quotes
53517         around the "1" in ",1" where the unusual spacing prohibited the
53518         above regexps from doing the job.  For more details, see
53519         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
53520         * m4/acl.m4: Modified.
53521         * m4/afs.m4: Likewise.
53522         * m4/alloca.m4: Likewise.
53523         * m4/argp.m4: Likewise.
53524         * m4/argz.m4: Likewise.
53525         * m4/atexit.m4: Likewise.
53526         * m4/bison-i18n.m4: Likewise.
53527         * m4/bison.m4: Likewise.
53528         * m4/byteswap.m4: Likewise.
53529         * m4/c-stack.m4: Likewise.
53530         * m4/c-strtod.m4: Likewise.
53531         * m4/calloc.m4: Likewise.
53532         * m4/canonicalize-lgpl.m4: Likewise.
53533         * m4/chown.m4: Likewise.
53534         * m4/clock_time.m4: Likewise.
53535         * m4/codeset.m4: Likewise.
53536         * m4/copy-file.m4: Likewise.
53537         * m4/csharp.m4: Likewise.
53538         * m4/csharpcomp.m4: Likewise.
53539         * m4/csharpexec.m4: Likewise.
53540         * m4/d-ino.m4: Likewise.
53541         * m4/d-type.m4: Likewise.
53542         * m4/dirfd.m4: Likewise.
53543         * m4/double-slash-root.m4: Likewise.
53544         * m4/eaccess.m4: Likewise.
53545         * m4/eealloc.m4: Likewise.
53546         * m4/environ.m4: Likewise.
53547         * m4/errno_h.m4: Likewise.
53548         * m4/euidaccess.m4: Likewise.
53549         * m4/execute.m4: Likewise.
53550         * m4/fatal-signal.m4: Likewise.
53551         * m4/fchdir.m4: Likewise.
53552         * m4/fcntl_h.m4: Likewise.
53553         * m4/fileblocks.m4: Likewise.
53554         * m4/filenamecat.m4: Likewise.
53555         * m4/findprog.m4: Likewise.
53556         * m4/flexmember.m4: Likewise.
53557         * m4/fnmatch.m4: Likewise.
53558         * m4/fopen.m4: Likewise.
53559         * m4/fpending.m4: Likewise.
53560         * m4/fprintf-posix.m4: Likewise.
53561         * m4/free.m4: Likewise.
53562         * m4/frexp.m4: Likewise.
53563         * m4/frexpl.m4: Likewise.
53564         * m4/fsusage.m4: Likewise.
53565         * m4/ftruncate.m4: Likewise.
53566         * m4/gc-camellia.m4: Likewise.
53567         * m4/gc-random.m4: Likewise.
53568         * m4/gc.m4: Likewise.
53569         * m4/getaddrinfo.m4: Likewise.
53570         * m4/getcwd-abort-bug.m4: Likewise.
53571         * m4/getcwd-path-max.m4: Likewise.
53572         * m4/getdate.m4: Likewise.
53573         * m4/getdomainname.m4: Likewise.
53574         * m4/getgroups.m4: Likewise.
53575         * m4/gethostname.m4: Likewise.
53576         * m4/gethrxtime.m4: Likewise.
53577         * m4/getline.m4: Likewise.
53578         * m4/getloadavg.m4: Likewise.
53579         * m4/getndelim2.m4: Likewise.
53580         * m4/getpass.m4: Likewise.
53581         * m4/gettext.m4: Likewise.
53582         * m4/gettime.m4: Likewise.
53583         * m4/gettimeofday.m4: Likewise.
53584         * m4/gnulib-common.m4: Likewise.
53585         * m4/group-member.m4: Likewise.
53586         * m4/host-os.m4: Likewise.
53587         * m4/iconv.m4: Likewise.
53588         * m4/iconv_open.m4: Likewise.
53589         * m4/inet_ntop.m4: Likewise.
53590         * m4/inet_pton.m4: Likewise.
53591         * m4/inline.m4: Likewise.
53592         * m4/intldir.m4: Likewise.
53593         * m4/intlmacosx.m4: Likewise.
53594         * m4/intmax.m4: Likewise.
53595         * m4/intmax_t.m4: Likewise.
53596         * m4/inttypes.m4: Likewise.
53597         * m4/inttypes_h.m4: Likewise.
53598         * m4/inttypes-pri.m4: Likewise.
53599         * m4/isapipe.m4: Likewise.
53600         * m4/isnand.m4: Likewise.
53601         * m4/isnanf.m4: Likewise.
53602         * m4/isnanl.m4: Likewise.
53603         * m4/javacomp.m4: Likewise.
53604         * m4/javaexec.m4: Likewise.
53605         * m4/jm-winsz1.m4: Likewise.
53606         * m4/jm-winsz2.m4: Likewise.
53607         * m4/lchown.m4: Likewise.
53608         * m4/lcmessage.m4: Likewise.
53609         * m4/ldexpl.m4: Likewise.
53610         * m4/lib-ld.m4: Likewise.
53611         * m4/lib-link.m4: Likewise.
53612         * m4/libsigsegv.m4: Likewise.
53613         * m4/link-follow.m4: Likewise.
53614         * m4/localcharset.m4: Likewise.
53615         * m4/locale-fr.m4: Likewise.
53616         * m4/locale-ja.m4: Likewise.
53617         * m4/locale-tr.m4: Likewise.
53618         * m4/locale-zh.m4: Likewise.
53619         * m4/lock.m4: Likewise.
53620         * m4/longlong.m4: Likewise.
53621         * m4/ls-mntd-fs.m4: Likewise.
53622         * m4/lstat.m4: Likewise.
53623         * m4/malloc.m4: Likewise.
53624         * m4/mathl.m4: Likewise.
53625         * m4/mbrtowc.m4: Likewise.
53626         * m4/mbstate_t.m4: Likewise.
53627         * m4/mbswidth.m4: Likewise.
53628         * m4/memchr.m4: Likewise.
53629         * m4/memcmp.m4: Likewise.
53630         * m4/memcpy.m4: Likewise.
53631         * m4/memmem.m4: Likewise.
53632         * m4/memmove.m4: Likewise.
53633         * m4/mempcpy.m4: Likewise.
53634         * m4/memrchr.m4: Likewise.
53635         * m4/memset.m4: Likewise.
53636         * m4/minmax.m4: Likewise.
53637         * m4/mkdir-slash.m4: Likewise.
53638         * m4/mkdtemp.m4: Likewise.
53639         * m4/mktime.m4: Likewise.
53640         * m4/mmap-anon.m4: Likewise.
53641         * m4/mountlist.m4: Likewise.
53642         * m4/nanosleep.m4: Likewise.
53643         * m4/nls.m4: Likewise.
53644         * m4/nocrash.m4: Likewise.
53645         * m4/open.m4: Likewise.
53646         * m4/openat.m4: Likewise.
53647         * m4/openmp.m4: Likewise.
53648         * m4/pathmax.m4: Likewise.
53649         * m4/perl.m4: Likewise.
53650         * m4/physmem.m4: Likewise.
53651         * m4/pipe.m4: Likewise.
53652         * m4/po.m4: Likewise.
53653         * m4/poll.m4: Likewise.
53654         * m4/posixtm.m4: Likewise.
53655         * m4/posixver.m4: Likewise.
53656         * m4/printf-frexp.m4: Likewise.
53657         * m4/printf-frexpl.m4: Likewise.
53658         * m4/printf-posix.m4: Likewise.
53659         * m4/printf-posix-rpl.m4: Likewise.
53660         * m4/printf.m4: Likewise.
53661         * m4/progtest.m4: Likewise.
53662         * m4/putenv.m4: Likewise.
53663         * m4/readline.m4: Likewise.
53664         * m4/readlink.m4: Likewise.
53665         * m4/readutmp.m4: Likewise.
53666         * m4/realloc.m4: Likewise.
53667         * m4/regex.m4: Likewise.
53668         * m4/relocatable.m4: Likewise.
53669         * m4/relocatable-lib.m4: Likewise.
53670         * m4/rename-dest-slash.m4: Likewise.
53671         * m4/rename.m4: Likewise.
53672         * m4/rmdir-errno.m4: Likewise.
53673         * m4/rmdir.m4: Likewise.
53674         * m4/roundf.m4: Likewise.
53675         * m4/roundl.m4: Likewise.
53676         * m4/rpmatch.m4: Likewise.
53677         * m4/save-cwd.m4: Likewise.
53678         * m4/selinux-selinux-h.m4: Likewise.
53679         * m4/setenv.m4: Likewise.
53680         * m4/settime.m4: Likewise.
53681         * m4/sig2str.m4: Likewise.
53682         * m4/sig_atomic_t.m4: Likewise.
53683         * m4/signalblocking.m4: Likewise.
53684         * m4/signbit.m4: Likewise.
53685         * m4/sigpipe.m4: Likewise.
53686         * m4/sockets.m4: Likewise.
53687         * m4/sockpfaf.m4: Likewise.
53688         * m4/st_dm_mode.m4: Likewise.
53689         * m4/stat-time.m4: Likewise.
53690         * m4/stdbool.m4: Likewise.
53691         * m4/stdint.m4: Likewise.
53692         * m4/stdint_h.m4: Likewise.
53693         * m4/stpcpy.m4: Likewise.
53694         * m4/stpncpy.m4: Likewise.
53695         * m4/strcase.m4: Likewise.
53696         * m4/strchrnul.m4: Likewise.
53697         * m4/strcspn.m4: Likewise.
53698         * m4/strdup.m4: Likewise.
53699         * m4/strftime.m4: Likewise.
53700         * m4/strndup.m4: Likewise.
53701         * m4/strnlen.m4: Likewise.
53702         * m4/strpbrk.m4: Likewise.
53703         * m4/strptime.m4: Likewise.
53704         * m4/strsep.m4: Likewise.
53705         * m4/strtod.m4: Likewise.
53706         * m4/strtoimax.m4: Likewise.
53707         * m4/strtok_r.m4: Likewise.
53708         * m4/strtol.m4: Likewise.
53709         * m4/strtoll.m4: Likewise.
53710         * m4/strtoul.m4: Likewise.
53711         * m4/strtoull.m4: Likewise.
53712         * m4/strtoumax.m4: Likewise.
53713         * m4/strverscmp.m4: Likewise.
53714         * m4/threadlib.m4: Likewise.
53715         * m4/timegm.m4: Likewise.
53716         * m4/tm_gmtoff.m4: Likewise.
53717         * m4/tmpdir.m4: Likewise.
53718         * m4/tmpfile.m4: Likewise.
53719         * m4/tzset.m4: Likewise.
53720         * m4/uintmax_t.m4: Likewise.
53721         * m4/unlinkdir.m4: Likewise.
53722         * m4/unlocked-io.m4: Likewise.
53723         * m4/uptime.m4: Likewise.
53724         * m4/userspec.m4: Likewise.
53725         * m4/utimbuf.m4: Likewise.
53726         * m4/utime.m4: Likewise.
53727         * m4/utimes-null.m4: Likewise.
53728         * m4/utimes.m4: Likewise.
53729         * m4/vararrays.m4: Likewise.
53730         * m4/vasnprintf.m4: Likewise.
53731         * m4/vfprintf-posix.m4: Likewise.
53732         * m4/vprintf-posix.m4: Likewise.
53733         * m4/wait-process.m4: Likewise.
53734         * m4/wchar_t.m4: Likewise.
53735         * m4/wint_t.m4: Likewise.
53736         * m4/write-any-file.m4: Likewise.
53737         * m4/yield.m4: Likewise.
53738
53739 2009-01-13  Bruno Haible  <bruno@clisp.org>
53740
53741         Avoid test-copy-file.sh failures when ACL support insufficient.
53742         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
53743         TESTS_ENVIRONMENT.
53744         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
53745         Reported by Jim Meyering.
53746
53747 2009-01-13  Bruno Haible  <bruno@clisp.org>
53748
53749         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
53750         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
53751         * modules/unistdio/u8-printf-parse (Files): Likewise.
53752         * modules/unistdio/u32-printf-parse (Files): Likewise.
53753         * modules/unistdio/ulc-printf-parse (Files): Likewise.
53754
53755 2009-01-13  Simon Josefsson  <simon@josefsson.org>
53756
53757         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
53758         and m4/inttypes_h.m4 too.
53759
53760 2009-01-12  Eric Blake  <ebb9@byu.net>
53761
53762         tests: IRIX 6.2 cc can't compile -0.0 into .data
53763         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
53764         rather than at compile-time.
53765         * tests/test-floorl.c (minus_zero): Likewise.
53766         * tests/test-frexpl.c (minus_zero): Likewise.
53767         * tests/test-isnan.c (minus_zerol): Likewise.
53768         * tests/test-isnanl.h (minus_zero): Likewise.
53769         * tests/test-ldexpl.c (minus_zero): Likewise.
53770         * tests/test-roundl.c (minus_zero): Likewise.
53771         * tests/test-signbit.c (minus_zerol): Likewise.
53772         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
53773         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
53774         * tests/test-truncl.c (minus_zero): Likewise.
53775         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
53776         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
53777         Reported by Tom G. Christensen and Nelson H. F. Beebe.
53778
53779 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
53780
53781         regex: fix glibc bug 9697
53782         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
53783         handling.
53784
53785 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
53786
53787         regex: fix glibc bug 697
53788         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
53789         being NULL also if there are no backreferences.
53790
53791 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
53792
53793         regex: merge glibc changes
53794         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
53795         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
53796         re_string_skip_chars, re_string_reconstruct): Likewise.
53797         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
53798
53799 2009-01-07  Jim Meyering  <meyering@redhat.com>
53800
53801         poll: filter through cppi
53802         * lib/poll.c: Indent cpp directives to reflect nesting.
53803
53804 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
53805
53806         poll: don't return uninitialized
53807         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
53808
53809 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
53810
53811         avoid compile failure on AIX 6.1
53812         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
53813         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
53814
53815 2009-01-04  Jim Meyering  <meyering@redhat.com>
53816
53817         remove duplicate inclusion of <stdio.h>
53818         * tests/test-fprintf-posix.c: Likewise.
53819         * tests/test-printf-posix.c: Likewise.
53820         * tests/test-snprintf-posix.c: Likewise.
53821         * tests/test-sprintf-posix.c: Likewise.
53822         * tests/test-vasprintf-posix.c: Likewise.
53823         * tests/test-vfprintf-posix.c: Likewise.
53824         * tests/test-vprintf-posix.c: Likewise.
53825         * tests/test-vsnprintf-posix.c: Likewise.
53826         * tests/test-vsprintf-posix.c: Likewise.
53827
53828 2009-01-03  Jim Meyering  <meyering@redhat.com>
53829
53830         gnulib-tool: fix sed-based filtering
53831         * gnulib-tool (func_filter_filelist): Remove extra backslash
53832         in sed_fff_filter definition.
53833
53834 2009-01-02  Jim Meyering  <meyering@redhat.com>
53835
53836         strftime: avoid compilation failure on Solaris 2.6
53837         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
53838         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
53839         Don't #define mbrlen or mbsinit, since now they're guaranteed to
53840         be available.  Reported by Tom G. Christensen.  Details in
53841         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
53842
53843 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53844             Bruno Haible  <bruno@clisp.org>
53845
53846         Speed up gnulib-tool by doing more string processing through shell
53847         built-ins.
53848         * gnulib-tool (fast_func_append): New variable.
53849         (func_remove_prefix, func_remove_suffix): New functions.
53850         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
53851         (func_filter_filelist): New function.
53852         (func_get_dependencies): Use func_remove_suffix instead of sed.
53853         (func_get_automake_snippet): Use func_filter_filelist instead of a
53854         subshell and sed invocation.
53855
53856 2009-01-01  Bruno Haible  <bruno@clisp.org>
53857
53858         Fix a security bug.
53859         * gnulib-tool (func_import, import, update): Don't allow the characters
53860         '"', '$', '`', '\' in macro arguments that become part of commands that
53861         are evaluated.
53862
53863 2009-01-01  Bruno Haible  <bruno@clisp.org>
53864
53865         * gnulib-tool (func_reset_sigpipe): Add more comments.
53866
53867 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53868
53869         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
53870         func_emit_tests_Makefile_am, func_import): Abort loops early if we
53871         already know the answer.
53872
53873 2009-01-01  Jim Meyering  <meyering@redhat.com>
53874
53875         * lib/version-etc.c (version_etc_va): Update copyright year.
53876
53877 2008-12-30  Bruno Haible  <bruno@clisp.org>
53878
53879         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
53880         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
53881         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
53882
53883 2008-12-29  Eric Blake  <ebb9@byu.net>
53884
53885         multiarch: avoid autoconf AC_REQUIRE bug
53886         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
53887         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
53888         2.63 and older.
53889         Reported by Bruno Haible, and analyzed in
53890         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
53891
53892 2008-12-29  Bruno Haible  <bruno@clisp.org>
53893
53894         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
53895         files in subdirectories correctly.
53896         Reported by Ralf Wildenhues.
53897
53898 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53899
53900         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
53901         rather than 'join FILE -', for Solaris join.
53902
53903 2008-12-29  Bruno Haible  <bruno@clisp.org>
53904
53905         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
53906         quoting.
53907         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
53908         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
53909         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
53910         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
53911         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
53912         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
53913         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
53914         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
53915         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
53916         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
53917         * m4/nls.m4 (AM_NLS): Likewise.
53918         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
53919         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
53920         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
53921         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
53922         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
53923         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
53924         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
53925         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
53926         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
53927         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
53928         * m4/xsize.m4 (gl_XSIZE): Likewise.
53929         Suggested by Jim Meyering.
53930
53931 2008-11-17  Bruce Korb  <bkorb@gnu.org>
53932
53933         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
53934         * lib/parse-duration.c: use a switch instead of cascading if's.
53935
53936 2008-12-29  Eric Blake  <ebb9@byu.net>
53937
53938         wchar.h: supply WEOF on Irix 5.3
53939         * lib/wchar.in.h (wint_t): Also supply WEOF.
53940         * lib/wctype.in.h (wint_t): Likewise.
53941         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
53942         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
53943         Reported by Tom G. Christensen.
53944
53945 2008-12-26  Bruno Haible  <bruno@clisp.org>
53946
53947         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
53948         i486, i586, i686.
53949
53950 2008-12-26  Bruno Haible  <bruno@clisp.org>
53951
53952         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
53953
53954 2008-12-26  Bruno Haible  <bruno@clisp.org>
53955
53956         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
53957         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
53958         not __STDC_CONSTANT_MACROS.
53959         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
53960
53961 2008-12-25  Bruno Haible  <bruno@clisp.org>
53962
53963         Add support for universal builds to vasnprintf.
53964         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
53965         universal builds, guess no.
53966         * modules/vasnprintf-posix (Depends-on): Add multiarch.
53967         * modules/vasprintf-posix (Depends-on): Likewise.
53968         * modules/fprintf-posix (Depends-on): Likewise.
53969         * modules/vfprintf-posix (Depends-on): Likewise.
53970         * modules/snprintf-posix (Depends-on): Likewise.
53971         * modules/vsnprintf-posix (Depends-on): Likewise.
53972         * modules/sprintf-posix (Depends-on): Likewise.
53973         * modules/vsprintf-posix (Depends-on): Likewise.
53974         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
53975         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
53976         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
53977         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
53978         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
53979         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
53980         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
53981
53982         Add support for universal builds to <inttypes.h>.
53983         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
53984         _SCNu64_PREFIX): In Apple
53985         universal builds, define directly, using _LP64.
53986         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
53987         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
53988         * modules/inttypes (Depends-on): Add multiarch.
53989         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
53990
53991         Add support for universal builds to <stdint.h>.
53992         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
53993         universal builds, define directly, using _LP64.
53994         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
53995         Apple universal builds, don't test for the size and suffix of ptrdiff_t
53996         and size_t.
53997         * modules/stdint (Depends-on): Add multiarch.
53998         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
53999
54000         New module 'multiarch'.
54001         * modules/multiarch: New file.
54002         * m4/multiarch.m4: New file.
54003
54004 2008-12-25  Bruno Haible  <bruno@clisp.org>
54005
54006         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
54007
54008 2008-12-25  Bruno Haible  <bruno@clisp.org>
54009
54010         * modules/btowc (License): Relicense under LGPLv2+.
54011         * modules/mbsinit (License): Likewise.
54012         * modules/mbrtowc (License): Likewise.
54013         * modules/wcrtomb (License): Likewise.
54014         * modules/streq (License): Likewise.
54015         Reported by David Lutterkort <lutter@redhat.com>.
54016
54017 2008-12-23  Bruno Haible  <bruno@clisp.org>
54018
54019         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
54020
54021 2008-12-23  Bruno Haible  <bruno@clisp.org>
54022
54023         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
54024         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
54025         GETADDRINFO_LIB, not in LIBS.
54026         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
54027         * modules/canon-host (Link): Likewise.
54028         * NEWS: Mention the change.
54029         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
54030         GETADDRINFO_LIB.
54031
54032 2008-12-22  Bruno Haible  <bruno@clisp.org>
54033
54034         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
54035         * doc/posix-functions/iswalpha_l.texi: Likewise.
54036         * doc/posix-functions/iswblank_l.texi: Likewise.
54037         * doc/posix-functions/iswcntrl_l.texi: Likewise.
54038         * doc/posix-functions/iswctype_l.texi: Likewise.
54039         * doc/posix-functions/iswdigit_l.texi: Likewise.
54040         * doc/posix-functions/iswgraph_l.texi: Likewise.
54041         * doc/posix-functions/iswlower_l.texi: Likewise.
54042         * doc/posix-functions/iswprint_l.texi: Likewise.
54043         * doc/posix-functions/iswpunct_l.texi: Likewise.
54044         * doc/posix-functions/iswspace_l.texi: Likewise.
54045         * doc/posix-functions/iswupper_l.texi: Likewise.
54046         * doc/posix-functions/iswxdigit_l.texi: Likewise.
54047         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
54048         * doc/posix-functions/open_wmemstream.texi: Likewise.
54049         * doc/posix-functions/swscanf.texi: Likewise.
54050         * doc/posix-functions/towctrans_l.texi: Likewise.
54051         * doc/posix-functions/towlower.texi: Likewise.
54052         * doc/posix-functions/towlower_l.texi: Likewise.
54053         * doc/posix-functions/towupper.texi: Likewise.
54054         * doc/posix-functions/towupper_l.texi: Likewise.
54055         * doc/posix-functions/vfwprintf.texi: Likewise.
54056         * doc/posix-functions/vfwscanf.texi: Likewise.
54057         * doc/posix-functions/vswscanf.texi: Likewise.
54058         * doc/posix-functions/vwprintf.texi: Likewise.
54059         * doc/posix-functions/vwscanf.texi: Likewise.
54060         * doc/posix-functions/wcpcpy.texi: Likewise.
54061         * doc/posix-functions/wcpncpy.texi: Likewise.
54062         * doc/posix-functions/wcscasecmp.texi: Likewise.
54063         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
54064         * doc/posix-functions/wcscoll_l.texi: Likewise.
54065         * doc/posix-functions/wcsdup.texi: Likewise.
54066         * doc/posix-functions/wcsncasecmp.texi: Likewise.
54067         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
54068         * doc/posix-functions/wcsnlen.texi: Likewise.
54069         * doc/posix-functions/wcsnrtombs.texi: Likewise.
54070         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
54071         * doc/posix-functions/wctrans_l.texi: Likewise.
54072         * doc/posix-functions/wctype_l.texi: Likewise.
54073         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
54074         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
54075         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
54076         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
54077         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
54078         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
54079         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
54080         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
54081         * doc/glibc-functions/wcschrnul.texi: Likewise.
54082         * doc/glibc-functions/wcsftime_l.texi: Likewise.
54083         * doc/glibc-functions/wcstod_l.texi: Likewise.
54084         * doc/glibc-functions/wcstof_l.texi: Likewise.
54085         * doc/glibc-functions/wcstol_l.texi: Likewise.
54086         * doc/glibc-functions/wcstold_l.texi: Likewise.
54087         * doc/glibc-functions/wcstoll_l.texi: Likewise.
54088         * doc/glibc-functions/wcstoq.texi: Likewise.
54089         * doc/glibc-functions/wcstoul_l.texi: Likewise.
54090         * doc/glibc-functions/wcstoull_l.texi: Likewise.
54091         * doc/glibc-functions/wcstouq.texi: Likewise.
54092         * doc/glibc-functions/wmempcpy.texi: Likewise.
54093
54094 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
54095             Eric Blake  <ebb9@byu.net>
54096             Paolo Bonzini  <bonzini@gnu.org>
54097             Bruno Haible  <bruno@clisp.org>
54098
54099         Make c-stack work on Haiku.
54100         * lib/c-stack.c (SA_ONSTACK): Define fallback.
54101         (c_stack_action): Use SA_ONSTACK flag.
54102
54103 2008-12-22  Bruno Haible  <bruno@clisp.org>
54104
54105         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
54106
54107 2008-12-22  Bruno Haible  <bruno@clisp.org>
54108
54109         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
54110         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
54111         being overridden.
54112         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
54113         New macros.
54114         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
54115         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
54116         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
54117         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
54118
54119 2008-12-22  Bruno Haible  <bruno@clisp.org>
54120
54121         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
54122         from test code.
54123
54124 2008-12-22  Eric Blake  <ebb9@byu.net>
54125
54126         Avoid gcc warnings on cygwin.
54127         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
54128         Avoid unused variable.
54129         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
54130         Likewise.
54131
54132 2008-12-22  Bruno Haible  <bruno@clisp.org>
54133
54134         Remove HAVE_MBRTOWC conditionals.
54135         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
54136         (mbscasecmp): Assume mbrtowc function.
54137         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
54138         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
54139         * lib/mbschr.c: Include mbuiter.h unconditionally.
54140         (mbschr): Assume mbrtowc function.
54141         * lib/mbscspn.c: Include mbuiter.h unconditionally.
54142         (mbscspn): Assume mbrtowc function.
54143         * lib/mbslen.c: Include mbuiter.h unconditionally.
54144         (mbslen): Assume mbrtowc function.
54145         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
54146         (mbsncasecmp): Assume mbrtowc function.
54147         * lib/mbsnlen.c: Include mbiter.h unconditionally.
54148         (mbsnlen): Assume mbrtowc function.
54149         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
54150         (mbspbrk): Assume mbrtowc function.
54151         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
54152         (mbspcasecmp): Assume mbrtowc function.
54153         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
54154         (mbsrchr): Assume mbrtowc function.
54155         * lib/mbssep.c: Include mbuiter.h unconditionally.
54156         (mbssep): Assume mbrtowc function.
54157         * lib/mbsspn.c: Include mbuiter.h unconditionally.
54158         (mbsspn): Assume mbrtowc function.
54159         * lib/mbsstr.c: Include mbuiter.h unconditionally.
54160         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
54161         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
54162         (mbstok_r): Assume mbrtowc function.
54163         * lib/propername.c: Include mbuiter.h unconditionally.
54164         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
54165         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
54166         (trim2): Assume mbrtowc function.
54167         * lib/mbswidth.c (mbsinit): Remove fallback definition.
54168         (mbsnwidth): Assume mbrtowc function.
54169         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
54170         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
54171         fallback definitions.
54172         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
54173
54174 2008-12-22  Bruno Haible  <bruno@clisp.org>
54175
54176         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
54177
54178 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
54179
54180         * modules/regex: Request emulations for the mb*/wc* functions we need.
54181         * m4/regex.m4: Don't look for those functions here.
54182         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
54183
54184 2008-12-22  Bruno Haible  <bruno@clisp.org>
54185
54186         * modules/fnmatch (Depends-on): Remove duplicated dependency.
54187
54188 2008-12-21  Bruno Haible  <bruno@clisp.org>
54189
54190         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
54191         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
54192         (Include): Remove conditionalization.
54193         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
54194         (Include): Remove conditionalization.
54195         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
54196         (Include): Remove conditionalization.
54197         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
54198         * m4/mbfile.m4 (gl_MBFILE): Likewise.
54199         * NEWS: Mention the change.
54200         Reported by Alan Hourihane <alanh@fairlite.co.uk>
54201         via Sergey Poznyakoff <gray@gnu.org.ua>.
54202
54203 2008-12-21  Bruno Haible  <bruno@clisp.org>
54204
54205         * MODULES.html.sh (Extended multibyte and wide character utilities
54206         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
54207         wcrtomb, wcsrtombs.
54208         (Support for systems lacking POSIX:2008): Add accept, bind, close,
54209         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
54210         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
54211         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
54212
54213 2008-12-21  Bruno Haible  <bruno@clisp.org>
54214
54215         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
54216
54217 2008-12-21  Bruno Haible  <bruno@clisp.org>
54218
54219         * modules/wcsnrtombs-tests: New file.
54220         * tests/test-wcsnrtombs1.sh: New file.
54221         * tests/test-wcsnrtombs2.sh: New file.
54222         * tests/test-wcsnrtombs3.sh: New file.
54223         * tests/test-wcsnrtombs4.sh: New file.
54224         * tests/test-wcsnrtombs.c: New file.
54225
54226         New module 'wcsnrtombs'.
54227         * lib/wchar.in.h (wcsnrtombs): New declaration.
54228         * lib/wcsnrtombs.c: New file.
54229         * lib/wcsrtombs-state.c: New file.
54230         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
54231         (internal_state): Remove variable.
54232         * m4/wcsnrtombs.m4: New file.
54233         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
54234         compilation units.
54235         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
54236         HAVE_WCSNRTOMBS.
54237         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
54238         HAVE_WCSNRTOMBS.
54239         * modules/wcsnrtombs: New file.
54240         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
54241         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
54242
54243 2008-12-21  Bruno Haible  <bruno@clisp.org>
54244
54245         * modules/wcsrtombs-tests: New file.
54246         * tests/test-wcsrtombs1.sh: New file.
54247         * tests/test-wcsrtombs2.sh: New file.
54248         * tests/test-wcsrtombs3.sh: New file.
54249         * tests/test-wcsrtombs4.sh: New file.
54250         * tests/test-wcsrtombs.c: New file.
54251
54252         New module 'wcsrtombs'.
54253         * lib/wchar.in.h (wcsrtombs): New declaration.
54254         * lib/wcsrtombs.c: New file.
54255         * m4/wcsrtombs.m4: New file.
54256         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
54257         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
54258         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
54259         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
54260         * modules/wcsrtombs: New file.
54261         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
54262         bugs.
54263
54264 2008-12-21  Bruno Haible  <bruno@clisp.org>
54265
54266         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
54267         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
54268         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
54269         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
54270         if not correct.
54271         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
54272         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
54273         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
54274         m4/locale-zh.m4, m4/codeset.m4.
54275         * doc/posix-functions/wcrtomb.texi: Document the bug.
54276
54277 2008-12-21  Bruno Haible  <bruno@clisp.org>
54278
54279         Work around a btowc() bug on IRIX 6.5.
54280         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
54281         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
54282         REPLACE_WTOBC if not.
54283         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
54284         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
54285         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
54286
54287 2008-12-21  Bruno Haible  <bruno@clisp.org>
54288
54289         * modules/wcrtomb-tests: New file.
54290         * tests/test-wcrtomb.sh: New file.
54291         * tests/test-wcrtomb.c: New file.
54292
54293         New module 'wcrtomb'.
54294         * lib/wchar.in.h (wcrtomb): New declaration.
54295         * lib/wcrtomb.c: New file.
54296         * m4/wcrtomb.m4: New file.
54297         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
54298         HAVE_WCRTOMB.
54299         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
54300         HAVE_WCRTOMB.
54301         * modules/wcrtomb: New file.
54302         * doc/posix-functions/wcrtomb.texi: Mention the new module.
54303
54304 2008-12-21  Bruno Haible  <bruno@clisp.org>
54305
54306         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
54307         * modules/mbsrtowcs (Files): Likewise.
54308         * modules/wctob (Files): Likewise.
54309         * modules/c-strcase-tests (Files): Likewise.
54310         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
54311         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
54312         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
54313         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
54314         * modules/vasnprintf-posix-tests (Files): Likewise.
54315
54316 2008-12-21  William Pursell  <bill.pursell@gmail.com>
54317
54318         gitlog-to-changelog: pass all command-line arguments to git-log
54319         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
54320         it is sometimes convenient to filter the commits in various ways.
54321         gitlog-to-changelog only allows --since to specify a start date,
54322         but git-log itself supports many other filtering mechanisms.
54323         At the moment, I want to filter by branch name.  Rather than
54324         adding a --branch option to gitlog-to-changelog, it seems more
54325         flexible to simply pass all options directly to git-log and let
54326         git do the work.  Notice that this effectively makes --since a
54327         redundant option for gitlog-to-changelog, but removing it would
54328         require current usage to change since calls would then require
54329         an additional '--'.
54330
54331 2008-12-21  Bruno Haible  <bruno@clisp.org>
54332
54333         * modules/mbsnrtowcs-tests: New file.
54334         * tests/test-mbsnrtowcs1.sh: New file.
54335         * tests/test-mbsnrtowcs2.sh: New file.
54336         * tests/test-mbsnrtowcs3.sh: New file.
54337         * tests/test-mbsnrtowcs4.sh: New file.
54338         * tests/test-mbsnrtowcs.c: New file.
54339
54340         New module 'mbsnrtowcs'.
54341         * lib/wchar.in.h (mbsnrtowcs): New declaration.
54342         * lib/mbsnrtowcs.c: New file.
54343         * lib/mbsrtowcs-state.c: New file.
54344         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
54345         (internal_state): Remove variable.
54346         * m4/mbsnrtowcs.m4: New file.
54347         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
54348         compilation units.
54349         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
54350         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
54351         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
54352         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
54353         * modules/mbsnrtowcs: New file.
54354         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
54355         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
54356         portability problem.
54357
54358 2008-12-21  Bruno Haible  <bruno@clisp.org>
54359
54360         Work around mbsrtowcs bug.
54361         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
54362         (gl_FUNC_MBSRTOWCS): Invoke it.
54363         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
54364         m4/locale-zh.m4.
54365         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
54366
54367 2008-12-21  Bruno Haible  <bruno@clisp.org>
54368
54369         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
54370
54371 2008-12-21  Bruno Haible  <bruno@clisp.org>
54372
54373         Update doc for AIX.
54374         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
54375         16-bit wchar_t type.
54376         * doc/posix-functions/btowc.texi: Likewise.
54377         * doc/posix-functions/fgetwc.texi: Likewise.
54378         * doc/posix-functions/fgetws.texi: Likewise.
54379         * doc/posix-functions/fputwc.texi: Likewise.
54380         * doc/posix-functions/fputws.texi: Likewise.
54381         * doc/posix-functions/fwide.texi: Likewise.
54382         * doc/posix-functions/fwprintf.texi: Likewise.
54383         * doc/posix-functions/fwscanf.texi: Likewise.
54384         * doc/posix-functions/getwchar.texi: Likewise.
54385         * doc/posix-functions/getwc.texi: Likewise.
54386         * doc/posix-functions/iswalnum.texi: Likewise.
54387         * doc/posix-functions/iswalpha.texi: Likewise.
54388         * doc/posix-functions/iswblank.texi: Likewise.
54389         * doc/posix-functions/iswcntrl.texi: Likewise.
54390         * doc/posix-functions/iswctype.texi: Likewise.
54391         * doc/posix-functions/iswdigit.texi: Likewise.
54392         * doc/posix-functions/iswgraph.texi: Likewise.
54393         * doc/posix-functions/iswlower.texi: Likewise.
54394         * doc/posix-functions/iswprint.texi: Likewise.
54395         * doc/posix-functions/iswpunct.texi: Likewise.
54396         * doc/posix-functions/iswspace.texi: Likewise.
54397         * doc/posix-functions/iswupper.texi: Likewise.
54398         * doc/posix-functions/iswxdigit.texi: Likewise.
54399         * doc/posix-functions/mbrtowc.texi: Likewise.
54400         * doc/posix-functions/mbsrtowcs.texi: Likewise.
54401         * doc/posix-functions/mbstowcs.texi: Likewise.
54402         * doc/posix-functions/mbtowc.texi: Likewise.
54403         * doc/posix-functions/putwchar.texi: Likewise.
54404         * doc/posix-functions/putwc.texi: Likewise.
54405         * doc/posix-functions/swprintf.texi: Likewise.
54406         * doc/posix-functions/tolower.texi: Likewise.
54407         * doc/posix-functions/toupper.texi: Likewise.
54408         * doc/posix-functions/towctrans.texi: Likewise.
54409         * doc/posix-functions/ungetwc.texi: Likewise.
54410         * doc/posix-functions/vswprintf.texi: Likewise.
54411         * doc/posix-functions/wcrtomb.texi: Likewise.
54412         * doc/posix-functions/wcscat.texi: Likewise.
54413         * doc/posix-functions/wcschr.texi: Likewise.
54414         * doc/posix-functions/wcscmp.texi: Likewise.
54415         * doc/posix-functions/wcscoll.texi: Likewise.
54416         * doc/posix-functions/wcscpy.texi: Likewise.
54417         * doc/posix-functions/wcscspn.texi: Likewise.
54418         * doc/posix-functions/wcsftime.texi: Likewise.
54419         * doc/posix-functions/wcslen.texi: Likewise.
54420         * doc/posix-functions/wcsncat.texi: Likewise.
54421         * doc/posix-functions/wcsncmp.texi: Likewise.
54422         * doc/posix-functions/wcsncpy.texi: Likewise.
54423         * doc/posix-functions/wcspbrk.texi: Likewise.
54424         * doc/posix-functions/wcsrchr.texi: Likewise.
54425         * doc/posix-functions/wcsrtombs.texi: Likewise.
54426         * doc/posix-functions/wcsspn.texi: Likewise.
54427         * doc/posix-functions/wcsstr.texi: Likewise.
54428         * doc/posix-functions/wcstod.texi: Likewise.
54429         * doc/posix-functions/wcstof.texi: Likewise.
54430         * doc/posix-functions/wcstoimax.texi: Likewise.
54431         * doc/posix-functions/wcstok.texi: Likewise.
54432         * doc/posix-functions/wcstold.texi: Likewise.
54433         * doc/posix-functions/wcstoll.texi: Likewise.
54434         * doc/posix-functions/wcstol.texi: Likewise.
54435         * doc/posix-functions/wcstombs.texi: Likewise.
54436         * doc/posix-functions/wcstoull.texi: Likewise.
54437         * doc/posix-functions/wcstoul.texi: Likewise.
54438         * doc/posix-functions/wcstoumax.texi: Likewise.
54439         * doc/posix-functions/wcswidth.texi: Likewise.
54440         * doc/posix-functions/wcsxfrm.texi: Likewise.
54441         * doc/posix-functions/wctob.texi: Likewise.
54442         * doc/posix-functions/wctomb.texi: Likewise.
54443         * doc/posix-functions/wctrans.texi: Likewise.
54444         * doc/posix-functions/wctype.texi: Likewise.
54445         * doc/posix-functions/wcwidth.texi: Likewise.
54446         * doc/posix-functions/wmemchr.texi: Likewise.
54447         * doc/posix-functions/wmemcmp.texi: Likewise.
54448         * doc/posix-functions/wmemcpy.texi: Likewise.
54449         * doc/posix-functions/wmemmove.texi: Likewise.
54450         * doc/posix-functions/wmemset.texi: Likewise.
54451         * doc/posix-functions/wprintf.texi: Likewise.
54452         * doc/posix-functions/wscanf.texi: Likewise.
54453
54454 2008-12-21  Bruno Haible  <bruno@clisp.org>
54455
54456         Update doc for HP-UX 11.11.
54457         * doc/posix-functions/btowc.texi: Clarify that the function is missing
54458         in HP-UX version 11.00, not in all versions of HP-UX 11.
54459         * doc/posix-functions/fwide.texi: Likewise.
54460         * doc/posix-functions/fwprintf.texi: Likewise.
54461         * doc/posix-functions/fwscanf.texi: Likewise.
54462         * doc/posix-functions/inet_ntop.texi: Likewise.
54463         * doc/posix-functions/inet_pton.texi: Likewise.
54464         * doc/posix-functions/mbrlen.texi: Likewise.
54465         * doc/posix-functions/mbrtowc.texi: Likewise.
54466         * doc/posix-functions/mbsinit.texi: Likewise.
54467         * doc/posix-functions/mbsrtowcs.texi: Likewise.
54468         * doc/posix-functions/swprintf.texi: Likewise.
54469         * doc/posix-functions/swscanf.texi: Likewise.
54470         * doc/posix-functions/towctrans.texi: Likewise.
54471         * doc/posix-functions/vfwprintf.texi: Likewise.
54472         * doc/posix-functions/vswprintf.texi: Likewise.
54473         * doc/posix-functions/vwprintf.texi: Likewise.
54474         * doc/posix-functions/wcrtomb.texi: Likewise.
54475         * doc/posix-functions/wcsrtombs.texi: Likewise.
54476         * doc/posix-functions/wcsstr.texi: Likewise.
54477         * doc/posix-functions/wctob.texi: Likewise.
54478         * doc/posix-functions/wctrans.texi: Likewise.
54479         * doc/posix-functions/wmemchr.texi: Likewise.
54480         * doc/posix-functions/wmemcmp.texi: Likewise.
54481         * doc/posix-functions/wmemcpy.texi: Likewise.
54482         * doc/posix-functions/wmemmove.texi: Likewise.
54483         * doc/posix-functions/wmemset.texi: Likewise.
54484         * doc/posix-functions/wprintf.texi: Likewise.
54485         * doc/posix-functions/wscanf.texi: Likewise.
54486
54487 2008-12-21  Bruno Haible  <bruno@clisp.org>
54488
54489         Work around a portability problem.
54490         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
54491         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
54492
54493 2008-12-20  Bruno Haible  <bruno@clisp.org>
54494
54495         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
54496         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
54497         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
54498         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
54499         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
54500
54501         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
54502         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
54503         set.
54504         (GNULIB_defined_mbstate_t): New macro.
54505         (mbsinit): Redefine if REPLACE_MBSINIT is set.
54506         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
54507         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
54508         reuses the system's mbrtowc function but works around the bugs.
54509         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
54510         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
54511         macros.
54512         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
54513         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
54514         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
54515         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
54516         REPLACE_MBSINIT if mbsinit needs to be overridden.
54517         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
54518         REPLACE_MBSINIT, REPLACE_MBRTOWC.
54519         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
54520         REPLACE_MBSINIT, REPLACE_MBRTOWC.
54521         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
54522         m4/locale-zh.m4.
54523         (Depends): Add mbsinit.
54524         * modules/mbsinit (Depends): Add mbrtowc.
54525         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
54526
54527 2008-12-20  Bruno Haible  <bruno@clisp.org>
54528
54529         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
54530         so that there are no conversion errors on AIX.
54531         * tests/test-mbsrtowcs.c (main): LIkewise.
54532
54533 2008-12-20  Bruno Haible  <bruno@clisp.org>
54534
54535         Work around wctob bug on Solaris <= 9.
54536         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
54537         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
54538         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
54539         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
54540         * modules/wctob (Files): Add m4/locale-fr.m4.
54541         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
54542
54543 2008-12-20  Bruno Haible  <bruno@clisp.org>
54544
54545         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
54546         /dev/null.
54547         * tests/test-select-in.sh: Likewise.
54548         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
54549
54550 2008-12-20  Bruno Haible  <bruno@clisp.org>
54551
54552         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
54553         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
54554         Cygwin 1.5.x.
54555
54556 2008-12-20  Bruno Haible  <bruno@clisp.org>
54557
54558         Ensure mbstate_t is defined on HP-UX 11.11.
54559         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
54560         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
54561         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
54562         AC_USE_SYSTEM_EXTENSIONS.
54563         * modules/fnmatch (Depends-on): Add extensions.
54564         * modules/mbrlen (Depends-on): Likewise.
54565         * modules/mbrtowc (Depends-on): Likewise.
54566         * modules/mbsinit (Depends-on): Likewise.
54567         * modules/mbsrtowcs (Depends-on): Likewise.
54568         * modules/mbswidth (Depends-on): Likewise.
54569         * modules/quotearg (Depends-on): Likewise.
54570         * modules/strftime (Depends-on): Likewise.
54571
54572 2008-12-20  Bruno Haible  <bruno@clisp.org>
54573
54574         Ensure wctob is declared on IRIX 6.5.
54575         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
54576         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
54577         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
54578         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
54579         of HAVE_WCTOB.
54580         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
54581         HAVE_WCTOB.
54582         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
54583
54584 2008-12-19  Bruno Haible  <bruno@clisp.org>
54585
54586         * modules/mbsrtowcs-tests: New file.
54587         * tests/test-mbsrtowcs1.sh: New file.
54588         * tests/test-mbsrtowcs2.sh: New file.
54589         * tests/test-mbsrtowcs3.sh: New file.
54590         * tests/test-mbsrtowcs4.sh: New file.
54591         * tests/test-mbsrtowcs.c: New file.
54592
54593         New module 'mbsrtowcs'.
54594         * lib/wchar.in.h (mbsrtowcs): New declaration.
54595         * lib/mbsrtowcs.c: New file.
54596         * m4/mbsrtowcs.m4: New file.
54597         * modules/mbsrtowcs: New file.
54598         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
54599         HAVE_MBSRTOWCS.
54600         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
54601         HAVE_MBSRTOWCS.
54602         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
54603
54604 2008-12-19  Bruno Haible  <bruno@clisp.org>
54605
54606         New module 'mbrlen'.
54607         * lib/wchar.in.h (mbrlen): New declaration.
54608         * lib/mbrlen.c: New file.
54609         * m4/mbrlen.m4: New file.
54610         * modules/mbrlen: New file.
54611         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
54612         HAVE_MBRLEN.
54613         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
54614         HAVE_MBRLEN.
54615         * doc/posix-functions/mbrlen.texi: Document the new module.
54616
54617 2008-12-19  Bruno Haible  <bruno@clisp.org>
54618
54619         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
54620         * modules/mbrtowc (Depends-on): Add verify.
54621         Suggested by Paul Eggert.
54622
54623 2008-12-18  Bruno Haible  <bruno@clisp.org>
54624
54625         * modules/mbsinit-tests: New file.
54626         * tests/test-mbsinit.sh: New file.
54627         * tests/test-mbsinit.c: New file.
54628
54629 2008-12-18  Bruno Haible  <bruno@clisp.org>
54630
54631         * modules/mbrtowc-tests: New file.
54632         * tests/test-mbrtowc1.sh: New file.
54633         * tests/test-mbrtowc2.sh: New file.
54634         * tests/test-mbrtowc3.sh: New file.
54635         * tests/test-mbrtowc4.sh: New file.
54636         * tests/test-mbrtowc.c: New file.
54637
54638         New module 'mbrtowc'.
54639         * lib/wchar.in.h (mbstate_t): Override when the system does not have
54640         mbsinit and mbrtowc.
54641         (mbrtowc): New declaration.
54642         * lib/mbrtowc.c: New file.
54643         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
54644         * modules/mbrtowc: New file.
54645         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
54646         HAVE_MBRTOWC.
54647         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
54648         HAVE_MBRTOWC.
54649         * doc/posix-functions/mbrtowc.texi: Document the new module.
54650
54651 2008-12-18  Bruno Haible  <bruno@clisp.org>
54652
54653         New module 'wctob'.
54654         * lib/wchar.in.h (wctob): New declaration.
54655         * lib/wctob.c: New file.
54656         * m4/wctob.m4: New file.
54657         * modules/wctob: New file.
54658         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
54659         HAVE_WCTOB.
54660         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
54661         * doc/posix-functions/wctob.texi: Document the new module.
54662
54663 2008-12-18  Bruno Haible  <bruno@clisp.org>
54664
54665         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
54666         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
54667
54668 2008-12-18  Simon Josefsson  <simon@josefsson.org>
54669
54670         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
54671         G. Christensen" <tgc@jupiterrise.com>.
54672
54673         * lib/flock.c: Need to include errno.h.  Reported by "Tom
54674         G. Christensen" <tgc@jupiterrise.com>.
54675
54676         * lib/flock.c: Need to include string.h.  Reported by "Tom
54677         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
54678         <ebb9@byu.net>.
54679
54680 2008-12-18  Bruno Haible  <bruno@clisp.org>
54681
54682         * m4/locale-ja.m4: New file, from GNU gettext.
54683
54684 2008-12-17  Bruno Haible  <bruno@clisp.org>
54685
54686         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
54687         Suggested by Eric Blake.
54688
54689 2008-12-17  Bruno Haible  <bruno@clisp.org>
54690
54691         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
54692
54693 2008-12-17  Bruno Haible  <bruno@clisp.org>
54694
54695         * lib/mbsinit.c: Include verify.h. Verify an assumption.
54696         * modules/mbsinit (Depends-on): Add verify.
54697         Suggested by Paul Eggert.
54698
54699 2008-12-17  Bruno Haible  <bruno@clisp.org>
54700
54701         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
54702         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
54703         gl_FUNC_MBRTOWC.
54704         * m4/mbiter.m4 (gl_MBITER): LIkewise.
54705         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
54706         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
54707         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
54708         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
54709         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
54710         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
54711         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
54712         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
54713         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
54714         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
54715         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
54716         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
54717         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
54718         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
54719         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
54720         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
54721         * modules/trim (configure.ac): Likewise.
54722
54723 2008-12-17  Bruno Haible  <bruno@clisp.org>
54724
54725         * modules/btowc-tests: New file.
54726         * tests/test-btowc1.sh: New file.
54727         * tests/test-btowc2.sh: New file.
54728         * tests/test-btowc.c: New file.
54729
54730         New module 'btowc'.
54731         * lib/wchar.in.h (btowc): New declaration.
54732         * lib/btowc.c: New file.
54733         * m4/btowc.m4: New file.
54734         * modules/btowc: New file.
54735         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
54736         HAVE_BTOWC.
54737         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
54738         * doc/posix-functions/btowc.texi: Document the new module.
54739
54740 2008-12-17  Bruno Haible  <bruno@clisp.org>
54741
54742         New module 'mbsinit'.
54743         * lib/wchar.in.h (mbsinit): New declaration.
54744         * lib/mbsinit.c: New file.
54745         * m4/mbsinit.m4: New file.
54746         * modules/mbsinit: New file.
54747         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
54748         HAVE_MBSINIT.
54749         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
54750         HAVE_MBSINIT.
54751         * doc/posix-functions/mbsinit.texi: Document the new module.
54752
54753 2008-12-16  Bruno Haible  <bruno@clisp.org>
54754
54755         * lib/unistd.in.h: Add comment.
54756         * tests/test-environ.c: Don't include <stdlib.h>.
54757
54758 2008-12-16  Bruno Haible  <bruno@clisp.org>
54759
54760         * lib/parse-duration.h (parse_duration): Document return value
54761         convention.
54762         * lib/parse-duration.c: Include specification header first. Add
54763         comments.
54764         (_): Remove macro.
54765         (parse_year_month_day, parse_hour_minute_second): Move side effects
54766         outside of strchr call.
54767         (parse_non_iso8601): Move side effects outside of isspace call.
54768         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
54769         call.
54770
54771 2008-12-16  Bruno Haible  <bruno@clisp.org>
54772
54773         * tests/test-parse-duration.sh: Produce no output when the test
54774         succeeds.
54775
54776 2008-12-16  Bruno Haible  <bruno@clisp.org>
54777
54778         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
54779         expressions.
54780
54781 2008-12-15  Bruno Haible  <bruno@clisp.org>
54782
54783         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
54784         * doc/glibc-functions/flistxattr.texi: Likewise.
54785         * doc/glibc-functions/fopencookie.texi: Likewise.
54786         * doc/glibc-functions/fremovexattr.texi: Likewise.
54787         * doc/glibc-functions/fsetxattr.texi: Likewise.
54788         * doc/glibc-functions/getxattr.texi: Likewise.
54789         * doc/glibc-functions/lgetxattr.texi: Likewise.
54790         * doc/glibc-functions/listxattr.texi: Likewise.
54791         * doc/glibc-functions/llistxattr.texi: Likewise.
54792         * doc/glibc-functions/lremovexattr.texi: Likewise.
54793         * doc/glibc-functions/lsetxattr.texi: Likewise.
54794         * doc/glibc-functions/removexattr.texi: Likewise.
54795         * doc/glibc-functions/setxattr.texi: Likewise.
54796         * doc/posix-functions/open_memstream.texi: Likewise.
54797
54798 2008-12-15  Eric Blake  <ebb9@byu.net>
54799
54800         Update doc for cygwin 1.7.
54801         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
54802         functions.
54803         * doc/posix-functions/fchmodat.texi: Likewise.
54804         * doc/posix-functions/fchownat.texi: Likewise.
54805         * doc/posix-functions/fdopendir.texi: Likewise.
54806         * doc/posix-functions/fmemopen.texi: Likewise.
54807         * doc/posix-functions/freeaddrinfo.texi: Likewise.
54808         * doc/posix-functions/fstatat.texi: Likewise.
54809         * doc/posix-functions/futimens.texi: Likewise.
54810         * doc/posix-functions/gai_strerror.texi: Likewise.
54811         * doc/posix-functions/getaddrinfo.texi: Likewise.
54812         * doc/posix-functions/getnameinfo.texi: Likewise.
54813         * doc/posix-functions/if_freenameindex.texi: Likewise.
54814         * doc/posix-functions/if_indextoname.texi: Likewise.
54815         * doc/posix-functions/if_nameindex.texi: Likewise.
54816         * doc/posix-functions/if_nametoindex.texi: Likewise.
54817         * doc/posix-functions/insque.texi: Likewise.
54818         * doc/posix-functions/linkat.texi: Likewise.
54819         * doc/posix-functions/llrint.texi: Likewise.
54820         * doc/posix-functions/llrintf.texi: Likewise.
54821         * doc/posix-functions/llrintl.texi: Likewise.
54822         * doc/posix-functions/lockf.texi: Likewise.
54823         * doc/posix-functions/lrintl.texi: Likewise.
54824         * doc/posix-functions/mkdirat.texi: Likewise.
54825         * doc/posix-functions/mkfifoat.texi: Likewise.
54826         * doc/posix-functions/mknodat.texi: Likewise.
54827         * doc/posix-functions/mq_close.texi: Likewise.
54828         * doc/posix-functions/mq_getattr.texi: Likewise.
54829         * doc/posix-functions/mq_notify.texi: Likewise.
54830         * doc/posix-functions/mq_open.texi: Likewise.
54831         * doc/posix-functions/mq_receive.texi: Likewise.
54832         * doc/posix-functions/mq_send.texi: Likewise.
54833         * doc/posix-functions/mq_setattr.texi: Likewise.
54834         * doc/posix-functions/mq_timedreceive.texi: Likewise.
54835         * doc/posix-functions/mq_timedsend.texi: Likewise.
54836         * doc/posix-functions/mq_unlink.texi: Likewise.
54837         * doc/posix-functions/open_memstream.texi: Likewise.
54838         * doc/posix-functions/openat.texi: Likewise.
54839         * doc/posix-functions/posix_fadvise.texi: Likewise.
54840         * doc/posix-functions/posix_fallocate.texi: Likewise.
54841         * doc/posix-functions/posix_madvise.texi: Likewise.
54842         * doc/posix-functions/posix_memalign.texi: Likewise.
54843         * doc/posix-functions/posix_openpt.texi: Likewise.
54844         * doc/posix-functions/readlinkat.texi: Likewise.
54845         * doc/posix-functions/remque.texi: Likewise.
54846         * doc/posix-functions/renameat.texi: Likewise.
54847         * doc/posix-functions/rintl.texi: Likewise.
54848         * doc/posix-functions/sem_unlink.texi: Likewise.
54849         * doc/posix-functions/shm_open.texi: Likewise.
54850         * doc/posix-functions/shm_unlink.texi: Likewise.
54851         * doc/posix-functions/signgam.texi: Likewise.
54852         * doc/posix-functions/sigset.texi: Likewise.
54853         * doc/posix-functions/stpcpy.texi: Likewise.
54854         * doc/posix-functions/stpncpy.texi: Likewise.
54855         * doc/posix-functions/strerror.texi: Likewise.
54856         * doc/posix-functions/strtod.texi: Likewise.
54857         * doc/posix-functions/symlinkat.texi: Likewise.
54858         * doc/posix-functions/unlinkat.texi: Likewise.
54859         * doc/posix-functions/utimensat.texi: Likewise.
54860         * doc/glibc-functions/bindresvport.texi: Likewise.
54861         * doc/glibc-functions/dn_expand.texi: Likewise.
54862         * doc/glibc-functions/exp10.texi: Likewise.
54863         * doc/glibc-functions/exp10f.texi: Likewise.
54864         * doc/glibc-functions/fgetxattr.texi: Likewise.
54865         * doc/glibc-functions/flistxattr.texi: Likewise.
54866         * doc/glibc-functions/fopencookie.texi: Likewise.
54867         * doc/glibc-functions/freeifaddrs.texi: Likewise.
54868         * doc/glibc-functions/fremovexattr.texi: Likewise.
54869         * doc/glibc-functions/fsetxattr.texi: Likewise.
54870         * doc/glibc-functions/getifaddrs.texi: Likewise.
54871         * doc/glibc-functions/getxattr.texi: Likewise.
54872         * doc/glibc-functions/lgetxattr.texi: Likewise.
54873         * doc/glibc-functions/listxattr.texi: Likewise.
54874         * doc/glibc-functions/llistxattr.texi: Likewise.
54875         * doc/glibc-functions/lremovexattr.texi: Likewise.
54876         * doc/glibc-functions/lsetxattr.texi: Likewise.
54877         * doc/glibc-functions/pow10.texi: Likewise.
54878         * doc/glibc-functions/pow10f.texi: Likewise.
54879         * doc/glibc-functions/rcmd_af.texi: Likewise.
54880         * doc/glibc-functions/removexattr.texi: Likewise.
54881         * doc/glibc-functions/res_init.texi: Likewise.
54882         * doc/glibc-functions/res_mkquery.texi: Likewise.
54883         * doc/glibc-functions/res_query.texi: Likewise.
54884         * doc/glibc-functions/res_querydomain.texi: Likewise.
54885         * doc/glibc-functions/res_send.texi: Likewise.
54886         * doc/glibc-functions/rresvport_af.texi: Likewise.
54887         * doc/glibc-functions/setxattr.texi: Likewise.
54888         * doc/glibc-functions/strcasestr.texi: Likewise.
54889
54890 2008-12-15  Bruno Haible  <bruno@clisp.org>
54891
54892         Fix compilation error on OSF/1 4.0.
54893         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
54894         <sys/time.h>, simply delegate to the system header.
54895         Reported by Daniel Richard G. <oss@teragram.com>.
54896
54897 2008-12-15  Bruno Haible  <bruno@clisp.org>
54898
54899         * doc/posix-functions/openat.texi: Mention the 'openat' module.
54900         * doc/posix-functions/fchmodat.texi: Likewise.
54901         * doc/posix-functions/fchownat.texi: Likewise.
54902         * doc/posix-functions/fdopendir.texi: Likewise.
54903         * doc/posix-functions/fstatat.texi: Likewise.
54904         * doc/posix-functions/mkdirat.texi: Likewise.
54905         * doc/posix-functions/unlinkat.texi: Likewise.
54906
54907 2008-12-14  Bruno Haible  <bruno@clisp.org>
54908
54909         Update doc for POSIX:2008.
54910         * doc/posix-functions/faccessat.texi: New file.
54911         * doc/posix-functions/fchmodat.texi: New file.
54912         * doc/posix-functions/fchownat.texi: New file.
54913         * doc/posix-functions/fdopendir.texi: New file.
54914         * doc/posix-functions/fstatat.texi: New file.
54915         * doc/posix-functions/futimens.texi: New file.
54916         * doc/posix-functions/linkat.texi: New file.
54917         * doc/posix-functions/mkdirat.texi: New file.
54918         * doc/posix-functions/mkfifoat.texi: New file.
54919         * doc/posix-functions/mknodat.texi: New file.
54920         * doc/posix-functions/open_wmemstream.texi: New file.
54921         * doc/posix-functions/openat.texi: New file.
54922         * doc/posix-functions/psiginfo.texi: New file.
54923         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
54924         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
54925         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
54926         * doc/posix-functions/readlinkat.texi: New file.
54927         * doc/posix-functions/renameat.texi: New file.
54928         * doc/posix-functions/strerror_l.texi: New file.
54929         * doc/posix-functions/symlinkat.texi: New file.
54930         * doc/posix-functions/unlinkat.texi: New file.
54931         * doc/posix-functions/utimensat.texi: New file.
54932         * doc/gnulib.texi (Function Substitutes): Add these subsections.
54933
54934 2008-12-14  Bruno Haible  <bruno@clisp.org>
54935
54936         Update doc for POSIX:2008.
54937         * doc/posix-functions/alphasort.texi: Renamed from
54938         doc/glibc-functions/alphasort.texi.
54939         * doc/posix-functions/dirfd.texi: Renamed from
54940         doc/glibc-functions/dirfd.texi.
54941         * doc/posix-functions/dprintf.texi: Renamed from
54942         doc/glibc-functions/dprintf.texi.
54943         * doc/posix-functions/duplocale.texi: Renamed from
54944         doc/glibc-functions/duplocale.texi.
54945         * doc/posix-functions/fexecve.texi: Renamed from
54946         doc/glibc-functions/fexecve.texi.
54947         * doc/posix-functions/fmemopen.texi: Renamed from
54948         doc/glibc-functions/fmemopen.texi.
54949         * doc/posix-functions/freelocale.texi: Renamed from
54950         doc/glibc-functions/freelocale.texi.
54951         * doc/posix-functions/getdate_err.texi: Renamed from
54952         doc/glibc-functions/getdate_err.texi.
54953         * doc/posix-functions/isalnum_l.texi: Renamed from
54954         doc/glibc-functions/isalnum_l.texi.
54955         * doc/posix-functions/isalpha_l.texi: Renamed from
54956         doc/glibc-functions/isalpha_l.texi.
54957         * doc/posix-functions/isblank_l.texi: Renamed from
54958         doc/glibc-functions/isblank_l.texi.
54959         * doc/posix-functions/iscntrl_l.texi: Renamed from
54960         doc/glibc-functions/iscntrl_l.texi.
54961         * doc/posix-functions/isdigit_l.texi: Renamed from
54962         doc/glibc-functions/isdigit_l.texi.
54963         * doc/posix-functions/isgraph_l.texi: Renamed from
54964         doc/glibc-functions/isgraph_l.texi.
54965         * doc/posix-functions/islower_l.texi: Renamed from
54966         doc/glibc-functions/islower_l.texi.
54967         * doc/posix-functions/isprint_l.texi: Renamed from
54968         doc/glibc-functions/isprint_l.texi.
54969         * doc/posix-functions/ispunct_l.texi: Renamed from
54970         doc/glibc-functions/ispunct_l.texi.
54971         * doc/posix-functions/isspace_l.texi: Renamed from
54972         doc/glibc-functions/isspace_l.texi.
54973         * doc/posix-functions/isupper_l.texi: Renamed from
54974         doc/glibc-functions/isupper_l.texi.
54975         * doc/posix-functions/iswalnum_l.texi: Renamed from
54976         doc/glibc-functions/iswalnum_l.texi.
54977         * doc/posix-functions/iswalpha_l.texi: Renamed from
54978         doc/glibc-functions/iswalpha_l.texi.
54979         * doc/posix-functions/iswblank_l.texi: Renamed from
54980         doc/glibc-functions/iswblank_l.texi.
54981         * doc/posix-functions/iswcntrl_l.texi: Renamed from
54982         doc/glibc-functions/iswcntrl_l.texi.
54983         * doc/posix-functions/iswctype_l.texi: Renamed from
54984         doc/glibc-functions/iswctype_l.texi.
54985         * doc/posix-functions/iswdigit_l.texi: Renamed from
54986         doc/glibc-functions/iswdigit_l.texi.
54987         * doc/posix-functions/iswgraph_l.texi: Renamed from
54988         doc/glibc-functions/iswgraph_l.texi.
54989         * doc/posix-functions/iswlower_l.texi: Renamed from
54990         doc/glibc-functions/iswlower_l.texi.
54991         * doc/posix-functions/iswprint_l.texi: Renamed from
54992         doc/glibc-functions/iswprint_l.texi.
54993         * doc/posix-functions/iswpunct_l.texi: Renamed from
54994         doc/glibc-functions/iswpunct_l.texi.
54995         * doc/posix-functions/iswspace_l.texi: Renamed from
54996         doc/glibc-functions/iswspace_l.texi.
54997         * doc/posix-functions/iswupper_l.texi: Renamed from
54998         doc/glibc-functions/iswupper_l.texi.
54999         * doc/posix-functions/iswxdigit_l.texi: Renamed from
55000         doc/glibc-functions/iswxdigit_l.texi.
55001         * doc/posix-functions/isxdigit_l.texi: Renamed from
55002         doc/glibc-functions/isxdigit_l.texi.
55003         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
55004         doc/glibc-functions/mbsnrtowcs.texi.
55005         * doc/posix-functions/mkdtemp.texi: Renamed from
55006         doc/glibc-functions/mkdtemp.texi.
55007         * doc/posix-functions/newlocale.texi: Renamed from
55008         doc/glibc-functions/newlocale.texi.
55009         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
55010         doc/glibc-functions/nl_langinfo_l.texi.
55011         * doc/posix-functions/open_memstream.texi: Renamed from
55012         doc/glibc-functions/open_memstream.texi.
55013         * doc/posix-functions/opterr.texi: Renamed from
55014         doc/glibc-functions/opterr.texi.
55015         * doc/posix-functions/optind.texi: Renamed from
55016         doc/glibc-functions/optind.texi.
55017         * doc/posix-functions/optopt.texi: Renamed from
55018         doc/glibc-functions/optopt.texi.
55019         * doc/posix-functions/psignal.texi: Renamed from
55020         doc/glibc-functions/psignal.texi.
55021         * doc/posix-functions/scandir.texi: Renamed from
55022         doc/glibc-functions/scandir.texi.
55023         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
55024         doc/glibc-functions/sched_get_priority_min.texi.
55025         * doc/posix-functions/signgam.texi: Renamed from
55026         doc/glibc-functions/signgam.texi.
55027         * doc/posix-functions/stpcpy.texi: Renamed from
55028         doc/glibc-functions/stpcpy.texi.
55029         * doc/posix-functions/stpncpy.texi: Renamed from
55030         doc/glibc-functions/stpncpy.texi.
55031         * doc/posix-functions/strcasecmp_l.texi: Renamed from
55032         doc/glibc-functions/strcasecmp_l.texi.
55033         * doc/posix-functions/strcoll_l.texi: Renamed from
55034         doc/glibc-functions/strcoll_l.texi.
55035         * doc/posix-functions/strfmon_l.texi: Renamed from
55036         doc/glibc-functions/strfmon_l.texi.
55037         * doc/posix-functions/strftime_l.texi: Renamed from
55038         doc/glibc-functions/strftime_l.texi.
55039         * doc/posix-functions/strncasecmp_l.texi: Renamed from
55040         doc/glibc-functions/strncasecmp_l.texi.
55041         * doc/posix-functions/strndup.texi: Renamed from
55042         doc/glibc-functions/strndup.texi.
55043         * doc/posix-functions/strnlen.texi: Renamed from
55044         doc/glibc-functions/strnlen.texi.
55045         * doc/posix-functions/strsignal.texi: Renamed from
55046         doc/glibc-functions/strsignal.texi.
55047         * doc/posix-functions/strxfrm_l.texi: Renamed from
55048         doc/glibc-functions/strxfrm_l.texi.
55049         * doc/posix-functions/timer_gettime.texi: Renamed from
55050         doc/glibc-functions/timer_gettime.texi.
55051         * doc/posix-functions/tolower_l.texi: Renamed from
55052         doc/glibc-functions/tolower_l.texi.
55053         * doc/posix-functions/toupper_l.texi: Renamed from
55054         doc/glibc-functions/toupper_l.texi.
55055         * doc/posix-functions/towctrans_l.texi: Renamed from
55056         doc/glibc-functions/towctrans_l.texi.
55057         * doc/posix-functions/towlower_l.texi: Renamed from
55058         doc/glibc-functions/towlower_l.texi.
55059         * doc/posix-functions/towupper_l.texi: Renamed from
55060         doc/glibc-functions/towupper_l.texi.
55061         * doc/posix-functions/uselocale.texi: Renamed from
55062         doc/glibc-functions/uselocale.texi.
55063         * doc/posix-functions/vdprintf.texi: Renamed from
55064         doc/glibc-functions/vdprintf.texi.
55065         * doc/posix-functions/wcpcpy.texi:
55066         Renamed from doc/glibc-functions/wcpcpy.texi.
55067         * doc/posix-functions/wcpncpy.texi: Renamed from
55068         doc/glibc-functions/wcpncpy.texi.
55069         * doc/posix-functions/wcscasecmp.texi: Renamed from
55070         doc/glibc-functions/wcscasecmp.texi.
55071         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
55072         doc/glibc-functions/wcscasecmp_l.texi.
55073         * doc/posix-functions/wcscoll_l.texi: Renamed from
55074         doc/glibc-functions/wcscoll_l.texi.
55075         * doc/posix-functions/wcsdup.texi: Renamed from
55076         doc/glibc-functions/wcsdup.texi.
55077         * doc/posix-functions/wcsncasecmp.texi: Renamed from
55078         doc/glibc-functions/wcsncasecmp.texi.
55079         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
55080         doc/glibc-functions/wcsncasecmp_l.texi.
55081         * doc/posix-functions/wcsnlen.texi: Renamed from
55082         doc/glibc-functions/wcsnlen.texi.
55083         * doc/posix-functions/wcsnrtombs.texi: Renamed from
55084         doc/glibc-functions/wcsnrtombs.texi.
55085         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
55086         doc/glibc-functions/wcsxfrm_l.texi.
55087         * doc/posix-functions/wctrans_l.texi: Renamed from
55088         doc/glibc-functions/wctrans_l.texi.
55089         * doc/posix-functions/wctype_l.texi: Renamed from
55090         doc/glibc-functions/wctype_l.texi.
55091         * doc/gnulib.texi (Function Substitutes): Add these subsections.
55092         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
55093         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
55094         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
55095         these subsections.
55096         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
55097         Remove sections.
55098
55099 2008-12-14  Bruno Haible  <bruno@clisp.org>
55100
55101         Update doc for POSIX:2008.
55102         * doc/posix-functions/*.texi: Update URL of POSIX specification.
55103
55104 2008-12-14  Bruno Haible  <bruno@clisp.org>
55105
55106         Update doc for POSIX:2008.
55107         * doc/pastposix-functions/bcmp.texi: Renamed from
55108         doc/posix-functions/bcmp.texi.
55109         * doc/pastposix-functions/bcopy.texi: Renamed from
55110         doc/posix-functions/bcopy.texi.
55111         * doc/pastposix-functions/bsd_signal.texi: Renamed from
55112         doc/posix-functions/bsd_signal.texi.
55113         * doc/pastposix-functions/bzero.texi: Renamed from
55114         doc/posix-functions/bzero.texi.
55115         * doc/pastposix-functions/ecvt.texi: Renamed from
55116         doc/posix-functions/ecvt.texi.
55117         * doc/pastposix-functions/fcvt.texi: Renamed from
55118         doc/posix-functions/fcvt.texi.
55119         * doc/pastposix-functions/ftime.texi: Renamed from
55120         doc/posix-functions/ftime.texi.
55121         * doc/pastposix-functions/gcvt.texi: Renamed from
55122         doc/posix-functions/gcvt.texi.
55123         * doc/pastposix-functions/getcontext.texi: Renamed from
55124         doc/posix-functions/getcontext.texi.
55125         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
55126         doc/posix-functions/gethostbyaddr.texi.
55127         * doc/pastposix-functions/gethostbyname.texi: Renamed from
55128         doc/posix-functions/gethostbyname.texi.
55129         * doc/pastposix-functions/getwd.texi: Renamed from
55130         doc/posix-functions/getwd.texi.
55131         * doc/pastposix-functions/h_errno.texi: Renamed from
55132         doc/posix-functions/h_errno.texi.
55133         * doc/pastposix-functions/index.texi: Renamed from
55134         doc/posix-functions/index.texi.
55135         * doc/pastposix-functions/makecontext.texi: Renamed from
55136         doc/posix-functions/makecontext.texi.
55137         * doc/pastposix-functions/mktemp.texi: Renamed from
55138         doc/posix-functions/mktemp.texi.
55139         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
55140         doc/posix-functions/pthread_attr_getstackaddr.texi.
55141         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
55142         doc/posix-functions/pthread_attr_setstackaddr.texi.
55143         * doc/pastposix-functions/rindex.texi: Renamed from
55144         doc/posix-functions/rindex.texi.
55145         * doc/pastposix-functions/scalb.texi: Renamed from
55146         doc/posix-functions/scalb.texi.
55147         * doc/pastposix-functions/setcontext.texi: Renamed from
55148         doc/posix-functions/setcontext.texi.
55149         * doc/pastposix-functions/swapcontext.texi: Renamed from
55150         doc/posix-functions/swapcontext.texi.
55151         * doc/pastposix-functions/ualarm.texi: Renamed from
55152         doc/posix-functions/ualarm.texi.
55153         * doc/pastposix-functions/usleep.texi: Renamed from
55154         doc/posix-functions/usleep.texi.
55155         * doc/pastposix-functions/vfork.texi: Renamed from
55156         doc/posix-functions/vfork.texi.
55157         * doc/pastposix-functions/wcswcs.texi: Renamed from
55158         doc/posix-functions/wcswcs.texi.
55159         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
55160         (Function Substitutes): Update.
55161
55162 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55163
55164         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
55165         m4/strerror.m4.
55166
55167 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55168             Bruno Haible  <bruno@clisp.org>
55169
55170         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
55171
55172 2008-12-13  Bruno Haible  <bruno@clisp.org>
55173
55174         * modules/strtoull (Depends-on): Remove unistd.
55175
55176 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55177
55178         * modules/strtoull (Depends-on): Add stdlib.
55179
55180 2008-12-11  Simon Josefsson  <simon@josefsson.org>
55181
55182         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
55183
55184 2008-12-10  Jim Meyering  <meyering@redhat.com>
55185
55186         gl_ASSERT: don't say assertions are disabled when they're not
55187         * m4/assert.m4 (gl_ASSERT): Do not make configure report
55188         "checking whether to enable assertions... no", when they are in
55189         fact enabled.  This is solely a bug in the output of configure.
55190         In spite of saying "no", NDEBUG was not defined in that case.
55191         Also, as noted by Eric Blake, leave assertions enabled upon
55192         --enable-assert=INVALID.
55193
55194 2008-12-10  Bruno Haible  <bruno@clisp.org>
55195
55196         Change MODULES.html to refer to POSIX:2008 where possible.
55197         * MODULES.html.sh (POSIX2008_URL): New variable.
55198         (posix_headers): Remove sys/timeb, ucontext.
55199         (posix2001_headers): New variable.
55200         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
55201         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
55202         index, makecontext, mktemp, pthread_attr_getstackaddr,
55203         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
55204         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
55205         (posix2001_functions): New variable.
55206         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
55207         otherwise.
55208
55209 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55210
55211         add missing include to parse-duration.c
55212         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
55213         * modules/parse-duration (Depends-on): Add xalloc.
55214
55215         fix sed script reading maint.mk
55216         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
55217         (syntax-check-rules): Use it.
55218
55219 2008-12-09  Bruno Haible  <bruno@clisp.org>
55220
55221         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
55222         MacOS X 10.4/PowerPC.
55223         Reported by Simon Josefsson.
55224
55225 2008-12-08  Jim Meyering  <meyering@redhat.com>
55226
55227         work around mingw's lack of some S_IF definitions
55228         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
55229         Reported by Simon Josefsson.
55230
55231 2008-12-08  Bruno Haible  <bruno@clisp.org>
55232
55233         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
55234         applied to variables. Needed on MacOS X 10.4/PowerPC.
55235         Reported by Simon Josefsson.
55236
55237 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
55238         and Eric Blake  <ebb9@byu.net>
55239
55240         assert: honor --enable-assert
55241         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
55242         order to honor --enable-assert, rather than treating it as a
55243         synonym for --disable-assert.
55244
55245 2008-12-08  Jim Meyering  <meyering@redhat.com>
55246
55247         * lib/posixtm.c: Remove now-useless declaration of mktime.
55248
55249         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
55250
55251 2008-12-07  Bruno Haible  <bruno@clisp.org>
55252
55253         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
55254         test_once): Mark functions as static.
55255         * tests/test-tls.c (test_tls): Likewise.
55256
55257 2008-12-07  Bruno Haible  <bruno@clisp.org>
55258
55259         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
55260         iconv_register_autodetect.
55261
55262 2008-12-07  Jim Meyering  <meyering@redhat.com>
55263
55264         posixtm.c: avoid a warning
55265         * lib/posixtm.c (posixtime): Don't initialize tm0.
55266         It's no longer needed to placate gcc4's -Wuninitialized,
55267         and the attempt to placate would elicit a new warning.
55268
55269         unicodeio.c: mark unused parameters
55270         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
55271         (fallback_failure_callback): Likewise.
55272
55273 2008-12-07  Bruno Haible  <bruno@clisp.org>
55274
55275         * gnulib-tool (func_create_testdir): When building the tests
55276         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
55277         Reported by Simon Josefsson.
55278
55279 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55280
55281         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
55282
55283 2008-12-06  Bruno Haible  <bruno@clisp.org>
55284
55285         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
55286         Suggested by Eric Blake.
55287
55288 2008-12-06  Bruno Haible  <bruno@clisp.org>
55289
55290         Fix a c-stack test failure on MacOS X.
55291         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
55292         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
55293         handler for SIGBUS as well.
55294         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
55295         install a signal handler for SIGBUS as well.
55296         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
55297
55298 2008-12-06  Bruno Haible  <bruno@clisp.org>
55299
55300         Advocacy documentation.
55301         * doc/gnulib-intro.texi (Benefits): New section.
55302         * doc/gnulib.texi: Update.
55303
55304 2008-12-06  Bruno Haible  <bruno@clisp.org>
55305
55306         Document the 'manywarnings' module.
55307         * doc/manywarnings.texi: New file.
55308         * doc/gnulib.texi: Include it.
55309
55310 2008-12-05  Eric Blake  <ebb9@byu.net>
55311
55312         tests: silence some gcc warnings
55313         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
55314         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
55315         type mismatches.
55316
55317 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55318             Bruno Haible  <bruno@clisp.org>
55319
55320         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
55321
55322 2008-11-29  Jim Meyering  <meyering@redhat.com>
55323
55324         unicodeio.c: mark unused parameters
55325         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
55326         (fallback_failure_callback): Likewise.
55327
55328         fts: fix a thinko
55329         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
55330         (set_stat_type): Return S_IF*-valued "type" directly.
55331         Prompted by James Youngman's spotting a related bug.
55332         Confirmed by further testing through find.
55333
55334         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
55335         * lib/fts.c (D_TYPE): Define.
55336         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
55337         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
55338         (s_ifmt_shift_bits): New function.
55339         (set_stat_type): New function.
55340         (fts_build): When not calling fts_stat, call set_stat_type
55341         to propagate dirent.d_type info to fts_read caller.
55342         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
55343         fts_statp->st_mode type information may be valid.
55344
55345 2008-11-28  Simon Josefsson  <simon@josefsson.org>
55346
55347         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
55348         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
55349         <sds@gnu.org>.
55350
55351 2008-11-20  Bruno Haible  <bruno@clisp.org>
55352
55353         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
55354         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
55355         INCLUDE_NEXT.
55356         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
55357         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
55358         * modules/math (Makefile.am): Substitute
55359         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
55360         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
55361
55362 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
55363             Bruno Haible  <bruno@clisp.org>
55364
55365         * lib/stdint.in.h: Define all type macros so that their expansion is
55366         a single typedef'ed token. Fixes a compilation failure in Boost which
55367         does "using ::int8_t;".
55368
55369 2008-11-18  Simon Josefsson  <simon@josefsson.org>
55370
55371         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
55372         gl_MANYWARN_ALL_GCC.
55373         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
55374         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
55375         * modules/manywarnings: New file.
55376         * MODULES.html.sh: Mention manywarnings module.
55377
55378 2008-11-18  Bruno Haible  <bruno@clisp.org>
55379
55380         * doc/gnulib-tool.texi (Unit tests): New section.
55381
55382 2008-11-18  Simon Josefsson  <simon@josefsson.org>
55383
55384         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
55385         paths like 'lib/po/foo.po'.
55386
55387 2008-11-17  Simon Josefsson  <simon@josefsson.org>
55388
55389         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
55390         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
55391
55392 2008-11-17  Simon Josefsson  <simon@josefsson.org>
55393
55394         * m4/warnings.m4: Use CPPFLAGS to really check whether the
55395         parameter works.
55396
55397 2008-11-17  Simon Josefsson  <simon@josefsson.org>
55398
55399         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
55400
55401 2008-11-17  Bruce Korb  <bkorb@gnu.org>
55402
55403         * modules/parse-duration-tests: New file.
55404         * tests/test-parse-duration.sh: New file.
55405         * tests/test-parse-duration.c: New file.
55406
55407         New module 'parse-duration'.
55408         * lib/parse-duration.h: New file.
55409         * lib/parse-duration.c: New file.
55410         * modules/parse-duration: New file.
55411
55412 2008-11-17  Bruno Haible  <bruno@clisp.org>
55413
55414         * tests/test-select-out.sh: Comment out the first pipe test.
55415         Reported by Simon Josefsson.
55416
55417 2008-11-17  Bruno Haible  <bruno@clisp.org>
55418
55419         * modules/getaddrinfo (Depends-on): Add servent, hostent.
55420         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
55421         gl_HOSTENT.
55422
55423 2008-11-17  Bruno Haible  <bruno@clisp.org>
55424
55425         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
55426         -lnetwork and -lnet. Needed for Haiku and BeOS.
55427
55428 2008-11-16  Bruno Haible  <bruno@clisp.org>
55429
55430         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
55431
55432 2008-11-16  Bruno Haible  <bruno@clisp.org>
55433
55434         Avoid test failure on Haiku.
55435         * tests/test-fsync.c: Include <errno.h>.
55436         (main): Don't require that fsync (0) fails.
55437
55438 2008-11-15  Bruno Haible  <bruno@clisp.org>
55439
55440         New module 'hostent'.
55441         * modules/hostent: New file.
55442         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
55443
55444 2008-11-15  Bruno Haible  <bruno@clisp.org>
55445
55446         New module 'servent'.
55447         * modules/servent: New file.
55448         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
55449
55450 2008-11-15  Bruno Haible  <bruno@clisp.org>
55451
55452         Avoid generating same test program with two different rules.
55453         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
55454         test-frexp to test-frexp-nolibm.
55455         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
55456         test-frexpl to test-frexpl-nolibm.
55457
55458 2008-11-15  Bruno Haible  <bruno@clisp.org>
55459
55460         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
55461         $(FREXPL_LIBM).
55462
55463 2008-11-15  Bruno Haible  <bruno@clisp.org>
55464
55465         * lib/netdb.in.h: Activate the definitions also when the system's
55466         <netdb.h> has 'struct addrinfo'.
55467         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
55468         EAI_OVERFLOW or AI_NUMERICSERV.
55469         * doc/posix-headers/netdb.texi: Document the problem.
55470
55471 2008-11-15  Bruno Haible  <bruno@clisp.org>
55472
55473         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
55474
55475         Make the 'sched' module work on platforms where <sched.h> exists but
55476         is incomplete (such as Haiku).
55477         * lib/sched.in.h; Include the system's <sched.h> if it exists.
55478         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
55479         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
55480         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
55481         HAVE_STRUCT_SCHED_PARAM.
55482         * modules/sched (Depends-on): Add include_next.
55483         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
55484         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
55485         * doc/posix-headers/sched.texi: Document the issue.
55486
55487 2008-11-13  Jim Meyering  <meyering@redhat.com>
55488
55489         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
55490         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
55491         test would fail due to the difference in the Report bugs to ...
55492         line.  The expected address is empty, "<>", while the actual
55493         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
55494
55495 2008-11-12  Bruno Haible  <bruno@clisp.org>
55496
55497         lstat: don't compile lstat.c on systems lacking lstat
55498         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
55499         which don't have lstat; this is handled by lib/sys_stat.in.h already.
55500         Reported by Daniel P. Berrange via Jim Meyering.
55501
55502 2008-11-12  Jim Meyering  <meyering@redhat.com>
55503
55504         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
55505
55506 2008-11-12  Simon Josefsson  <simon@josefsson.org>
55507
55508         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
55509         instead.
55510
55511 2008-11-12  Bruno Haible  <bruno@clisp.org>
55512
55513         * lib/unicodeio.c: Include unistr.h.
55514         (utf8_wctomb): Remove function.
55515         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
55516
55517 2008-11-12  Simon Josefsson  <simon@josefsson.org>
55518
55519         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
55520         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
55521         <bruno@clisp.org>.
55522         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
55523
55524 2008-11-12  Simon Josefsson  <simon@josefsson.org>
55525
55526         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
55527         * doc/gnulib.texi: Add section for warnings.
55528
55529 2008-11-11  Bruno Haible  <bruno@clisp.org>
55530
55531         * lib/sockets.h: Add a comment.
55532
55533 2008-11-11  Karl Berry  <karl@gnu.org>
55534
55535         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
55536
55537 2008-11-11  Eric Blake  <ebb9@byu.net>
55538
55539         fdl.texi: avoid git symlinks
55540         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
55541
55542 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
55543
55544         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
55545
55546 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
55547
55548         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
55549         (gl_WARN_ADD): Substitute $2 if literal.
55550
55551 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
55552
55553         * m4/warning.m4: Remove.
55554
55555 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
55556
55557         * m4/warnings.m4: Almost complete rewrite. :-)
55558
55559 2008-11-10  Simon Josefsson  <simon@josefsson.org>
55560
55561         * modules/warnings: New module.
55562         * m4/warnings.m4: New file.
55563         * MODULES.html.sh: Mention warnings module.
55564         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
55565         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55566
55567 2008-11-10  Eric Blake  <ebb9@byu.net>
55568
55569         fdl.texi: make a symlink to the latest version
55570         * doc/standards.texi: Revert today's earlier change.
55571         * doc/fdl-1.2.texi: Rename from old fdl.texi...
55572         * doc/fdl.texi: ...and replace this with a symlink to the newer
55573         fdl-1.3.texi.
55574
55575 2008-11-10  Bruno Haible  <bruno@clisp.org>
55576
55577         * tests/test-select-fd.c (main): Accept the result file name as fourth
55578         argument.
55579         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
55580         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
55581
55582 2008-11-10  Bruno Haible  <bruno@clisp.org>
55583
55584         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
55585         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
55586         as autoconf-substituted macros.
55587         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
55588         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
55589         gl_NETDB_H_DEFAULTS. Set these variables.
55590         * modules/netdb (Makefile.am): Substitute these variables.
55591
55592 2008-11-10  Eric Blake  <ebb9@byu.net>
55593
55594         standards.texi: include correct file for FDL 1.3
55595         * doc/standards.texi (GNU Free Documentation License): Change
55596         include file to pull in FDL 1.3, not 1.2.
55597
55598         fdl.texi: revert accidental change to license
55599         * doc/fdl.texi: This is FDL 1.2, not 1.3.
55600
55601 2008-11-10  Bruno Haible  <bruno@clisp.org>
55602
55603         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
55604         cross-compiling guesses also when the native compile gives no result.
55605
55606 2008-11-10  Bruno Haible  <bruno@clisp.org>
55607
55608         * lib/spawni.c (__spawni): Force variable into the stack.
55609
55610 2008-11-10  Bruno Haible  <bruno@clisp.org>
55611
55612         Add support for Haiku.
55613         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
55614         glibc and BeOS, but also on Haiku.
55615         * lib/fpurge.c (fpurge): Likewise.
55616         * lib/freadable.c (freadable): Likewise.
55617         * lib/freadahead.c (freadahead): Likewise.
55618         * lib/freading.c (freading): Likewise.
55619         * lib/freadptr.c (freadptr): Likewise.
55620         * lib/freadseek.c (freadptrinc): Likewise.
55621         * lib/fseeko.c (rpl_fseeko): Likewise.
55622         * lib/fseterr.c (fseterr): Likewise.
55623         * lib/fwritable.c (fwritable): Likewise.
55624         * lib/fwriting.c (fwriting): Likewise.
55625         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
55626
55627 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
55628
55629         * lib/config.charset: Treat Haiku like BeOS.
55630
55631 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
55632
55633         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
55634         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
55635
55636 2008-11-08  Bruno Haible  <bruno@clisp.org>
55637
55638         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
55639         AC_CACHE_CHECK.
55640
55641 2008-11-08  Bruno Haible  <bruno@clisp.org>
55642
55643         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
55644
55645 2008-11-08  Bruno Haible  <bruno@clisp.org>
55646
55647         * tests/test-select-fd.c: New file.
55648         * tests/test-select-in.sh: New file.
55649         * tests/test-select-out.sh: New file.
55650         * tests/test-select-stdin.c: New file.
55651         * modules/select-tests (Files): Add the new files.
55652         (Depends-on): Add gettimeofday.
55653         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
55654         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
55655         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
55656
55657 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
55658             Bruno Haible  <bruno@clisp.org>
55659
55660         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
55661
55662 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
55663
55664         * build-aux/pmccabe2html: Added support for C++ source files.
55665
55666 2008-11-05  Ben Pfaff  <blp@gnu.org>
55667
55668         Fix lib/close.c build on Windows.
55669         * modules/close (Files): Add lib/w32sock.h.
55670
55671 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
55672
55673         Accept Bison's NEWS format.
55674         * build-aux/announce-gen (print_news_deltas): Tweak
55675         $re_prefix.
55676
55677 2008-11-04  Bruno Haible  <bruno@clisp.org>
55678
55679         * modules/random_r (Maintainer): Add glibc.
55680
55681 2008-11-04  Simon Josefsson  <simon@josefsson.org>
55682
55683         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
55684         by karl@freefriends.org (Karl Berry).
55685         * doc/alloca.texi: Likewise.
55686         * doc/c-ctype.texi: Likewise.
55687         * doc/c-strcase.texi: Likewise.
55688         * doc/c-strcaseeq.texi: Likewise.
55689         * doc/c-strcasestr.texi: Likewise.
55690         * doc/c-strstr.texi: Likewise.
55691         * doc/c-strtod.texi: Likewise.
55692         * doc/c-strtold.texi: Likewise.
55693         * doc/ctime.texi: Likewise.
55694         * doc/error.texi: Likewise.
55695         * doc/fdl.texi: Likewise.
55696         * doc/gcd.texi: Likewise.
55697         * doc/getdate.texi: Likewise.
55698         * doc/gnulib-intro.texi: Likewise.
55699         * doc/gnulib-tool.texi: Likewise.
55700         * doc/gnulib.texi: Likewise.
55701         * doc/inet_ntoa.texi: Likewise.
55702         * doc/maintain.texi: Likewise.
55703         * doc/make-stds.texi: Likewise.
55704         * doc/quote.texi: Likewise.
55705         * doc/regexprops-generic.texi: Likewise.
55706         * doc/standards.texi: Likewise.
55707         * doc/verify.texi: Likewise.
55708         * doc/visibility.texi: Likewise.
55709         * doc/gnulib.texi (GNU Free Documentation License): Include
55710         fdl-1.3.texi instead of fdl.texi.
55711
55712 2008-11-04  Simon Josefsson  <simon@josefsson.org>
55713
55714         * doc/fdl-1.3.texi: New file, from
55715         <http://www.gnu.org/licenses/fdl-1.3.texi>.
55716         * modules/fdl-1.3: Add.
55717         * MODULES.html.sh: Add fdl-1.3.
55718
55719 2008-11-03  Bruno Haible  <bruno@clisp.org>
55720
55721         Make determination of absolute name of header file work with AIX xlc.
55722         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
55723         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
55724         preprocessing.
55725         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
55726         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
55727
55728 2008-11-03  Simon Josefsson  <simon@josefsson.org>
55729
55730         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
55731         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
55732         <ludo@gnu.org>.
55733
55734 2008-11-02  Bruno Haible  <bruno@clisp.org>
55735
55736         Mark 'strpbrk' obsolete.
55737         * modules/strpbrk (Status, Notice): New sections.
55738         * modules/strtok_r (Depends-on): Add strpbrk.
55739
55740 2008-11-02  Bruno Haible  <bruno@clisp.org>
55741
55742         Mark 'strdup' obsolete.
55743         * modules/strdup (Status, Notice): New sections.
55744         * modules/findprog (Depends-on): Add strdup.
55745         * modules/getaddrinfo (Depends-on): Likewise.
55746         * modules/localename (Depends-on): Likewise.
55747         * modules/relocatable-lib (Depends-on): Likewise.
55748         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
55749         * modules/relocatable-prog (Depends-on): Likewise.
55750         * modules/trim (Depends-on): Likewise.
55751         * modules/unictype/gen-ctype (Depends-on): Likewise.
55752         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
55753
55754 2008-11-02  Bruno Haible  <bruno@clisp.org>
55755
55756         Mark 'strcspn' obsolete.
55757         * modules/strcspn (Status, Notice): New sections.
55758
55759 2008-11-02  Bruno Haible  <bruno@clisp.org>
55760
55761         Mark 'rmdir' obsolete.
55762         * modules/rmdir (Status, Notice): New sections.
55763         * modules/clean-temp (Depends-on): Add rmdir.
55764         * modules/openat (Depends-on): Likewise.
55765
55766 2008-11-02  Bruno Haible  <bruno@clisp.org>
55767
55768         Mark 'raise' obsolete.
55769         * modules/raise (Status, Notice): New sections.
55770         (Include): Specify <signal.h>.
55771         * modules/stdio (Depends-on): Add raise.
55772         * modules/write (Depends-on): Likewise.
55773
55774 2008-11-02  Bruno Haible  <bruno@clisp.org>
55775
55776         Mark 'memset' obsolete.
55777         * modules/memset (Status, Notice): New sections.
55778
55779 2008-11-02  Bruno Haible  <bruno@clisp.org>
55780
55781         Mark 'memmove' obsolete.
55782         * modules/memmove (Status, Notice): New sections.
55783         * modules/argp (Depends-on): Add memmove.
55784         * modules/argz (Depends-on): Likewise.
55785         * modules/canonicalize (Depends-on): Likewise.
55786         * modules/canonicalize-lgpl (Depends-on): Likewise.
55787         * modules/fts (Depends-on): Likewise.
55788         * modules/getcwd (Depends-on): Likewise.
55789         * modules/human (Depends-on): Likewise.
55790         * modules/regex (Depends-on): Likewise.
55791         * modules/striconveh (Depends-on): Likewise.
55792         * modules/trim (Depends-on): Likewise.
55793         * modules/unistr/u8-move (Depends-on): Likewise.
55794         * modules/unistr/u16-move (Depends-on): Likewise.
55795         * modules/unistr/u32-move (Depends-on): Likewise.
55796
55797 2008-11-02  Bruno Haible  <bruno@clisp.org>
55798
55799         Mark 'memcpy' obsolete.
55800         * modules/memcpy (Status, Notice): New sections.
55801
55802 2008-11-02  Bruno Haible  <bruno@clisp.org>
55803
55804         Mark 'memcmp' obsolete.
55805         * modules/memcmp (Status, Notice): New sections.
55806         * modules/argmatch (Depends-on): Add memchr.
55807         * modules/backupfile (Depends-on): Likewise.
55808         * modules/c-strcasestr (Depends-on): Likewise.
55809         * modules/crypto/des (Depends-on): Likewise.
55810         * modules/csharpcomp (Depends-on): Likewise.
55811         * modules/fnmatch (Depends-on): Likewise.
55812         * modules/git-merge-changelog (Depends-on): Likewise.
55813         * modules/isnand (Depends-on): Likewise.
55814         * modules/isnand-nolibm (Depends-on): Likewise.
55815         * modules/isnanf (Depends-on): Likewise.
55816         * modules/isnanf-nolibm (Depends-on): Likewise.
55817         * modules/isnanl (Depends-on): Likewise.
55818         * modules/isnanl-nolibm (Depends-on): Likewise.
55819         * modules/mbchar (Depends-on): Likewise.
55820         * modules/memcoll (Depends-on): Likewise.
55821         * modules/quotearg (Depends-on): Likewise.
55822         * modules/regex (Depends-on): Likewise.
55823         * modules/relocatable-prog (Depends-on): Likewise.
55824         * modules/same (Depends-on): Likewise.
55825         * modules/signbit (Depends-on): Likewise.
55826         * modules/strcasestr-simple (Depends-on): Likewise.
55827         * modules/unictype/gen-ctype (Depends-on): Likewise.
55828         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
55829         * modules/uniname/uniname (Depends-on): Likewise.
55830         * modules/unistr/u8-cmp (Depends-on): Likewise.
55831
55832 2008-11-02  Bruno Haible  <bruno@clisp.org>
55833
55834         Mark 'memchr' obsolete.
55835         * modules/memchr (Status, Notice): New sections.
55836         * modules/argp (Depends-on): Add memchr.
55837         * modules/base64 (Depends-on): Likewise.
55838         * modules/c-strcasestr (Depends-on): Likewise.
55839         * modules/chdir-long (Depends-on): Likewise.
55840         * modules/fnmatch (Depends-on): Likewise.
55841         * modules/getsubopt (Depends-on): Likewise.
55842         * modules/git-merge-changelog (Depends-on): Likewise.
55843         * modules/glob (Depends-on): Likewise.
55844         * modules/strcasestr-simple (Depends-on): Likewise.
55845         * modules/strnlen (Depends-on): Likewise.
55846
55847 2008-11-02  Bruno Haible  <bruno@clisp.org>
55848
55849         Mark 'atexit' obsolete.
55850         * modules/atexit (Status, Notice): New sections.
55851         * modules/chdir-long (Depends-on): Add atexit.
55852         * modules/wait-process (Depends-on): Likewise.
55853
55854 2008-11-02  Bruno Haible  <bruno@clisp.org>
55855
55856         * gnulib-tool: New option --with-obsolete.
55857         (func_usage): Document it.
55858         (func_modules_transitive_closure): Drop obsolete dependencies if
55859         incobsolete is not true.
55860         (func_import): Read and save the incobsolete variable to the cache.
55861
55862 2008-11-02  Bruno Haible  <bruno@clisp.org>
55863
55864         * modules/TEMPLATE-EXTENDED: New field 'Status'.
55865         * gnulib-tool: New option --extract-status.
55866         (func_usage): Document it.
55867         (sed_extract_prog): Recognize it.
55868         (func_get_status): New function.
55869
55870 2008-10-30  Simon Josefsson  <simon@josefsson.org>
55871
55872         * modules/sockets (License): Change from LGPL to LGPLv2+.
55873
55874 2008-10-28  Simon Josefsson  <simon@josefsson.org>
55875
55876         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
55877
55878 2008-10-28  Simon Josefsson  <simon@josefsson.org>
55879
55880         * MODULES.html.sh (Support for systems lacking POSIX:2001):
55881         Mention times and sys_times.
55882         * modules/sys_times, modules/sys_times-tests: New modules.
55883         * modules/times, modules/times-tests: Likewise
55884         * m4/sys_times_h.m4: New file.
55885         * lib/sys_times.in.h: Likewise
55886         * lib/times.c: Likewise.
55887         * tests/test-sys_times.c: Likewise.
55888         * tests/test-times.c: Likewise.
55889         * doc/posix-headers/sys_times.texi: Update.
55890         * doc/posix-functions/times.texi: Update.
55891
55892 2008-10-28  Jim Meyering  <meyering@redhat.com>
55893
55894         * modules/tempname (Depends-on): Add lstat.
55895
55896         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
55897
55898 2008-10-28  Simon Josefsson  <simon@josefsson.org>
55899
55900         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
55901         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
55902         using idiom used elsewhere in gnulib.
55903
55904 2008-10-27  Jim Meyering  <meyering@redhat.com>
55905
55906         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
55907
55908 2008-10-27  Simon Josefsson  <simon@josefsson.org>
55909
55910         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
55911         TESTS_ENVIRONMENT, for shell scripts that needs to call built
55912         programs.
55913         * tests/test-argp-2.sh: Use $EXEEXT when needed.
55914
55915 2008-10-27  Simon Josefsson  <simon@josefsson.org>
55916
55917         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
55918
55919 2008-10-27  Bruno Haible  <bruno@clisp.org>
55920
55921         * tests/test-lstat.c: Include <stdio.h>.
55922
55923 2008-10-27  Simon Josefsson  <simon@josefsson.org>
55924
55925         * modules/lstat-tests: New module.
55926         * tests/test-lstat.c: New file.
55927
55928 2008-10-26  Jim Meyering  <meyering@redhat.com>
55929
55930         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
55931
55932 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55933             Bruno Haible  <bruno@clisp.org>
55934
55935         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
55936         * modules/configmake (Include): Add a note that the include must come
55937         after all system headers.
55938         * lib/javaversion.c: Include configmake.h after all other includes.
55939
55940 2008-10-26  Bruno Haible  <bruno@clisp.org>
55941
55942         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
55943         HAVE_STRUCT_RANDOM_DATA to 1.
55944         (gl_STDLIB_H): Simplify.
55945
55946 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55947
55948         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
55949         substitute HAVE_STRUCT_RANDOM_DATA.
55950         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
55951         random_data.
55952         * modules/stdlib (Makefile.am): Substitute
55953         HAVE_STRUCT_RANDOM_DATA.
55954
55955 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55956
55957         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
55958         * doc/gnulib-intro.texi (Copyright): Likewise.
55959
55960 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55961
55962         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
55963         findings.
55964
55965 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
55966             Bruno Haible  <bruno@clisp.org>
55967
55968         * lib/unistd.in.h: Include <winsock2.h>.
55969         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
55970         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
55971         Provide dummy declarations.
55972         (gethostname): Override.
55973         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
55974         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
55975         gl_PREREQ_SYS_H_WINSOCK2.
55976         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
55977         * doc/posix-functions/gethostname.texi: More details.
55978
55979 2008-10-25  Bruno Haible  <bruno@clisp.org>
55980
55981         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
55982         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
55983         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
55984
55985         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
55986         here ...
55987         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
55988         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
55989         gl_UNISTD_H_DEFAULTS.
55990
55991 2008-10-25  Eric Blake  <ebb9@byu.net>
55992
55993         signbit: avoid spurious compiler failure
55994         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
55995         declarations inside function.
55996
55997 2008-10-24  Simon Josefsson  <simon@josefsson.org>
55998             Bruno Haible  <bruno@clisp.org>
55999
56000         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
56001         * modules/random_r (Depends-on): Add stdint.
56002
56003 2008-10-24  Bruno Haible  <bruno@clisp.org>
56004
56005         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
56006         Eggert.
56007         * modules/strerror (License): Likewise.
56008
56009 2008-10-24  Jim Meyering  <meyering@redhat.com>
56010
56011         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
56012         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
56013
56014 2008-10-24  Eric Blake  <ebb9@byu.net>
56015
56016         getgroups: fix compilation when getgroups is available
56017         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
56018         but with <config.h> override of getgroups disabled.
56019
56020 2008-10-24  Simon Josefsson  <simon@josefsson.org>
56021
56022         * doc/gnulib.texi (Header files): Add note about C++ problems.
56023         Explained by Bruno Haible <bruno@clisp.org>.
56024
56025 2008-10-23  Bruno Haible  <bruno@clisp.org>
56026
56027         Define a dummy SA_NODEFER macro on Interix.
56028         * lib/signal.in.h (SA_NODEFER): Define fallback.
56029         Reported by Aleksey Cheusov <cheusov@tut.by> via
56030         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
56031
56032 2008-10-23  Bruno Haible  <bruno@clisp.org>
56033
56034         * modules/freadahead (License): Change to LGPLv2+.
56035         Suggested by Simon Josefsson.
56036
56037 2008-10-23  Jim Meyering  <meyering@redhat.com>
56038
56039         random_r: new module
56040         * modules/random_r: New file.
56041         * m4/random_r.m4: New file.
56042         * lib/random_r.c: New file, from glibc.
56043         * modules/random_r-tests: New file.
56044         * tests/test-random_r.c: New file.
56045         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
56046          Declare.
56047         (RAND_MAX): Define.
56048         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
56049         * modules/stdlib: Substitute them, too.
56050         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
56051         * doc/glibc-functions/initstate_r.texi: Mention the new module.
56052         * doc/glibc-functions/random_r.texi: Likewise.
56053         * doc/glibc-functions/setstate_r.texi: Likewise.
56054         * doc/glibc-functions/srandom_r.texi: Likewise.
56055         * config/srclist.txt: Mention it.
56056
56057 2008-10-23  David Lutterkort  <lutter@redhat.com>
56058
56059         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
56060         link requirement
56061
56062 2008-10-23  Jim Meyering  <meyering@redhat.com>
56063
56064         selinux-h: mark parameters of stub functions as intentionally unused
56065         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
56066         * lib/se-context.in.h: Likewise.
56067
56068 2008-10-22  Simon Josefsson  <simon@josefsson.org>
56069
56070         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
56071
56072 2008-10-22  Simon Josefsson  <simon@josefsson.org>
56073
56074         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
56075
56076 2008-10-22  Eric Blake  <ebb9@byu.net>
56077
56078         glthread/thread: avoid compiler warning
56079         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
56080         Add unreachable abort to silence compiler.
56081
56082 2008-10-22  Eric Blake  <ebb9@byu.net>
56083
56084         netdb: also supply struct addrinfo for cygwin 1.5.x
56085         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
56086         older cygwin.
56087         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
56088         cygwin.
56089         * doc/posix-headers/netdb.texi (netdb.h): Document this.
56090
56091 2008-10-22  Bruno Haible  <bruno@clisp.org>
56092
56093         * users.txt: Update entry about pspp.
56094
56095 2008-10-21  Bruno Haible  <bruno@clisp.org>
56096
56097         Simplification.
56098         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
56099         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
56100
56101         Simplification.
56102         * lib/ioctl.c (ioctl): Don't undefine.
56103         * lib/socket.c (socket): Don't undefine.
56104
56105         Remove unused module indicator macros.
56106         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
56107         GNULIB_$1 as a C macro.
56108
56109         * doc/posix-functions/close.texi: Undo last change.
56110         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
56111         Windows platforms.
56112
56113 2008-10-21  Bruno Haible  <bruno@clisp.org>
56114
56115         Add gethostname() declaration to <unistd.h>.
56116         * lib/unistd.in.h (gethostname): New declaration.
56117         * lib/gethostname.c: Include <unistd.h>.
56118         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
56119         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
56120         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
56121         and HAVE_GETHOSTNAME.
56122         * modules/gethostname (Depends-on): Add unistd.
56123         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56124         (Include): Specify <unistd.h>.
56125         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
56126         HAVE_GETHOSTNAME.
56127         * tests/test-gethostname.c: Include <unistd.h> first.
56128
56129 2008-10-21  Bruno Haible  <bruno@clisp.org>
56130
56131         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
56132         * modules/select-tests (Depends-on): Likewise.
56133         Reported by Simon Josefsson.
56134
56135 2008-10-21  Simon Josefsson  <simon@josefsson.org>
56136
56137         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
56138         * lib/accept.c: New file, based on winsock.c.
56139         * lib/bind.c: New file, based on winsock.c.
56140         * lib/connect.c: New file, based on winsock.c.
56141         * lib/getpeername.c: New file, based on winsock.c.
56142         * lib/getsockname.c: New file, based on winsock.c.
56143         * lib/getsockopt.c: New file, based on winsock.c.
56144         * lib/ioctl.c: New file, based on winsock.c.
56145         * lib/listen.c: New file, based on winsock.c.
56146         * lib/recv.c: New file, based on winsock.c.
56147         * lib/recvfrom.c: New file, based on winsock.c.
56148         * lib/send.c: New file, based on winsock.c.
56149         * lib/sendto.c: New file, based on winsock.c.
56150         * lib/setsockopt.c: New file, based on winsock.c.
56151         * lib/shutdown.c: New file, based on winsock.c.
56152         * lib/socket.c: New file, based on winsock.c.
56153         * lib/w32sock.h: New file, based on winsock.c.
56154         * lib/winsock.c: Remove file.
56155         * modules/accept: Likewise.
56156         * modules/bind: Likewise.
56157         * modules/connect: Likewise.
56158         * modules/getpeername: Likewise.
56159         * modules/getsockname: Likewise.
56160         * modules/getsockopt: Likewise.
56161         * modules/ioctl: Likewise.
56162         * modules/listen: Likewise.
56163         * modules/recv: Likewise.
56164         * modules/recvfrom: Likewise.
56165         * modules/send: Likewise.
56166         * modules/sendto: Likewise.
56167         * modules/setsockopt: Likewise.
56168         * modules/shutdown: Likewise.
56169         * modules/socket: Use socket.c instead of winsock.c.
56170         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
56171         * doc/posix-functions/accept.texi: Doc fix.
56172         * doc/posix-functions/bind.texi: Doc fix.
56173         * doc/posix-functions/close.texi: Doc fix.
56174         * doc/posix-functions/connect.texi: Doc fix.
56175         * doc/posix-functions/getpeername.texi: Doc fix.
56176         * doc/posix-functions/getsockname.texi: Doc fix.
56177         * doc/posix-functions/getsockopt.texi: Doc fix.
56178         * doc/posix-functions/ioctl.texi: Doc fix.
56179         * doc/posix-functions/listen.texi: Doc fix.
56180         * doc/posix-functions/recv.texi: Doc fix.
56181         * doc/posix-functions/recvfrom.texi: Doc fix.
56182         * doc/posix-functions/send.texi: Doc fix.
56183         * doc/posix-functions/sendto.texi: Doc fix.
56184         * doc/posix-functions/setsockopt.texi: Doc fix.
56185         * doc/posix-functions/shutdown.texi: Doc fix.
56186         * doc/posix-functions/socket.texi: Doc fix.
56187
56188 2008-10-20  Bruno Haible  <bruno@clisp.org>
56189
56190         Take into account the role of SIGABRT_COMPAT on Windows 2008.
56191         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
56192         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
56193         as an alias for SIGABRT.
56194         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
56195         (sigaction): Map it to SIGABRT.
56196         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
56197
56198 2008-10-20  Bruno Haible  <bruno@clisp.org>
56199
56200         * lib/fts.c: Don't include lstat.h.
56201         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
56202
56203         Move the lstat() declaration to <sys/stat.h>.
56204         * lib/lstat.h: Remove file.
56205         * lib/sys_stat.in.h: Add special invocation convention.
56206         (lstat): New declaration.
56207         * lib/lstat.c (orig_lstat): New function.
56208         (rpl_lstat): Use orig_lstat instead of lstat.
56209         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
56210         AC_C_INLINE. Set REPLACE_LSTAT.
56211         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
56212         and REPLACE_LSTAT.
56213         * modules/lstat (Files): Remove lib/lstat.h.
56214         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
56215         (Include): Specify <sys/stat.h> instead of lstat.h.
56216         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
56217         REPLACE_LSTAT.
56218         * NEWS: Mention the change.
56219
56220 2008-10-20  Bruno Haible  <bruno@clisp.org>
56221
56222         * modules/posix_spawn-tests: New file.
56223         * tests/test-posix_spawn3.c: New file.
56224
56225 2008-10-20  Bruno Haible  <bruno@clisp.org>
56226
56227         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
56228         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
56229         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
56230         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
56231         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
56232
56233 2008-10-20  Bruno Haible  <bruno@clisp.org>
56234
56235         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
56236         of posix_spawn on AIX 5.3.
56237
56238 2008-10-20  Bruno Haible  <bruno@clisp.org>
56239
56240         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
56241
56242 2008-10-20  Bruno Haible  <bruno@clisp.org>
56243
56244         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
56245         of AC_LANG_PROGRAM.
56246
56247 2008-10-20  Simon Josefsson  <simon@josefsson.org>
56248
56249         * lib/netdb.in.h: Don't define GNU specific constants until they
56250         are supported or needed.  Reported by Bruno Haible
56251         <bruno@clisp.org>.
56252
56253 2008-10-20  Simon Josefsson  <simon@josefsson.org>
56254
56255         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
56256
56257 2008-10-20  Simon Josefsson  <simon@josefsson.org>
56258
56259         * lib/getaddrinfo.h: Remove file.
56260         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
56261         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
56262         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
56263         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
56264         * modules/netdb: Substitute GNULIB_GETADDRINFO.
56265         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
56266         * tests/test-getaddrinfo.c: Likewise.
56267         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
56268         * NEWS: Mention change.
56269
56270 2008-10-19  Bruno Haible  <bruno@clisp.org>
56271
56272         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
56273
56274 2008-10-19  Bruno Haible  <bruno@clisp.org>
56275
56276         * lib/wait-process.c: Include simply <sys/wait.h>.
56277         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
56278         WIFSTOPPED): Remove fallback definitions.
56279         * modules/wait-process (Depends-on): Add sys_wait.
56280
56281         New module 'sys_wait'.
56282         * modules/sys_wait: New file.
56283         * lib/sys_wait.in.h: New file, partially copied from
56284         lib/wait-process.c.
56285         * m4/sys_wait_h.m4: New file.
56286         * doc/posix-headers/sys_wait.texi: Mention the new module.
56287
56288 2008-10-19  Bruno Haible  <bruno@clisp.org>
56289
56290         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
56291
56292 2008-10-19  Bruno Haible  <bruno@clisp.org>
56293
56294         Assume that waitpid() fills an 'int' status, not a 'union wait'.
56295         * lib/wait-process.c (WAIT_T): Remove type.
56296         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
56297         (wait_subprocess): Update.
56298
56299 2008-10-19  Bruno Haible  <bruno@clisp.org>
56300
56301         New module 'atoll'.
56302         * modules/atoll: New file.
56303         * lib/stdlib.in.h (atoll): New declaration.
56304         * lib/atoll.c: New file, from glibc with modifications.
56305         * m4/atoll.m4: New file.
56306         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
56307         HAVE_ATOLL.
56308         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
56309         * doc/posix-functions/atoll.texi: Mention the new module.
56310
56311 2008-10-19  Bruno Haible  <bruno@clisp.org>
56312
56313         Add strtoull() declaration to <stdlib.h>.
56314         * lib/stdlib.in.h (strtoull): New declaration.
56315         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
56316         Set HAVE_STRTOULL.
56317         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
56318         HAVE_STRTOULL.
56319         * modules/strtoull (Depends-on): Add stdlib.
56320         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56321         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
56322         HAVE_STRTOULL.
56323
56324 2008-10-19  Bruno Haible  <bruno@clisp.org>
56325
56326         Add strtoll() declaration to <stdlib.h>.
56327         * lib/stdlib.in.h (strtoll): New declaration.
56328         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
56329         Set HAVE_STRTOLL.
56330         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
56331         HAVE_STRTOLL.
56332         * modules/strtoll (Depends-on): Add stdlib.
56333         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56334         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
56335
56336 2008-10-19  Bruno Haible  <bruno@clisp.org>
56337
56338         * modules/bcopy (Depends-on): Add strings.
56339         (Include): Specify <strings.h>.
56340
56341 2008-10-19  Bruno Haible  <bruno@clisp.org>
56342
56343         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
56344
56345 2008-10-19  Bruno Haible  <bruno@clisp.org>
56346
56347         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
56348         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
56349         mingw.
56350
56351 2008-10-19  Bruno Haible  <bruno@clisp.org>
56352
56353         * lib/atanl.c: Don't include isnanl.h.
56354         * lib/cosl.c: Likewise.
56355         * lib/ldexpl.c: Likewise.
56356         * lib/logl.c: Likewise.
56357         * lib/sinl.c: Likewise.
56358         * lib/sqrtl.c: Likewise.
56359         * lib/tanl.c: Likewise.
56360
56361         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
56362         * lib/isnanf.h: Remove file.
56363         * lib/isnand.h: Remove file.
56364         * lib/isnanl.h: Remove file.
56365         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
56366         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
56367         macros.
56368         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
56369         HAVE_ISNANF, don't define it as a C macro.
56370         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
56371         HAVE_ISNAND, don't define it as a C macro.
56372         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
56373         HAVE_ISNANL, don't define it as a C macro.
56374         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
56375         HAVE_ISNAN[FDL].
56376         * modules/isnanf (Files): Remove lib/isnanf.h.
56377         (Depends-on): Add math.
56378         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
56379         (Include): Specify <math.h> instead of isnanf.h.
56380         * modules/isnand (Files): Remove lib/isnand.h.
56381         (Depends-on): Add math.
56382         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
56383         (Include): Specify <math.h> instead of isnand.h.
56384         * modules/isnanl (Files): Remove lib/isnanl.h.
56385         (Depends-on): Add math.
56386         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
56387         (Include): Specify <math.h> instead of isnanl.h.
56388         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
56389         HAVE_ISNAN[FDL].
56390         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
56391         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
56392         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
56393         * NEWS: Mention the change.
56394
56395 2008-10-18  Bruno Haible  <bruno@clisp.org>
56396
56397         Add getusershell(), setusershell(), endusershell() declarations to
56398         <unistd.h>.
56399         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
56400         declarations.
56401         * lib/getusershell.c: Include unistd.h.
56402         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
56403         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
56404         HAVE_GETUSERSHELL.
56405         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
56406         and HAVE_GETUSERSHELL.
56407         * modules/getusershell (Depends-on): Add unistd, extensions.
56408         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56409         (Include): Specify <unistd.h>.
56410         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
56411         HAVE_GETUSERSHELL.
56412
56413 2008-10-18  Bruno Haible  <bruno@clisp.org>
56414
56415         Add a getloadavg() declaration to <stdlib.h>.
56416         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
56417         getloadavg declaration.
56418         (getloadavg): New declaration.
56419         * lib/getloadavg.c: Include <stdlib.h> first.
56420         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
56421         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
56422         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
56423         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
56424         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
56425         * modules/getloadavg (Depends-on): Add stdlib, extensions.
56426         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56427         (Include): Specify <stdlib.h>.
56428         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
56429         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
56430
56431 2008-10-18  Bruno Haible  <bruno@clisp.org>
56432
56433         * lib/dirchownmod.c: Don't include lchmod.h.
56434
56435         Move the lchmod() declaration to <sys/stat.h>.
56436         * lib/lchmod.h: Remove file.
56437         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
56438         (lchmod): New declaration, moved here from lib/lchown.h.
56439         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
56440         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
56441         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
56442         and HAVE_LCHMOD.
56443         * modules/lchmod (Files): Remove lib/lchmod.h.
56444         (Depends-on): Add sys_stat, extensions.
56445         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
56446         (Include): Specify <sys/stat.h> instead of lchmod.h.
56447         * modules/sys_stat (Depends-on): Add link-warning.
56448         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
56449         definition of GL_LINK_WARNING.
56450         * NEWS: Mention the change.
56451
56452 2008-10-18  Bruno Haible  <bruno@clisp.org>
56453
56454         * lib/fchdir.c: Don't include dirfd.h.
56455         * lib/fts.c: Likewise.
56456         * lib/getcwd.c: Likewise.
56457         * lib/glob.c: Likewise.
56458
56459         Move the dirfd() declaration to <dirent.h>.
56460         * lib/dirfd.h: Remove file.
56461         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
56462         (dirfd): New declaration.
56463         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
56464         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
56465         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
56466         HAVE_DECL_DIRFD.
56467         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
56468         HAVE_DECL_DIRFD.
56469         * modules/dirfd (Files): Remove lib/dirfd.h.
56470         (Depends-on): Add dirent, extensions.
56471         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
56472         (Include): Specify <dirent.h> instead of dirfd.h.
56473         * modules/dirent (Depends-on): Add link-warning.
56474         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
56475         definition of GL_LINK_WARNING.
56476         * NEWS: Mention the change.
56477
56478 2008-10-18  Bruno Haible  <bruno@clisp.org>
56479
56480         Move the euidaccess() declaration to <unistd.h>.
56481         * lib/euidaccess.h: Remove file.
56482         * lib/unistd.in.h (euidaccess): New declaration.
56483         * lib/euidaccess.c: Don't include euidaccess.h.
56484         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
56485         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
56486         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
56487         and HAVE_EUIDACCESS.
56488         * modules/euidaccess (Files): Remove lib/euidaccess.h.
56489         (Depends-on): Add unistd.
56490         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56491         (Include): Specify <unistd.h> instead of euidaccess.h.
56492         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
56493         HAVE_EUIDACCESS.
56494         * NEWS: Mention the change.
56495
56496 2008-10-18  Bruno Haible  <bruno@clisp.org>
56497
56498         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
56499
56500         Move the getdomainname() declaration to <unistd.h>.
56501         * lib/getdomainname.h: Remove file.
56502         * lib/unistd.in.h (getdomainname): New declaration.
56503         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
56504         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
56505         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
56506         HAVE_GETDOMAINNAME.
56507         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
56508         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
56509         * modules/getdomainname (Files): Remove lib/getdomainname.h.
56510         (Depends-on): Add unistd, extensions.
56511         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56512         (Includes): Specify <unistd.h> instead of getdomainname.h.
56513         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
56514         HAVE_GETDOMAINNAME.
56515         * NEWS: Mention the change.
56516
56517 2008-10-18  Bruno Haible  <bruno@clisp.org>
56518
56519         * modules/dirent: New file.
56520         * m4/dirent_h.m4: New file.
56521         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
56522         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
56523         * modules/fchdir (Files): Remove lib/dirent.in.h.
56524         (Depends-on): Add dirent.
56525         (Makefile.am): Move rules to modules/dirent.
56526         * doc/posix-headers/dirent.texi: Mention the new module.
56527
56528 2008-10-18  Bruno Haible  <bruno@clisp.org>
56529
56530         Avoid -Wunused-parameter warnings in public gnulib header files.
56531         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
56532         macro.
56533         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
56534
56535 2008-10-18  Bruno Haible  <bruno@clisp.org>
56536
56537         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
56538         * doc/glibc-functions/error.texi: Mention the module 'error'.
56539         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
56540         * doc/glibc-functions/getdomainname.texi: Mention the module
56541         'getdomainname'.
56542         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
56543         * doc/glibc-functions/getpagesize.texi: Mention the module
56544         'getpagesize'.
56545         * doc/glibc-functions/getusershell.texi: Mention the module
56546         'getusershell'.
56547         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
56548         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
56549         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
56550         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
56551         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
56552         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
56553         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
56554         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
56555         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
56556         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
56557         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
56558         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
56559         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
56560         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
56561
56562 2008-10-17  Bruno Haible  <bruno@clisp.org>
56563
56564         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
56565         HP-UX and IRIX, use -0.0L.
56566         * tests/test-ceill.c (minus_zero): Likewise.
56567         * tests/test-floorl.c (minus_zero): Likewise.
56568         * tests/test-frexpl.c (minus_zero): Likewise.
56569         * tests/test-isnan.c (minus_zerol): Likewise.
56570         * tests/test-isnanl.h (minus_zero): Likewise.
56571         * tests/test-ldexpl.c (minus_zero): Likewise.
56572         * tests/test-roundl.c (minus_zero): Likewise.
56573         * tests/test-signbit.c (minus_zerol): Likewise.
56574         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
56575         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
56576         * tests/test-truncl.c (minus_zero): Likewise.
56577         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
56578         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
56579         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
56580         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
56581
56582 2008-10-17  Bruno Haible  <bruno@clisp.org>
56583
56584         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
56585         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
56586         that it gets activated only for gcc >= 3.0.
56587         * lib/dirent.in.h: Likewise.
56588         * lib/errno.in.h: Likewise.
56589         * lib/fcntl.in.h: Likewise.
56590         * lib/float.in.h: Likewise.
56591         * lib/iconv.in.h: Likewise.
56592         * lib/inttypes.in.h: Likewise.
56593         * lib/locale.in.h: Likewise.
56594         * lib/math.in.h: Likewise.
56595         * lib/netdb.in.h: Likewise.
56596         * lib/netinet_in.in.h: Likewise.
56597         * lib/search.in.h: Likewise.
56598         * lib/signal.in.h: Likewise.
56599         * lib/spawn.in.h: Likewise.
56600         * lib/stdarg.in.h: Likewise.
56601         * lib/stdint.in.h: Likewise.
56602         * lib/stdio.in.h: Likewise.
56603         * lib/stdlib.in.h: Likewise.
56604         * lib/string.in.h: Likewise.
56605         * lib/strings.in.h: Likewise.
56606         * lib/sys_file.in.h: Likewise.
56607         * lib/sys_ioctl.in.h: Likewise.
56608         * lib/sys_select.in.h: Likewise.
56609         * lib/sys_socket.in.h: Likewise.
56610         * lib/sys_stat.in.h: Likewise.
56611         * lib/sys_time.in.h: Likewise.
56612         * lib/sysexits.in.h: Likewise.
56613         * lib/time.in.h: Likewise.
56614         * lib/unistd.in.h: Likewise.
56615         * lib/wchar.in.h: Likewise.
56616         * lib/wctype.in.h: Likewise.
56617         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
56618
56619 2008-10-17  Jim Meyering  <meyering@redhat.com>
56620
56621         ignore-value: don't depend on inline module
56622         * modules/ignore-value (Depends-on): Remove 'inline'.
56623         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
56624         Suggestion from Bruno Haible.
56625
56626 2008-10-17  Bruno Haible  <bruno@clisp.org>
56627
56628         New implementation of condition variables for Win32.
56629         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
56630         (gl_linked_waitqueue_t): New type.
56631         (gl_cond_t): Use it.
56632         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
56633         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
56634         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
56635         (glthread_cond_init_func, glthread_cond_wait_func,
56636         glthread_cond_timedwait_func, glthread_cond_signal_func,
56637         glthread_cond_broadcast_func, glthread_cond_destroy_func):
56638         Reimplemented on the basis of gl_linked_waitqueue_t.
56639         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
56640         gl_waitqueue_t.
56641         (gl_rwlock_t): Update.
56642         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
56643
56644 2008-10-17  Simon Josefsson  <simon@josefsson.org>
56645
56646         * modules/recvfrom (Depends-on): Add dependency on getpeername.
56647         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
56648
56649 2008-10-17  Jim Meyering  <meyering@redhat.com>
56650
56651         ignore-value: new module
56652         * modules/ignore-value: New file.
56653         * lib/ignore-value.h: New file.
56654         * MODULES.html.sh (Compiler warning management): New section,
56655         just for this module.  More to come.
56656
56657 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
56658
56659         open-safer.c: avoid 'signed and unsigned in conditional...' warning
56660         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
56661         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
56662
56663 2008-10-16  Jim Meyering  <meyering@redhat.com>
56664
56665         openat-die.c: avoid 'no previous prototype' warning
56666         * lib/openat-die.c: Include "openat.h".
56667         Reported by Reuben Thomas <rrt@sc3d.org>.
56668
56669 2008-10-16  Simon Josefsson  <simon@josefsson.org>
56670
56671         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
56672         * lib/netdb.in.h: Fix typo.
56673         Reported by Bruno Haible  <bruno@clisp.org>
56674
56675         * lib/netdb.in.h: Include sys/socket.h for platforms without
56676         netdb.h, to get structures like hostent on MinGW.
56677         * modules/netdb (Depends-on): Add sys_socket.
56678
56679 2008-10-15  Simon Josefsson  <simon@josefsson.org>
56680
56681         * modules/netdb, modules/netdb-tests: New file.
56682         * m4/netdb_h.m4: New file.
56683         * lib/netdb.in.h: Add, currently just an empty file pending
56684         definitions.
56685         * tests/test-netdb.c: New file.
56686         * doc/posix-headers/netdb.texi: Mention that we replace it if
56687         needed.
56688         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56689         netdb.
56690
56691 2008-10-15  Simon Josefsson  <simon@josefsson.org>
56692
56693         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
56694         with code.
56695
56696 2008-10-13  Bruno Haible  <bruno@clisp.org>
56697
56698         * lib/glthread/cond.c (glthread_cond_wait_func,
56699         glthread_cond_timedwait_func): Add a comment.
56700
56701 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
56702
56703         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
56704         * tests/test-select.c: Likewise,
56705
56706 2008-10-13  Bruno Haible  <bruno@clisp.org>
56707
56708         * lib/glthread/cond.c (glthread_cond_wait_func,
56709         glthread_cond_timedwait_func): Fix variable name.
56710         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
56711
56712 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
56713
56714         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
56715         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
56716         struct sockaddr.sa_len.
56717         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
56718
56719 2008-10-13  Simon Josefsson  <simon@josefsson.org>
56720
56721         * build-aux/pmccabe2html: Add css and css_url parameters.
56722
56723 2008-10-12  Bruno Haible  <bruno@clisp.org>
56724
56725         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
56726         calling aclx_get.
56727         Reported by Rainer Tammer <tammer@tammer.net>.
56728
56729 2008-10-12  Bruno Haible  <bruno@clisp.org>
56730
56731         Use msvcrt aware primitives for creation/termination of Win32 threads.
56732         * lib/glthread/thread.c: Include <process.h>.
56733         (glthread_create_func): Use _beginthreadex instead of CreateThread.
56734         (wrapper_func): Update signature.
56735         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
56736
56737 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
56738             Bruno Haible  <bruno@clisp.org>
56739
56740         Provide a Win32 implementation of the 'cond' module.
56741         * lib/glthread/cond.h [USE_WIN32]: New implementation.
56742         * lib/glthread/cond.c (glthread_cond_init_func,
56743         glthread_cond_wait_func, glthread_cond_timedwait_func,
56744         glthread_cond_signal_func, glthread_cond_broadcast_func,
56745         glthread_cond_destroy_func) [USE_WIN32]: New functions.
56746         * modules/cond (Dependencies): Add gettimeofday.
56747
56748 2008-10-11  Bruno Haible  <bruno@clisp.org>
56749
56750         Make sleep work on older versions of mingw.
56751         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
56752         only whether it exists.
56753         * doc/posix-functions/sleep.texi: Mention the problem with older
56754         versions of mingw.
56755
56756 2008-10-11  Bruno Haible  <bruno@clisp.org>
56757
56758         New module 'shutdown'.
56759         * modules/shutdown: New file.
56760         * lib/sys_socket.in.h (shutdown): New declaration.
56761         * lib/winsock.c (shutdown): New function.
56762         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
56763         GNULIB_SHUTDOWN.
56764         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
56765         * doc/posix-functions/shutdown.texi: Document the new module.
56766
56767 2008-10-11  Jim Meyering  <meyering@redhat.com>
56768
56769         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
56770
56771 2008-10-11  Bruno Haible  <bruno@clisp.org>
56772
56773         New module 'fclose'.
56774         * modules/fclose: New file.
56775         * lib/stdio.in.h (fclose): New declaration.
56776         * lib/fclose.c: New file.
56777         * m4/fclose.m4: New file.
56778         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
56779         REPLACE_FCLOSE.
56780         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
56781         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
56782         REPLACE_FCLOSE.
56783         * modules/close (Depends-on): fclose.
56784         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
56785
56786 2008-10-11  Bruno Haible  <bruno@clisp.org>
56787
56788         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
56789         set errno and don't call _close.
56790
56791 2008-10-10  Bruno Haible  <bruno@clisp.org>
56792
56793         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
56794         ACL, not afterwards. Fixes test failure on Cygwin.
56795
56796 2008-10-09  Ben Pfaff  <blp@gnu.org>
56797
56798         * build-aux/announce-gen: Fix gnulib version related part of usage
56799         message.  Die with a useful error message if no tarballs are
56800         found.
56801
56802 2008-10-10  Jim Meyering  <meyering@redhat.com>
56803
56804         bootstrap: use git's --depth=N option only if it's supported
56805         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
56806         recognize the --depth option.  Reported by Pádraig Brady.
56807
56808 2008-10-09  Bruno Haible  <bruno@clisp.org>
56809
56810         New module 'ioctl'.
56811         * modules/ioctl: New file.
56812         * lib/sys_socket.in.h (ioctl): Remove declaration.
56813         * lib/winsock.c: Include <sys/ioctl.h>.
56814         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
56815         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
56816         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
56817         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
56818         * doc/posix-functions/ioctl.texi: Mention the new module.
56819
56820 2008-10-09  Bruno Haible  <bruno@clisp.org>
56821
56822         New module 'sys_ioctl'.
56823         * lib/sys_ioctl.in.h: New file.
56824         * m4/sys_ioctl_h.m4: New file.
56825         * modules/sys_ioctl: New file.
56826         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
56827
56828 2008-10-09  Bruno Haible  <bruno@clisp.org>
56829
56830         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
56831         * lib/winsock.c: Include <stdarg.h>.
56832         (rpl_ioctl): Change to second argument 'int' and then varargs.
56833
56834 2008-10-09  Bruno Haible  <bruno@clisp.org>
56835
56836         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
56837         when the sys_socket module is present and the system has <winsock2.h>.
56838
56839 2008-10-09  Bruno Haible  <bruno@clisp.org>
56840
56841         * doc/posix-functions/close.texi: Mention module 'close' instead of
56842         module 'sys_socket'.
56843
56844 2008-10-09  Bruno Haible  <bruno@clisp.org>
56845
56846         * doc/glibc-headers/sys_ioctl.texi: New file.
56847         * doc/gnulib.texi: Include it.
56848
56849 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56850             Bruno Haible  <bruno@clisp.org>
56851
56852         Combine the two replacements of 'close'.
56853         * lib/sys_socket.in.h (close): Define to a reminder to include
56854         <unistd.h>.
56855         (_gl_close_fd_maybe_socket): New declaration.
56856         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
56857         * lib/winsock.c (close): Remove undefinition.
56858         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
56859         needed for the gnulib module 'close'.
56860         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
56861         define to an error symbol or to a warning, if suitable.
56862         * lib/close.c: Include <sys/socket.h>.
56863         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
56864         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
56865         UNISTD_H_HAVE_WINSOCK2_H.
56866         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
56867         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
56868         UNISTD_H_HAVE_WINSOCK2_H.
56869         * modules/sys_socket (Files): Add m4/unistd_h.m4.
56870         (configure.ac): Set a module indicator.
56871         (Makefile.am): Substitute GNULIB_CLOSE.
56872         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
56873         * modules/poll-tests (Depends-on): Add close.
56874         * modules/select-tests (Depends-on): Likewise.
56875
56876 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56877             Bruno Haible  <bruno@clisp.org>
56878
56879         New module 'close'.
56880         * modules/close: New file.
56881         * lib/unistd.in.h (close): Move declaration out of the
56882         FCHDIR_REPLACEMENT scope.
56883         (_gl_unregister_fd): New declaration.
56884         * lib/close.c: New file.
56885         * lib/fchdir.c (rpl_close): Remove function.
56886         * m4/close.m4: New file.
56887         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
56888         close.
56889         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
56890         REPLACE_CLOSE.
56891         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
56892         REPLACE_CLOSE.
56893         * modules/fchdir (Depends-on): Add close.
56894
56895 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56896             Bruno Haible  <bruno@clisp.org>
56897
56898         * lib/fcntl.in.h (open): Simplify conditionals.
56899         (_gl_register_fd): New declaration.
56900         * lib/fchdir.c (rpl_open): Remove function.
56901         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
56902         also.
56903         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
56904         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
56905         open.
56906
56907 2008-10-09  Jim Meyering  <meyering@redhat.com>
56908
56909         GNUmakefile: use the more name-space-friendly "_version"
56910         * top/GNUmakefile (_dummy): Update.
56911         (_version): Rename from "version".
56912
56913 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56914             Bruno Haible  <bruno@clisp.org>
56915
56916         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
56917         rpl_close.
56918         (_gl_register_fd): New function, extracted from rpl_open.
56919         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
56920         (rpl_open, rpl_opendir): Use _gl_register_fd.
56921
56922 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56923
56924         Fix organization of 'open' replacement.
56925         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
56926         (gl_FUNC_OPEN): Use it.
56927         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
56928
56929 2008-10-08  Bruno Haible  <bruno@clisp.org>
56930
56931         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
56932
56933 2008-10-08  Simon Josefsson  <simon@josefsson.org>
56934
56935         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
56936         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
56937         listen).
56938
56939 2008-10-08  Eric Blake  <ebb9@byu.net>
56940
56941         GNUmakefile: add 'make version' target
56942         * top/GNUmakefile (_curr-ver): Split version update rules...
56943         (version): ...into a target.
56944
56945 2008-10-07  Bruno Haible  <bruno@clisp.org>
56946
56947         Use a more portable replacement expression for -0.0L.
56948         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
56949         instead of -0.0L. Fix m4 quotation.
56950
56951         * tests/test-signbit.c: Include <float.h>.
56952         (minus_zero): New variable.
56953         (test_signbitl): Use minus_zero instead of -zero.
56954         * modules/signbit-tests (Depends-on): Add float.
56955
56956         * tests/test-ceill.c: Include <float.h>.
56957         (zero): Remove variable.
56958         (minus_zero): New variable.
56959         (main): Use minus_zero instead of -zero.
56960         * modules/ceill-tests (Depends-on): Add float.
56961
56962         * tests/test-floorl.c: Include <float.h>.
56963         (zero): Remove variable.
56964         (minus_zero): New variable.
56965         (main): Use minus_zero instead of -zero.
56966         * modules/floorl-tests (Depends-on): Add float.
56967
56968         * tests/test-roundl.c: Include <float.h>.
56969         (zero): Remove variable.
56970         (minus_zero): New variable.
56971         (main): Use minus_zero instead of -zero.
56972         * modules/roundl-tests (Depends-on): Add float.
56973
56974         * tests/test-truncl.c: Include <float.h>.
56975         (zero): Remove variable.
56976         (minus_zero): New variable.
56977         (main): Use minus_zero instead of -zero.
56978         * modules/truncl-tests (Depends-on): Add float.
56979
56980         * tests/test-frexpl.c (zero): Remove variable.
56981         (minus_zero): New variable.
56982         (main): Use minus_zero instead of -zero.
56983         * modules/frexpl-tests (Depends-on): Add float.
56984
56985         * tests/test-isnan.c (zerol): Remove variable.
56986         (minus_zerol): New variable.
56987         (test_long_double): Use minus_zerol instead of -zerol.
56988         * modules/isnan-tests (Depends-on): Add float.
56989
56990         * tests/test-isnanl.h (zero): Remove variable.
56991         (minus_zero): New variable.
56992         (main): Use minus_zero instead of -zero.
56993         * modules/isnanl-nolibm-tests (Depends-on): Add float.
56994         * modules/isnanl-tests (Depends-on): Add float.
56995
56996         * tests/test-ldexpl.c (zero): Remove variable.
56997         (minus_zero): New variable.
56998         (main): Use minus_zero instead of -zero.
56999         * modules/ldexpl-tests (Depends-on): Add float.
57000
57001         * tests/test-snprintf-posix.h (zerol): Remove variable.
57002         (minus_zerol): New variable.
57003         (test_function): Use minus_zerol instead of -zerol.
57004         * modules/snprintf-posix-tests (Depends-on): Add float.
57005         * modules/vsnprintf-posix-tests (Depends-on): Add float.
57006
57007         * tests/test-sprintf-posix.h (zerol): Remove variable.
57008         (minus_zerol): New variable.
57009         (test_function): Use minus_zerol instead of -zerol.
57010         * modules/sprintf-posix-tests (Depends-on): Add float.
57011         * modules/vsprintf-posix-tests (Depends-on): Add float.
57012
57013         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
57014         (minus_zerol): New variable.
57015         (test_function): Use minus_zerol instead of -zerol.
57016         * modules/vasnprintf-posix-tests (Depends-on): Add float.
57017
57018         * tests/test-vasprintf-posix.c (zerol): Remove variable.
57019         (minus_zerol): New variable.
57020         (test_function): Use minus_zerol instead of -zerol.
57021         * modules/vasprintf-posix-tests (Depends-on): Add float.
57022
57023 2008-10-07  Simon Josefsson  <simon@josefsson.org>
57024
57025         * MODULES.html.sh (Support for building documentation): Mention
57026         pmccabe2html.  Sort entries.
57027
57028         Add pmccabe2html module, from gnupdf.
57029         * build-aux/pmccabe.css: New file.
57030         * build-aux/pmccabe2html: New file.
57031         * m4/pmccabe2html.m4: New file.
57032         * modules/pmccabe2html: New file.
57033
57034 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
57035
57036         flock: new module
57037         * MODULES.html.sh: Add to list of modules.
57038         * lib/flock.c: flock implementation for Windows and Unix systems
57039         which have fcntl.
57040         * doc/glibc-functions/flock.texi: Update documentation.
57041         * lib/sys_file.in.h: <sys/file.h> header file.
57042         * m4/flock.m4: M4 macros.
57043         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
57044         * modules/flock: flock module.
57045         * modules/flock-tests: flock tests module.
57046         * modules/sys_file: sys/file.h module.
57047         * tests/test-flock.c: test suite for flock.
57048
57049 2008-10-06  Jim Meyering  <meyering@redhat.com>
57050
57051         bootstrap: check for LT_INIT more portably still ;-)
57052         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
57053         Spotted by Bruno Haible.
57054
57055 2008-10-06  Eric Blake  <ebb9@byu.net>
57056
57057         test-signbit: avoid tripping Irix cc bug on -0.0L
57058         * tests/test-signbit.c (minus_zerol): Delete, and replace with
57059         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
57060         entire testsuite consistent and avoids an Irix 6.2 bug.
57061
57062 2008-10-05  Bruno Haible  <bruno@clisp.org>
57063             Jim Meyering  <jim@meyering.net>
57064
57065         Add an option for ignoring EPIPE during close_stdout.
57066         * lib/closeout.h: Include <stdbool.h>.
57067         (close_stdout_set_ignore_EPIPE): New declaration.
57068         * lib/closeout.c: Include <stdbool.h>.
57069         (ignore_EPIPE): New variable.
57070         (close_stdout_set_ignore_EPIPE): New function.
57071         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
57072         * lib/close-stream.c (close_stream): Mention the possible EPIPE
57073         failure.
57074         * modules/closeout (Depends-on): Add stdbool.
57075
57076 2008-10-05  Bruno Haible  <bruno@clisp.org>
57077
57078         * modules/accept: New file.
57079         * modules/bind: New file.
57080         * modules/connect: New file.
57081         * modules/getpeername: New file.
57082         * modules/getsockname: New file.
57083         * modules/getsockopt: New file.
57084         * modules/listen: New file.
57085         * modules/recv: New file.
57086         * modules/recvfrom: New file.
57087         * modules/send: New file.
57088         * modules/sendto: New file.
57089         * modules/setsockopt: New file.
57090         * modules/socket: New file.
57091         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
57092         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
57093         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
57094         the particular module is requested. Add a link warning when the
57095         particular module is not requested.
57096         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
57097         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
57098         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
57099         the particular module is requested.
57100         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
57101         gl_SYS_SOCKET_H_DEFAULTS): New macros.
57102         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
57103         * modules/sys_socket (Depends-on): Add link-warning.
57104         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
57105         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
57106         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
57107         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
57108         GL_LINK_WARNING.
57109         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
57110         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
57111         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
57112         * doc/posix-functions/getpeername.texi: Mention the new module
57113         'getpeername'.
57114         * doc/posix-functions/getsockname.texi: Mention the new module
57115         'getsockname'.
57116         * doc/posix-functions/getsockopt.texi: Mention the new module
57117         'getsockopt'.
57118         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
57119         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
57120         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
57121         * doc/posix-functions/send.texi: Mention the new module 'send'.
57122         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
57123         * doc/posix-functions/setsockopt.texi: Mention the new module
57124         'setsockopt'.
57125         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
57126         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
57127         listen, connect, accept.
57128         * modules/select-tests (Depends-on): Likewise.
57129
57130 2008-10-05  Bruno Haible  <bruno@clisp.org>
57131
57132         * lib/winsock.c (strerror): Remove unused #undef.
57133         (rpl_close): Remove unused local variable.
57134
57135         * modules/sys_socket (Depends-on); Add errno.
57136
57137 2008-10-05  Bruno Haible  <bruno@clisp.org>
57138
57139         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
57140         (select): Add a link warning when the 'select' module is not used.
57141         * modules/sys_select (Depends-on): Add link-warning.
57142         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
57143         Suggested by Paolo Bonzini.
57144
57145 2008-10-05  Jim Meyering  <meyering@redhat.com>
57146
57147         bootstrap: check for LT_INIT more portably
57148         * build-aux/bootstrap: Avoid using grep -E, since it's not
57149         portable enough.  Suggestion from Bruno Haible.
57150
57151 2008-10-05  Bruno Haible  <bruno@clisp.org>
57152
57153         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
57154         as being fixed by gnulib.
57155
57156 2008-10-05  Bruno Haible  <bruno@clisp.org>
57157
57158         * modules/select-tests: New file, mostly copied from
57159         modules/sys_select-tests.
57160         * tests/test-select.c: New file, mostly copied from
57161         tests/test-sys_select.c.
57162         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
57163         * modules/sys_select-tests (Depends-on): Remove all dependencies.
57164         (Makefile.am): Remove test_sys_select_LDADD.
57165
57166         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
57167         to an undefined symbol, for an error message.
57168         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
57169         (gl_SYS_SELECT_H_DEFAULTS): New macro.
57170         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
57171         winsock-select.c here.
57172         * modules/sys_select (Files): Remove lib/winsock-select.c.
57173         (Depends-on): Remove alloca.
57174         (Makefile.am): Substitute GNULIB_SELECT.
57175         * modules/select: New file.
57176         * doc/posix-functions/select.texi: Update.
57177
57178 2008-10-05  Bruno Haible  <bruno@clisp.org>
57179
57180         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
57181         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
57182         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
57183         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
57184         getdtablesize.
57185         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
57186         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
57187
57188 2008-10-05  Bruno Haible  <bruno@clisp.org>
57189
57190         * modules/getdtablesize-tests: New file.
57191         * tests/test-getdtablesize.c: New file.
57192
57193         New module 'getdtablesize'.
57194         * lib/unistd.in.h (getdtablesize): New declaration.
57195         * lib/getdtablesize.c: New file.
57196         * m4/getdtablesize.m4: New file.
57197         * modules/getdtablesize: New file.
57198         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
57199         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
57200         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
57201         HAVE_GETDTABLESIZE.
57202         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
57203
57204 2008-10-05  Bruno Haible  <bruno@clisp.org>
57205
57206         * modules/sched (Makefile.am): Fix typo.
57207         Reported by Simon Josefsson.
57208
57209 2008-10-05  Jim Meyering  <meyering@redhat.com>
57210
57211         bootstrap: check for LT_INIT, too
57212         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
57213         are deprecated.  Suggestion from Ralf Wildenhues.
57214
57215 2008-10-05  Bruno Haible  <bruno@clisp.org>
57216
57217         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
57218         overriding them by ours.
57219         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
57220
57221 2008-10-05  Jim Meyering  <meyering@redhat.com>
57222
57223         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
57224         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
57225         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
57226
57227 2008-10-04  Bruno Haible  <bruno@clisp.org>
57228
57229         * modules/dup2 (License): Change to LGPLv2+.
57230         * modules/sleep (License): Likewise.
57231         * modules/perror (License): Likewise.
57232         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
57233         Blake.
57234         * modules/signal (License): Likewise.
57235         * modules/sigprocmask (License): Likewise.
57236         * modules/raise (License): Change to LGPLv2+, with approval by Jim
57237         Meyering.
57238
57239 2008-10-04  Bruno Haible  <bruno@clisp.org>
57240
57241         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
57242         Reported by Rainer Tammer <tammer@tammer.net>.
57243
57244 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
57245             Bruno Haible  <bruno@clisp.org>
57246
57247         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
57248         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
57249         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
57250
57251 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
57252
57253         filevercmp: new module
57254         * lib/filevercmp.h: New function filevercmp comparing version strings.
57255         * lib/filevercmp.c: Implementation of filevercmp function.
57256         * modules/filevercmp: Module metadata.
57257         * tests/test-filevercmp.c: Unit test for new module.
57258         * modules/filevercmp-tests: Unit test metadata.
57259         * MODULES.html.sh: Add filevercmp module.
57260
57261 2008-10-03  Bruno Haible  <bruno@clisp.org>
57262
57263         * lib/c-ctype.h: Add comment.
57264         Reported by Jim Meyering.
57265
57266 2008-10-02  Bruno Haible  <bruno@clisp.org>
57267
57268         * modules/posix_spawn-internal (Depends-on): Add 'open'.
57269
57270 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
57271
57272         * build-aux/bootstrap: Allow renaming bootstrap, and change the
57273         name of bootstrap.conf accordingly.
57274
57275 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
57276
57277         * build-aux/bootstrap: Install git-merge-changelog configuration
57278         items into .gitconfig if needed.
57279
57280 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
57281
57282         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
57283         git repository, and initialize/update it accordingly.
57284
57285 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
57286
57287         * modules/fsync-tests: New file.
57288         * tests/test-fsync.c: New file.
57289
57290         New module 'fsync'.
57291         * lib/fsync.c: New file.
57292         * m4/fsync.m4: New file.
57293         * modules/fsync: New file.
57294         * lib/unistd.in.h (fsync): New declaration.
57295         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
57296         GNULIB_FSYNC and HAVE_FSYNC.
57297         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
57298         * MODULES.html.sh (posix_functions): Add fsync.
57299         * doc/posix-functions/fsync.texi: Mention the new module.
57300
57301 2008-10-02  Jim Meyering  <meyering@redhat.com>
57302
57303         fts.c: sync with similar code from coreutils' remove.c
57304         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
57305         Guard also with "#if defined __linux__", since for now at least,
57306         this code is Linux-kernel-specific.
57307
57308 2008-10-02  Jim Meyering  <meyering@redhat.com>
57309
57310         fts: bug fixes
57311         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
57312         Include <sys/vfs.h>, not <sys/statfs.h>.
57313
57314         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
57315         Include <sys/vfs.h>, not <sys/statfs.h>.
57316
57317 2008-10-01  Bruno Haible  <bruno@clisp.org>
57318
57319         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
57320         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
57321         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
57322         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
57323         * doc/posix-functions/posix_spawnp.texi: Likewise.
57324         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
57325         whether posix_spawn actually works.
57326         * m4/pipe.m4 (gl_PIPE): Likewise.
57327         * modules/execute (Files): Add m4/posix_spawn.m4.
57328         * modules/pipe (Files): Add m4/posix_spawn.m4.
57329         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
57330
57331 2008-10-01  Jim Meyering  <meyering@redhat.com>
57332
57333         remove trailing spaces
57334         * NEWS: Likewise.
57335         * lib/poll.c (poll): Likewise.
57336         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
57337         * lib/winsock.c (rpl_close): Likewise.
57338         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
57339         * modules/yield: Likewise.
57340         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
57341         * tests/test-sys_select.c (connect_to_socket): Likewise.
57342
57343         fts.c: adjust a new interface to be more generally useful
57344         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
57345         (fts_build): Adjust caller.
57346
57347 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57348
57349         * modules/cond-tests: New file.
57350         * tests/test-cond.c: New file.
57351
57352 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57353             Bruno Haible  <bruno@clisp.org>
57354
57355         * modules/cond (Dependencies): Add errno, time.
57356         * lib/glthread/cond.h: Include <time.h>.
57357         (gl_cond_define, gl_cond_define_initialized): Use the same definition
57358         across platforms.
57359
57360 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57361             Bruno Haible  <bruno@clisp.org>
57362
57363         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
57364
57365 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57366             Bruno Haible  <bruno@clisp.org>
57367
57368         * modules/tls-tests (Depends-on): Add thread, yield.
57369         (configure.ac): Remove all checks.
57370         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
57371         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
57372         gl_thread_self): Remove definitions. Include glthread/thread.h and
57373         glthread/yield.h instead.
57374         (test_tls): Pass an additional NULL argument to gl_thread_join.
57375
57376 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57377             Bruno Haible  <bruno@clisp.org>
57378
57379         * modules/lock-tests (Depends-on): Add thread, yield.
57380         (configure.ac): Remove all checks.
57381         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
57382         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
57383         gl_thread_self): Remove definitions. Include glthread/thread.h and
57384         glthread/yield.h instead.
57385         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
57386         additional NULL argument to gl_thread_join.
57387
57388 2008-09-30  Bruno Haible  <bruno@clisp.org>
57389
57390         Fix the Win32 implementation of the 'thread' module.
57391         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
57392         pointer type.
57393         (gl_thread_self): Invoke gl_thread_self_func.
57394         (gl_thread_self_func): New declaration.
57395         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
57396         (do_init_self_key, init_self_key): New functions.
57397         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
57398         Remove some fields.
57399         (running_threads, running_lock): Remove variables.
57400         (get_current_thread_handle): New function.
57401         (gl_thread_self_func, wrapper_func, glthread_create_func,
57402         glthread_join_func, gl_thread_exit_func): Largely rewritten and
57403         simplified.
57404
57405 2008-09-30  Bruno Haible  <bruno@clisp.org>
57406
57407         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
57408         files.
57409
57410 2008-09-30  Jim Meyering  <meyering@redhat.com>
57411
57412         fts.m4: correct the test for statfs.f_type
57413         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
57414         when checking for statfs.f_type.
57415
57416 2008-09-15  Simon Josefsson  <simon@josefsson.org>
57417
57418         tests: avoid some compiler warnings
57419         * tests/test-memchr.c (main): Pass NULL indirectly.
57420         * tests/test-getdate.c (main): Remove unused variable 'ret'.
57421
57422 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
57423
57424         getdate.y: disallow countable dayshifts like "4 yesterday ago"
57425         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
57426         exactly specified dayshifts.
57427         (dayshift): New rule.
57428         (rel): Add dayshift.
57429         (relative_time_table) [tomorrow, yesterday, today, now]:
57430         Use tDAY_SHIFT in place of tDAY_UNIT.
57431         * tests/test-getdate.c: Add tests for now-disallowed countable
57432         dayshifts, e.g., "4 yesterday ago".
57433
57434 2008-09-29  Bruno Haible  <bruno@clisp.org>
57435
57436         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
57437         * tests/test-posix_spawn1.in.sh: Renamed from
57438         tests/test-posix_spawn.in.sh.
57439         * tests/test-posix_spawn2.c: New file.
57440         * tests/test-posix_spawn2.in.sh: New file.
57441         * modules/posix_spawnp-tests (Files): Update.
57442         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
57443
57444 2008-09-29  Bruno Haible  <bruno@clisp.org>
57445
57446         Propagate effects of putenv/setenv/unsetenv to child processes.
57447         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
57448         * lib/pipe.c (create_pipe): Likewise.
57449
57450 2008-09-29  Bruno Haible  <bruno@clisp.org>
57451
57452         Enable use of shell scripts as executables in mingw.
57453         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
57454         run the program as a shell script.
57455         * lib/pipe.c (create_pipe): Likewise.
57456         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
57457         resulting array.
57458
57459 2008-09-29  Eric Blake  <ebb9@byu.net>
57460
57461         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
57462
57463 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
57464
57465         * doc/posix-functions/accept.texi: Update mingw problems.
57466         * doc/posix-functions/bind.texi: Update mingw problems.
57467         * doc/posix-functions/close.texi: Update mingw problems.
57468         * doc/posix-functions/connect.texi: Update mingw problems.
57469         * doc/posix-functions/getpeername.texi: Update mingw problems.
57470         * doc/posix-functions/getsockname.texi: Update mingw problems.
57471         * doc/posix-functions/getsockopt.texi: Update mingw problems.
57472         * doc/posix-functions/ioctl.texi: Update mingw problems.
57473         * doc/posix-functions/listen.texi: Update mingw problems.
57474         * doc/posix-functions/recv.texi: Update mingw problems.
57475         * doc/posix-functions/recvfrom.texi: Update mingw problems.
57476         * doc/posix-functions/select.texi: Update mingw problems.
57477         * doc/posix-functions/send.texi: Update mingw problems.
57478         * doc/posix-functions/sendto.texi: Update mingw problems.
57479         * doc/posix-functions/setsockopt.texi: Update mingw problems.
57480         * doc/posix-functions/socket.texi: Update mingw problems.
57481
57482 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
57483             Bruno Haible  <bruno@clisp.org>
57484
57485         * lib/sys_select.in.h: Include sys/time.h.
57486         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
57487         * modules/sys_select: Depend on sys_time.
57488         * tests/test-sys_select.c: Test that sys/select.h defines struct
57489         timeval fully.
57490
57491 2008-09-29  Bruno Haible  <bruno@clisp.org>
57492
57493         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
57494         * lib/sys_select.in.h: Likewise.
57495
57496 2008-09-29  Bruno Haible  <bruno@clisp.org>
57497
57498         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
57499
57500 2008-09-29  Bruno Haible  <bruno@clisp.org>
57501
57502         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
57503         Set LIBSOCKET instead of augmenting LIBS.
57504         * modules/sockets (Link): New section.
57505         * modules/sockets-tests (test_sockets_LDADD): New variable.
57506         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
57507         * modules/poll-tests (test_poll_LDADD): New variable.
57508         * NEWS: Document the change.
57509
57510 2008-09-29  Bruno Haible  <bruno@clisp.org>
57511
57512         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
57513         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
57514         ARPA_INET_H directly.
57515         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
57516
57517 2008-09-28  Bruno Haible  <bruno@clisp.org>
57518
57519         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
57520         from gl_HEADER_SYS_SOCKET.
57521         (gl_HEADER_SYS_SOCKET): Invoke it.
57522         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
57523
57524 2008-09-28  Bruno Haible  <bruno@clisp.org>
57525
57526         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
57527         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
57528         Needed on OSF/1 4.0.
57529
57530 2008-09-28  Bruno Haible  <bruno@clisp.org>
57531
57532         Override open more carefully.
57533         * lib/open.c (orig_open): New function.
57534         (rpl_open): Use orig_open instead of open.
57535         * lib/fcntl.in.h: Add special invocation convention.
57536         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
57537         (gl_FUNC_OPEN): Invoke it.
57538
57539         Override freopen more carefully.
57540         * lib/freopen.c (orig_freopen): New function.
57541         (rpl_freopen): Use orig_freopen instead of freopen.
57542         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
57543         (gl_FUNC_FREOPEN): Invoke it.
57544
57545         Override fopen more carefully.
57546         * lib/fopen.c (orig_fopen): New function.
57547         (rpl_fopen): Use orig_fopen instead of fopen.
57548         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
57549         (gl_FUNC_FOPEN): Invoke it.
57550         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
57551
57552 2008-09-28  Bruno Haible  <bruno@clisp.org>
57553
57554         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
57555         SIGPIPE.
57556
57557 2008-09-28  Bruno Haible  <bruno@clisp.org>
57558
57559         * tests/test-sigaction.c (handler, main): Disable the check whether
57560         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
57561         glibc systems with LinuxThreads.
57562
57563 2008-09-28  Bruno Haible  <bruno@clisp.org>
57564
57565         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
57566
57567         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
57568         with AIX xlc.
57569         * lib/fcntl.in.h (open): Likewise.
57570         Reported by Rainer Tammer <tammer@tammer.net>.
57571
57572 2008-09-28  Bruno Haible  <bruno@clisp.org>
57573
57574         * modules/posix_spawnp-tests: New file.
57575         * tests/test-posix_spawn.c: New file.
57576         * tests/test-posix_spawn.in.sh: New file.
57577
57578         New module 'posix_spawnp'.
57579         * modules/posix_spawnp: New file.
57580         * lib/spawnp.c: New file, from GNU libc with modifications.
57581         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
57582
57583         New module 'posix_spawn'.
57584         * modules/posix_spawn: New file.
57585         * lib/spawn.c: New file, from GNU libc with modifications.
57586         * doc/posix-functions/posix_spawn.texi: Mention the new module.
57587
57588         New module 'posix_spawnattr_destroy'.
57589         * modules/posix_spawnattr_destroy: New file.
57590         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
57591         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
57592         module.
57593
57594         New module 'posix_spawnattr_setsigmask'.
57595         * modules/posix_spawnattr_setsigmask: New file.
57596         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
57597         modifications.
57598         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
57599         new module.
57600
57601         New module 'posix_spawnattr_getsigmask'.
57602         * modules/posix_spawnattr_getsigmask: New file.
57603         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
57604         modifications.
57605         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
57606         new module.
57607
57608         New module 'posix_spawnattr_setsigdefault'.
57609         * modules/posix_spawnattr_setsigdefault: New file.
57610         * lib/spawnattr_setdefault.c: New file, from GNU libc with
57611         modifications.
57612         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
57613         new module.
57614
57615         New module 'posix_spawnattr_getsigdefault'.
57616         * modules/posix_spawnattr_getsigdefault: New file.
57617         * lib/spawnattr_getdefault.c: New file, from GNU libc with
57618         modifications.
57619         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
57620         new module.
57621
57622         New module 'posix_spawnattr_setschedpolicy'.
57623         * modules/posix_spawnattr_setschedpolicy: New file.
57624         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
57625         modifications.
57626         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
57627         new module.
57628
57629         New module 'posix_spawnattr_getschedpolicy'.
57630         * modules/posix_spawnattr_getschedpolicy: New file.
57631         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
57632         modifications.
57633         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
57634         new module.
57635
57636         New module 'posix_spawnattr_setschedparam'.
57637         * modules/posix_spawnattr_setschedparam: New file.
57638         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
57639         modifications.
57640         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
57641         new module.
57642
57643         New module 'posix_spawnattr_getschedparam'.
57644         * modules/posix_spawnattr_getschedparam: New file.
57645         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
57646         modifications.
57647         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
57648         new module.
57649
57650         New module 'posix_spawnattr_setpgroup'.
57651         * modules/posix_spawnattr_setpgroup: New file.
57652         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
57653         modifications.
57654         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
57655         module.
57656
57657         New module 'posix_spawnattr_getpgroup'.
57658         * modules/posix_spawnattr_getpgroup: New file.
57659         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
57660         modifications.
57661         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
57662         module.
57663
57664         New module 'posix_spawnattr_setflags'.
57665         * modules/posix_spawnattr_setflags: New file.
57666         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
57667         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
57668         module.
57669
57670         New module 'posix_spawnattr_getflags'.
57671         * modules/posix_spawnattr_getflags: New file.
57672         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
57673         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
57674         module.
57675
57676         New module 'posix_spawnattr_init'.
57677         * modules/posix_spawnattr_init: New file.
57678         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
57679         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
57680         module.
57681
57682         New module 'posix_spawn_file_actions_destroy'.
57683         * modules/posix_spawn_file_actions_destroy: New file.
57684         * lib/spawn_faction_destroy.c: New file, from GNU libc with
57685         modifications.
57686         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
57687         the new module.
57688
57689         New module 'posix_spawn_file_actions_addopen'.
57690         * modules/posix_spawn_file_actions_addopen: New file.
57691         * lib/spawn_faction_addopen.c: New file, from GNU libc with
57692         modifications.
57693         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
57694         the new module.
57695
57696         New module 'posix_spawn_file_actions_adddup2'.
57697         * modules/posix_spawn_file_actions_adddup2: New file.
57698         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
57699         modifications.
57700         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
57701         the new module.
57702
57703         New module 'posix_spawn_file_actions_addclose'.
57704         * modules/posix_spawn_file_actions_addclose: New file.
57705         * lib/spawn_faction_addclose.c: New file, from GNU libc with
57706         modifications.
57707         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
57708         the new module.
57709
57710         New module 'posix_spawn_file_actions_init'.
57711         * modules/posix_spawn_file_actions_init: New file.
57712         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
57713         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
57714         new module.
57715
57716         New module 'posix_spawn-internal'.
57717         * modules/posix_spawn-internal: New file.
57718         * lib/spawn_int.h: New file, from GNU libc with modifications.
57719         * lib/spawni.c: New file, from GNU libc with modifications.
57720         * m4/posix_spawn.m4: New file.
57721
57722         New module 'spawn'.
57723         * modules/spawn: New file.
57724         * lib/spawn.in.h: New file, from GNU libc with modifications.
57725         * m4/spawn_h.m4: New file.
57726         * doc/posix-headers/spawn.texi: Mention the new module.
57727
57728 2008-09-28  Bruno Haible  <bruno@clisp.org>
57729
57730         * modules/sched-tests: New file.
57731         * tests/test-sched.c: New file.
57732
57733         New module 'sched'.
57734         * modules/sched: New file.
57735         * lib/sched.in.h: New file.
57736         * m4/sched_h.m4: New file.
57737         * doc/posix-headers/sched.texi: Mention the new module.
57738
57739 2008-09-27  Eric Blake  <ebb9@byu.net>
57740
57741         Fix previous patch, and tweak references to $0.
57742         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
57743         (func_version, func_gnulib_dir): Don't call this program
57744         gnulib-tool.
57745         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
57746         with using $0 in function.
57747         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
57748         (func_fatal_error): Reuse the name the user invoked us with.
57749
57750 2008-09-27  Bruno Haible  <bruno@clisp.org>
57751
57752         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
57753         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
57754         (gl_ICONV_H): Not here.
57755         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
57756         instead of assigning ICONV_H directly.
57757
57758         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
57759         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
57760         WCHAR_H directly.
57761
57762 2008-09-27  Bruno Haible  <bruno@clisp.org>
57763
57764         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
57765         * modules/arpa_inet (Depends-on): Add link-warning.
57766         (Makefile.am): Insert the definition of GL_LINK-WARNING.
57767         * modules/unistd (Makefile.am): Likewise.
57768
57769 2008-09-26  Bruno Haible  <bruno@clisp.org>
57770
57771         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
57772         variables.
57773         (func_version): Essentially copied from gnulib-tool.
57774         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
57775         func_readlink): Copied from gnulib-tool.
57776
57777 2008-09-26  Bruno Haible  <bruno@clisp.org>
57778
57779         * gnulib-tool (func_version): Change directory to $gnulib_dir before
57780         invoking git-version-gen.
57781
57782 2008-09-26  Bruno Haible  <bruno@clisp.org>
57783
57784         * posix-modules: Update to directory names changed on 2008-01-19.
57785         Remove commas in output before splitting into words. No more need to
57786         avoid 'ftruncate' since 2007-02-19.
57787
57788 2008-09-26  Bruno Haible  <bruno@clisp.org>
57789
57790         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
57791
57792 2008-09-26  Bruno Haible  <bruno@clisp.org>
57793
57794         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
57795         * modules/fwriteerror (Depends-on): Add errno.
57796
57797 2008-09-26  Bruno Haible  <bruno@clisp.org>
57798
57799         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
57800         * tests/test-vc-list-files-cvs.sh: Likewise.
57801
57802 2008-09-26  Bruno Haible  <bruno@clisp.org>
57803
57804         * doc/posix-headers/sys_resource.texi: Reorder items.
57805
57806 2008-09-26  Jim Meyering  <meyering@redhat.com>
57807
57808         fts: tweak inode comparison function
57809         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
57810         inode numbers, as documented.
57811
57812         fts: sort dirent entries on inode number before traversing
57813         This avoids a quadratic, seek-related performance penalty when
57814         operating on a directory containing many entries (measurable at 10k;
57815         3.5 hours at 2 million entries with a cold cache) on certain types
57816         of file systems, including ext3 and ext4, but not tmpfs.
57817         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
57818         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
57819         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
57820         (fs_handles_readdir_ordered_dirents_efficiently): New function.
57821         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
57822         (fts_build): Set the stat.st_ino member from D_INO.
57823         If it is likely to be useful, sort dirent entries on inode number.
57824
57825         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
57826         and the struct statfs.f_type member.
57827         * modules/fts (Depends-on): Add d-ino.
57828
57829 2008-09-26  Bruno Haible  <bruno@clisp.org>
57830
57831         * modules/sigpipe-die (Depends-on): Add sigpipe.
57832
57833         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
57834         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
57835         and GNULIB_STDIO_H_SIGPIPE are set.
57836         * lib/stdio-write.c: New file.
57837         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
57838         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
57839         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
57840         REPLACE_STDIO_WRITE_FUNCS.
57841         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
57842         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
57843         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
57844         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
57845         * modules/stdio (Files): Add lib/stdio-write.c.
57846         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
57847         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
57848         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
57849         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
57850         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
57851         REPLACE_FPRINTF_POSIX.
57852         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
57853         REPLACE_PRINTF_POSIX.
57854         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
57855         REPLACE_VFPRINTF_POSIX.
57856         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
57857         REPLACE_VPRINTF_POSIX.
57858         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
57859         SIGPIPE issue.
57860         * doc/posix-functions/fputc.texi: Likewise.
57861         * doc/posix-functions/fputs.texi: Likewise.
57862         * doc/posix-functions/fwrite.texi: Likewise.
57863         * doc/posix-functions/printf.texi: Likewise.
57864         * doc/posix-functions/putc.texi: Likewise.
57865         * doc/posix-functions/putchar.texi: Likewise.
57866         * doc/posix-functions/puts.texi: Likewise.
57867         * doc/posix-functions/vfprintf.texi: Likewise.
57868         * doc/posix-functions/vprintf.texi: Likewise.
57869
57870         * modules/safe-write (Depends-on): Add write.
57871
57872         * modules/sigpipe-tests: New file.
57873         * tests/test-sigpipe.c: New file.
57874         * tests/test-sigpipe.sh: New file.
57875
57876         * modules/write: New file.
57877         * lib/unistd.in.h: Include <sys/types.h>.
57878         (write): New declaration.
57879         * lib/write.c: New file.
57880         * m4/write.m4: New file.
57881         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
57882         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
57883         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
57884         GNULIB_WRITE, REPLACE_WRITE.
57885         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
57886         and the SIGPIPE issue.
57887
57888         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
57889         (raise): New declaration.
57890         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
57891         (ext_signal): New function.
57892         (rpl_raise): New function.
57893         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
57894         GNULIB_SIGNAL_H_SIGPIPE.
57895         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
57896         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
57897
57898         * modules/sigpipe: New file.
57899         * m4/sigpipe.m4: New file.
57900
57901 2008-09-25  Derek Price  <derek@ximbiot.com>
57902             Bruno Haible  <bruno@clisp.org>
57903
57904         * gnulib-tool (func_import): Report all license incompatibilities, not
57905         just the first one.
57906
57907 2008-09-25  Bruno Haible  <bruno@clisp.org>
57908
57909         * gnulib-tool (func_import): When computing the edits, consider not
57910         only the Makefile.ams that exist but also those that will be generated.
57911
57912 2008-09-25  Simon Josefsson  <simon@josefsson.org>
57913
57914         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
57915         fixes gnulib-tool --test warning about duplicate dependency.
57916
57917 2008-09-25  Bruno Haible  <bruno@clisp.org>
57918
57919         * gnulib-tool: Don't ask the user to perform edits in the generated
57920         Makefile.ams.
57921         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
57922         apply to the Makefile.am being generated.
57923         (func_emit_tests_Makefile_am): Execute edits that apply to the
57924         Makefile.am being generated.
57925         (func_import): Setup list of Makefile.am edits before emitting the
57926         Makefile.ams, not at the end.
57927         (func_create_testdir): Update.
57928         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
57929
57930 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57931
57932         * gnulib-tool (func_import): Store the --tests-base option in the
57933         comment in gnulib-cache.m4.
57934
57935 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
57936
57937         * NEWS: Document increased portability that sys_select now provides.
57938
57939         * lib/sys_select.in.h: Install select wrapper.
57940         * lib/sys_socket.in.h: Use more descriptive name when there is no
57941         select wrapper.
57942         * lib/winsock-select.c: New.
57943         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
57944         Require gl_HEADER_SYS_SOCKET.
57945         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
57946         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
57947         * tests/test-sys_select.c: Add functional tests.
57948
57949 2008-09-24  Eric Blake  <ebb9@byu.net>
57950
57951         open, fopen: close fd leak in last patch
57952         * lib/open.c (rpl_open): Close fd before returning error.
57953         * lib/fopen.c (rpl_fopen): Close fd before returning error.
57954         * doc/posix-functions/open.texi (open): Document that Irix also
57955         has the bug.
57956         * doc/posix-functions/fopen.texi (fopen): Likewise.
57957         Reported by Paolo Bonzini.
57958
57959 2008-09-24  Bruno Haible  <bruno@clisp.org>
57960
57961         Ensure that a filename ending in a slash cannot be used to access a
57962         non-directory.
57963         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
57964         to check whether it's really a directory.
57965         * lib/fopen.c: Include fcntl.h, unistd.h.
57966         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
57967         and fdopen().
57968         * modules/fopen (Depends-on): Add unistd.
57969         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
57970         * tests/test-fopen.c (main): Likewise.
57971         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
57972         * doc/posix-functions/fopen.texi: Likewise.
57973         Reported by Eric Blake.
57974
57975 2008-09-23  Eric Blake  <ebb9@byu.net>
57976
57977         c-stack: avoid compiler optimizations when provoking overflow
57978         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
57979         recursion harder to optimize, to ensure a stack overflow occurs.
57980         * tests/test-c-stack.c (recurse): Likewise.
57981         Borrowed from libsigsegv.
57982
57983         c-stack: work around Irix sigaltstack bug
57984         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
57985         whether sigaltstack uses wrong end of stack_t (copied in part from
57986         libsigsegv).
57987         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
57988         Irix bug, without requiring an over-allocation.
57989         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
57990         bug.
57991
57992         fopen: document mingw bug on directories
57993         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
57994         not allowing a stream visiting a directory, even though reading
57995         from such a stream is not portable.
57996
57997 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
57998
57999         * lib/poll.c: Rewrite.
58000         * modules/poll: Depend on alloca.
58001
58002 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
58003
58004         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
58005         instead define prototypes for a full set of wrappers.  Ensure
58006         that Cygwin does not use the compatibility code, which is only
58007         for MinGW.
58008         * lib/winsock.c: New.
58009         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
58010         * modules/sys_socket: Add lib/winsock.c.
58011
58012         * modules/poll-tests: Add errno and perror.
58013         * tests/test-poll.c: Use ioctl, not ioctlsocket.
58014
58015 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
58016
58017         * tests/test-poll.c: Downgrade minimum needed Winsock version.
58018
58019 2008-09-23  Bruno Haible  <bruno@clisp.org>
58020
58021         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
58022         * doc/glibc-functions/*: Likewise.
58023
58024 2008-09-23  Simon Josefsson  <simon@josefsson.org>
58025
58026         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
58027         success.
58028
58029 2008-09-22  Eric Blake  <ebb9@byu.net>
58030             Bruno Haible  <bruno@clisp.org>
58031
58032         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
58033         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
58034         supply %A but mishandle pseudo-NaN.
58035         Reported by Simon Josefsson.
58036
58037 2008-09-21  Bruno Haible  <bruno@clisp.org>
58038
58039         * tests/test-lock.c (main): Tweak skip message.
58040         * tests/test-tls.c (main): Likewise.
58041
58042 2008-09-21  Bruno Haible  <bruno@clisp.org>
58043
58044         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
58045         whether 'struct sigaction' has sa_sigaction here...
58046         (gl_PREREQ_SIG_HANDLER_H): ... not here.
58047         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
58048
58049 2008-09-21  Bruno Haible  <bruno@clisp.org>
58050
58051         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
58052         section.
58053         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
58054         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
58055         the new section.
58056         (Support for obsolete systems lacking POSIX:2001): New section.
58057         (String handling <string.h>): Move strdup to the new section.
58058         Suggested by Simon Josefsson and Paolo Bonzini.
58059
58060 2008-09-21  Bruno Haible  <bruno@clisp.org>
58061
58062         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
58063         exponents in %e and %g results on 'long double'. Needed for mingw's
58064         improved *printf functions.
58065         * tests/test-vasprintf-posix.c (test_function): Likewise.
58066         * tests/test-snprintf-posix.h (test_function): Likewise.
58067         * tests/test-sprintf-posix.h (test_function): Likewise.
58068         Reported by Eric Blake.
58069
58070 2008-09-21  Bruno Haible  <bruno@clisp.org>
58071
58072         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
58073         * tests/test-sprintf-posix.h (test_function): Likewise.
58074
58075 2008-09-21  Bruno Haible  <bruno@clisp.org>
58076
58077         * modules/getpass (Depends-on): Add strdup-posix.
58078
58079         New module 'strdup-posix'.
58080         * modules/strdup-posix: New file.
58081         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
58082         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
58083         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58084         REPLACE_STRDUP.
58085         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
58086         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
58087         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58088         strdup-posix.
58089
58090         * modules/strdup (Depends-on): Remove malloc-posix.
58091
58092 2008-09-20  Bruno Haible  <bruno@clisp.org>
58093
58094         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
58095         Wildenhues.
58096
58097 2008-09-20  Bruno Haible  <bruno@clisp.org>
58098
58099         Ensure that wint_t gets defined on IRIX 5.3.
58100         * lib/wchar.in.h (wint_t): Define if not defined by the system.
58101         * lib/wctype.in.h (wint_t): Likewise.
58102         (__wctype_wint_t): Remove type.
58103         (isw*): Use wint_t instead of __wctype_wint_t.
58104         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
58105         * modules/wchar (Files): Add m4/wint_t.m4.
58106         (Makefile.am): Substitute HAVE_WINT_T.
58107         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
58108         * tests/test-wctype.c: Check that wint_t is defined.
58109         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
58110         * doc/posix-headers/wctype.texi: Likewise.
58111         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
58112
58113 2008-09-18  Bruno Haible  <bruno@clisp.org>
58114
58115         * gnulib-tool (func_exit): Update comment.
58116
58117 2008-09-18  Simon Josefsson  <simon@josefsson.org>
58118
58119         * modules/getaddrinfo (Depends-on): Remove strdup, this module
58120         assumes strdup exists and does not depend on strdup to return
58121         ENOMEM on out of memory conditions.
58122
58123 2008-09-18  Bruno Haible  <bruno@clisp.org>
58124
58125         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
58126         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
58127         digits for the exponent.
58128
58129 2008-09-18  Jim Meyering  <meyering@redhat.com>
58130             Bruno Haible  <bruno@clisp.org>
58131
58132         * lib/vasnprintf.c (decimal_point_char): Define also if
58133         NEED_PRINTF_INFINITE_LONG_DOUBLE.
58134
58135 2008-09-16  Bruno Haible  <bruno@clisp.org>
58136         and Eric Blake  <ebb9@byu.net>
58137
58138         vasnprintf: support Irix 5.3
58139         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
58140         that mishandle long double infinity.
58141         Reported by Tom G. Christensen.
58142
58143 2008-09-16  Bruno Haible  <bruno@clisp.org>
58144
58145         * doc/glibc-functions/scandir.texi: Mention the function is missing on
58146         Solaris 9.
58147         * doc/glibc-functions/alphasort.texi: Likewise.
58148         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
58149
58150 2008-09-16  Jim Meyering  <meyering@redhat.com>
58151
58152         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
58153         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
58154         a umask modification leak out of a subshell.  Otherwise, the
58155         opensolaris /bin/sh would be accepted and thus cause unwarranted
58156         failures in the coreutils test suite.
58157
58158 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
58159
58160         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
58161         to succeed.
58162
58163 2008-09-16  Jim Meyering  <meyering@redhat.com>
58164
58165         avoid spurious test failure when library is built without ACL support
58166         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
58167         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
58168         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
58169         * tests/test-copy-acl.sh: Likewise.
58170
58171 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58172
58173         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
58174         based on character occurrence counts.
58175
58176 2008-09-15  Eric Blake  <ebb9@byu.net>
58177
58178         tests: avoid some compiler warnings
58179         * tests/test-memchr.c (main): Pass NULL indirectly.
58180         * tests/test-closein.c (main): Avoid unused variable.
58181
58182 2008-09-15  Bruno Haible  <bruno@clisp.org>
58183
58184         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
58185         are missing on OpenBSD 4.0 individually.
58186         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
58187
58188 2008-09-15  Bruno Haible  <bruno@clisp.org>
58189
58190         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
58191         * doc/posix-functions/strerror.texi: Mention also Cygwin.
58192         * doc/posix-functions/perror.texi: Likewise.
58193         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
58194         is missing.
58195         Reported by Eric Blake.
58196
58197         * lib/errno.in.h: Use replacement values >= 2000.
58198         Reported by Eric Blake.
58199
58200 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58201
58202         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
58203         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
58204         limit.
58205         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
58206         compareseq was aborted.
58207
58208 2008-09-14  Bruno Haible  <bruno@clisp.org>
58209
58210         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
58211         yvec_edit_count.
58212         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
58213         (fstrcmp_bounded): Simplify result computation accordingly.
58214
58215 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58216
58217         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
58218         (fstrcmp): Define in terms of fstrcmp_bounded.
58219         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
58220         lower_bound argument.
58221         Return quickly if the result is certainly < lower_bound.
58222         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
58223
58224 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58225
58226         * lib/diffseq.h (EARLY_ABORT): New macro.
58227         (compareseq): Change return type to bool. Return true when EARLY_ABORT
58228         evaluates to true.
58229
58230 2008-09-14  Bruno Haible  <bruno@clisp.org>
58231
58232         * modules/perror-tests: New file.
58233         * tests/test-perror.sh: New file.
58234         * tests/test-perror.c: New file.
58235
58236         New module 'perror'.
58237         * lib/stdio.in.h (perror): New declaration.
58238         * lib/perror.c: New file.
58239         * m4/perror.m4: New file.
58240         * modules/perror: New file.
58241         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
58242         * doc/posix-functions/perror.texi: Mention the perror module.
58243         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
58244         REPLACE_PERROR.
58245         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
58246         REPLACE_PERROR.
58247
58248 2008-09-14  Bruno Haible  <bruno@clisp.org>
58249
58250         * modules/stdio (Makefile.am): Reorder to match the order in
58251         lib/stdio.in.h.
58252         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
58253
58254 2008-09-13  Bruno Haible  <bruno@clisp.org>
58255
58256         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
58257
58258 2008-09-13  Bruno Haible  <bruno@clisp.org>
58259
58260         Extend strerror to cover the added errno values.
58261         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
58262         (rpl_strerror): Provide error messages for the added errno values and
58263         for the WSA* values.
58264         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
58265         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
58266         strerror.
58267         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
58268         * modules/strerror (Depends-on): Add errno.
58269         * doc/posix-functions/strerror.texi: Document the change.
58270         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
58271         and EOVERFLOW.
58272
58273 2008-09-13  Bruno Haible  <bruno@clisp.org>
58274
58275         * modules/EOVERFLOW: Remove file.
58276         * m4/eoverflow.m4: Remove file.
58277         * modules/EOVERFLOW-tests: Remove file.
58278         * tests/test-EOVERFLOW.c: Remove file.
58279         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
58280         * modules/ftell (Depends-on): Likewise.
58281         * modules/getdelim (Depends-on): Likewise.
58282         * modules/getugroups (Depends-on): Likewise.
58283         * modules/poll (Depends-on): Likewise.
58284         * modules/snprintf (Depends-on): Likewise.
58285         * modules/sprintf-posix (Depends-on): Likewise.
58286         * modules/vasnprintf (Depends-on): Likewise.
58287         * modules/vasprintf (Depends-on): Likewise.
58288         * modules/vfprintf-posix (Depends-on): Likewise.
58289         * modules/vsnprintf (Depends-on): Likewise.
58290         * modules/vsprintf-posix (Depends-on): Likewise.
58291         * modules/xvasprintf (Depends-on): Likewise.
58292         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
58293         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
58294         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
58295         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
58296         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
58297         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
58298         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
58299         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
58300         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
58301         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
58302         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
58303         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
58304         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
58305         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
58306         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
58307         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
58308         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
58309         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
58310         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
58311         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
58312         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
58313         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
58314         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
58315         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
58316         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
58317         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
58318         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
58319         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
58320         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
58321         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
58322         * MODULES.html.sh: Remove EOVERFLOW.
58323         * NEWS: Mention the change.
58324
58325 2008-09-13  Bruno Haible  <bruno@clisp.org>
58326
58327         * modules/errno-tests: New file.
58328         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
58329
58330         * lib/errno.in.h: New file.
58331         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
58332         * modules/errno: New file.
58333         * doc/posix-headers/errno.texi: Update documentation.
58334         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
58335
58336 2008-09-13  Bruno Haible  <bruno@clisp.org>
58337
58338         * tests/test-poll.c: Use #if for native Windows, rather than testing
58339         __MSVCRT__.
58340
58341 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58342             Bruno Haible  <bruno@clisp.org>
58343
58344         * lib/glob.c: Don't include <pwd.h> on native Windows.
58345         (WINDOWS32): New macro.
58346         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
58347
58348 2008-09-13  Bruno Haible  <bruno@clisp.org>
58349
58350         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
58351         (ETIMEDOUT): Remove macro.
58352         (glthread_cond_timedwait_multithreaded): New declaration.
58353         (glthread_cond_timedwait): Use it.
58354         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
58355         (glthread_cond_timedwait_multithreaded): New function.
58356
58357 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
58358
58359         * modules/poll-tests: Do not check for io.h.
58360         * tests/test-poll.c: Check for __MSVCRT__ instead.
58361
58362 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
58363
58364         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
58365         * modules/poll-tests: Add inet_pton, stdbool, sockets.
58366         * tests/test-poll.c: Use them.  Use _pipe on Windows.
58367
58368 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
58369
58370         * modules/poll-tests: New.
58371         * tests/test-poll.c: New.
58372
58373 2008-09-12  Eric Blake  <ebb9@byu.net>
58374
58375         frexp: test for NetBSD failure on -0.0
58376         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
58377         not all, bugs from NetBSD 3.0 have been fixed.
58378         * doc/posix-functions/frexp.texi (frexp): Document bug.
58379         Reported by Thomas Klausner.
58380
58381         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
58382         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
58383         literal -0.0.
58384         Reported by Jonathan C. Patschke <jp@centtech.com>.
58385
58386 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58387
58388         * lib/glthread/cond.h: Use dummy implementation also if
58389         USE_WIN32_THREADS.
58390
58391 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58392
58393         * modules/fnmatch-posix (License): Change to LGPLv2+.
58394         * modules/fnmatch-gnu (License): Likewise.
58395
58396 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58397
58398         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
58399
58400 2008-09-11  Jim Meyering  <meyering@redhat.com>
58401
58402         * users.txt: Add gtk-vnc.
58403
58404 2008-09-08  Simon Josefsson  <simon@josefsson.org>
58405
58406         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
58407         rotate amounts.
58408
58409         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
58410         required for 16-bit and 8-bit rotates.
58411         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
58412         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
58413         UINT8_MAX instead of hard-coded constants.
58414         Suggested by Paul Eggert.
58415
58416 2008-09-07  Bruno Haible  <bruno@clisp.org>
58417
58418         * tests/test-striconveh.c (main): Check behaviour when converting from
58419         UTF-7.
58420
58421         Make striconveh work better with stateful encodings.
58422         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
58423         that iconv does not increment the inptr when returning -1/EINVAL.
58424
58425 2008-09-07  Bruno Haible  <bruno@clisp.org>
58426
58427         * build-aux/config.rpath: Update according to libtool-2.2.6.
58428         * build-aux/config.libpath: Likewise.
58429
58430 2008-09-06  Bruno Haible  <bruno@clisp.org>
58431
58432         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
58433         * lib/freadptr.c (freadptr): Likewise.
58434         * lib/freadseek.c (freadptrinc): Likewise.
58435         Reported by Simon Josefsson.
58436
58437 2008-09-06  Bruno Haible  <bruno@clisp.org>
58438
58439         * modules/freadptr (License): Change to LGPLv2+.
58440         * modules/freadseek (License): Likewise.
58441         Suggested by Eric Blake.
58442
58443         * modules/memchr2 (License): Change to LGPLv2+.
58444         Approved by Eric Blake.
58445
58446 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58447             Bruno Haible  <bruno@clisp.org>
58448
58449         Make gnulib-tool work with native 'sed' on AIX.
58450         * gnulib-tool (sed_noop): New variable.
58451         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
58452         func_add_or_update, func_create_testdir): Use it to initialize sed
58453         script variables.
58454         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
58455
58456 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
58457             Bruno Haible  <bruno@clisp.org>
58458
58459         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
58460         also works after #include directives.
58461
58462 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
58463
58464         getdate.y: reject an out-of-range timezone value
58465         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
58466         the range [-24...+24].  When specified with only one or two digits,
58467         * tests/test-getdate.c: Tests for the fix.
58468         * doc/getdate.texi: Document this change.
58469
58470 2008-09-03  Bruno Haible  <bruno@clisp.org>
58471
58472         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
58473
58474 2008-09-02  Simon Josefsson  <simon@josefsson.org>
58475
58476         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
58477         <bruce.korb@gmail.com> with ideas from Ben Pfaff
58478         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
58479         Blake <ebb9@byu.net>.
58480
58481         * tests/test-bitrotate.c: Add more test vectors.
58482
58483 2008-09-02  Eric Blake  <ebb9@byu.net>
58484
58485         vasnprintf-posix: handle large precision via %.*d
58486         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
58487         when handling it ourselves.
58488         * tests/test-vasnprintf-posix.c (test_function): Add test.
58489         * tests/test-snprintf-posix.h (test_function): Likewise.
58490         * tests/test-sprintf-posix.h (test_function): Likewise.
58491         * tests/test-vasprintf-posix.c (test_function): Likewise.
58492         Reported by Alain Guibert.
58493
58494 2008-09-01  Eric Blake  <ebb9@byu.net>
58495
58496         c-stack: make configure-time check more robust
58497         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
58498         successful sigaction call.
58499         Reported by Tom G. Christensen.
58500
58501 2008-09-01  Bruno Haible  <bruno@clisp.org>
58502
58503         New module 'findprog-lgpl'.
58504         * modules/findprog-lgpl: New file.
58505         * lib/findprog-lgpl.c: New file.
58506         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
58507         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
58508         to decide whether to use strdup or xstrdup, concatenated_filename or
58509         xconcatenated_filename.
58510
58511 2008-09-01  Bruno Haible  <bruno@clisp.org>
58512
58513         Split module 'concat-filename' into 'concat-filename' (LGPL) and
58514         'xconcat-filename' (GPL).
58515         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
58516         (License): Change to LGPLv2+.
58517         * modules/xconcat-filename: New file.
58518         * lib/concat-filename.h (concatenated_filename): Change specification.
58519         (xconcatenated_filename): New declaration.
58520         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
58521         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
58522         memory situations.
58523         * lib/xconcat-filename.c: New file.
58524         * NEWS: Mention the change.
58525         * lib/findprog.c: Include concat-filename.h, not filename.h.
58526         (find_in_path): Use xconcatenated_filename instead of
58527         concatenated_filename.
58528         * lib/javacomp.c: Include concat-filename.h, not filename.h.
58529         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
58530         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
58531         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
58532         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
58533         instead of concatenated_filename.
58534         * lib/javaexec.c: Include concat-filename.h, not filename.h.
58535         (execute_java_class): Use xconcatenated_filename instead of
58536         concatenated_filename.
58537         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
58538         * modules/javacomp (Depends-on): Likewise.
58539         * modules/javaexec (Depends-on): Likewise.
58540
58541 2008-09-01  Bruno Haible  <bruno@clisp.org>
58542
58543         Split module 'filename' into 'filename' and 'concat-filename'.
58544         * modules/filename: Keep only lib/filename.h.
58545         (License): Change to LGPLv2+.
58546         * modules/concat-filename: New file, extracted from modules/filename.
58547         * lib/filename.h (concatenated_filename): Remove declaration.
58548         * lib/concat-filename.h: New file, extracted from lib/filename.h.
58549         * lib/concat-filename.c: Include concat-filename.h.
58550         * NEWS: Mention the change.
58551
58552 2008-09-01  Simon Josefsson  <simon@josefsson.org>
58553
58554         * lib/bitrotate.h (rotl8, rotr8): Add.
58555
58556         * modules/bitrotate (configure.ac): Need
58557         AC_REQUIRE([AC_C_INLINE]).
58558         (Description): Mention stdint.h.  Reported by Bruno Haible
58559         <bruno@clisp.org>.
58560
58561         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
58562         Paolo Bonzini <bonzini@gnu.org>.
58563
58564 2008-08-31  Bruno Haible  <bruno@clisp.org>
58565
58566         Assume Solaris specific bi-arch conventions on Solaris systems.
58567         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
58568         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
58569         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
58570         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
58571         like acl_libdirstem.
58572         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
58573         acl_libdirstem.
58574         * NEWS: Mention the change.
58575         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
58576
58577 2008-08-31  Jim Meyering  <meyering@redhat.com>
58578
58579         * lib/strftime.h: Add comments describing the two added arguments.
58580
58581         remove duplicate #include directives
58582         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
58583         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
58584
58585 2008-08-31  Bruno Haible  <bruno@clisp.org>
58586
58587         New module 'sigpipe-die'.
58588         * modules/sigpipe-die: New file.
58589         * lib/sigpipe-die.h: New file.
58590         * lib/sigpipe-die.c: New file.
58591         * MODULES.html.sh (Signal handling): Add sigpipe-die.
58592
58593 2008-08-31  Bruno Haible  <bruno@clisp.org>
58594
58595         Don't override previously installed signal handlers.
58596         * lib/fatal-signal.c (saved_sigactions): New variable.
58597         (uninstall_handlers): Reset the signal to the saved handler, not
58598         to SIG_DFL (except when ignored).
58599         (install_handlers): Save the previous handlers.
58600
58601 2008-08-30  Bruno Haible  <bruno@clisp.org>
58602
58603         * gnulib-tool (func_reset_sigpipe): New function.
58604         (func_get_automake_snippet, func_modules_transitive_closure,
58605         func_import): Invoke it before a join command that reads from stdin,
58606         to avoid "echo: write error: Broken pipe" error messages on stderr.
58607         Reported by Sam Steingold <sds@gnu.org>.
58608
58609 2008-08-30  Bruno Haible  <bruno@clisp.org>
58610
58611         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
58612         Code copied from m4/open.m4.
58613         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
58614         access and the filename ends in a slash. Code copied from lib/open.c.
58615         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
58616         * tests/test-fopen.c (main): Check against bug with trailing slash.
58617
58618 2008-08-29  Bruno Haible  <bruno@clisp.org>
58619
58620         Avoid some "gcc -pedantic" warnings.
58621         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
58622         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
58623         * lib/dirent.in.h: Likewise.
58624         * lib/fcntl.in.h: Likewise.
58625         * lib/float.in.h: Likewise.
58626         * lib/iconv.in.h: Likewise.
58627         * lib/inttypes.in.h: Likewise.
58628         * lib/locale.in.h: Likewise.
58629         * lib/math.in.h: Likewise.
58630         * lib/netinet_in.in.h: Likewise.
58631         * lib/search.in.h: Likewise.
58632         * lib/signal.in.h: Likewise.
58633         * lib/stdarg.in.h: Likewise.
58634         * lib/stdint.in.h: Likewise.
58635         * lib/stdio.in.h: Likewise.
58636         * lib/stdlib.in.h: Likewise.
58637         * lib/string.in.h: Likewise.
58638         * lib/strings.in.h: Likewise.
58639         * lib/sys_select.in.h: Likewise.
58640         * lib/sys_socket.in.h: Likewise.
58641         * lib/sys_stat.in.h: Likewise.
58642         * lib/sys_time.in.h: Likewise.
58643         * lib/sysexits.in.h: Likewise.
58644         * lib/time.in.h: Likewise.
58645         * lib/unistd.in.h: Likewise.
58646         * lib/wchar.in.h: Likewise.
58647         * lib/wctype.in.h: Likewise.
58648         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
58649         * modules/fchdir (Makefile.am): Likewise.
58650         * modules/fcntl (Makefile.am): Likewise.
58651         * modules/float (Makefile.am): Likewise.
58652         * modules/iconv_open (Makefile.am): Likewise.
58653         * modules/inttypes (Makefile.am): Likewise.
58654         * modules/locale (Makefile.am): Likewise.
58655         * modules/math (Makefile.am): Likewise.
58656         * modules/netinet_in (Makefile.am): Likewise.
58657         * modules/search (Makefile.am): Likewise.
58658         * modules/signal (Makefile.am): Likewise.
58659         * modules/stdarg (Makefile.am): Likewise.
58660         * modules/stdint (Makefile.am): Likewise.
58661         * modules/stdio (Makefile.am): Likewise.
58662         * modules/stdlib (Makefile.am): Likewise.
58663         * modules/string (Makefile.am): Likewise.
58664         * modules/strings (Makefile.am): Likewise.
58665         * modules/sys_select (Makefile.am): Likewise.
58666         * modules/sys_socket (Makefile.am): Likewise.
58667         * modules/sys_stat (Makefile.am): Likewise.
58668         * modules/sys_time (Makefile.am): Likewise.
58669         * modules/sysexits (Makefile.am): Likewise.
58670         * modules/time (Makefile.am): Likewise.
58671         * modules/unistd (Makefile.am): Likewise.
58672         * modules/wchar (Makefile.am): Likewise.
58673         * modules/wctype (Makefile.am): Likewise.
58674         Reported by Reuben Thomas <rrt@sc3d.org>.
58675
58676 2008-08-29  Bruno Haible  <bruno@clisp.org>
58677
58678         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
58679         any more.
58680
58681 2008-08-29  Simon Josefsson  <simon@josefsson.org>
58682
58683         * MODULES.html.sh (Misc): Add bitrotate.
58684
58685         * modules/bitrotate: New file.
58686
58687         * lib/bitrotate.h: New file.
58688
58689         * modules/bitrotate-tests: New file.
58690
58691         * tests/test-bitrotate.c: New file.
58692
58693         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
58694         on the bitrotate module.
58695
58696         * lib/arctwo.c: Use new bitrotate module.
58697
58698 2008-08-29  Jim Meyering  <meyering@redhat.com>
58699
58700         bootstrap: merge changes from coreutils
58701         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
58702         of copied files.  Remove a kludge, now that this is fixed.
58703         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
58704         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
58705         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
58706
58707 2008-08-29  Bruno Haible  <bruno@clisp.org>
58708
58709         * MODULES.html.sh: Remove --cvs-urls option.
58710
58711 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
58712
58713         maint.mk: adjust to file name change
58714         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
58715
58716 2008-08-28  Jim Meyering  <meyering@redhat.com>
58717
58718         * modules/getndelim2 (License): Relicense to LGPLv2+.
58719         Approved by Richard Stallman for the version of 1995, and by
58720         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
58721
58722 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
58723
58724         * lib/getdelim.c (flockfile, funlockfile): Make all of them
58725         dummy if one is not available.  Do not touch them if
58726         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
58727         (getc_maybe_unlocked): New.
58728         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
58729
58730 2008-08-26  Eric Blake  <ebb9@byu.net>
58731
58732         doc/INSTALL: resync from autoconf
58733         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
58734         (INSTALL_PRELUDE): Delete; this is done more efficiently by
58735         moving...
58736         * install.texi [!autoconf]: ...here.  Resync from autoconf.
58737         * INSTALL: Regenerate.
58738         * INSTALL.ISO: New file.
58739         * INSTALL.UTF-8: Likewise.
58740
58741 2008-08-26  Jim Meyering  <meyering@redhat.com>
58742
58743         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
58744         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
58745         these definitions conditional, so that they may be overridden, too.
58746
58747 2008-08-26  Bruno Haible  <bruno@clisp.org>
58748
58749         Generate INSTALL file variants with prettier quotes.
58750         * doc/Makefile (INSTALL_PRELUDE): New macro.
58751         (INSTALL): Use it.
58752         (INSTALL.ISO, INSTALL.UTF-8): New rules.
58753
58754 2008-08-26  Bruno Haible  <bruno@clisp.org>
58755
58756         Run makeinfo in an English locale.
58757         * doc/Makefile (MAKEINFO): New variable.
58758
58759 2008-08-26  Bruno Haible  <bruno@clisp.org>
58760
58761         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
58762         Suggested by Eric Blake.
58763
58764 2008-08-25  Bruno Haible  <bruno@clisp.org>
58765
58766         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
58767
58768 2008-08-25  Eric Blake  <ebb9@byu.net>
58769
58770         c-stack: test that stack overflow can be caught
58771         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
58772         that platform allows handling stack overflow; at least OS/2 EMX
58773         has sigaltstack, but crashes before transferring control to
58774         handler on stack overflow.
58775         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
58776         check for HAVE_STACK_OVERFLOW_HANDLING.
58777         Reported by Elbert Pol.
58778
58779 2008-08-25  Bruno Haible  <bruno@clisp.org>
58780
58781         * doc/posix-functions/strftime.texi: Fix description of strftime
58782         module.
58783
58784 2008-08-24  Bruno Haible  <bruno@clisp.org>
58785
58786         * tests/uniwidth/test-uc_width2.c: New file.
58787         * tests/uniwidth/test-uc_width2.sh: New file.
58788         * modules/uniwidth/width-tests (Files): Add the new files.
58789         (TESTS): Add uniwidth/test-uc_width2.sh.
58790         (TESTS_ENVIRONMENT): New variable.
58791         (check_PROGRAMS): Add test-uc_width2.
58792         (test_uc_width2_SOURCES): New variable.
58793
58794         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
58795         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
58796         not 0x00AB.
58797         Reported by Alexander V. Lukyanov <lav@netis.ru>.
58798
58799 2008-08-22  Eric Blake  <ebb9@byu.net>
58800
58801         test-lock, test-tls: mention why a test is skipped
58802         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
58803         skipped.
58804         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
58805
58806         count-one-bits: relax license
58807         * modules/count-one-bits (License): Relicense to LGPLv2+.
58808         Suggested by Ludovic Courtès, approved by Ben Pfaff.
58809
58810 2008-08-22  Andreas Schwab  <schwab@suse.de>
58811
58812         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
58813         Remove spurious space in assignment.
58814
58815 2008-08-21  Simon Josefsson  <simon@josefsson.org>
58816
58817         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
58818         Paul Eggert <eggert@CS.UCLA.EDU>.
58819
58820 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
58821
58822         * modules/gettext: Add m4/threadlib.m4.
58823
58824 2008-08-19  Eric Blake  <ebb9@byu.net>
58825
58826         test-c-stack: fix compilation failure on FreeBSD 5.0
58827         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
58828         headers before <sys/resource.h>.
58829         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
58830         the bug.
58831         Reported by Nelson H. F. Beebe.
58832
58833         strverscmp: migrate from "strverscmp.h" to <string.h>
58834         * modules/string (Makefile.am): Add new hooks.
58835         * modules/strverscmp (Files): Remove strverscmp.h.
58836         (Depends-on): Add string.
58837         (configure.ac): Add indicator.
58838         (Include): Mention new header.
58839         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
58840         defaults.
58841         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
58842         results.
58843         * lib/strverscmp.h: Delete.
58844         * lib/string.in.h (strverscmp): Provide declaration, when needed.
58845         * tests/test-strverscmp.c (includes): Adjust client.
58846         * lib/check-version.c (includes): Likewise.
58847         * NEWS: Document the change.
58848
58849         strverscmp: add unit test
58850         * modules/strverscmp-tests: New file.
58851         * tests/test-strverscmp.c: Likewise.
58852
58853 2008-08-19  Simon Josefsson  <simon@josefsson.org>
58854
58855         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
58856         regarding Windows crypto stuff, from Mono.
58857
58858 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
58859
58860         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
58861         if present, for intel RND.  Return error on failures.
58862
58863 2008-08-18  Ben Pfaff  <blp@gnu.org>
58864
58865         gitlog-to-changelog: give better diagnostic for failed pipe-open
58866         * build-aux/gitlog-to-changelog: Improve error message: suggest
58867         that the version of Git may be too old.
58868
58869 2008-08-18  Simon Josefsson  <simon@josefsson.org>
58870
58871         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
58872         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
58873
58874 2008-08-18  Bruno Haible  <bruno@clisp.org>
58875
58876         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
58877         pthread_in_use().
58878
58879 2008-08-18  Bruno Haible  <bruno@clisp.org>
58880
58881         * lib/glthread/threadlib.c: Include <pthread.h>.
58882
58883 2008-08-18  Bruno Haible  <bruno@clisp.org>
58884
58885         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
58886         glthread_recursive_lock_* macros.
58887         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
58888         Fix syntax error.
58889
58890 2008-08-18  Bruno Haible  <bruno@clisp.org>
58891
58892         * lib/glthread/thread.c: Avoid forcing a context switch right after
58893         thread creation.
58894
58895 2008-08-17  Bruno Haible  <bruno@clisp.org>
58896
58897         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
58898         * lib/glthread/thread.h: Provide Win32 specific implementation.
58899         * modules/thread (Files): Add lib/glthread/thread.c.
58900         (Depends-on): Add lock.
58901         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
58902
58903 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58904
58905         New module 'yield'.
58906         * modules/yield: New file.
58907         * lib/glthread/yield.h: New file.
58908         * m4/yield.m4: New file.
58909         * MODULES.html.sh (Multithreading): Add yield.
58910
58911 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58912
58913         New module 'thread'.
58914         * modules/thread: New file.
58915         * lib/glthread/thread.h: New file.
58916         * m4/thread.m4: New file.
58917         * MODULES.html.sh (Multithreading): Add thread.
58918
58919 2008-08-17  Bruno Haible  <bruno@clisp.org>
58920
58921         * lib/glthread/lock.h: Include <stdlib.h> always.
58922         * lib/glthread/tls.h: Likewise.
58923         * lib/glthread/cond.h: Likewise.
58924
58925 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58926
58927         New module 'cond'.
58928         * modules/cond: New file.
58929         * lib/glthread/cond.h: New file.
58930         * lib/glthread/cond.c: New file.
58931         * m4/cond.m4: New file.
58932         * MODULES.html.sh (Multithreading): Add cond.
58933
58934 2008-08-16  Eric Blake  <ebb9@byu.net>
58935
58936         c-stack: fix regression on Irix 5.3 from 2008-06-21
58937         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
58938         sa_sigaction...
58939         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
58940         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
58941         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
58942         * modules/signal (Makefile.am): Use the value.
58943         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
58944         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
58945         * doc/posix-headers/signal.texi (signal.h): Document this
58946         portability issue.
58947         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
58948         Reported by Tom G. Christensen.
58949
58950 2008-08-17  Bruno Haible  <bruno@clisp.org>
58951
58952         New module 'threadlib'.
58953         * modules/threadlib: New file.
58954         * lib/glthread/threadlib.c: New file, extracted from
58955         lib/glthread/lock.c.
58956         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
58957         functions.
58958         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
58959         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
58960         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
58961         macros.
58962         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
58963         (gl_DISABLE_THREADS): Remove macro.
58964         * modules/lock (Files): Remove build-aux/config.rpath.
58965         (Depends-on): Remove havelib. Add threadlib.
58966         (configure.ac-early): Remove section.
58967         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
58968         * modules/tls (Depends-on): Remove lock. Add threadlib.
58969         (Link): New section, copied from threadlib.
58970         * MODULES.html.sh (Multithreading): Add threadlib.
58971
58972 2008-08-14  Bruno Haible  <bruno@clisp.org>
58973
58974         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
58975         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
58976         glthread_rwlock_unlock, glthread_rwlock_destroy,
58977         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
58978         glthread_recursive_lock_destroy): Define as macros always.
58979         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
58980         glthread_lock_lock.
58981         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
58982         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
58983         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
58984         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
58985         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
58986         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
58987         (glthread_recursive_lock_lock_func): Renamed from
58988         glthread_recursive_lock_lock.
58989         (glthread_recursive_lock_unlock_func): Renamed from
58990         glthread_recursive_lock_unlock.
58991         (glthread_recursive_lock_destroy_func): Renamed from
58992         glthread_recursive_lock_destroy.
58993
58994 2008-08-14  Bruno Haible  <bruno@clisp.org>
58995
58996         * lib/glthread/lock.h: Renamed from lib/lock.h.
58997         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
58998         * lib/glthread/tls.h: Renamed from lib/tls.h.
58999         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
59000         * lib/fstrcmp.c: Update includes.
59001         * lib/strsignal.c: Update includes.
59002         * modules/lock (Files, Makefile.am): Update.
59003         (Include): Change to "glthread/lock.h".
59004         * modules/tls (Files, Makefile.am): Update.
59005         (Include): Change to "glthread/tls.h".
59006         * tests/test-lock.c: Update includes.
59007         * tests/test-tls.c: Update includes.
59008         * NEWS: Mention the renamed header files.
59009
59010 2008-08-11  Jim Meyering  <meyering@redhat.com>
59011
59012         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
59013
59014 2008-08-11  Eric Blake  <ebb9@byu.net>
59015
59016         test-c-stack: avoid C99-ism
59017         * tests/test-c-stack.c (main): Fix whitespace, move declaration
59018         before statement.
59019         Reported by Alain Guibert.
59020
59021 2008-08-10  Jim Meyering  <meyering@redhat.com>
59022
59023         ensure that return value of uinttostr et al are not ignored
59024         * lib/inttostr.h (__GNUC_PREREQ): Define.
59025         (__attribute_warn_unused_result__): Define.
59026         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
59027
59028 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
59029
59030         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
59031         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
59032
59033 2008-08-07  Jim Meyering  <meyering@redhat.com>
59034
59035         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
59036
59037         * modules/mkstemp (License): Relicense under LGPLv2+.
59038         * modules/tempname (License): Likewise.
59039
59040 2008-08-06  Bruno Haible  <bruno@clisp.org>
59041
59042         * lib/poll.c (poll): Further micro-optimization.
59043
59044 2008-08-06  Jim Meyering  <meyering@redhat.com>
59045
59046         inet_pton.c: use locale-independent tolower
59047         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
59048         (inet_pton6): Use c_tolower rather than tolower.
59049         * modules/inet_pton (Depends-on): Add c-ctype.
59050
59051 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
59052
59053         * lib/poll.c (poll): Avoid division when timeout is 0, cache
59054         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
59055
59056 2008-08-06  Jim Meyering  <meyering@redhat.com>
59057
59058         * modules/inet_pton (License): Relicense under LGPLv2+.
59059
59060 2008-08-03  Bruno Haible  <bruno@clisp.org>
59061
59062         Additional non-aborting API for lock and tls.
59063         * lib/lock.h: Include <errno.h>.
59064         (glthread_lock_init): New macro/function.
59065         (gl_lock_init): Define as wrapper around glthread_lock_init.
59066         (glthread_lock_lock): New macro/function.
59067         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
59068         (glthread_lock_unlock): New macro/function.
59069         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
59070         (glthread_lock_destroy): New macro/function.
59071         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
59072         (glthread_rwlock_init): New macro/function.
59073         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
59074         (glthread_rwlock_rdlock): New macro/function.
59075         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
59076         (glthread_rwlock_wrlock): New macro/function.
59077         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
59078         (glthread_rwlock_unlock): New macro/function.
59079         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
59080         (glthread_rwlock_destroy): New macro/function.
59081         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
59082         (glthread_recursive_lock_init): New macro/function.
59083         (gl_recursive_lock_init): Define as wrapper around
59084         glthread_recursive_lock_init.
59085         (glthread_recursive_lock_lock): New macro/function.
59086         (gl_recursive_lock_lock): Define as wrapper around
59087         glthread_recursive_lock_lock.
59088         (glthread_recursive_lock_unlock): New macro/function.
59089         (gl_recursive_lock_unlock): Define as wrapper around
59090         glthread_recursive_lock_unlock.
59091         (glthread_recursive_lock_destroy): New macro/function.
59092         (gl_recursive_lock_destroy): Define as wrapper around
59093         glthread_recursive_lock_destroy.
59094         (glthread_once): New macro/function.
59095         (gl_once): Define as wrapper around glthread_once.
59096         Update function declarations.
59097         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
59098         glthread_rwlock_init. Return error code.
59099         (glthread_rwlock_rdlock_multithreaded): Renamed from
59100         glthread_rwlock_rdlock. Return error code.
59101         (glthread_rwlock_wrlock_multithreaded): Renamed from
59102         glthread_rwlock_wrlock. Return error code.
59103         (glthread_rwlock_unlock_multithreaded): Renamed from
59104         glthread_rwlock_unlock. Return error code.
59105         (glthread_rwlock_destroy_multithreaded): Renamed from
59106         glthread_rwlock_destroy. Return error code.
59107         (glthread_recursive_lock_init_multithreaded): Renamed from
59108         glthread_recursive_lock_init. Return error code.
59109         (glthread_recursive_lock_lock_multithreaded): Renamed from
59110         glthread_recursive_lock_lock. Return error code.
59111         (glthread_recursive_lock_unlock_multithreaded): Renamed from
59112         glthread_recursive_lock_unlock. Return error code.
59113         (glthread_recursive_lock_destroy_multithreaded): Renamed from
59114         glthread_recursive_lock_destroy. Return error code.
59115         (glthread_once_call): Make static.
59116         (glthread_once_multithreaded): Renamed from glthread_once.
59117         * lib/tls.h: Include <errno.h>.
59118         (glthread_tls_key_init): New macro/function.
59119         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
59120         (glthread_tls_set): New macro/function.
59121         (gl_tls_set): Define as wrapper around glthread_tls_set.
59122         (glthread_tls_key_destroy): New macro/function.
59123         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
59124         Update function declarations.
59125         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
59126         glthread_tls_get.
59127         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
59128
59129 2008-08-04  Eric Blake  <ebb9@byu.net>
59130
59131         gnumakefile: use space, not TAB, outside of targets
59132         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
59133
59134 2008-08-02  Jim Meyering  <meyering@redhat.com>
59135
59136         getdate.y: avoid locale-dependent date parsing failure
59137         In Turkish locales, getdate would fail to recognize keywords
59138         containing a lowercase "i".  The solution is not to rely on
59139         locale-sensitive case-conversion.
59140         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
59141         (lookup_word): Use c_toupper in place of toupper.
59142         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
59143         Reported by Vefa Bicakci <bicave@superonline.com> in
59144         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
59145         * modules/getdate (Depends-on): Add c-ctype.
59146
59147 2008-08-02  Bruno Haible  <bruno@clisp.org>
59148
59149         * gnulib-tool (func_import): When updating or creating a .gitignore
59150         file, prepend each added line with a slash, and ignore leading slashes
59151         from the existing lines.
59152         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
59153
59154 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59155
59156         Portability fix for GNU make 3.79.1.
59157         * top/GNUmakefile: Avoid 'else COND', which older GNU make
59158         versions do not understand.
59159
59160 2008-08-01  Bruno Haible  <bruno@clisp.org>
59161
59162         Work around bug of HP-UX 10.20 cc with -0.0 literal.
59163         * tests/test-isnanf.h (zero): New variable.
59164         (main): Avoid literal -0.0f.
59165         * tests/test-isnand.h (zero): New variable.
59166         (main): Avoid literal -0.0.
59167         * tests/test-isnanl.h (zero): New variable.
59168         (main): Avoid literal -0.0L.
59169         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
59170         (test_float, test_double, test_long_double): Avoid literals -0.0f,
59171         -0.0, -0.0L.
59172         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
59173         (test_signbitd): Avoid literal -0.0.
59174         (test_signbitl): Avoid literal -0.0L.
59175         * tests/test-ceilf1.c (zero): New variable.
59176         (main): Avoid literal -0.0f.
59177         * tests/test-ceill.c (zero): New variable.
59178         (main): Avoid literal -0.0L.
59179         * tests/test-floorf1.c (zero): New variable.
59180         (main): Avoid literal -0.0f.
59181         * tests/test-floorl.c (zero): New variable.
59182         (main): Avoid literal -0.0L.
59183         * tests/test-roundf1.c (zero): New variable.
59184         (main): Avoid literal -0.0f.
59185         * tests/test-round1.c (zero): New variable.
59186         (main): Avoid literal -0.0.
59187         * tests/test-roundl.c (zero): New variable.
59188         (main): Avoid literal -0.0L.
59189         * tests/test-truncf1.c (zero): New variable.
59190         (main): Avoid literal -0.0f.
59191         * tests/test-trunc1.c (zero): New variable.
59192         (main): Avoid literal -0.0.
59193         * tests/test-truncl.c (zero): New variable.
59194         (main): Avoid literal -0.0L.
59195         * tests/test-frexp.c (zero): New variable.
59196         (main): Avoid literal -0.0.
59197         * tests/test-frexpl.c (zero): New variable.
59198         (main): Avoid literal -0.0L.
59199         * tests/test-ldexpl.c (zero): New variable.
59200         (main): Avoid literal -0.0L.
59201         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
59202         (zerod, zerol): New variables.
59203         (test_function): Avoid literals -0.0, -0.0L.
59204         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
59205         (zerod, zerol): New variables.
59206         (test_function): Avoid literals -0.0, -0.0L.
59207         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
59208         (zerod, zerol): New variables.
59209         (test_function): Avoid literals -0.0, -0.0L.
59210         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
59211         (zerod, zerol): New variables.
59212         (test_function): Avoid literals -0.0, -0.0L.
59213         * tests/test-strtod.c (zero): New variable.
59214         (main): Avoid literal -0.0.
59215         Reported by Jonathan C. Patschke <jp@centtech.com>.
59216
59217 2008-07-31  Jim Meyering  <meyering@redhat.com>
59218
59219         sha256.h: correct definition of SHA224_DIGEST_SIZE
59220         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
59221         Reported by Paulie Pena IV <paulie4@gmail.com>.
59222         Define as 224 / 8, rather than as a literal.
59223         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
59224         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
59225         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
59226
59227 2008-07-31  Bruno Haible  <bruno@clisp.org>
59228
59229         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
59230         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
59231         Reported by Jonathan Patschke <jp@centtech.com>.
59232
59233 2008-07-31  Bruno Haible  <bruno@clisp.org>
59234
59235         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
59236         Reported by Paolo Bonzini <bonzini@gnu.org>.
59237
59238 2008-07-30  Eric Blake  <ebb9@byu.net>
59239
59240         test-strtod: allow compilation without -lm
59241         * tests/test-strtod.c (main): Avoid link dependence on fabs.
59242         Reported by Dennis Clarke <blastwave@gmail.com>.
59243
59244 2008-07-28  Jim Meyering  <meyering@redhat.com>
59245
59246         bootstrap: work also when there are no .po files in po/
59247         * build-aux/bootstrap (update_po_files): Complete the change
59248         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
59249
59250 2008-07-27  Jim Meyering  <meyering@redhat.com>
59251
59252         * users.txt: Add zile.
59253
59254 2008-07-26  Ben Pfaff  <blp@gnu.org>
59255
59256         Add missing dependencies on new m4/exponent[fdl].m4 files.
59257         * modules/isnanf-nolibm: Add m4/exponentf.m4.
59258         * modules/isnand-nolibm: Add m4/exponentd.m4.
59259         * modules/isnanl-nolibm: Add m4/exponentl.m4.
59260         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
59261         m4/isnan[fdl].m4, because the macros actually used moved.
59262         Reported by Jim Meyering.
59263
59264 2008-07-14  Ben Pfaff  <blp@gnu.org>
59265
59266         Add isinf module.
59267         * lib/isinf.c: New file.
59268         * lib/math.in.h: Define isinf macro if we have decided to replace
59269         it.
59270         * m4/isinf.m4: New file.
59271         * m4/math_h.m4: Initialize and substitute variables for isinf
59272         module.
59273         * modules/isinf: New file.
59274         * modules/isinf-tests: New file.
59275         * modules/math: Add substitutions for new module.
59276         * tests/test-isinf.c: New file.
59277         * doc/posix-functions/isinf.texi: Mention new module.
59278         * MODULES.html.sh: Mention new module.
59279
59280 2008-07-14  Ben Pfaff  <blp@gnu.org>
59281
59282         Factor out some macros for use by additional modules.
59283         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
59284         exponentf.m4.
59285         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
59286         exponentd.m4.
59287         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
59288         file exponentl.m4.
59289         * m4/exponentf.m4: New file.
59290         * m4/exponentd.m4: New file.
59291         * m4/exponentl.m4: New file.
59292         * modules/isnanf: Use new file m4/exponentf.m4.
59293         * modules/isnand: Use new file m4/exponentd.m4.
59294         * modules/isnanl: Use new file m4/exponentl.m4.
59295
59296 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
59297
59298         mktime.c: normalize tp->tm_isdst value to -1/0/1.
59299         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
59300         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
59301         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
59302
59303         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
59304         readlink on platforms without PATH_MAX.
59305
59306 2008-07-21  Eric Blake  <ebb9@byu.net>
59307
59308         Warn, not fail, on stale version.
59309         * top/GNUmakefile (_curr-ver): Tone down previous patch.
59310
59311         Don't allow installation with stale devel version number.
59312         * top/GNUmakefile (_is-install-target): New macro.
59313         (_curr-ver): Forbid installation with stale version number.
59314
59315 2008-07-20  Bruno Haible  <bruno@clisp.org>
59316
59317         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
59318         TESTS_ENVIRONMENT.
59319         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
59320
59321 2008-07-20  Bruno Haible  <bruno@clisp.org>
59322
59323         * lib/c-stack.h (c_stack_action): Add documentation.
59324         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
59325
59326 2008-07-20  Bruno Haible  <bruno@clisp.org>
59327
59328         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
59329         * modules/readlink (License): Likewise.
59330
59331 2008-07-17  Eric Blake  <ebb9@byu.net>
59332
59333         * modules/c-stack (Link): Fix typo.
59334
59335         Make c-stack use libsigsegv, when available.
59336         * modules/c-stack (Depends-on): Add libsigsegv.
59337         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
59338         needed.
59339         * lib/c-stack.c (SIGSTKSZ): Define fallback.
59340         (segv_handler, overflow_handler, c_stack_action)
59341         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
59342         implementation when libsigsegv is available, but only when using
59343         the library is necessary.
59344         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
59345         comment, explaining why XSI check fails on Linux.
59346         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
59347         * tests/test-c-stack2.sh: Tweak skip message.
59348         * NEWS: Document new link-time requirements.
59349
59350 2008-07-16  Eric Blake  <ebb9@byu.net>
59351
59352         c-stack: Expose false positives when not using libsigsegv.
59353         * modules/c-stack-tests (Files): Expand test.
59354         * tests/test-c-stack.c (main): Add means to conditionally trigger
59355         non-overflow SIGSEGV.
59356         * tests/test-c-stack2.sh: New file.
59357
59358 2008-07-14  Bruno Haible  <bruno@clisp.org>
59359
59360         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
59361         Reported by Eric Blake.
59362
59363 2008-07-14  Sam Steingold  <sds@gnu.org>
59364             Bruno Haible  <bruno@clisp.org>
59365
59366         New module libsigsegv.
59367         * modules/libsigsegv: New file.
59368         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
59369         modifications.
59370         * MODULES.html.sh (Signal handling): New section.
59371
59372 2008-07-14  Bruno Haible  <bruno@clisp.org>
59373
59374         * modules/unictype/ctype-* (Description): Add the word "function".
59375         Improves the resulting doc in MODULES.html.
59376
59377 2008-07-12  Ben Pfaff  <blp@gnu.org>
59378
59379         Add longlong module.
59380         * modules/longlong: New file.
59381
59382 2008-07-12  Bruno Haible  <bruno@clisp.org>
59383
59384         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
59385         to empty.
59386
59387 2008-07-10  Ben Pfaff  <blp@gnu.org>
59388
59389         Add isnan module.
59390         * doc/posix-functions/isnan.texi: Mention new module.
59391         * lib/math.in.h: Define isnan macro if we have decided to replace
59392         it.
59393         * m4/isnan.m4: New file.
59394         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
59395         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
59396         also.
59397         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
59398         redundancy.
59399         * m4/math_h.m4: Initialize and substitute variables for isnan
59400         module.
59401         * modules/isnan: New file.
59402         * modules/isnan-tests: New file.
59403         * modules/math: Add substitutions for new module.
59404         * tests/test-isnan.c: New file.
59405         * MODULES.html.sh: Mention new module.
59406
59407 2008-07-10  Ben Pfaff  <blp@gnu.org>
59408
59409         Add isnanf module.
59410         * lib/isnanf.m4: New file.
59411         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
59412         (gl_HAVE_ISNANF_IN_LIBM): New macro.
59413         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
59414         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
59415         * modules/isnanf: New file.
59416         * modules/isnanf-tests: New file.
59417         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
59418         files.
59419         * tests/test-isnanf-nolibm.c: factored most of its contents into
59420         new file tests/test-isnanf.h.
59421         * tests/test-isnanf.h: New file.
59422         * tests/test-isnanf.c: New file.
59423         * MODULES.html.sh: Mention new module.
59424         * doc/glibc-functions/isnanf.texi: Mention new module.
59425
59426 2008-07-10  Ben Pfaff  <blp@gnu.org>
59427
59428         Add isnand module.
59429         * lib/isnand.h: New file.
59430         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
59431         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
59432         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
59433         functionality also.
59434         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
59435         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
59436         (gl_HAVE_ISNAND_IN_LIBM): New macro.
59437         * modules/isnand: New file.
59438         * modules/isnand-tests: New file.
59439         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
59440         files.
59441         * tests/test-isnand-nolibm.c: factored most of its contents into
59442         new file tests/test-isnand.h.
59443         * tests/test-isnand.h: New file.
59444         * tests/test-isnand.c: New file.
59445         * MODULES.html.sh: Mention new module.
59446
59447 2008-07-10  Ben Pfaff  <blp@gnu.org>
59448
59449         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
59450         * lib/isnand.h: Rename lib/isnand-nolibm.h.
59451         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
59452         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
59453         * modules/isnanf-nolibm: Update references to renamed files.
59454         * modules/isnand-nolibm: Likewise.
59455         * modules/isnanf-nolibm-tests: Likewise.
59456         * modules/isnand-nolibm-tests: Likewise.
59457         * lib/frexp.c: Likewise.
59458         * lib/isfinite.c: Likewise.
59459         * lib/signbitd.c: Likewise.
59460         * lib/signbitf.c: Likewise.
59461         * lib/vasnprintf.c: Likewise.
59462         * tests/test-ceilf1.c: Likewise.
59463         * tests/test-ceilf2.c: Likewise.
59464         * tests/test-floorf1.c: Likewise.
59465         * tests/test-floorf2.c: Likewise.
59466         * tests/test-frexp.c: Likewise.
59467         * tests/test-round1.c: Likewise.
59468         * tests/test-round2.c: Likewise.
59469         * tests/test-roundf1.c: Likewise.
59470         * tests/test-strtod.c: Likewise.
59471         * tests/test-trunc1.c: Likewise.
59472         * tests/test-trunc2.c: Likewise.
59473         * tests/test-truncf1.c: Likewise.
59474         * tests/test-truncf2.c: Likewise.
59475         * NEWS: Mention the renamed header files.
59476
59477 2008-07-11  Jim Meyering  <meyering@redhat.com>
59478
59479         vc-list-files: make the last-resort awk code more portable
59480         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
59481         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
59482         does not support it.
59483
59484 2008-07-10  Eric Blake  <ebb9@byu.net>
59485
59486         Work with tar's bootstrap.
59487         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
59488         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
59489         an m4 comment.
59490
59491 2008-07-09  Jim Meyering  <meyering@redhat.com>
59492
59493         posix-shell.m4: fix typo that made this test malfunction
59494         * m4/posix-shell.m4: Remove capitalization in variable name.
59495
59496 2008-07-08  Bruno Haible  <bruno@clisp.org>
59497
59498         * m4/onceonly.m4: Update comments.
59499         Reported by Ben Pfaff <blp@cs.stanford.edu>.
59500
59501 2008-07-04  Jim Meyering  <meyering@redhat.com>
59502
59503         * users.txt: Add vc-dwim.
59504         (bison, coreutils): Use the gitweb URL.
59505
59506 2008-07-03  Jim Meyering  <meyering@redhat.com>
59507
59508         * users.txt: Add libffcall.  From Sam Steingold.
59509
59510 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
59511
59512         getdate.y: do not ignore TZ with relative day, month or year offset
59513         * lib/getdate.y (get_date): Move the tz-handling block to follow the
59514         relative-date-handling, since otherwise, the latter would clobber the
59515         sole output (an updated Start value) of the tz-handling block.
59516         * tests/test-getdate.c: Tests for the fix
59517
59518 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59519
59520         Recognize 'foo_LIBRARIES += libgnu.a'.
59521         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
59522         makefile snippet has already specified an installation location,
59523         also using '+='.
59524
59525 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
59526
59527         getdate.y: factor out common actions
59528         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
59529         Use them in place of open-coded actions.
59530
59531 2008-07-01  Simon Josefsson  <simon@josefsson.org>
59532
59533         Add self-test for getdate module.
59534         * modules/getdate-tests: New file.
59535         * tests/test-getdate.c: New file.
59536
59537 2008-06-29  Bruno Haible  <bruno@clisp.org>
59538
59539         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
59540         .gitignore.
59541         Reported by Sylvain Beucler <beuc@beuc.net>.
59542
59543 2008-06-29  Bruno Haible  <bruno@clisp.org>
59544
59545         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
59546         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
59547
59548 2008-06-29  Bruno Haible  <bruno@clisp.org>
59549
59550         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
59551         EXTRA_DIST.
59552         Reported by Sylvain Beucler <beuc@beuc.net>.
59553
59554 2008-06-26  Jim Meyering  <meyering@redhat.com>
59555
59556         make several modules depend on the "open" module
59557         This provides slightly increased consistency when opening-for-write
59558         the name of a non-directory spelled with a trailing slash.
59559         * modules/chdir-safer: Likewise.
59560         * modules/chown: Likewise.
59561         * modules/clean-temp: Likewise.
59562         * modules/copy-file: Likewise.
59563         * modules/fchdir: Likewise.
59564         * modules/fcntl-safer: Likewise.
59565         * modules/pipe: Likewise.
59566         * modules/utime: Likewise.
59567         Prompted by Eric Blake and Bruno Haible.
59568
59569 2008-06-24  Andreas Schwab  <schwab@suse.de>
59570
59571         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
59572         literals can be used as initializers for global variables.
59573
59574 2008-06-23  Eric Blake  <ebb9@byu.net>
59575
59576         Make gnulib-cache.m4 easier to diff.
59577         * gnulib-tool (func_import): Allow newlines when reading cached
59578         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
59579
59580 2008-06-23  Bruno Haible  <bruno@clisp.org>
59581
59582         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
59583         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
59584         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
59585         m4/signalblocking.m4.
59586         (gl_PREREQ_SIGACTION): Don't invoke it.
59587         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
59588         gl_PREREQ_SIG_HANDLER_H.
59589         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
59590         Don't check for sigaction here.
59591
59592 2008-06-23  Bruno Haible  <bruno@clisp.org>
59593
59594         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
59595         (install_handlers): Don't set the SA_RESETHAND flag.
59596
59597 2008-06-23  Bruno Haible  <bruno@clisp.org>
59598
59599         * m4/sigaction.m4: Comment fixes.
59600         * lib/signal.in.h: Likewise.
59601
59602 2008-06-23  Eric Blake  <ebb9@byu.net>
59603
59604         Fix typo.
59605         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
59606
59607         Avoid SA_ namespace.
59608         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
59609         Reported by Ralf Wildenhues.
59610
59611         Avoid test failure due to SA_RESTORER.
59612         * tests/test-sigaction.c (SA_MASK): New macro.
59613         (main): Avoid failing due to extension flags being set.
59614         Reported by Jim Meyering.
59615
59616         Revert use of sig-handler.h in sigprocmask.c.
59617         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
59618         it requires the existence of struct sigaction.
59619         * lib/sigprocmask.c (handler_t): Restore typedef.
59620         (rpl_signal, old_handlers): Use local type.
59621
59622 2008-06-22  Bruno Haible  <bruno@clisp.org>
59623
59624         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
59625         conditionally.
59626         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
59627
59628 2008-06-22  Bruno Haible  <bruno@clisp.org>
59629
59630         * doc/posix-functions/siginterrupt.texi: Move note.
59631
59632         * lib/signal.in.h (SA_RESTART): New macro.
59633         * lib/sigaction.c: Update comment.
59634
59635         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
59636
59637         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
59638         (gl_PREREQ_SIGPROCMASK): Invoke it.
59639         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
59640
59641         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
59642
59643         * lib/sigprocmask.c: Update a comment.
59644
59645 2008-06-21  Eric Blake  <ebb9@byu.net>
59646
59647         Use sigaction module rather than signal().
59648         * modules/c-stack (Depends-on): Add sigaction.
59649         * modules/fatal-signal (Depends-on): Likewise.
59650         * modules/nanosleep (Depends-on): Likewise.
59651         * modules/sigprocmask (Files): Add sig-handler.h.
59652         * modules/sigaction (Files): Likewise.
59653         * lib/sig-handler.h (get_handler): New file, suggested by Paul
59654         Eggert.
59655         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
59656         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
59657         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
59658         (init_fatal_signals): Likewise.
59659         * lib/nanosleep.c (rpl_nanosleep): Likewise.
59660         (siginterrupt): Delete fallback.
59661         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
59662         instead.
59663         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
59664         siginterrupt.
59665
59666         New module sigaction, for mingw.
59667         * modules/sigaction: New module...
59668         * modules/sigaction-tests: ...and its test.
59669         * m4/sigaction.m4: New file.
59670         * lib/sigaction.c: Likewise.
59671         * tests/test-sigaction.c: Likewise.
59672         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
59673         * modules/signal (Makefile.am): Likewise.
59674         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
59675         needed.
59676         * doc/posix-headers/signal.texi (signal.h): Mention provided
59677         types.
59678         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
59679         that sigaction is preferable.
59680         * doc/posix-functions/sigaction.texi (sigaction): Mention new
59681         module.
59682         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59683         sigaction.
59684
59685         Improve robustness of sigprocmask by overriding signal.
59686         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
59687         is in use.
59688         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
59689         (SIGKILL, SIGSTOP): Provide fallbacks.
59690         (rpl_signal): Implement.
59691         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
59692         signal can be called inside handlers.
59693
59694         Fix nanosleep module on mingw.
59695         * modules/nanosleep (Depends-on): Add sys_select.
59696         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
59697
59698         Fix licensing of sigprocmask.
59699         * modules/raise (License): Relicense as LGPL.
59700
59701 2008-06-21  Bruno Haible  <bruno@clisp.org>
59702
59703         * lib/propername.c (proper_name_utf8): Don't use the transliterated
59704         result if it contains question marks.
59705         Reported by Michael Geng <linux@michaelgeng.de>.
59706
59707 2008-06-19  Bruno Haible  <bruno@clisp.org>
59708
59709         Fix CVS-ism.
59710         * doc/gnulib.texi: Include updated-stamp.texi.
59711         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
59712         (updated-stamp.texi): New rule.
59713         (gnulib.info): Depend on it.
59714         * doc/.gitignore: Add updated-stamp.texi.
59715         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
59716
59717 2008-06-19  Bruno Haible  <bruno@clisp.org>
59718
59719         * doc/Makefile (gnulib.info): Update and simplify dependencies.
59720         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
59721
59722 2008-06-19  Eric Blake  <ebb9@byu.net>
59723
59724         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
59725         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
59726         Reported by Stepan Kasal.
59727
59728 2008-06-18  Bruno Haible  <bruno@clisp.org>
59729
59730         * lib/fatal-signal.c (init_fatal_signals): Add comment.
59731         Reported by Eric Blake.
59732
59733 2008-06-18  Eric Blake  <ebb9@byu.net>
59734
59735         Work around cygwin 1.5.25 strsignal bug.
59736         * tests/test-strsignal.c: Allow for const char *.
59737         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
59738
59739 2008-06-18  Simon Josefsson  <simon@josefsson.org>
59740
59741         * users.txt: Update URL to article and add author/date
59742         information.
59743
59744 2008-06-17  Bruno Haible  <bruno@clisp.org>
59745
59746         New macro gl_DISABLE_THREADS.
59747         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
59748         if the user did not pass --enable-threads or --disable-threads option.
59749         (gl_DISABLE_THREADS): New macro.
59750         Reported by Eric Blake <ebb9@byu.net>.
59751
59752 2008-06-17  Bruno Haible  <bruno@clisp.org>
59753
59754         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
59755         when the macro ignores it.
59756         Based on a patch by Eric Blake <ebb9@byu.net>.
59757
59758 2008-06-17  Bruno Haible  <bruno@clisp.org>
59759
59760         * modules/tls (License): Change to LGPLv2+.
59761         Reported by Eric Blake.
59762
59763 2008-06-17  Eric Blake  <ebb9@byu.net>
59764
59765         Simplify c-stack prerequisites.
59766         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
59767         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
59768         no longer requires <ucontext.h> to exist.  Optimize setrlimit
59769         check.
59770         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
59771         <sys/resource.h>.
59772
59773         Move c-stack test into testsuite.
59774         * modules/c-stack-tests: New file.
59775         * lib/c-stack.c [DEBUG]: Move test program...
59776         * tests/test-c-stack.c: ...into this new file.  Skip rather than
59777         fail test if sigaltstack is lacking.
59778         * tests/test-c-stack.sh: New driver file.
59779
59780 2008-06-16  Eric Blake  <ebb9@byu.net>
59781
59782         Use raise module consistently.
59783         * modules/fatal-signal (Depends-on): Add raise.
59784         * modules/sigprocmask (Depends-on): Likewise.
59785         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
59786         * lib/sigprocmask.c (sigprocmask): Likewise.
59787         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
59788         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
59789
59790         Fix compliance bug in sigpending.
59791         * lib/sigprocmask.c (sigpending): Return pending array via
59792         parameter, not return value.
59793
59794 2008-06-14  Eric Blake  <ebb9@byu.net>
59795
59796         Improve obstack-printf test code.
59797         * tests/test-obstack-printf.c (test_function): Fix comment, and
59798         simplify usage of obstack_* in macros.  Add a test for coverage.
59799         Reported by Bruno Haible.
59800
59801 2008-06-14  Bruno Haible  <bruno@clisp.org>
59802
59803         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
59804         array size as a constant, not as a const variable.
59805         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
59806         AC_USE_SYSTEM_EXTENSIONS.
59807         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
59808         Test whether the obstack_printf function actually exists.
59809         * modules/obstack-printf (Depends-on): Add extensions.
59810         (Include): Remove obstack.h.
59811         * modules/obstack-printf-posix (Depends-on): Add extensions.
59812         (Include): Remove obstack.h.
59813
59814 2008-06-13  Eric Blake  <ebb9@byu.net>
59815
59816         Add obstack-printf and obstack-printf-posix modules.
59817         * modules/obstack-printf: New file.
59818         * modules/obstack-printf-posix: Likewise.
59819         * MODULES.html.sh (Misc): Mention them.
59820         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
59821         Likewise.
59822         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
59823         Likewise.
59824         * modules/stdio (Makefile.am): Accomodate new modules.
59825         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
59826         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
59827         Declare.
59828         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
59829         functions.
59830         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
59831         (gl_REPLACE_OBSTACK_PRINTF): New macros
59832         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
59833         * tests/test-obstack-printf.c: New file.
59834         * modules/obstack-printf-tests: Likewise.
59835         * modules/obstack-printf-posix-tests: Likewise.
59836
59837 2008-06-11  Bruno Haible  <bruno@clisp.org>
59838
59839         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
59840         * lib/open.c: Include errno.h.
59841         (open): Fail when attempting to write to a file that has a trailing
59842         slash.
59843         * tests/test-open.c (main): Test against trailing slash bug.
59844         * doc/posix-functions/open.texi: Mention the trailing slash bug.
59845
59846 2008-06-10  Bruno Haible  <bruno@clisp.org>
59847
59848         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
59849         for $? to work inside the trap command, with various /bin/sh-s.
59850         * tests/test-vc-list-files-cvs.sh: Likewise.
59851
59852 2008-06-10  Bruno Haible  <bruno@clisp.org>
59853
59854         * lib/acl-internal.h: Don't include gettext.h here.
59855         * lib/set-mode-acl.c: Include gettext.h here.
59856         * lib/copy-acl.c: Likewise.
59857
59858 2008-06-10  Bruno Haible  <bruno@clisp.org>
59859
59860         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
59861         * lib/wait-process.c (wait_subprocess): Likewise.
59862         * lib/execute.h (execute): Add termsigp argument.
59863         * lib/execute.c (execute): Likewise.
59864         * lib/csharpcomp.c (compile_csharp_using_pnet,
59865         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
59866         * lib/csharpexec.c (execute_csharp_using_pnet,
59867         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
59868         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
59869         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
59870         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
59871         is_jikes_present): Update.
59872         * lib/javaexec.c (execute_java_class): Update.
59873         * lib/javaversion.c (execute_and_read_line): Update.
59874         * NEWS: Document the changes.
59875         Reported by Eric Blake.
59876
59877 2008-06-10  Eric Blake  <ebb9@byu.net>
59878
59879         Add missing include.
59880         * tests/test-strstr.c (includes): Add <signal.h>.
59881         * tests/test-strcasestr.c (includes): Likewise.
59882         * tests/test-memmem.c (includes): Likewise.
59883
59884 2008-06-10  Bruno Haible  <bruno@clisp.org>
59885
59886         * lib/wait-process.c (wait_subprocess): Add an assertion.
59887
59888 2008-06-10  Bruno Haible  <bruno@clisp.org>
59889
59890         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
59891
59892 2008-06-10  Bruno Haible  <bruno@clisp.org>
59893
59894         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
59895         using alarm().
59896         * tests/test-strcasestr.c (main): Likewise.
59897         * tests/test-strstr.c (main): Likewise.
59898
59899 2008-06-09  Bruno Haible  <bruno@clisp.org>
59900
59901         Work around the Solaris 10 ACE ACLs ABI change.
59902         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
59903         declare if ACL_NO_TRIVIAL is present.
59904         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
59905         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
59906         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
59907         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
59908         define if ACL_NO_TRIVIAL is present.
59909         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
59910         and use the current ABI.
59911         (file_has_acl): Use same #if condition as elsewhere.
59912         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
59913         in use, and use the current ABI.
59914         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
59915         Reported by Jim Meyering.
59916
59917 2008-06-09  Eric Blake  <ebb9@byu.net>
59918
59919         Work around environments that (stupidly) ignore SIGALRM.
59920         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
59921         before using alarm().
59922         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59923         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
59924         Reported by Ian Beckwith <ianb@erislabs.net>.
59925
59926         Produce autobuild blurb earlier in log.
59927         * modules/autobuild (configure.ac-early): Move AB_INIT here.
59928
59929 2008-06-09  Jim Meyering  <meyering@redhat.com>
59930         and Ondřej Vašík  <ovasik@redhat.com>
59931
59932         utimens.c: correct kernel bug work-around
59933         Ondřej Vašík found that the invalid return value of 280 indicates
59934         failure, not success, and the kernel bug we're trying to work
59935         around affects not just the utimensat call, but also the fallback
59936         futimens call.
59937         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
59938         not success.
59939         [HAVE_FUTIMENS]: Use the same work-around, here.
59940
59941 2008-06-09  Jim Meyering  <meyering@redhat.com>
59942
59943         add more guards around definition of ACE_-related code
59944         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
59945         ALLOW and ACE_OWNER are also defined.
59946
59947 2008-06-08  Bruno Haible  <bruno@clisp.org>
59948
59949         * lib/acl-internal.h: Add me as co-author.
59950         * lib/file-has-acl.c: Likewise.
59951         * lib/set-mode-acl.c: Likewise.
59952         * lib/copy-acl.c: Likewise.
59953
59954 2008-06-08  Bruno Haible  <bruno@clisp.org>
59955
59956         Add support for AIX ACLs.
59957         * lib/acl-internal.h (acl_nontrivial): New declaration.
59958         * lib/file-has-acl.c (acl_nontrivial): New function.
59959         (file_has_acl): Add implementation using AIX 4 ACL API.
59960         * lib/set-mode-acl.c (qset_acl): Likewise.
59961         * lib/copy-acl.c (qcopy_acl): Likewise.
59962
59963 2008-06-08  Bruno Haible  <bruno@clisp.org>
59964
59965         Add support for HP-UX ACLs.
59966         * lib/acl-internal.h (acl_nontrivial): New declaration.
59967         * lib/file-has-acl.c (acl_nontrivial): New function.
59968         (file_has_acl): Add implementation using HP-UX 11 ACL API.
59969         * lib/set-mode-acl.c (qset_acl): Likewise.
59970         * lib/copy-acl.c (qcopy_acl): Likewise.
59971
59972 2008-06-08  Bruno Haible  <bruno@clisp.org>
59973
59974         Add support for Cygwin ACLs.
59975         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
59976         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
59977         the chmod_or_fchmod call.
59978         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
59979
59980 2008-06-08  Bruno Haible  <bruno@clisp.org>
59981
59982         Fix bug with setuid modes in Solaris 10+ code.
59983         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
59984         succeeded, when the mode contains some special bits.
59985
59986 2008-06-08  Bruno Haible  <bruno@clisp.org>
59987
59988         Add support for Solaris 7..10 ACLs.
59989         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
59990         declarations.
59991         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
59992         functions.
59993         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
59994         * lib/set-mode-acl.c (qset_acl): Likewise.
59995         * lib/copy-acl.c (qcopy_acl): Likewise.
59996
59997 2008-06-08  Bruno Haible  <bruno@clisp.org>
59998
59999         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
60000         declaration.
60001         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
60002         (acl_access_nontrivial): Remove MacOS X case.
60003         (file_has_acl): Use acl_extended_nontrivial.
60004         * lib/copy-acl.c (qcopy_acl): Likewise.
60005
60006 2008-06-08  Bruno Haible  <bruno@clisp.org>
60007
60008         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
60009
60010 2008-06-08  Jim Meyering  <meyering@redhat.com>
60011
60012         * modules/acl (Maintainer): Add Bruno Haible.
60013
60014 2008-06-07  Bruno Haible  <bruno@clisp.org>
60015
60016         Improve support for Tru64 ACLs.
60017         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
60018         ACL on OSF/1.
60019
60020 2008-06-07  Bruno Haible  <bruno@clisp.org>
60021
60022         Add support for MacOS X ACLs.
60023         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
60024         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
60025         * lib/set-mode-acl.c (qset_acl): Likewise.
60026         * lib/copy-acl.c (qcopy_acl): Likewise.
60027
60028 2008-06-07  Bruno Haible  <bruno@clisp.org>
60029
60030         Fix memory leak introduced on 2008-05-22.
60031         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
60032         use.
60033
60034 2008-06-07  Bruno Haible  <bruno@clisp.org>
60035
60036         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
60037         to construct an empty ACL.
60038
60039 2008-06-07  Bruno Haible  <bruno@clisp.org>
60040
60041         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
60042         precisely.
60043         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
60044
60045 2008-06-07  Bruno Haible  <bruno@clisp.org>
60046
60047         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
60048         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
60049
60050 2008-06-07  Bruno Haible  <bruno@clisp.org>
60051
60052         * doc/posix-functions/_setjmp.texi: Explain the use of this function
60053         regardless of POSIX.
60054         * doc/posix-functions/_longjmp.texi: Likewise.
60055         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
60056         SystemV platform in this case.
60057
60058 2008-06-06  Eric Blake  <ebb9@byu.net>
60059
60060         Document abort() bugs.
60061         * doc/posix-functions/abort.texi (abort): Mention anomalies.
60062
60063         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
60064         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
60065         sigsetjmp.
60066         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
60067         siglongjmp, but only as a macro.
60068         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
60069         is obsolete.
60070         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
60071
60072         Tweak documentation to cover cygwin argz bugs.
60073         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
60074         argz bug fix; no code change needed since no cygwin releases
60075         occurred between the last fix and the bug being tested.
60076         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
60077         module and recently fixed cygwin bugs.
60078         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
60079         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
60080         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
60081         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
60082         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
60083         Likewise.
60084         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
60085         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
60086         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
60087         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
60088         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
60089         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
60090         Likewise.
60091
60092         Avoid gcc warning on cygwin.
60093         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
60094         !ACL_NO_TRIVIAL]: Avoid unused variable.
60095
60096 2008-06-05  Eric Blake  <ebb9@byu.net>
60097
60098         Be tolerant of UNKNOWN version in gnulib-tool test dir.
60099         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
60100         git-version-gen fails to come up with a version.
60101         Reported by Simon Josefsson.
60102
60103 2008-06-05  Jim Meyering  <meyering@redhat.com>
60104             Paul Eggert  <eggert@cs.ucla.edu>
60105
60106         utimens.c: work around a probable Linux kernel bug
60107         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
60108         appears to be a kernel bug that causes utimensat to return 280
60109         instead of 0, indicating success.
60110
60111 2008-06-04  Bruno Haible  <bruno@clisp.org>
60112
60113         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
60114         2008-06-01 commit.
60115
60116 2008-06-04  Bruno Haible  <bruno@clisp.org>
60117
60118         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
60119         * lib/file-has-acl.c (acl_access_nontrivial): New function.
60120         (file_has_acl): Use it. Save errno afterwards.
60121         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
60122
60123 2008-06-03  Bruno Haible  <bruno@clisp.org>
60124
60125         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
60126         draft code. Simplify #ifs.
60127         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
60128         Put Solaris code after POSIX-draft code. Fix comments regarding
60129         Solaris 10, HP-UX. Mention Cygwin.
60130         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
60131
60132 2008-06-03  Eric Blake  <ebb9@byu.net>
60133
60134         Provide fallback for older kernels.
60135         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
60136         Provide runtime fallback if kernel lacks support.
60137         Reported by Mike Frysinger.
60138
60139 2008-06-02  Bruno Haible  <bruno@clisp.org>
60140
60141         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
60142         it exists.
60143
60144 2008-06-02  Bruno Haible  <bruno@clisp.org>
60145
60146         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
60147         * lib/copy-acl.c (qcopy_acl): Update comment.
60148
60149 2008-06-02  Bruno Haible  <bruno@clisp.org>
60150
60151         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
60152         like ACL APIs.
60153
60154 2008-06-02  Bruno Haible  <bruno@clisp.org>
60155
60156         * tests/test-file-has-acl.sh: Use different code for Cygwin.
60157         * tests/test-set-mode-acl.sh: Likewise.
60158         * tests/test-copy-acl.sh: Likewise.
60159         * tests/test-copy-file.sh: Likewise.
60160
60161 2008-06-02  Bruno Haible  <bruno@clisp.org>
60162
60163         * tests/test-file-has-acl.sh: Remove unused code.
60164
60165 2008-06-01  Bruno Haible  <bruno@clisp.org>
60166
60167         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
60168         (copy_acl): Just a wrapper around qcopy_acl that emits the error
60169         messages.
60170         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
60171
60172 2008-06-01  Bruno Haible  <bruno@clisp.org>
60173
60174         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
60175         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
60176         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
60177         APIs.
60178         * modules/acl-tests (configure.ac): Remove tests now contained in
60179         m4/acl.m4.
60180
60181 2008-06-02  Jim Meyering  <meyering@redhat.com>
60182
60183         announce-gen: use a better key-server host name
60184         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
60185         it may be more consistently reliable.  Suggested by Werner Koch
60186         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
60187
60188 2008-06-01  Bruno Haible  <bruno@clisp.org>
60189
60190         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
60191         Reported by Voroskoi Andras <voroskoi@gmail.com>.
60192
60193 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
60194
60195         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
60196
60197 2008-06-01  Bruno Haible  <bruno@clisp.org>
60198
60199         New ACL tests.
60200         * tests/test-file-has-acl.sh: New file.
60201         * tests/test-file-has-acl.c: New file.
60202         * tests/test-set-mode-acl.sh: New file.
60203         * tests/test-set-mode-acl.c: New file.
60204         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
60205         * tests/test-copy-acl.c: New file.
60206         * modules/acl-tests: New file, based on modules/copy-file-tests.
60207         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
60208         (Depends-on): Add acl-tests.
60209         (configure.ac): Remove checks.
60210         (Makefile.am): Don't create test-sameacls program here any more.
60211
60212 2008-06-01  Bruno Haible  <bruno@clisp.org>
60213
60214         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
60215         * tests/test-sameacls.c: Include progname.h.
60216         (main): Invoke set_program_name. Portability fixes for MacOS X,
60217         Solaris, HP-UX.
60218
60219 2008-06-01  Bruno Haible  <bruno@clisp.org>
60220
60221         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
60222         function.
60223         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
60224
60225 2008-06-01  Bruno Haible  <bruno@clisp.org>
60226
60227         * modules/rpmatch (Depends-on): Add strdup.
60228
60229 2008-06-01  Bruno Haible  <bruno@clisp.org>
60230
60231         * lib/pipe.c: Include unistd-safer.h.
60232         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
60233         * modules/pipe (Depends-on): Add unistd-safer.
60234
60235 2008-05-30  Simon Josefsson  <simon@josefsson.org>
60236
60237         * modules/autobuild (configure.ac): Call AB_INIT.
60238
60239 2008-05-30  Simon Josefsson  <simon@josefsson.org>
60240
60241         * tests/test-getaddrinfo.c: Don't print debug messages by default.
60242         Suggested by Bruno Haible <bruno@clisp.org>.
60243
60244 2008-05-30  Simon Josefsson  <simon@josefsson.org>
60245
60246         * tests/test-base64.c: Cast size_t to unsigned long when invoking
60247         printf.  Use %lu instead of %d.  Reported by Bruno Haible
60248         <bruno@clisp.org>.
60249
60250 2008-05-29  Eric Blake  <ebb9@byu.net>
60251
60252         Prefer new POSIX 200x interfaces over futimesat.
60253         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
60254         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
60255         when available.
60256         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
60257
60258 2008-05-28  Bruno Haible  <bruno@clisp.org>
60259
60260         * modules/stpcpy (License): Change to LGPLv2+.
60261         Requested by David Lutterkort <dlutter@redhat.com>.
60262
60263 2008-05-27  Bruno Haible  <bruno@clisp.org>
60264
60265         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
60266         current mingw.
60267         Reported by Jose E. Marchesi <jemarch@gnu.org>.
60268
60269 2008-05-27  Bruno Haible  <bruno@clisp.org>
60270
60271         * modules/iconv_open (Link): New section, from module 'iconv'.
60272         * modules/striconv (Link): Likewise.
60273         * modules/striconveh (Link): Likewise.
60274         * modules/xstriconv (Link): Likewise.
60275         * modules/unicodeio (Link): Likewise.
60276         * modules/propername (Link): Likewise.
60277         Reported by Jim Meyering.
60278
60279 2008-05-26  Jim Meyering  <meyering@redhat.com>
60280
60281         sha256: do not artificially restrict buffer length to be < 2^32
60282         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
60283         uint32_t to size_t.
60284         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
60285         to match.
60286
60287         avoid unaligned access errors, e.g., on sparc
60288         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
60289         direct access through a possibly-unaligned uint64* pointer.
60290         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
60291         direct access through a possibly-unaligned uint32* pointer.
60292         Prompted by this patch from Tom "spot" Callaway:
60293         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
60294
60295         sha512.c: fix typo in comment
60296         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
60297
60298 2008-05-25  Bruno Haible  <bruno@clisp.org>
60299
60300         * lib/set-mode-acl.c: Renamed from lib/acl.c.
60301         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
60302         (Makefile.am): Update lib_SOURCES.
60303
60304 2008-05-25  Bruno Haible  <bruno@clisp.org>
60305
60306         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
60307
60308 2008-05-25  Jim Meyering  <meyering@redhat.com>
60309
60310         useless-if-before-free: freed expr may have white-space differences
60311         * build-aux/useless-if-before-free: Recognize cases in which the
60312         freed expression differs from the tested one in embedded white
60313         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
60314         $1 was used, so we can't make any regexp shy.  Improved tests now
60315         detect this.
60316
60317         useless-if-before-free: accept white space in the expression.
60318         * build-aux/useless-if-before-free: For now, any white space
60319         in the expression must be identical in the free argument.
60320
60321         useless-if-before-free: efficiency tweak
60322         * build-aux/useless-if-before-free: Make the expression-matching
60323         regexp "shy".
60324         Make the *outer* regexp shy, not the expr-matching one.
60325
60326         update code-in-comment to accept cast of free arg
60327         * build-aux/useless-if-before-free: Update regexp.
60328
60329 2008-05-25  Bruno Haible  <bruno@clisp.org>
60330
60331         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
60332         * modules/copy-file-tests (Files, Makefile.am): Update.
60333         * tests/test-copy-file.c (func_test_copy): Update.
60334
60335 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
60336
60337         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
60338
60339 2008-05-23  Bruno Haible  <bruno@clisp.org>
60340
60341         Improve support for ACLs on OSF/1.
60342         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
60343         Remove fallback for unknown flavors of ACLs.
60344
60345 2008-05-22  Bruno Haible  <bruno@clisp.org>
60346
60347         Add support for ACLs on OSF/1.
60348         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
60349         replacements.
60350         (acl_free_text): New macro fallback.
60351         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
60352         acl_free.
60353         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
60354         acl_free_text function. Require AC_C_INLINE.
60355
60356 2008-05-22  Bruno Haible  <bruno@clisp.org>
60357
60358         Make copy_acl work on MacOS X 10.5.
60359         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
60360         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
60361         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
60362         If MODE_INSIDE_ACL, don't assume that every system has the same text
60363         representation for ACLs as FreeBSD.
60364         * lib/copy-acl.c (copy_acl): Add support for platforms with
60365         !MODE_INSIDE_ACL.
60366         * lib/file-has-acl.c (file_has_acl): Likewise.
60367         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
60368         FreeBSD, MacOS X, or IRIX, respectively.
60369
60370 2008-05-22  Bruno Haible  <bruno@clisp.org>
60371
60372         * lib/acl.h: Don't include <sys/acl.h>.
60373         (GETACLCNT): Move fallback to lib/acl-internal.h.
60374         * lib/acl-internal.h: Include <sys/acl.h> here.
60375         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
60376
60377 2008-05-22  Bruno Haible  <bruno@clisp.org>
60378
60379         Split off copy_acl function to separate file.
60380         * lib/copy-acl.c: New file, extracted from lib/acl.c.
60381         * lib/acl.c (copy_acl): Moved function to separate file.
60382         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
60383         * modules/acl (Files): Add lib/copy-acl.c.
60384         (Makefiles.am): Augment lib_SOURCES.
60385
60386 2008-05-22  Bruno Haible  <bruno@clisp.org>
60387
60388         * modules/copy-file-tests: New file.
60389         * tests/test-copy-file.sh: New file.
60390         * tests/test-copy-file.c: New file.
60391         * tests/test-copy-file-sameacls.c: New file.
60392
60393 2008-05-22  Eric Blake  <ebb9@byu.net>
60394
60395         Avoid gcc warning.
60396         * tests/test-memcmp.c (main): Pass NULL indirectly.
60397
60398 2008-05-21  Bruno Haible  <bruno@clisp.org>
60399
60400         Add reference doc about ACLs.
60401         * doc/acl-resources.txt: New file.
60402         * doc/acl-cygwin.txt: New file.
60403
60404 2008-05-21  Bruno Haible  <bruno@clisp.org>
60405
60406         Avoid one more warning from gcc.
60407         * lib/vasnprintf.c (IF_LINT): Update comments.
60408         (VASNPRINTF): Use it also for the 'prefix' array initializer.
60409
60410 2008-05-21  Jim Meyering  <meyering@redhat.com>
60411
60412         avoid a warning from gcc
60413         * lib/vasnprintf.c (IF_LINT): Define.
60414         (scale10_round_decimal_long_double):
60415         Use it to avoid a "may be used uninitialized" warning.
60416         (scale10_round_decimal_double): Likewise.
60417
60418 2008-05-21  Simon Josefsson  <simon@josefsson.org>
60419
60420         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
60421         declared.
60422
60423 2008-05-20  Bruno Haible  <bruno@clisp.org>
60424
60425         * tests/test-memcmp.c (main): Test also the sign of the result. Test
60426         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
60427
60428 2008-05-20  Simon Josefsson  <simon@josefsson.org>
60429
60430         * modules/memcmp-tests: New file.
60431         * tests/test-memcmp.c: New file.
60432
60433 2008-05-19  Bruno Haible  <bruno@clisp.org>
60434
60435         * modules/propername (Notice, configure.ac): Put quoted "..." into
60436         --keyword option.
60437         * lib/propername.h: Update comments accordingly.
60438         Reported by Eric Blake.
60439
60440 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
60441
60442         * modules/getpass-gnu (Depends-on): Add fseeko.
60443
60444 2008-05-19  Simon Josefsson  <simon@josefsson.org>
60445
60446         * modules/base64-tests: New file.
60447
60448 2008-05-19  Bo Borgerson <gigabo@gmail.com>
60449
60450         * lib/base64.c (base64_decode_ctx): If a decode context structure
60451         was passed in use it to ignore newlines.  If a context structure
60452         was _not_ passed in, continue to treat newlines as garbage (this
60453         is the historical behavior).  Formerly base64_decode.
60454         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
60455         takes a decode context structure.
60456         * lib/base64.h (base64_decode): Macro for four-argument calls.
60457         (base64_decode_alloc): Likewise.
60458         * lib/base64.c (base64_decode_ctx): If a decode context structure
60459         was passed in use it to ignore newlines.  If a context structure
60460         was _not_ passed in, continue to treat newlines as garbage (this
60461         is the historical behavior).  Formerly base64_decode.
60462         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
60463         takes a decode context structure.
60464         * lib/base64.h (base64_decode): Macro for four-argument calls.
60465         (base64_decode_alloc): Likewise.
60466
60467 2008-05-19  Jim Meyering  <meyering@redhat.com>
60468
60469         avoid a warning from gcc
60470         * lib/trim.c (IF_LINT): Define.
60471         (trim2): Use it to avoid a "may be used uninitialized" warning.
60472
60473         Fix doc typo.
60474         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
60475
60476 2008-05-19  Bruno Haible  <bruno@clisp.org>
60477
60478         * doc/glibc-functions/getpass.texi: Document limits of other
60479         implementations.
60480
60481 2008-05-19  Simon Josefsson  <simon@josefsson.org>
60482             Bruno Haible <bruno@clisp.org>
60483
60484         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
60485
60486 2008-05-18  Bruno Haible  <bruno@clisp.org>
60487
60488         * modules/propername: New file, from GNU gettext.
60489         * lib/propername.h: New file, from GNU gettext.
60490         * lib/propername.c: New file, from GNU gettext.
60491         * MODULES.html.sh (Internationalization functions): Add propername.
60492
60493 2008-05-16  Jim Meyering  <meyering@redhat.com>
60494             Bruno Haible  <bruno@clisp.org>
60495
60496         Avoid some warnings from "gcc -Wshadow".
60497         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
60498
60499 2008-05-15  Eric Blake  <ebb9@byu.net>
60500
60501         Extend previous patch to cygwin 1.7.0.
60502         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
60503         fast implementation in cygwin >= 1.7.0.
60504         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
60505         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
60506
60507 2008-05-15  Bruno Haible  <bruno@clisp.org>
60508
60509         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
60510         implementation in glibc >= 2.9.
60511         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
60512         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
60513
60514 2008-05-15  Bruno Haible  <bruno@clisp.org>
60515
60516         * MODULES.html.sh (Internationalization functions): Remove linebreak.
60517         (Unicode string functions): Add unilbrk/*.
60518         Reported by Karl Berry.
60519
60520 2008-05-15  Eric Blake  <ebb9@byu.net>
60521
60522         Fix violation of <stdbool.h> replacement in regex.
60523         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
60524         * lib/regexec.c (re_search_internal): Likewise.
60525         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
60526
60527 2008-05-15  Jim Meyering  <meyering@redhat.com>
60528
60529         avoid distracting test output when git or cvs is not found
60530         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
60531         * tests/test-vc-list-files-git.sh: Likewise.
60532
60533 2008-05-15  Eric Blake  <ebb9@byu.net>
60534
60535         Glibc finally accepted the memmem speedup code, bugzilla #5514.
60536         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
60537         glibc version.
60538         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
60539         * doc/posix-functions/strstr.texi (strstr): Likewise.
60540         * lib/str-two-way.h (MAX): Sychronize with glibc.
60541
60542 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
60543
60544         * lib/regcomp.c (optimize_utf8): Add a note on why we test
60545         opr.ctx_type.
60546         (calc_first): Initialize constraint field.
60547         (duplicate_node_closure): Use it instead of special casing ANCHORS.
60548         Fix grammar.
60549         (duplicate_node): Merge constraint field for all node types.
60550         (calc_eclosure_iter): Look at constraint field for all node types.
60551         * lib/regex_internal.c (create_cd_newstate): Don't look at
60552         opr.ctx_type.
60553
60554 2008-05-14  Bruno Haible  <bruno@clisp.org>
60555
60556         Help GCC to do better code generation.
60557         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
60558         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
60559         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
60560         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
60561         Declare with attribute 'malloc' if supported.
60562
60563 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
60564
60565         use "echo STR|wc -c" rather than unportable "expr length STR"
60566         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
60567         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
60568
60569 2008-05-14  Jim Meyering  <meyering@redhat.com>
60570
60571         use dd ibs=$n count=1 ... rather than less-portable head -c$n
60572         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
60573         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
60574         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
60575         via Collin Lasse.
60576
60577 2008-05-14  Eric Blake  <ebb9@byu.net>
60578
60579         Avoid quadratic growth in gl_LIBSOURCES.
60580         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
60581         Suggested by Bruno Haible.
60582
60583         Test xmemdup0.
60584         * modules/xmemdup0-tests: New file.
60585         * tests/test-xmemdup0.c: Likewise.
60586
60587 2008-05-13  Eric Blake  <ebb9@byu.net>
60588
60589         Split xmemdup0 into its own module.
60590         * modules/xmemdup0: New file.
60591         * lib/xmemdup0.h: Likewise.
60592         * lib/xmemdup0.c: Likewise.
60593         * MODULES.html.sh (Memory management functions): Add xmemdup0.
60594         * lib/xalloc.h (xmemdup0): Remove.
60595         * lib/xmalloc.c (xmemdup0): Likewise.
60596
60597 2008-05-13  Eric Blake  <ebb9@byu.net>
60598             Bruno Haible  <bruno@clisp.org>
60599
60600         Reduce number of forks required during autoconf.
60601         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
60602         and gl_LIBSOURCES_DIR.
60603         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
60604         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
60605         m4_syscmd per file.
60606         <m4_foreach_w>: Move...
60607         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
60608
60609 2008-05-13  Eric Blake  <ebb9@byu.net>
60610
60611         * gnulib-tool: Fix various comment typos.
60612
60613 2008-05-12  Bruno Haible  <bruno@clisp.org>
60614
60615         Tailor the linebreaking algorithm.
60616         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
60617
60618 2008-05-12  Bruno Haible  <bruno@clisp.org>
60619
60620         Update to Unicode 5.0.0.
60621         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
60622         LBP_JV, LBP_JT. Redistribute values.
60623         (unilbrk_table): Change size.
60624         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
60625         Unicode TR#14 rev. 22.
60626         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
60627         LBP_JV, LBP_JT. Redistribute values.
60628         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
60629         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
60630         Update.
60631         * lib/unilbrk/lbrkprop1.h: Regenerated.
60632         * lib/unilbrk/lbrkprop2.h: Regenerated.
60633         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
60634         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
60635         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
60636         Likewise.
60637         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
60638         Likewise.
60639         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
60640         result.
60641         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
60642         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
60643         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
60644         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
60645         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
60646         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
60647
60648 2008-05-11  Bruno Haible  <bruno@clisp.org>
60649
60650         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
60651
60652 2008-05-11  Bruno Haible  <bruno@clisp.org>
60653
60654         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
60655         * modules/unilbrk/gen-lbrk: New file.
60656
60657 2008-05-11  Bruno Haible  <bruno@clisp.org>
60658
60659         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
60660         * m4/sha512.m4 (gl_SHA512): Likewise.
60661
60662 2008-05-11  Jim Meyering  <meyering@redhat.com>
60663
60664         New modules: crypto/sha256, crypto/sha512 (from coreutils)
60665         * modules/crypto/sha256: New file.
60666         * modules/crypto/sha512: Likewise.
60667         * lib/sha256.c: Likewise.
60668         * lib/sha256.h: Likewise.
60669         * lib/sha512.c: Likewise.
60670         * lib/sha512.h: Likewise.
60671         * lib/u64.h: Likewise.
60672         * m4/sha256.m4: Likewise.
60673         * m4/sha512.m4: Likewise.
60674         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
60675
60676 2008-05-10  Bruno Haible  <bruno@clisp.org>
60677
60678         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
60679         (Input/Output <stdio.h>): Add xprintf.
60680         (Signal handling <signal.h>): Add strsignal.
60681         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
60682         (Core language properties): Add func.
60683         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
60684         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
60685         strings.
60686         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
60687         (Input/output): New section.
60688         (File system functions): Add openat-die, stat-macros.
60689         (Networking functions): Add sockets.
60690         (Unicode string functions): Add unictype/*.
60691         (Support for building libraries and executables): Add gperf.
60692         (Support for building documentation): Add agpl-3.0.
60693         (Misc): Add nocrash.
60694
60695 2008-05-10  Bruno Haible  <bruno@clisp.org>
60696
60697         * modules/unictype/gen-ctype: New file.
60698
60699 2008-05-10  Jim Meyering  <meyering@redhat.com>
60700
60701         Make chdir-safer.c more efficient on a system with no symlinks.
60702         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
60703         also if ELOOP is zero.  Suggested by Bruno Haible.
60704
60705         Make chdir-safer.c slightly safer.
60706         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
60707         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
60708
60709         Avoid compile failure on systems without ELOOP (like mingw).
60710         * lib/chdir-safer.c (ELOOP): Define if not already defined.
60711         Reported by Bruno Haible.
60712
60713 2008-05-10  Bruno Haible  <bruno@clisp.org>
60714
60715         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
60716         (is_utf8_encoding): Use a case-insensitive comparison.
60717         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
60718         streq.
60719
60720 2008-05-10  Bruno Haible  <bruno@clisp.org>
60721
60722         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
60723         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
60724         * lib/unilbrk/ulc-common.h (iconv_string_length,
60725         iconv_string_keeping_offsets): Remove declarations.
60726         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
60727         Don't include <iconv.h>, streq.h, xsize.h.
60728         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
60729         conversion.
60730         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
60731         <iconv.h>, streq.h, xsize.h.
60732         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
60733         conversion.
60734         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
60735         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
60736         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
60737         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
60738
60739 2008-05-10  Bruno Haible  <bruno@clisp.org>
60740
60741         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
60742         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
60743
60744         * modules/unilbrk/u32-width-linebreaks-tests: New file.
60745         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
60746
60747         * modules/unilbrk/u16-width-linebreaks-tests: New file.
60748         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
60749
60750         * modules/unilbrk/u8-width-linebreaks-tests: New file.
60751         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
60752
60753         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
60754         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
60755
60756         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
60757         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
60758
60759         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
60760         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
60761
60762         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
60763         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
60764
60765 2008-05-10  Bruno Haible  <bruno@clisp.org>
60766
60767         Split up 'linebreak' module.
60768         * lib/unilbrk.h: New file, based on lib/linebreak.h.
60769         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
60770         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
60771         modifications.
60772         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
60773         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
60774         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
60775         lib/linebreak.c.
60776         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
60777         lib/linebreak.c.
60778         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
60779         lib/linebreak.c.
60780         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
60781         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
60782         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
60783         lib/linebreak.c.
60784         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
60785         lib/linebreak.c.
60786         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
60787         lib/linebreak.c.
60788         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
60789         lib/linebreak.c.
60790         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
60791         lib/linebreak.c.
60792         * modules/unilbrk/base: New file.
60793         * modules/unilbrk/tables: New file.
60794         * modules/unilbrk/u8-possible-linebreaks: New file.
60795         * modules/unilbrk/u16-possible-linebreaks: New file.
60796         * modules/unilbrk/u32-possible-linebreaks: New file.
60797         * modules/unilbrk/ulc-common: New file.
60798         * modules/unilbrk/ulc-possible-linebreaks: New file.
60799         * modules/unilbrk/u8-width-linebreaks: New file.
60800         * modules/unilbrk/u16-width-linebreaks: New file.
60801         * modules/unilbrk/u32-width-linebreaks: New file.
60802         * modules/unilbrk/ulc-width-linebreaks: New file.
60803         * lib/linebreak.h: Remove file.
60804         * lib/linebreak.c: Remove file.
60805         * m4/linebreak.m4: Remove file.
60806         * modules/linebreak: Remove file.
60807         * NEWS: Mention the changes.
60808
60809 2008-05-09  Eric Blake  <ebb9@byu.net>
60810
60811         Add xmemdup0.
60812         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
60813         implementation.
60814         * lib/xmalloc.c (xmemdup0): New C implementation.
60815
60816 2008-05-08  Bruno Haible  <bruno@clisp.org>
60817
60818         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
60819
60820 2008-05-07  Eric Blake  <ebb9@byu.net>
60821
60822         Support cross-compilation of <wctype.h>.
60823         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
60824         AC_CACHE_CHECK.
60825
60826 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
60827
60828         * build-aux/vc-list-files: Add support for bzr.
60829
60830 2008-05-03  Jim Meyering  <meyering@redhat.com>
60831
60832         avoid failed assertion with tight malloc
60833         * tests/test-getndelim2.c: Correct an off-by-one assertion.
60834
60835 2008-05-03  Simon Josefsson  <simon@josefsson.org>
60836
60837         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
60838         are needed from arpa/inet.h.
60839         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
60840         Reported by Bruno Haible.
60841
60842 2008-05-02  Jim Meyering  <meyering@redhat.com>
60843
60844         avoid compilation error on FreeBSD 6
60845         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
60846
60847 2008-05-01  Jim Meyering  <meyering@redhat.com>
60848
60849         useless-if-before-free: correct --help's exit status description
60850         * build-aux/useless-if-before-free (usage): Like grep, exit 0
60851         for one or more matches, etc.  Reported by Bruno Haible.
60852
60853         vc-list-files: make the stand-alone gnulib test work
60854         * modules/vc-list-files-tests (configure.ac):
60855         Define and AC_SUBST abs_aux_dir.
60856         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
60857         $(abs_top_srcdir) to each script and having each of them
60858         duplicate the work of setting PATH, set PATH here, using
60859         the new variable, abs_aux_dir instead.
60860         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
60861         * tests/test-vc-list-files-git.sh: Likewise.
60862         Reported by Bruno Haible.
60863
60864 2008-05-01  Bruno Haible  <bruno@clisp.org>
60865
60866         * lib/getndelim2.c (getndelim2): Fix newsize computation during
60867         reallocation. Rename 'done' to 'found_delimiter'.
60868
60869 2008-05-01  Jim Meyering  <meyering@redhat.com>
60870
60871         vc-list-files: accommodate /bin/sh like the one from Solaris 10
60872         * build-aux/vc-list-files: Use `...`, not $(...).
60873
60874 2008-04-30  Jim Meyering  <meyering@redhat.com>
60875
60876         add tests for vc-list-files
60877         * modules/vc-list-files-tests: New module.
60878         * tests/test-vc-list-files-cvs.sh: New file.
60879         * tests/test-vc-list-files-git.sh: New file.
60880
60881         avoid a warning from gcc
60882         * lib/getndelim2.c (IF_LINT): Define.
60883         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
60884
60885         vc-list-files: work properly with build-aux/cvsu, too
60886         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
60887         to all cvs-based clauses.
60888
60889         vc-list-files: work properly in the CVS+awk case, too
60890         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
60891
60892         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
60893         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
60894         take more than one file argument, so .  Add quotes, just in case $dir
60895         ever contains a shell meta-character.  Prompted by Soren Hansen in
60896         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
60897
60898 2008-04-29  Eric Blake  <ebb9@byu.net>
60899
60900         Optimize getndelim2 to use block operations when possible.
60901         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
60902         freadseek, and memchr2.
60903         * lib/getndelim2.c (getndelim2): Use them for block reads.
60904
60905 2008-04-29  Bruno Haible  <bruno@clisp.org>
60906
60907         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
60908         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
60909         * modules/inet_ntop (Depends-on): Add extensions.
60910         * modules/inet_pton (Depends-on): Likewise.
60911         Reported by Simon Josefsson.
60912
60913 2008-04-29  Jim Meyering  <meyering@redhat.com>
60914
60915         When the is more than one match in a block, match all of them.
60916         * build-aux/useless-if-before-free: Iterate through each block
60917         until there are no more matches.
60918
60919         Fix broken useless-if-before-free script.
60920         * build-aux/useless-if-before-free: Fix typo: missing "?" after
60921         the expression to match cast of argument to free-like function.
60922
60923 2008-04-29  Eric Blake  <ebb9@byu.net>
60924
60925         Use new header.
60926         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
60927
60928 2008-04-29  Jim Meyering  <meyering@redhat.com>
60929
60930         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
60931         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
60932         by gnulib to exist and to declare e.g., inet_ntop.
60933         Don't include "inet_ntop.h", now removed.
60934
60935         * m4/arpa_inet_h.m4: Remove trailing blanks.
60936
60937 2008-04-29  Eric Blake  <ebb9@byu.net>
60938
60939         Silence valgrind on safe reads beyond potential array bounds.
60940         * lib/rawmemchr.valgrind: New file.
60941         * lib/strchrnul.valgrind: Likewise.
60942         * modules/rawmemchr (Files): Distribute new file.
60943         * modules/strchrnul (Files): Likewise.
60944         Suggested by Bruno Haible.
60945
60946 2008-04-29  Bruno Haible  <bruno@clisp.org>
60947
60948         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
60949         (inet_ntop, inet_pton): Change portability warning's wording.
60950         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
60951         Invoke gl_CHECK_NEXT_HEADERS.
60952         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
60953         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
60954         set ARPA_INET_H.
60955         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
60956         * modules/arpa_inet (Description): No longer only for systems that
60957         lack it.
60958         (Depends-on): Add include_next.
60959         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
60960         HAVE_ARPA_INET_H.
60961
60962 2008-04-29  Jim Meyering  <meyering@redhat.com>
60963
60964         * modules/mkdir (License): Re-license as LGPLv2+.
60965
60966 2008-04-29  Bruno Haible  <bruno@clisp.org>
60967
60968         * modules/rawmemchr (Maintainer): Set to Eric.
60969         * modules/strchrnul (Maintainer): Likewise.
60970
60971 2008-04-29  Simon Josefsson  <simon@josefsson.org>
60972
60973         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
60974         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
60975
60976         * modules/arpa_inet (arpa/inet.h): Use them.
60977
60978 2008-04-28  Eric Blake  <ebb9@byu.net>
60979
60980         Test getndelim2.
60981         * modules/getndelim2-tests: New file.
60982         * tests/test-getndelim2.c: Likewise.
60983         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
60984         stream.
60985         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
60986
60987         * MODULES.html.sh: Document new module.
60988
60989 2008-04-20  Bruno Haible  <bruno@clisp.org>
60990
60991         * lib/c-stack.c (die): Use raise.
60992         * modules/c-stack (Depends-on): Add raise.
60993
60994 2008-04-28  Bruno Haible  <bruno@clisp.org>
60995
60996         Expect rpmatch to be declared.
60997         * lib/yesno.c (rpmatch): Remove declaration.
60998
60999         Declare rpmatch.
61000         * lib/stdlib.in.h (rpmatch): New declaration.
61001         * lib/rpmatch.c: Include <stdlib.h> first.
61002         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
61003         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
61004         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
61005         HAVE_RPMATCH.
61006         * modules/rpmatch (Depends-on): Add stdlib, extensions.
61007         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
61008         (Include): Set to <stdlib.h>.
61009         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
61010         HAVE_RPMATCH.
61011         * NEWS: Document the change.
61012
61013 2008-04-28  Bruno Haible  <bruno@clisp.org>
61014
61015         Change rpmatch to use nl_langinfo when appropriate.
61016         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
61017         (N_): New macro.
61018         (localized_pattern): New function/macro.
61019         (try): Remove match, nomatch arguments. Copy the pattern into safe
61020         memory before caching it.
61021         (rpmatch): Use localized_pattern. Add translator comments.
61022         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
61023         Suggested by Eric Blake.
61024         * modules/rpmatch (Depends-on): Add stdbool.
61025
61026 2008-04-28  Eric Blake  <ebb9@byu.net>
61027
61028         Add rawmemchr module, matching glibc.
61029         * modules/string (Makefile.am): New indicator.
61030         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
61031         * lib/string.in.h (rawmemchr): Declare when appropriate.
61032         * modules/rawmemchr: New file.
61033         * m4/rawmemchr.m4: Likewise.
61034         * lib/rawmemchr.c: Likewise.
61035         * modules/rawmemchr-tests: Likewise.
61036         * tests/test-rawmemchr.c: Likewise.
61037         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
61038         module.
61039         * modules/strchrnul (Depends-on): Add rawmemchr.
61040         * lib/strchrnul.c (strchrnul): Optimize a corner case.
61041
61042         Whitespace cleanup.
61043         * tests/test-strchrnul.c: Reindent.
61044         * lib/strchrnul.c: Likewise.
61045
61046         Optimize and test strchrnul.
61047         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
61048         * modules/strchrnul-tests: New file.
61049         * tests/test-strchrnul.c: Likewise.
61050
61051         Remove intprops dependency.
61052         * modules/memchr (Depends-on): Remove intprops.
61053         * modules/memrchr (Depends-on): Likewise.
61054         * modules/memchr2 (Depends-on): Likewise.
61055         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
61056         * lib/memrchr.c (__memrchr): Likewise.
61057         * lib/memrchr2.c (memchr2): Likewise.
61058         Reported by Simon Josefsson.
61059
61060 2008-04-28  Simon Josefsson  <simon@josefsson.org>
61061
61062         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
61063         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61064
61065 2008-04-28  Simon Josefsson  <simon@josefsson.org>
61066
61067         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
61068
61069         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
61070
61071         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
61072
61073         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
61074         declarations.
61075         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
61076
61077         * m4/inet_pton.m4: Don't check for header files.
61078
61079         * m4/inet_ntop.m4: Don't check for header files.
61080
61081 2008-04-28  Simon Josefsson  <simon@josefsson.org>
61082
61083         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
61084         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
61085         trigger for cygwin).
61086         Reported by Bruno Haible  <bruno@clisp.org>.
61087
61088 2008-04-28  Bruno Haible  <bruno@clisp.org>
61089
61090         * doc/posix-functions/strdup.texi: Mention mingw problem.
61091
61092 2008-04-27  Bruno Haible  <bruno@clisp.org>
61093
61094         * modules/stat-time-tests (Depends-on): Add sleep.
61095         * tests/test-stat-time.c (force_unlink): New function.
61096         (cleanup): Use it.
61097         (test_mtime): Remove the ctime related tests.
61098         (test_ctime): New function, containing the ctime related tests.
61099         (main): Call test_ctime, except on native Windows platforms.
61100
61101 2008-04-27  Bruno Haible  <bruno@clisp.org>
61102
61103         * lib/rpmatch.c (rpmatch): Add some comments.
61104         Reported by James Youngman <jay@gnu.org>.
61105
61106 2008-04-27  Bruno Haible  <bruno@clisp.org>
61107
61108         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
61109         quiet NaNs.
61110
61111 2008-04-27  Bruno Haible  <bruno@clisp.org>
61112
61113         Make test-yesno.sh work on mingw.
61114         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
61115         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
61116         (main): Set stdin to binary mode.
61117         * modules/yesno-tests (Depends-on): Add binary-io.
61118
61119 2008-04-27  Bruno Haible  <bruno@clisp.org>
61120
61121         Fix 'isfinite' on x86, x86_64, ia64 platforms.
61122         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
61123         argument that lie outside the IEEE 854 domain.
61124         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
61125         (gl_ISFINITE): Use it.
61126         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
61127
61128 2008-04-27  Bruno Haible  <bruno@clisp.org>
61129
61130         Allow local renaming in config.h.
61131         * lib/memrchr.c (memrchr): Don't undefine outside libc.
61132
61133 2008-04-27  Bruno Haible  <bruno@clisp.org>
61134
61135         * lib/memchr.c (__memchr): Change type of 'i'.
61136         * lib/memchr2.c (memchr2): Likewise.
61137
61138 2008-04-26  Eric Blake  <ebb9@byu.net>
61139         and Bruno Haible  <bruno@clisp.org>
61140
61141         Optimize and test memrchr.
61142         * modules/memrchr (Depends-on): Add intprops.
61143         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
61144         * modules/memrchr-tests: New file.
61145         * tests/test-memrchr.c: New file.
61146
61147 2008-04-26  Bruno Haible  <bruno@clisp.org>
61148
61149         Add tentative support for DragonFly BSD.
61150         * lib/stdio-impl.h: Add macros for DragonFly BSD.
61151         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
61152         fp.
61153         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
61154         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
61155         * lib/fpurge.c (fpurge): Likewise.
61156         * lib/freadable.c (freaadable): Likewise.
61157         * lib/freadahead.c (freadahead): Likewise.
61158         * lib/freading.c (freading): Likewise.
61159         * lib/freadptr.c (freadptr): Likewise.
61160         * lib/freadseek.c (freadptrinc): Likewise.
61161         * lib/fseeko.c (fseeko): Likewise.
61162         * lib/fseterr.c (fseterr): Likewise.
61163         * lib/fwritable.c (fwritable): Likewise.
61164         * lib/fwriting.c (fwriting): Likewise.
61165
61166 2008-04-26  Bruno Haible  <bruno@clisp.org>
61167
61168         * lib/stdio-impl.h: New file.
61169         * lib/fbufmode.c: Include stdio-impl.h.
61170         (fbufmode): Use fp_, remove redundant #defines.
61171         * lib/fflush.c: Include stdio-impl.h.
61172         (clear_ungetc_buffer): Remove redundant #defines.
61173         * lib/fpurge.c: Include stdio-impl.h.
61174         (fpurge): Remove redundant #defines.
61175         * lib/freadable.c: Include stdio-impl.h.
61176         (freadable): Remove redundant #defines.
61177         * lib/freadahead.c: Include stdio-impl.h.
61178         (freadahead): Remove redundant #defines.
61179         * lib/freading.c: Include stdio-impl.h.
61180         (freading): Remove redundant #defines.
61181         * lib/freadptr.c: Include stdio-impl.h.
61182         (freadptr): Remove redundant #defines.
61183         * lib/freadseek.c: Include stdio-impl.h.
61184         (freadptrinc): Remove redundant #defines.
61185         * lib/fseeko.c: Include stdio-impl.h.
61186         (rpl_fseeko): Remove redundant #defines.
61187         * lib/fseterr.c: Include stdio-impl.h.
61188         (fseterr): Remove redundant #defines.
61189         * lib/fwritable.c: Include stdio-impl.h.
61190         (fwritable: Remove redundant #defines.
61191         * lib/fwriting.c: Include stdio-impl.h.
61192         (fwriting): Remove redundant #defines.
61193         * modules/fbufmode (Files): Add lib/stdio-impl.h.
61194         * modules/fflush (Files): Likewise.
61195         * modules/fpurge (Files): Likewise.
61196         * modules/freadable (Files): Likewise.
61197         * modules/freadahead (Files): Likewise.
61198         * modules/freading (Files): Likewise.
61199         * modules/freadptr (Files): Likewise.
61200         * modules/freadseek (Files): Likewise.
61201         * modules/fseeko (Files): Likewise.
61202         * modules/fseterr (Files): Likewise.
61203         * modules/fwritable (Files): Likewise.
61204         * modules/fwriting (Files): Likewise.
61205
61206 2008-04-26  Bruno Haible  <bruno@clisp.org>
61207
61208         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
61209         restore_seek_optimization, update_fpos_cache): New functions, extracted
61210         from rpl_fflush.
61211         (rpl_fflush): Use them.
61212         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
61213         (gl_REPLACE_FFLUSH): Use it.
61214
61215 2008-04-26  Bruno Haible  <bruno@clisp.org>
61216
61217         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
61218         on Solaris.
61219         * tests/test-xstrtoimax.sh: Likewise.
61220         * tests/test-xstrtoumax.sh: Likewise.
61221         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61222
61223 2008-04-26  Bruno Haible  <bruno@clisp.org>
61224
61225         * modules/memchr-tests: New file.
61226         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
61227
61228 2008-04-26  Eric Blake  <ebb9@byu.net>
61229             Bruno Haible  <bruno@clisp.org>
61230
61231         * lib/memchr.c: Include intprops.h.
61232         (__memchr): Optimize parallel detection of matching bytes. Rename local
61233         variables. Add explanatory comments.
61234
61235 2008-04-26  Bruno Haible  <bruno@clisp.org>
61236
61237         Fix module 'memchr', broken since 2000-10-28.
61238         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
61239
61240 2008-04-26  Bruno Haible  <bruno@clisp.org>
61241
61242         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
61243         comments.
61244
61245 2008-04-25  Eric Blake  <ebb9@byu.net>
61246
61247         Use native fstatat on cygwin 1.7.0.
61248         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
61249         first.
61250
61251 2008-04-23  Eric Blake  <ebb9@byu.net>
61252
61253         Improve memchr2 performance.
61254         * lib/memchr2.c (memchr2): Further optimize parallel detection of
61255         NUL bytes.
61256         * modules/memchr2 (Depends-on): Use intprops.h.
61257
61258 2008-04-23  Simon Josefsson  <simon@josefsson.org>
61259
61260         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
61261         an inline function instead of a CPP macro.  Patch by Ben Pfaff
61262         <blp@cs.stanford.edu>.
61263
61264 2008-04-23  Simon Josefsson  <simon@josefsson.org>
61265
61266         * lib/arpa_inet.in.h: New file.
61267
61268         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
61269         (Makefile.am): Sed in substitute header file.
61270
61271         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
61272         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
61273
61274         * modules/inet_ntop (configure.ac): Use
61275         gl_ARPA_INET_MODULE_INDICATOR.
61276
61277         * modules/inet_pton (configure.ac): Use
61278         gl_ARPA_INET_MODULE_INDICATOR.
61279
61280 2008-04-22  Jim Meyering  <meyering@redhat.com>
61281
61282         * modules/verify (License): Re-license as LGPLv2+.
61283
61284 2008-04-22  Simon Josefsson  <simon@josefsson.org>
61285
61286         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
61287         parameter to void* as per POSIX standard (MinGW uses char*).
61288
61289 2008-04-21  Bruno Haible  <bruno@clisp.org>
61290
61291         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
61292         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
61293         Define to replacements if REPLACE_ISWCNTRL is 1.
61294         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
61295         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
61296         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
61297         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
61298         what it fixes.
61299         * doc/posix-functions/iswalpha.texi: Likewise.
61300         * doc/posix-functions/iswblank.texi: Likewise.
61301         * doc/posix-functions/iswcntrl.texi: Likewise.
61302         * doc/posix-functions/iswdigit.texi: Likewise.
61303         * doc/posix-functions/iswgraph.texi: Likewise.
61304         * doc/posix-functions/iswlower.texi: Likewise.
61305         * doc/posix-functions/iswprint.texi: Likewise.
61306         * doc/posix-functions/iswpunct.texi: Likewise.
61307         * doc/posix-functions/iswspace.texi: Likewise.
61308         * doc/posix-functions/iswupper.texi: Likewise.
61309         * doc/posix-functions/iswxdigit.texi: Likewise.
61310         Reported by Alain Guibert.
61311
61312 2008-04-21  Bruno Haible  <bruno@clisp.org>
61313
61314         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
61315         Patch by Alain Guibert.
61316
61317 2008-04-21  Bruno Haible  <bruno@clisp.org>
61318
61319         Fix test failures on mingw.
61320         * tests/test-xstrtol.c (print_no_progname): New function.
61321         (main): Install it in error_print_progname hook.
61322         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
61323         * tests/test-xstrtoimax.sh: Likewise.
61324         * tests/test-xstrtoumax.sh: Likewise.
61325
61326 2008-04-21  Bruno Haible  <bruno@clisp.org>
61327
61328         Fix test failure on mingw.
61329         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
61330
61331 2008-04-21  Bruno Haible  <bruno@clisp.org>
61332
61333         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
61334         Actually assign a value.
61335
61336 2008-04-20  Bruno Haible  <bruno@clisp.org>
61337
61338         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
61339         take 2.
61340         * lib/canonicalize.c (canonicalize_file_name): Elide if the
61341         'canonicalize-lgpl' module is also used.
61342         * lib/canonicalize-lgpl.c: Undo last change.
61343         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
61344
61345 2008-04-20  Bruno Haible  <bruno@clisp.org>
61346
61347         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
61348         config.h. Provide _mkdir based fallback for mingw.
61349         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
61350         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
61351         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
61352         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
61353         rather than defining mkdir in config.h.
61354         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
61355         (gl_SYS_STAT_H_DEFAULTS): New macro.
61356         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
61357         HAVE_IO_H any more.
61358         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
61359         HAVE_DECL_MKDIR and HAVE_IO_H.
61360
61361 2008-04-20  Bruno Haible  <bruno@clisp.org>
61362
61363         * lib/isapipe.c: Port to native Windows platforms.
61364
61365 2008-04-20  Bruno Haible  <bruno@clisp.org>
61366
61367         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
61368
61369 2008-04-21  Eric Blake  <ebb9@byu.net>
61370
61371         Work around preprocessors that don't handle UINTMAX_MAX.
61372         * lib/memchr2.c (memchr2): Avoid embedded #if.
61373         Reported by Alain Guibert, fix suggested by Bruno Haible.
61374
61375 2008-04-21  Simon Josefsson  <simon@josefsson.org>
61376
61377         * doc/posix-functions/strftime.texi (strftime): Explain better
61378         Windows incompatibility.  Suggested by Micah Cowan
61379         <micah@cowan.name>.
61380
61381 2008-04-20  Bruno Haible  <bruno@clisp.org>
61382
61383         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
61384         unistr/u8-mblen.
61385
61386 2008-04-20  Bruno Haible  <bruno@clisp.org>
61387
61388         Fix test failure on platforms with non-GNU iconv.
61389         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
61390         (U_TO_U8): Use it, rather than u16_to_u8.
61391         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
61392         units at the end of the input string.
61393         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
61394
61395 2008-04-20  Bruno Haible  <bruno@clisp.org>
61396
61397         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
61398         when the resulting length is 0.
61399         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
61400
61401 2008-04-20  Bruno Haible  <bruno@clisp.org>
61402
61403         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
61404         works.
61405         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
61406
61407 2008-04-20  Bruno Haible  <bruno@clisp.org>
61408
61409         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
61410         * modules/tsearch-tests (configure.ac): Test for initstate function.
61411
61412 2008-04-20  Bruno Haible  <bruno@clisp.org>
61413
61414         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
61415         for nlink_t if missing.
61416         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
61417
61418 2008-04-19  Bruno Haible  <bruno@clisp.org>
61419
61420         Work around snprintf bug on Linux libc5.
61421         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
61422         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
61423         gl_SNPRINTF_SIZE1.
61424         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61425         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
61426         that test failed.
61427         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
61428         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
61429         * modules/snprintf (Files): Add m4/printf.m4.
61430         * modules/vsnprintf (Files): Likewise.
61431         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
61432         * doc/posix-functions/vsnprintf.texi: Likewise.
61433
61434 2008-04-19  Bruno Haible  <bruno@clisp.org>
61435
61436         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
61437         from 0.0058 to less than 10^-7.
61438
61439 2008-04-19  Bruno Haible  <bruno@clisp.org>
61440
61441         Fix rounding when a precision is given.
61442         * lib/vasnprintf.c (is_borderline): New function.
61443         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
61444         9...9x.
61445         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
61446         %e, %g.
61447         * tests/test-vasprintf-posix.c (test_function): Likewise.
61448         * tests/test-snprintf-posix.h (test_function): Likewise.
61449         * tests/test-sprintf-posix.h (test_function): Likewise.
61450         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
61451         * tests/test-printf-posix.h (test_function): Likewise.
61452         * tests/test-printf-posix.output: Update.
61453         Reported by John Darrington <john@darrington.wattle.id.au> via
61454         Ben Pfaff <blp@cs.stanford.edu>.
61455
61456 2008-04-18  Simon Josefsson  <simon@josefsson.org>
61457
61458         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
61459         Suggested by Bruno Haible <bruno@clisp.org>.
61460
61461 2008-04-17  Bruno Haible  <bruno@clisp.org>
61462
61463         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
61464         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
61465         implementation.
61466         Patch by Bruce Merry <bmerry@gmail.com>.
61467
61468 2008-04-17  Simon Josefsson  <simon@josefsson.org>
61469
61470         * doc/posix-functions/strftime.texi (strftime): Mention that %e
61471         doesn't work under Windows.
61472
61473 2008-04-16  Bruno Haible  <bruno@clisp.org>
61474
61475         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
61476         New macros.
61477         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
61478         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
61479         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
61480         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
61481         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
61482         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
61483         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
61484         macros.
61485         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
61486         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
61487         Northern Sotho, Uighur.
61488
61489 2008-04-16  Bruno Haible  <bruno@clisp.org>
61490
61491         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
61492         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
61493         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
61494         Reported by Daniel Bergström <daniel@octocode.com>.
61495
61496 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
61497             Bruno Haible  <bruno@clisp.org>
61498
61499         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
61500         function.
61501         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
61502         New functions, mostly extracted from gl_locale_name_default.
61503         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
61504
61505 2008-04-16  Eric Blake  <ebb9@byu.net>
61506
61507         Adjust strtod detection to catch glibc 2.7 bug.
61508         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
61509         Reported by John Gatewood Ham.
61510
61511 2008-04-16  Bruno Haible  <bruno@clisp.org>
61512
61513         Add tentative support for Linux libc5.
61514         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
61515         * lib/fpurge.c (fpurge): Likewise.
61516         * lib/freadable.c (freadable): Likewise.
61517         * lib/freadahead.c (freadahead): Likewise.
61518         * lib/freading.c (freading): Likewise.
61519         * lib/freadptr.c (freadptr): Likewise.
61520         * lib/freadseek.c (freadptrinc): Likewise.
61521         * lib/fseeko.c (rpl_fseeko): Likewise.
61522         * lib/fseterr.c (fseterr): Likewise.
61523         * lib/fwritable.c (fwritable): Likewise.
61524         * lib/fwriting.c (fwriting): Likewise.
61525         Reported by Alain Guibert <alguibert+bts@free.fr>.
61526
61527 2008-04-15  Bruno Haible  <bruno@clisp.org>
61528
61529         * modules/mathl (configure.ac): Define module indicator.
61530
61531 2008-04-15  Bruno Haible  <bruno@clisp.org>
61532
61533         * lib/logl.c (logl): Remove unused variables.
61534
61535 2008-04-15  Bruno Haible  <bruno@clisp.org>
61536
61537         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
61538         fails.
61539
61540 2008-04-15  Bruno Haible  <bruno@clisp.org>
61541
61542         * lib/trim.c (trim2): Fix argument of isspace() macro.
61543
61544 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
61545
61546         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
61547         to 0.
61548         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
61549
61550 2008-04-14  Bruno Haible  <bruno@clisp.org>
61551
61552         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
61553         AC_LANG_PROGRAM argument.
61554         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
61555         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
61556         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
61557         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
61558         * m4/math_h.m4 (gl_MATH_H): Likewise.
61559         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
61560         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
61561         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
61562         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
61563         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
61564         * m4/regex.m4 (gl_REGEX): Likewise.
61565         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
61566         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
61567         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
61568         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
61569         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
61570         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
61571         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
61572         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
61573
61574 2008-04-14  Jim Meyering  <meyering@redhat.com>
61575
61576         test-strtod: fix typos: s/abs/fabs/
61577         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
61578
61579 2008-04-13  Bruno Haible  <bruno@clisp.org>
61580
61581         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
61582         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
61583         module is also used and while not building the reloc-wrapper.
61584
61585 2008-04-13  Bruno Haible  <bruno@clisp.org>
61586
61587         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
61588
61589 2008-04-13  Bruno Haible  <bruno@clisp.org>
61590
61591         Fix AIX compilation failure introduced on 2008-04-02.
61592         * tests/test-frexp.c (exp): Undefine before redefining.
61593         * tests/test-frexpl.c (exp): Likewise.
61594
61595 2008-04-13  Bruno Haible  <bruno@clisp.org>
61596
61597         Work around a HP-UX stdio bug.
61598         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
61599         * tests/test-ftello.c (main): Likewise.
61600         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
61601         * doc/posix-functions/ftello.texi: Likewise.
61602
61603 2008-04-13  Bruno Haible  <bruno@clisp.org>
61604
61605         Make test-signbit pass on HP-UX/hppa.
61606         * tests/test-signbit.c (minus_zerol): New variable.
61607         (test_signbitl): Use it.
61608
61609 2008-04-13  Bruno Haible  <bruno@clisp.org>
61610
61611         Make truncl work on OSF/1 4.0.
61612         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
61613         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
61614         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
61615         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
61616         HAVE_DECL_TRUNCL.
61617         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
61618         HAVE_DECL_TRUNCL.
61619         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
61620
61621 2008-04-13  Bruno Haible  <bruno@clisp.org>
61622
61623         * lib/unictype.h: Remove trailing comma from enumeration definitions.
61624
61625 2008-04-13  Bruno Haible  <bruno@clisp.org>
61626
61627         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
61628         expression, so as to avoid HP-UX 11 cc compiler bug.
61629
61630 2008-04-13  Bruno Haible  <bruno@clisp.org>
61631
61632         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
61633
61634 2008-04-13  Bruno Haible  <bruno@clisp.org>
61635
61636         * lib/git-merge-changelog.c: Remove empty declaration outside of
61637         functions.
61638
61639 2008-04-13  Bruno Haible  <bruno@clisp.org>
61640
61641         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
61642
61643 2008-04-13  Bruno Haible  <bruno@clisp.org>
61644
61645         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
61646         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
61647         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
61648         also if it exists but lacks definitions of the SHUT_* macros.
61649         * modules/sys_socket (Description): Update.
61650         Reported by Elbert Pol <e.pol@chello.nl>.
61651
61652 2008-04-13  Bruno Haible  <bruno@clisp.org>
61653
61654         * lib/localcharset.c (OS2): Don't redefine if already defined.
61655         Reported by Elbert Pol <e.pol@chello.nl>.
61656
61657 2008-04-13  Bruno Haible  <bruno@clisp.org>
61658
61659         * lib/binary-io.h [__EMX__]: Include <io.h>.
61660         Reported by Elbert Pol <e.pol@chello.nl>.
61661
61662 2008-04-12  Bruno Haible  <bruno@clisp.org>
61663
61664         * lib/fpucw.h: Enable the definitions also for x86_64.
61665         Needed for NetBSD/x86_64.
61666         Reported by Thomas Klausner <tk@giga.or.at>.
61667
61668 2008-04-12  Bruno Haible  <bruno@clisp.org>
61669
61670         * tests/test-strtod.c: Include isnand.h.
61671         (main): Use isnand instead of isnan.
61672         Reported by Jim Meyering.
61673
61674 2008-04-12  Bruno Haible  <bruno@clisp.org>
61675
61676         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
61677         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
61678
61679 2008-04-12  Jim Meyering  <meyering@redhat.com>
61680
61681         * m4/math_h.m4 (gl_MATH_H): Fix typos.
61682
61683 2008-04-12  Bruno Haible  <bruno@clisp.org>
61684
61685         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
61686         Reported by Elbert Pol <e.pol@chello.nl>.
61687
61688 2008-04-12  Eric Blake  <ebb9@byu.net>
61689
61690         Work around Solaris 10 math.h bug.
61691         * m4/math_h.m4 (gl_MATH_H): Check for bug.
61692         (gl_MATH_H_DEFAULTS): Set up default.
61693         * modules/math (Makefile.am): Replace new indicators.
61694         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
61695         * tests/test-math.c (main): Test this.
61696         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
61697         * doc/posix-headers/math.texi (math.h): Mention bug.
61698         Reported by Nelson H. F. Beebe and Jim Meyering.
61699
61700 2008-04-11  Bruno Haible  <bruno@clisp.org>
61701
61702         Adapt to future versions of Apple GCC.
61703         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
61704         Reported by Peter O'Gorman <peter@pogma.com>.
61705
61706 2008-04-11  Bruno Haible  <bruno@clisp.org>
61707
61708         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
61709
61710 2008-04-11  Bruno Haible  <bruno@clisp.org>
61711
61712         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
61713
61714         * modules/getaddrinfo-tests (Makefile.am): Define
61715         test_getaddrinfo_LDADD.
61716
61717 2008-04-11  Bruno Haible  <bruno@clisp.org>
61718
61719         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
61720         (init): Fix syntax error.
61721         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
61722         is declared.
61723
61724 2008-04-11  Bruno Haible  <bruno@clisp.org>
61725
61726         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
61727         * modules/glob (Depends-on): Add stdbool.
61728
61729 2008-04-11  Bruno Haible  <bruno@clisp.org>
61730
61731         * lib/trim.c: Include <string.h>.
61732
61733 2008-04-11  Eric Blake  <ebb9@byu.net>
61734
61735         Avoid compile failure on OS/2.
61736         * lib/regex_internal.h (internal_function): Disable optimization
61737         on OS/2 (__EMX__), where it caused compiler error.
61738         Reported by Elbert Pol.
61739
61740 2008-04-11  Bruno Haible  <bruno@clisp.org>
61741
61742         Flush the standard error stream before aborting. Needed on mingw.
61743         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
61744         * tests/test-array_list.c (ASSERT): Likewise.
61745         * tests/test-array_oset.c (ASSERT): Likewise.
61746         * tests/test-avltree_list.c (ASSERT): Likewise.
61747         * tests/test-avltree_oset.c (ASSERT): Likewise.
61748         * tests/test-avltreehash_list.c (ASSERT): Likewise.
61749         * tests/test-binary-io.c (ASSERT): Likewise.
61750         * tests/test-byteswap.c (ASSERT): Likewise.
61751         * tests/test-c-ctype.c (ASSERT): Likewise.
61752         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
61753         * tests/test-c-strcasestr.c (ASSERT): Likewise.
61754         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
61755         * tests/test-c-strstr.c (ASSERT): Likewise.
61756         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
61757         * tests/test-canonicalize.c (ASSERT): Likewise.
61758         * tests/test-carray_list.c (ASSERT): Likewise.
61759         * tests/test-ceilf1.c (ASSERT): Likewise.
61760         * tests/test-ceilf2.c (ASSERT): Likewise.
61761         * tests/test-ceill.c (ASSERT): Likewise.
61762         * tests/test-count-one-bits.c (ASSERT): Likewise.
61763         * tests/test-fbufmode.c (ASSERT): Likewise.
61764         * tests/test-fflush2.c (ASSERT): Likewise.
61765         * tests/test-floorf1.c (ASSERT): Likewise.
61766         * tests/test-floorf2.c (ASSERT): Likewise.
61767         * tests/test-floorl.c (ASSERT): Likewise.
61768         * tests/test-fopen.c (ASSERT): Likewise.
61769         * tests/test-fpending.c (ASSERT): Likewise.
61770         * tests/test-fprintf-posix.c (ASSERT): Likewise.
61771         * tests/test-fpurge.c (ASSERT): Likewise.
61772         * tests/test-freadable.c (ASSERT): Likewise.
61773         * tests/test-freadahead.c (ASSERT): Likewise.
61774         * tests/test-freading.c (ASSERT): Likewise.
61775         * tests/test-freadptr.c (ASSERT): Likewise.
61776         * tests/test-freadptr2.c (ASSERT): Likewise.
61777         * tests/test-freadseek.c (ASSERT): Likewise.
61778         * tests/test-freopen.c (ASSERT): Likewise.
61779         * tests/test-frexp.c (ASSERT): Likewise.
61780         * tests/test-frexpl.c (ASSERT): Likewise.
61781         * tests/test-fseek.c (ASSERT): Likewise.
61782         * tests/test-fseeko.c (ASSERT): Likewise.
61783         * tests/test-fstrcmp.c (ASSERT): Likewise.
61784         * tests/test-ftell.c (ASSERT): Likewise.
61785         * tests/test-ftello.c (ASSERT): Likewise.
61786         * tests/test-func.c (ASSERT): Likewise.
61787         * tests/test-fwritable.c (ASSERT): Likewise.
61788         * tests/test-fwriting.c (ASSERT): Likewise.
61789         * tests/test-getdelim.c (ASSERT): Likewise.
61790         * tests/test-getline.c (ASSERT): Likewise.
61791         * tests/test-i-ring.c (ASSERT): Likewise.
61792         * tests/test-iconv-utf.c (ASSERT): Likewise.
61793         * tests/test-iconv.c (ASSERT): Likewise.
61794         * tests/test-isfinite.c (ASSERT): Likewise.
61795         * tests/test-isnand.c (ASSERT): Likewise.
61796         * tests/test-isnanf.c (ASSERT): Likewise.
61797         * tests/test-isnanl.h (ASSERT): Likewise.
61798         * tests/test-ldexpl.c (ASSERT): Likewise.
61799         * tests/test-linked_list.c (ASSERT): Likewise.
61800         * tests/test-linkedhash_list.c (ASSERT): Likewise.
61801         * tests/test-localename.c (ASSERT): Likewise.
61802         * tests/test-lseek.c (ASSERT): Likewise.
61803         * tests/test-mbscasecmp.c (ASSERT): Likewise.
61804         * tests/test-mbscasestr1.c (ASSERT): Likewise.
61805         * tests/test-mbscasestr2.c (ASSERT): Likewise.
61806         * tests/test-mbscasestr3.c (ASSERT): Likewise.
61807         * tests/test-mbscasestr4.c (ASSERT): Likewise.
61808         * tests/test-mbschr.c (ASSERT): Likewise.
61809         * tests/test-mbscspn.c (ASSERT): Likewise.
61810         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
61811         * tests/test-mbspbrk.c (ASSERT): Likewise.
61812         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
61813         * tests/test-mbsrchr.c (ASSERT): Likewise.
61814         * tests/test-mbsspn.c (ASSERT): Likewise.
61815         * tests/test-mbsstr1.c (ASSERT): Likewise.
61816         * tests/test-mbsstr2.c (ASSERT): Likewise.
61817         * tests/test-mbsstr3.c (ASSERT): Likewise.
61818         * tests/test-memchr2.c (ASSERT): Likewise.
61819         * tests/test-memmem.c (ASSERT): Likewise.
61820         * tests/test-open.c (ASSERT): Likewise.
61821         * tests/test-printf-frexp.c (ASSERT): Likewise.
61822         * tests/test-printf-frexpl.c (ASSERT): Likewise.
61823         * tests/test-printf-posix.c (ASSERT): Likewise.
61824         * tests/test-quotearg.c (ASSERT): Likewise.
61825         * tests/test-rbtree_list.c (ASSERT): Likewise.
61826         * tests/test-rbtree_oset.c (ASSERT): Likewise.
61827         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
61828         * tests/test-round1.c (ASSERT): Likewise.
61829         * tests/test-roundf1.c (ASSERT): Likewise.
61830         * tests/test-roundl.c (ASSERT): Likewise.
61831         * tests/test-signbit.c (ASSERT): Likewise.
61832         * tests/test-sleep.c (ASSERT): Likewise.
61833         * tests/test-snprintf-posix.c (ASSERT): Likewise.
61834         * tests/test-snprintf.c (ASSERT): Likewise.
61835         * tests/test-sprintf-posix.c (ASSERT): Likewise.
61836         * tests/test-stat-time.c (ASSERT): Likewise.
61837         * tests/test-strcasestr.c (ASSERT): Likewise.
61838         * tests/test-strerror.c (ASSERT): Likewise.
61839         * tests/test-striconv.c (ASSERT): Likewise.
61840         * tests/test-striconveh.c (ASSERT): Likewise.
61841         * tests/test-striconveha.c (ASSERT): Likewise.
61842         * tests/test-strsignal.c (ASSERT): Likewise.
61843         * tests/test-strstr.c (ASSERT): Likewise.
61844         * tests/test-strtod.c (ASSERT): Likewise.
61845         * tests/test-trunc1.c (ASSERT): Likewise.
61846         * tests/test-trunc2.c (ASSERT): Likewise.
61847         * tests/test-truncf1.c (ASSERT): Likewise.
61848         * tests/test-truncf2.c (ASSERT): Likewise.
61849         * tests/test-truncl.c (ASSERT): Likewise.
61850         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
61851         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
61852         * tests/test-vasnprintf.c (ASSERT): Likewise.
61853         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
61854         * tests/test-vasprintf.c (ASSERT): Likewise.
61855         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
61856         * tests/test-vprintf-posix.c (ASSERT): Likewise.
61857         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
61858         * tests/test-vsnprintf.c (ASSERT): Likewise.
61859         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
61860         * tests/test-wcwidth.c (ASSERT): Likewise.
61861         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
61862         * tests/test-xprintf-posix.c (ASSERT): Likewise.
61863         * tests/test-xvasprintf.c (ASSERT): Likewise.
61864         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
61865         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
61866         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
61867         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
61868         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
61869         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
61870         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
61871         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
61872         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
61873         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
61874         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
61875         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
61876         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
61877         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
61878         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
61879         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
61880         * tests/unictype/test-block_list.c (ASSERT): Likewise.
61881         * tests/unictype/test-block_of.c (ASSERT): Likewise.
61882         * tests/unictype/test-block_test.c (ASSERT): Likewise.
61883         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
61884         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
61885         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
61886         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
61887         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
61888         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
61889         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
61890         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
61891         * tests/unictype/test-combining.c (ASSERT): Likewise.
61892         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
61893         * tests/unictype/test-digit.c (ASSERT): Likewise.
61894         * tests/unictype/test-mirror.c (ASSERT): Likewise.
61895         * tests/unictype/test-numeric.c (ASSERT): Likewise.
61896         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
61897         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
61898         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
61899         * tests/unictype/test-scripts.c (ASSERT): Likewise.
61900         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
61901         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
61902         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
61903         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
61904         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
61905         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
61906         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
61907         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
61908         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
61909         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
61910         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
61911         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
61912         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
61913         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
61914         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
61915         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
61916         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
61917         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
61918         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
61919         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
61920         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
61921         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
61922         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
61923         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
61924         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
61925         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
61926         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
61927         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
61928         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
61929         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
61930         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
61931         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
61932         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
61933         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
61934         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
61935         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
61936         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
61937         Reported by Eric Blake.
61938
61939 2008-04-11  Bruno Haible  <bruno@clisp.org>
61940
61941         * lib/wchar.in.h: Tweak comment.
61942
61943 2008-04-11  Bruno Haible  <bruno@clisp.org>
61944
61945         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
61946         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
61947         gl_COMMON.
61948         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
61949
61950 2008-04-11  Bruno Haible  <bruno@clisp.org>
61951
61952         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
61953
61954 2008-04-11  Simon Josefsson  <simon@josefsson.org>
61955
61956         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
61957         of attempting to use non-existing /dev/*random.  Based on patch
61958         from Adam Strzelecki <ono@java.pl> in
61959         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
61960
61961 2008-04-08  Bruno Haible  <bruno@clisp.org>
61962
61963         Add tentative support for emx+gcc.
61964         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
61965         * lib/fpurge.c (fpurge): Likewise.
61966         * lib/freadable.c (freadable): Likewise.
61967         * lib/freadahead.c (freadahead): Likewise.
61968         * lib/freading.c (freading): Likewise.
61969         * lib/freadptr.c (freadptr): Likewise.
61970         * lib/freadseek.c (freadptrinc): Likewise.
61971         * lib/fseeko.c (rpl_fseeko): Likewise.
61972         * lib/fseterr.c (fseterr): Likewise.
61973         * lib/fwritable.c (fwritable): Likewise.
61974         * lib/fwriting.c (fwriting): Likewise.
61975         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
61976
61977 2008-04-09  Eric Blake  <ebb9@byu.net>
61978
61979         Avoid some autoconf warnings.
61980         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
61981         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
61982         * m4/afs.m4 (gl_AFS): Likewise.
61983         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
61984         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
61985         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
61986         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
61987         (gl_INTEGER_TYPE_SUFFIX): Likewise.
61988         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
61989         (AC_CHECK_DECLS_ONCE): Likewise.
61990         Rename file...
61991         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
61992         gnulib-tool requires autoconf 2.59 or better.
61993         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
61994
61995 2008-04-08  Eric Blake  <ebb9@byu.net>
61996
61997         Use 'git describe --match' if present (added in git 1.5.5).
61998         * build-aux/git-version-gen: Limit result to tags that match 'v*'
61999         if possible.
62000
62001 2008-04-08  Bruno Haible  <bruno@clisp.org>
62002
62003         Add tentative support for OpenServer.
62004         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
62005         _ptr, _cnt.
62006         * lib/fpurge.c (fpurge): Likewise.
62007         * lib/freadable.c (freadable): Likewise.
62008         * lib/freadahead.c (freadahead): Likewise.
62009         * lib/freading.c (freading): Likewise.
62010         * lib/freadptr.c (freadptr): Likewise.
62011         * lib/freadseek.c (freadptrinc): Likewise.
62012         * lib/fseeko.c (rpl_fseeko): Likewise.
62013         * lib/fseterr.c (fseterr): Likewise.
62014         * lib/fwritable.c (fwritable): Likewise.
62015         * lib/fwriting.c (fwriting): Likewise.
62016         Reported by Roger Cornelius <rac@tenzing.org> and
62017         Brian K. White <brian@aljex.com>.
62018
62019 2008-04-06  Jim Meyering  <meyering@redhat.com>
62020
62021         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
62022
62023 2008-04-06  Bruno Haible  <bruno@clisp.org>
62024
62025         Avoid possible error with non-ASCII bytes in UTF-8 locales.
62026         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
62027         * tests/test-printf-posix.sh: Likewise.
62028         * tests/test-vfprintf-posix.sh: Likewise.
62029         * tests/test-vprintf-posix.sh: Likewise.
62030         * tests/test-xprintf-posix.sh: Likewise.
62031
62032 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62033
62034         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
62035         hide error from 'ls', needed on OS/2.
62036         Report by Elbert Pol <elbert.pol@gmail.com>.
62037
62038 2008-04-04  Eric Blake  <ebb9@byu.net>
62039
62040         Make test-fseeko.c failures meaningful.
62041         * tests/test-fseeko.c: Print line number on failure.
62042         * tests/test-fseek.c: Likewise.
62043         Reported by Nelson H. F. Beebe.
62044
62045         Improve strtod bug detection check.
62046         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
62047         required for Solaris 10.
62048         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
62049
62050 2008-04-04  Bruno Haible  <bruno@clisp.org>
62051
62052         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
62053         by m4/setenv.m4.
62054
62055 2008-04-03  Eric Blake  <ebb9@byu.net>
62056
62057         Ensure sane .version contents.
62058         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
62059         version string.
62060         * build-aux/git-version-gen: Improve documentation.
62061
62062         Make GNU make output nicer.
62063         * top/GNUmakefile [!_have-Makefile]: Add dependency on
62064         MAKECMDGOALS to enforce message for all command line targets.  Set
62065         srcdir for use in maint.mk.
62066
62067         Another maintainer tweak.
62068         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
62069         a target that regenerates version.
62070
62071 2008-04-03  Jim Meyering  <meyering@redhat.com>
62072
62073         vc-list-files: don't cause coreutils "make po-check" failure
62074         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
62075
62076 2008-04-03  Eric Blake  <ebb9@byu.net>
62077
62078         Allow VPATH usage of vc-list-files.
62079         * build-aux/vc-list-files (scriptversion): Add timestamp.
62080         (options): Add --help, --version, -C.
62081         (CVS): Support installed cvsu.
62082
62083 2008-04-02  Bruno Haible  <bruno@clisp.org>
62084
62085         Avoid some "statement with no effect" warnings from gcc.
62086         * tests/test-wctype.c (main): Explicitly ignore unused values.
62087         Reported by Jim Meyering.
62088
62089 2008-04-02  Jim Meyering  <meyering@redhat.com>
62090
62091         Avoid some warnings from "gcc -Wshadow".
62092         * tests/test-frexp.c (exp): Define to a different identifier.
62093         * tests/test-frexpl.c (exp): Likewise.
62094
62095 2008-04-03  Jim Meyering  <meyering@redhat.com>
62096
62097         bootstrap: remove dangling *.[ch] symlinks from lib
62098         * build-aux/bootstrap [dangling symlink removal]: Move find's
62099         -depth option to precede all others, to avoid a warning.
62100         Remove *.[ch] files too, and from "$source_base" (usually lib/).
62101
62102 2008-04-02  Bruno Haible  <bruno@clisp.org>
62103
62104         Avoid some warnings from "gcc -Wshadow".
62105         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
62106         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
62107         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
62108         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
62109         Reported by Jim Meyering.
62110
62111 2008-04-01  Bruno Haible  <bruno@clisp.org>
62112
62113         Fix test to work on IRIX 6.5 with cc.
62114         * tests/test-math.c (numeric_equal): New function.
62115         (main): Use it.
62116
62117 2008-04-01  Bruno Haible  <bruno@clisp.org>
62118
62119         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
62120
62121 2008-04-01  Bruno Haible  <bruno@clisp.org>
62122
62123         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
62124         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
62125         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
62126         (Depends-on): Remove math.
62127
62128         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
62129         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
62130         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
62131         (Depends-on): Remove math.
62132
62133         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
62134         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
62135         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
62136         (Depends-on): Remove math.
62137         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
62138         (Depends-on): Remove math.
62139
62140         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
62141         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
62142         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
62143         (Depends-on): Remove math.
62144         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
62145         (Depends-on): Remove math.
62146
62147         * tests/test-round1.c: Include nan.h.
62148         (main): Use NaNd instead of NAN.
62149         * modules/round-tests (Files): Add tests/nan.h.
62150
62151         * tests/test-trunc1.c: Include nan.h.
62152         (main): Use NaNd instead of NAN.
62153         * modules/trunc-tests (Files): Add tests/nan.h.
62154
62155         * tests/test-roundf1.c: Include nan.h.
62156         (main): Use NaNf instead of NAN.
62157         * modules/roundf-tests (Files): Add tests/nan.h.
62158
62159         * tests/test-truncf1.c: Include nan.h.
62160         (main): Use NaNf instead of NAN.
62161         * modules/truncf-tests (Files): Add tests/nan.h.
62162
62163         * tests/test-ceilf1.c: Include nan.h.
62164         (main): Use NaNf instead of NAN.
62165         * modules/ceilf-tests (Files): Add tests/nan.h.
62166
62167         * tests/test-floorf1.c: Include nan.h.
62168         (main): Use NaNf instead of NAN.
62169         * modules/floorf-tests (Files): Add tests/nan.h.
62170
62171         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
62172         (main): Use NaNf instead of NAN.
62173         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
62174
62175         * tests/test-isnand.c: Include nan.h instead of <math.h>.
62176         (main): Use NaNd instead of NAN.
62177         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
62178
62179         * tests/test-frexp.c: Include nan.h.
62180         (main): Use NaNd instead of NAN.
62181         * modules/frexp-tests (Files): Add tests/nan.h.
62182
62183         * lib/isnan.c: Don't include <math.h>.
62184         (FUNC): Don't use NAN macro.
62185         * modules/isnand-nolibm (Depends-on): Remove math.
62186         * modules/isnanf-nolibm (Depends-on): Remove math.
62187         * modules/isnanl (Depends-on): Remove math.
62188         * modules/isnanl-nolibm (Depends-on): Remove math.
62189
62190         * tests/nan.h: New file.
62191
62192 2008-04-01  Eric Blake  <ebb9@byu.net>
62193
62194         Fix typos.
62195         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
62196         values to be the right type.
62197
62198         For now, cater to gnulib strtod inaccuracies.
62199         * tests/test-strtod.c (main): Allow 1-ulp error on expected
62200         fractional results.  While not as nice from a QoI perspective, it
62201         is a quicker patch than correctly implementing decimal to binary
62202         rounding.
62203
62204 2008-03-31  Eric Blake  <ebb9@byu.net>
62205
62206         Guarantee a definition of NAN.
62207         * lib/math.in.h (NAN): Define if missing.
62208         * tests/test-math.c (main): Test it.
62209         * doc/posix-headers/math.texi (math.h): Document this.
62210         * lib/isnan.c (rpl_isnand): Use it.
62211         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
62212         * tests/test-floorf1.c (NaN): Likewise.
62213         * tests/test-frexp.c (NaN): Likewise.
62214         * tests/test-isnand.c (NaN): Likewise.
62215         * tests/test-isnanf.c (NaN): Likewise.
62216         * tests/test-round1.c (NaN): Likewise.
62217         * tests/test-roundf1.c (NaN): Likewise.
62218         * tests/test-snprintf-posix.h (NaN): Likewise.
62219         * tests/test-sprintf-posix.h (NaN): Likewise.
62220         * tests/test-trunc1.c (NaN): Likewise.
62221         * tests/test-truncf1.c (NaN): Likewise.
62222         * tests/test-vasnprintf-posix.c (NaN): Likewise.
62223         * tests/test-vasprintf-posix.c (NaN): Likewise.
62224         * modules/isnand-nolibm (Depends-on): Add math.
62225         * modules/isnanf-nolibm (Depends-on): Likewise.
62226         * modules/isnanl (Depends-on): Likewise.
62227         * modules/isnanl-nolibm (Depends-on): Likewise.
62228         * modules/snprintf-posix-tests (Depends-on): Likewise.
62229         * modules/sprintf-posix-tests (Depends-on): Likewise.
62230         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
62231         * modules/vsprintf-posix-tests (Depends-on): Likewise.
62232         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
62233         * modules/vasprintf-posix-tests (Depends-on): Likewise.
62234
62235 2008-03-31  Bruno Haible  <bruno@clisp.org>
62236
62237         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
62238         * doc/posix-functions/strtod.texi: Likewise.
62239
62240 2008-03-31  Bruno Haible  <bruno@clisp.org>
62241
62242         * tests/test-strtod.c (main): Don't use C99 syntax.
62243
62244 2008-03-31  Bruno Haible  <bruno@clisp.org>
62245
62246         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
62247         Reported by Eric Blake.
62248
62249 2008-03-31  Jim Meyering  <meyering@redhat.com>
62250
62251         Don't compare actual signbit return values.
62252         * tests/test-strtod.c (main): Rather, compare only their
62253         zero/non-zero nature.
62254
62255 2008-03-31  Eric Blake  <ebb9@byu.net>
62256
62257         More strtod documentation.
62258         * doc/posix-functions/strtod.texi (strtod): Interpret more test
62259         failures as distinct bugs.
62260
62261 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
62262
62263         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
62264         Problem reported by Erik Benada in
62265         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
62266
62267 2008-03-30  Bruno Haible  <bruno@clisp.org>
62268
62269         * tests/test-strtod.c: Add comments about which assertion fails on which
62270         platform.
62271         * doc/posix-functions/strtod.texi: Add info about many more platforms.
62272
62273 2008-03-30  Eric Blake  <ebb9@byu.net>
62274
62275         Test signbit behavior on zeros.
62276         * tests/test-signbit.c (test_signbitf): Add tests for zero.
62277         (test_signbitd, test_signbitl): Likewise.
62278
62279         More strtod touchups.
62280         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
62281         sign of negative underflow, for now.  Use .5, not .1.
62282         * doc/posix-functions/strtod.texi (strtod): Mention these
62283         limitations.
62284         Reported by Jim Meyering.
62285
62286 2008-03-30  Bruno Haible  <bruno@clisp.org>
62287
62288         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
62289         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
62290
62291 2008-03-30  Bruno Haible  <bruno@clisp.org>
62292
62293         Avoid failure when attempting to return empty iconv results on some
62294         platforms.
62295         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
62296         allocation, don't report ENOMEM when the resulting string is empty.
62297
62298 2008-03-30  Bruno Haible  <bruno@clisp.org>
62299
62300         Fix buffer overrun.
62301         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
62302         Don't consider the width for tmp_length. Check count against tmp_length
62303         before doing the padding. Ensure enough allocation during padding.
62304
62305 2008-03-30  Eric Blake  <ebb9@byu.net>
62306
62307         strtod touchups.
62308         * lib/strtod.c (strtod): Avoid compiler warnings.
62309         Reported by Jim Meyering.
62310
62311 2008-03-30  Bruno Haible  <bruno@clisp.org>
62312
62313         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
62314         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
62315         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
62316         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
62317         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
62318         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
62319         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
62320         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
62321
62322         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
62323         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
62324         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
62325         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
62326         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
62327         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
62328         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
62329         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
62330
62331         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
62332         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
62333         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
62334         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
62335         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
62336         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
62337         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
62338         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
62339
62340         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
62341         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
62342
62343         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
62344         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
62345
62346         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
62347         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
62348
62349         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
62350         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
62351         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
62352
62353         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
62354         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
62355         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
62356
62357         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
62358         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
62359         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
62360
62361         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
62362         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
62363         * modules/vasprintf (Depends-on): Add EOVERFLOW.
62364
62365         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
62366         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
62367         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
62368         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
62369         (Depends-on): Add EOVERFLOW.
62370         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
62371         (Depends-on): Add EOVERFLOW.
62372         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
62373         (Depends-on): Add EOVERFLOW.
62374         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
62375         (Depends-on): Add EOVERFLOW.
62376         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
62377         (Depends-on): Add EOVERFLOW.
62378         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
62379         (Depends-on): Add EOVERFLOW.
62380         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
62381         (Depends-on): Add EOVERFLOW.
62382         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
62383         (Depends-on): Add EOVERFLOW.
62384
62385         * lib/sprintf.c (EOVERFLOW): Remove fallback.
62386         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
62387         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
62388
62389         * lib/snprintf.c (EOVERFLOW): Remove fallback.
62390         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
62391         * modules/snprintf (Depends-on): Add EOVERFLOW.
62392
62393         * lib/poll.c (EOVERFLOW): Remove fallback.
62394         * modules/poll (Depends-on): Add EOVERFLOW.
62395
62396         * lib/getugroups.c (EOVERFLOW): Remove fallback.
62397         * modules/getugroups (Depends-on): Add EOVERFLOW.
62398
62399         * lib/getdelim.c (EOVERFLOW): Remove fallback.
62400         * modules/getdelim (Depends-on): Add EOVERFLOW.
62401
62402         * lib/ftell.c (EOVERFLOW): Remove fallback.
62403         * modules/ftell (Depends-on): Add EOVERFLOW.
62404
62405         * lib/fprintf.c (EOVERFLOW): Remove fallback.
62406         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
62407         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
62408
62409         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
62410
62411         * modules/EOVERFLOW-tests: New file.
62412         * tests/test-EOVERFLOW.c: New file.
62413
62414         * modules/EOVERFLOW: New file.
62415         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
62416
62417 2008-03-30  Bruno Haible  <bruno@clisp.org>
62418
62419         Fix bug introduced on 2007-06-10.
62420         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
62421         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
62422
62423 2008-03-30  Bruno Haible  <bruno@clisp.org>
62424
62425         Improve freadseek's efficiency after ungetc.
62426         * lib/freadseek.c: Include freadahead.h.
62427         (freadptrinc): New function, extracted from freadseek.
62428         (freadseek): Use it in a loop. Use freadahead to determine the number
62429         of loop iterations.
62430         * modules/freadseek (Depends-on): Add freadahead.
62431         (configure.ac): Require AC_C_INLINE.
62432
62433 2008-03-30  Bruno Haible  <bruno@clisp.org>
62434
62435         * lib/freadseek.c (freadseek): Don't ignore the return value of
62436         freadptr.
62437
62438 2008-03-29  Eric Blake  <ebb9@byu.net>
62439
62440         Add hex float support.
62441         * modules/strtod (Depends-on): Add c-ctype.
62442         (Link): Mention POW_LIB.
62443         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
62444         whitespace between 'e' and exponent.
62445         * tests/test-strtod.c (main): Enable hex float tests.
62446         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
62447         now provides.
62448
62449         Document various strtod bugs, with some fixes.
62450         * doc/posix-functions/strtod.texi (strtod): Document bugs with
62451         "-0x", "inf", "nan", and hex constants.
62452         * doc/posix-functions/atof.texi (atof): Likewise.
62453         * modules/stdlib (Makefile.am): Support strtod.
62454         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
62455         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
62456         detect additional strtod bugs.
62457         * lib/stdlib.in.h (rpl_strtod): Add declarations.
62458         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
62459         bool where appropriate.  Parse 'inf' and 'nan'.
62460         * tests/test-strtod.c: New file.
62461         * modules/strtod (Depends-on): Add stdbool, stdlib.
62462         (configure.ac): Turn on module indicator.
62463         * modules/strtod-tests: New module.
62464
62465 2008-03-29  Eric Blake  <ebb9@byu.net>
62466
62467         Fix ftell on mingw.
62468         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
62469         * modules/ftell-tests (Depends-on): Add binary-io.
62470         * modules/ftello-tests (Depends-on): Likewise.
62471         * tests/test-ftell.c (main): Enhance test to cover behavior after
62472         ungetc.  Enforce binary mode.
62473         * tests/test-ftello.c (main): Likewise.
62474
62475         Pass test-freadseek on cygwin.
62476         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
62477         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
62478         ungetc buffer.
62479
62480         * tests/test-fflush2.c (main): Fix typo.
62481
62482 2008-03-29  Bruno Haible  <bruno@clisp.org>
62483
62484         * tests/test-fflush2.c (main): Temporarily disable the contents of
62485         this test.
62486         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
62487         Reported by Eric Blake.
62488
62489 2008-03-28  Simon Josefsson  <simon@josefsson.org>
62490
62491         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
62492         (GC_SHA224_DIGEST_SIZE): Add.
62493
62494         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
62495         (gc_hash_digest_length): Likewise.
62496         (gc_hash_buffer): Likewise.
62497
62498 2008-03-25  Bruno Haible  <bruno@clisp.org>
62499
62500         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
62501         detail which gettext release to use.
62502         Reported by Simon Josefsson.
62503
62504 2008-03-26  Jim Meyering  <meyering@redhat.com>
62505
62506         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
62507         * modules/gnumakefile (clean-GNUmakefile): Also, use
62508         test ... && ... || : syntax rather than if-then ... fi.
62509
62510         gnumakefile: Don't double-quote-expand $(VPATH) value.
62511         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
62512
62513 2008-03-24  Eric Blake  <ebb9@byu.net>
62514
62515         Alter GNUmakefile to install into top directory.
62516         * modules/maintainer-makefile: Split, and add dependency...
62517         * modules/gnumakefile: to this new module.
62518         * build-aux/GNUmakefile: Move...
62519         * top/GNUmakefile: ...here.
62520         * build-aux/maint.mk: Move...
62521         * top/maint.mk: ...here.
62522         * MODULES.html.sh (Support for maintaining...): Document new
62523         module.
62524
62525 2008-03-23  Bruno Haible  <bruno@clisp.org>
62526
62527         * gnulib-tool: New options --vc-files, --no-vc-files.
62528         (func_usage): Document them.
62529         (vc_files): New variable.
62530         (func_import): Consider vc_files.
62531         (func_create_testdir): Set vc_files to empty.
62532         Suggested by Jim Meyering and Karl Berry.
62533
62534 2008-03-23  Bruno Haible  <bruno@clisp.org>
62535
62536         Fix regex compilation error on HP-UX 11.
62537         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
62538         * modules/regex (Files): Add m4/mbstate_t.m4.
62539         Reported by Ton Voon <ton.voon@altinity.com>.
62540
62541 2008-03-23  Bruno Haible  <bruno@clisp.org>
62542
62543         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
62544
62545 2008-03-23  Eric Blake  <ebb9@byu.net>
62546             Bruno Haible  <bruno@clisp.org>
62547
62548         Install files from top/ in the destination directory.
62549         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
62550         augmentation also for the files from top/.
62551         (func_import, func_create_testdir): Rewrite file names:
62552         top/filename -> filename.
62553
62554 2008-03-23  Bruno Haible  <bruno@clisp.org>
62555
62556         Tweak "gnulib --version" output.
62557         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
62558
62559 2008-03-23  Bruno Haible  <bruno@clisp.org>
62560
62561         Tweak "gnulib --version" output.
62562         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
62563         rather than contents of ChangeLog, when possible.
62564
62565 2008-03-21  Eric Blake  <ebb9@byu.net>
62566
62567         More --version tweaks.
62568         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
62569         date of last ChangeLog entry.
62570
62571 2008-03-21  Jim Meyering  <meyering@redhat.com>
62572
62573         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
62574
62575 2008-03-20  Eric Blake  <ebb9@byu.net>
62576
62577         VPATH fix.
62578         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
62579
62580 2008-03-20  Simon Josefsson  <simon@josefsson.org>
62581
62582         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
62583         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
62584
62585 2008-03-20  Eric Blake  <ebb9@byu.net>
62586
62587         Sync GNUmakefile with coreutils.
62588         * build-aux/GNUmakefile (have-Makefile): Rename...
62589         (_have-Makefile): ...to this, for namespace consideration.
62590         (GNUmakefile.cfg): Include, if present.
62591         (_autoreconf): Define a default.
62592         (_is-dist-target): New rule for rebuilds to pick up intra-release
62593         version.
62594         (maint-cfg.mk): Rename...
62595         (cfg.mk): ...to this.
62596
62597 2008-03-18  Jim Meyering  <meyering@redhat.com>
62598
62599         New script and module: mktempd
62600         * MODULES.html.sh (maint+release support): Add mktempd.
62601         * build-aux/mktempd: New file.
62602         * modules/mktempd: New file.
62603
62604 2008-03-15  Jim Meyering  <meyering@redhat.com>
62605
62606         Undo last change.
62607         * lib/sha1.c, lib/md5.c: 63 != ~63.
62608         Reported by Andreas Schwab.
62609
62610         sha1.c, md5.c: Hoist a redundant expression.
62611         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
62612         "ctx->buflen" only once, before calling *_process_block.
62613         * lib/md5.c (md5_process_bytes): Likewise.
62614
62615 2008-03-14  Eric Blake  <ebb9@byu.net>
62616
62617         Bump copyright year in files generated by gnulib-tool.
62618         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
62619         gnulib-tool, rather than hard-coding it.
62620
62621         Fix 'gnulib-tool --version' output to work with git.
62622         * gnulib-tool (func_gnulib_dir): New function, extracted from...
62623         (startup): ...here.
62624         (func_version): Use it to invoke git-version-gen, rather than
62625         relying on CVS keyword expansion.  Modernize wording.
62626         (cvsdatestamp, last_checkin_date, version): Kill unused
62627         variables.
62628
62629 2008-03-12  Jim Meyering  <meyering@redhat.com>
62630
62631         Recognize optional cast of the argument to free.
62632         * build-aux/useless-if-before-free: Update regexps.
62633
62634         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
62635
62636 2008-03-11  Bruno Haible  <bruno@clisp.org>
62637
62638         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
62639         by a single package.
62640         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
62641         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
62642         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
62643         Reported by Sam Steingold <sds@gnu.org>.
62644
62645 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
62646
62647         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
62648         repositories.
62649
62650 2008-03-11  Bruno Haible  <bruno@clisp.org>
62651
62652         Avoid conflicts between local macro definitions.
62653         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
62654         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
62655
62656 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
62657             Bruno Haible  <bruno@clisp.org>
62658
62659         Make va_copy work with some version of xlc on AIX 5.1.
62660         * lib/stdarg.in.h: New file.
62661         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
62662         On AIX, use a <stdarg.h> file substitute.
62663         * modules/stdarg (Files): Add lib/stdarg.in.h.
62664         (Depends-on): Add include_next.
62665         (Makefile.am): Build a stdarg.h substitute if requested.
62666         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
62667
62668 2008-03-10  Bruno Haible  <bruno@clisp.org>
62669
62670         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
62671         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
62672         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
62673
62674 2008-03-10  Bruno Haible  <bruno@clisp.org>
62675
62676         * modules/stdlib (Depends-on): Add include_next, remove
62677         absolute-header.
62678
62679 2008-03-09  Bruno Haible  <bruno@clisp.org>
62680
62681         * lib/freadahead.h (freadahead): Document more precisely.
62682         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
62683         the sum of both buffer sizes.
62684         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
62685         * NEWS: Document the change.
62686
62687 2008-03-09  Bruno Haible  <bruno@clisp.org>
62688
62689         Extend freadptr to return also the buffer size.
62690         * lib/freadptr.h (freadptr): Add sizep argument.
62691         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
62692         (freadptr): Add sizep argument. Determine buffer size like freadahead
62693         does.
62694         * tests/test-freadptr.c: Don't include freadahead.h.
62695         (main): Adapt for new calling convention of freadptr.
62696         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
62697         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
62698         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
62699         tests/test-freadptr2.sh.
62700         (Depends): Remove freadahead.
62701         (TESTS): Add test-freadptr2.sh.
62702         (check_PROGRAMS): Add test-freadptr2.
62703
62704 2008-03-09  Bruno Haible  <bruno@clisp.org>
62705
62706         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
62707         Report and solution by Simon Josefsson.
62708
62709 2008-03-06  Bruno Haible  <bruno@clisp.org>
62710
62711         Make fflush after ungetc work on BSD platforms.
62712         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
62713         * tests/test-fflush2.c: New file.
62714         * tests/test-fflush2.sh: New file.
62715         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
62716         tests/test-fflush2.c.
62717         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
62718         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
62719
62720 2008-03-06  Eric Blake  <ebb9@byu.net>
62721
62722         Likewise for ftello.
62723         * modules/ftello (Dependencies): Add extensions.
62724         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
62725
62726 2008-03-06  Bruno Haible  <bruno@clisp.org>
62727
62728         * modules/fseeko (Dependencies): Add extensions.
62729         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
62730         Needed on glibc systems.
62731
62732 2008-03-06  Bruno Haible  <bruno@clisp.org>
62733
62734         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
62735         email address.
62736         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
62737
62738 2008-03-06  Bruno Haible  <bruno@clisp.org>
62739
62740         * users.txt: Add libgnupdf.
62741
62742 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
62743
62744         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
62745         (Header File Substitutes, Function Substitutes,
62746         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
62747         (Build robot for gnulib): Fix typo.
62748
62749 2008-03-06  Bruno Haible  <bruno@clisp.org>
62750
62751         * doc/gnulib-tool.texi (VCS Issues): Small updates.
62752         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
62753
62754 2008-03-06  Bruno Haible  <bruno@clisp.org>
62755
62756         * doc/func.texi: New file, extracted from doc/gnulib.texi.
62757         * doc/gnulib.texi: Include it.
62758
62759 2008-03-06  Simon Josefsson  <simon@josefsson.org>
62760
62761         * modules/func (License): Change license to unlimited; there was
62762         no LGPL parts in the module anyway.
62763
62764 2008-03-06  Simon Josefsson  <simon@josefsson.org>
62765
62766         * modules/__func__: Renamed to modules/func.
62767         * modules/__func__-tests: Renamed to modules/func-tests.
62768         * tests/test-__func__.c: Renamed to tests/test-func.c.
62769         * m4/__func__.m4: Renamed to m4/func.m4.
62770         * doc/gnulib.texi (__func__): Section renamed to func.
62771         Suggested by Eric Blake <ebb9@byu.net>.
62772
62773 2008-03-06  Simon Josefsson  <simon@josefsson.org>
62774
62775         * doc/gnulib.texi (__func__): Use C99 terminology when talking
62776         about __func__.  Make example self-contained.  Suggested by Eric
62777         Blake <ebb9@byu.net>.
62778
62779         * tests/test-__func__.c (main): Avoid extraneous () around __func.
62780         Suggested by Eric Blake <ebb9@byu.net>.
62781
62782 2008-03-06  Simon Josefsson  <simon@josefsson.org>
62783
62784         * modules/__func__: New file.
62785         * modules/__func__-tests: New file.
62786         * tests/test-__func__.c: New file.
62787         * m4/__func__.m4: New file.
62788         * doc/gnulib.texi (__func__): Document __func__ module.
62789
62790 2008-03-05  Simon Josefsson  <simon@josefsson.org>
62791
62792         * modules/byteswap (License): Re-license as LGPLv2+.
62793
62794 2008-03-05  Simon Josefsson  <simon@josefsson.org>
62795
62796         * doc/Makefile: Add pdf target.
62797
62798 2008-03-05  Simon Josefsson  <simon@josefsson.org>
62799
62800         * modules/inline (License): Use 'unlimited', since there are only
62801         *.m4 files in this module.
62802
62803 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
62804             Bruno Haible  <bruno@clisp.org>
62805
62806         Add support for HP C 7.1 on OpenVMS 8.3.
62807         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
62808
62809 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
62810
62811         Update VMS specifics.
62812         * lib/getopt.c [VMS]: Remove include of unixlib.h.
62813
62814 2008-03-02  Jim Meyering  <meyering@redhat.com>
62815
62816         Remove the last dependency on the "free" module.
62817         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
62818         Reported by Bob Proulx.
62819
62820         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
62821
62822         Remove useless "if" tests before free.  Deprecate "free" module.
62823         * doc/posix-functions/free.texi: Mention that this
62824         module is no longer useful.
62825         * modules/free (Notice): Say this module is obsolete.
62826         * modules/readutmp (Depends-on): Remove free.
62827         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
62828         * lib/putenv.c (putenv): Likewise.
62829         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
62830         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
62831         * tests/test-c-strcasestr.c (main): Likewise.
62832         * tests/test-c-strstr.c (main): Likewise.
62833         * tests/test-mbscasestr1.c (main): Likewise.
62834         * tests/test-mbscasestr2.c (main): Likewise.
62835         * tests/test-mbsstr1.c (main): Likewise.
62836         * tests/test-mbsstr2.c (main): Likewise.
62837         * tests/test-memmem.c (main): Likewise.
62838         * tests/test-strcasestr.c (main): Likewise.
62839         * tests/test-striconv.c (main): Likewise.
62840         * tests/test-striconveh.c (main): Likewise.
62841         * tests/test-striconveha.c (main): Likewise.
62842         * tests/test-strstr.c (main): Likewise.
62843
62844         * build-aux/git-version-gen: Adjust a comment and the Usage string.
62845
62846         bootstrap: sync from coreutils again
62847         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
62848
62849 2008-03-01  Jim Meyering  <meyering@redhat.com>
62850
62851         bootstrap: sync from coreutils
62852         * build-aux/bootstrap (update_po_files): Copy a .po file into place
62853         also when the target doesn't exist.
62854
62855 2008-03-01  Eric Blake  <ebb9@byu.net>
62856
62857         Fix bugs in last patch.
62858         * lib/memchr2.c (memchr2): Fix typo.
62859         * tests/test-memchr2.c: Test previous bug, and don't use GNU
62860         extension.
62861         Reported by Bruce Korb.
62862
62863         New module 'memchr2'.
62864         * modules/memchr2: New file.
62865         * modules/memchr2-tests: Likewise.
62866         * lib/memchr2.h: Likewise.
62867         * lib/memchr2.c: Likewise, based on memchr.c.
62868         * tests/test-memchr2.c: New test.
62869         * MODULES.html.sh (String handling): Add memchr2.
62870
62871 2008-02-29  Bruno Haible  <bruno@clisp.org>
62872
62873         * modules/freadseek-tests: New file.
62874         * tests/test-freadseek.sh: New file.
62875         * tests/test-freadseek.c: New file.
62876
62877         New module 'freadseek'.
62878         * modules/freadseek: New file.
62879         * lib/freadseek.h: New file.
62880         * lib/freadseek.c: New file.
62881         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
62882
62883 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
62884
62885         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
62886         wydawca.
62887
62888         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
62889         program_invocation_name and program_invocation_short_name are
62890         present.
62891
62892 2008-02-28  Bruno Haible  <bruno@clisp.org>
62893
62894         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
62895         * tests/test-freadptr.sh: Also test non-seekable stdin.
62896
62897 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
62898
62899         * build-aux/bootstrap (source_base, m4_base)
62900         (doc_base, tests_base): New variables.
62901         (gnulib_tool_options): Do not hardcode base directories, use
62902         the above variables instead.
62903
62904 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
62905
62906         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
62907
62908 2008-02-28  Bruno Haible  <bruno@clisp.org>
62909
62910         * modules/freadptr-tests: New file.
62911         * tests/test-freadptr.sh: New file.
62912         * tests/test-freadptr.c: New file.
62913
62914         New module 'freadptr'.
62915         * modules/freadptr: New file.
62916         * lib/freadptr.h: New file.
62917         * lib/freadptr.c: New file.
62918         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
62919
62920 2008-02-26  Karl Berry  <karl@freefriends.org>
62921
62922         Sync from Libtool:
62923         * libltdl/argz.c (argz_add, argz_count): New functions.
62924         * libltdl/argz.in.h: Declare them.
62925         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
62926
62927 2008-02-22  Bruno Haible  <bruno@clisp.org>
62928
62929         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
62930         is a pointer type.  Needed for HP-UX 10.
62931         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
62932         * doc/posix-functions/gmtime_r.texi: Likewise.
62933         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
62934
62935 2008-02-24  Bruno Haible  <bruno@clisp.org>
62936
62937         * modules/environ-tests: New file.
62938         * tests/test-environ.c: New file.
62939
62940         New module 'environ'.
62941         * modules/environ: New file.
62942         * lib/unistd.in.h (environ): New declaration.
62943         * m4/environ.m4: New file.
62944         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
62945         after use.
62946         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
62947         HAVE_DECL_ENVIRON.
62948         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
62949         HAVE_DECL_ENVIRON.
62950         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
62951         wrong claim that 'environ' is missing on some systems.
62952         * modules/execute (Depends-on): Add environ.
62953         * lib/execute.c (environ): Remove fallback declaration.
62954         * modules/pipe (Depends-on): Add environ.
62955         * lib/pipe.c (environ): Remove fallback declaration.
62956         * modules/setenv (Depends-on): Add environ.
62957         * lib/setenv.c (environ): Remove fallback declaration.
62958         * modules/unsetenv (Depends-on): Add environ.
62959         * lib/unsetenv.c (environ): Remove fallback declaration.
62960         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
62961         m4/environ.m4.
62962         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
62963         (gl_PREREQ_UNSETENV): Likewise.
62964
62965 2008-02-24  Bruno Haible  <bruno@clisp.org>
62966
62967         * doc/posix-functions/environ.texi: Document the MacOS X problem.
62968
62969 2008-02-20  Bob Proulx  <bob@proulx.com>
62970
62971         Enable use of older two part flavor 'git describe'.
62972         * build-aux/git-version-gen: If using the older two part flavor of
62973         git version then recreate the third part now present in the
62974         newer three part flavor of git describe.
62975
62976 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
62977
62978         * lib/fts.c (fts_build): Typo correction to comment.
62979
62980 2008-02-17  Bruno Haible  <bruno@clisp.org>
62981
62982         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
62983         generating no-op conflicts.
62984
62985 2008-02-17  Bruno Haible  <bruno@clisp.org>
62986
62987         Speed up by 10%.
62988         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
62989         result_entries, rather than an index-based loop.
62990
62991 2008-02-17  Bruno Haible  <bruno@clisp.org>
62992
62993         Speed up by 25%.
62994         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
62995         'hashcode_cached'.
62996         (entry_create): New function.
62997         (entry_hashcode): Use the cached hashcode if possible.
62998         (read_changelog_file, try_split_merged_entry): Use entry_create.
62999
63000 2008-02-17  Bruno Haible  <bruno@clisp.org>
63001
63002         Speed up from O(n^2) to O(n) for long ChangeLog files.
63003         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
63004         (read_changelog_file): Change implementation of entries_reversed list
63005         to rbtreehash.
63006         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
63007
63008 2008-02-17  Bruno Haible  <bruno@clisp.org>
63009
63010         New option --split-merged-entry.
63011         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
63012         (find_paragraph_end, try_split_merged_entry): New functions.
63013         (long_options): Add option --split-merged-entry.
63014         (usage): Document option --split-merged-entry.
63015         (main): Implement option --split-merged-entry.
63016         Reported by Eric Blake.
63017
63018 2008-02-17  Bruno Haible  <bruno@clisp.org>
63019
63020         * lib/git-merge-changelog.c: Include c-strstr.h.
63021         (main): Support the "git pull --rebase" situation.
63022         * modules/git-merge-changelog (Depends-on): Add c-strstr.
63023         Reported by Eric Blake.
63024
63025 2008-02-16  Eric Blake  <ebb9@byu.net>
63026
63027         Avoid doubling \ in common case of "c-maybe" quoting style.
63028         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
63029         eliding outer quotes.
63030         * lib/quotearg.h: Document this.
63031         * tests/test-quotearg.c (result_strings, inputs, results_g)
63032         (flag_results, locale_results): Test it by adding a new string to
63033         each test group.
63034         (compare_strings): Test new string.
63035
63036 2008-02-13  Eric Blake  <ebb9@byu.net>
63037
63038         Avoid trigraph quoting in default output.
63039         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
63040         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
63041         unless explicitly requested.
63042         * tests/test-quotearg.c (flag_results, main): Add additional tests.
63043
63044 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
63045
63046         Don't rely on signed integer overflowing to negative value.
63047         * lib/getugroups.c (getugroups): Include <limits.h>.
63048         Instead, compare against INT_MAX, and increment only if the test passes.
63049
63050 2008-02-13  Jim Meyering  <meyering@redhat.com>
63051         and Eric Blake  <ebb9@byu.net>
63052
63053         Avoid shadowing warning and compile errors on Linux.
63054         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
63055         forwarding macros on Linux.
63056         (dcgettext): Define a stub, for Linux.
63057         (results_g, main): Avoid warnings.
63058
63059 2008-02-12  Eric Blake  <ebb9@byu.net>
63060
63061         Silence warning in last patch.
63062         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
63063
63064         Quotearg part 4: add tests, fix c-maybe colon quoting.
63065         * lib/quotearg.h: Improve documentation.
63066         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
63067         escapes when adding outer quotes.  When quoting trigraphs, use
63068         valid C notation.  When quoting NUL, omit extra characters if next
63069         character is not digit.  Alter prototype.
63070         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
63071         callers.
63072         * modules/quotearg-tests: New module.
63073         * tests/test-quotearg.c: New test.
63074
63075 2008-02-07  Eric Blake  <ebb9@byu.net>
63076
63077         Quotearg part 3: add flag to control outer quote elision.
63078         * lib/quotearg.h (c_maybe_quoting_style): New style.
63079         (enum quoting_flags): Better documentation of flags.
63080         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
63081         c-maybe style.
63082         (quotearg_buffer_restyled): Handle new flag to elide outer
63083         quotes.
63084
63085         Quotearg part 2: add flag that can control NUL elision.
63086         * lib/quotearg.h (set_quoting_flags): New prototype.
63087         * lib/quotearg.c (struct quoting_options): Add flag field.
63088         (set_quoting_flags): New function.
63089         (quotearg_buffer_restyled): Add flags parameter.
63090         (quotearg_alloc_mem): Set the flag if length cannot be returned.
63091         (quotearg_n_options): Set the flag, since length cannot be
63092         returned.
63093         (quoting_options_from_style): Default flags correctly.
63094
63095         Quotearg part 1: more wrappers, restore quotearg_char state.
63096         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
63097         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
63098         (quotearg_colon_mem): New wrappers.
63099         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
63100         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
63101         functions.
63102         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
63103         (quotearg_colon_mem): New functions.
63104
63105 2008-02-11  Bruno Haible  <bruno@clisp.org>
63106
63107         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
63108         library in the current directory: it does not work with parallel make.
63109         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63110
63111 2008-02-11  Bruno Haible  <bruno@clisp.org>
63112
63113         * .gitattributes: New file.
63114
63115 2008-02-11  Jim Meyering  <meyering@redhat.com>
63116
63117         useless-if-before-free: Fix reversed exit values.
63118         * build-aux/useless-if-before-free: Use correct values
63119         for EXIT_MATCH and EXIT_NO_MATCH.
63120
63121         * build-aux/useless-if-before-free: Close stdout carefully.
63122
63123 2008-02-10  Bruno Haible  <bruno@clisp.org>
63124
63125         New module 'git-merge-changelog'.
63126         * modules/git-merge-changelog: New file.
63127         * lib/git-merge-changelog.c: New file.
63128
63129 2008-02-10  Jim Meyering  <meyering@redhat.com>
63130
63131         useless-if-before-free: New option: --list (-l).
63132
63133         useless-if-before-free: Don't exit immediately upon open failure.
63134         * build-aux/useless-if-before-free: Exit 2 for errors.
63135         Upon failure to open a file, don't exit immediately.
63136         Rather, just warn and continue with any remaining files.
63137
63138 2008-02-10  Bruno Haible  <bruno@clisp.org>
63139
63140         New abstract list operation 'node_set_value'.
63141         * lib/gl_list.h (gl_list_node_set_value): New function.
63142         (struct gl_list_implementation): New field node_set_value.
63143         * lib/gl_list.c (gl_list_node_set_value): New function.
63144         * lib/gl_array_list.c (gl_array_node_set_value): New function.
63145         (gl_array_list_implementation): Update.
63146         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
63147         (gl_carray_list_implementation): Update.
63148         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
63149         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
63150         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
63151         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
63152         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
63153         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
63154         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
63155         Update.
63156         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
63157         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
63158         (gl_sublist_list_implementation): Update.
63159
63160 2008-02-10  Bruno Haible  <bruno@clisp.org>
63161
63162         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
63163         Needed when ELEMENT is #defined to 'some_type *'.
63164
63165 2008-02-10  Jim Meyering  <meyering@redhat.com>
63166
63167         New script and module: useless-if-before-free
63168         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
63169         * build-aux/useless-if-before-free: New file.
63170         * modules/useless-if-before-free: New file.
63171
63172         * build-aux/gitlog-to-changelog: Use committer date, not author date.
63173
63174         xstrtol_error: Fix typo.
63175         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
63176         s/exit_failure/exit_status/.
63177
63178 2008-02-09  Jim Meyering  <meyering@redhat.com>
63179
63180         New script and module: gitlog-to-changelog
63181         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
63182         * modules/gitlog-to-changelog: New file.
63183         * build-aux/gitlog-to-changelog: New file.
63184
63185 2008-02-08  Jim Meyering  <meyering@redhat.com>
63186
63187         Avoid two "parameter unused" warnings.
63188         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
63189         Mark "st" as used.
63190
63191         Use "git COMMAND", not "git-COMMAND".
63192         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
63193         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
63194         * build-aux/git-version-gen: Use "git status", not "git-status".
63195
63196 2008-02-07  Bruno Haible  <bruno@clisp.org>
63197
63198         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
63199         Avoids a crash on Windows Vista.
63200         Reported by Adam Strzelecki <ono@java.pl> via
63201         Simon Josefsson <simon@josefsson.org>.
63202
63203 2008-02-06  Bruno Haible  <bruno@clisp.org>
63204
63205         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
63206         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
63207         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
63208         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
63209         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
63210         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
63211         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
63212         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
63213         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
63214         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63215         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63216         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63217         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63218         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63219         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63220         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
63221         left-adjust flag.
63222         * tests/test-snprintf-posix.h (test_function): Likewise.
63223         * tests/test-sprintf-posix.h (test_function): Likewise.
63224         * tests/test-vasprintf-posix.c (test_function): Likewise.
63225         * doc/posix-functions/fprintf.texi: Update.
63226         * doc/posix-functions/printf.texi: Update.
63227         * doc/posix-functions/snprintf.texi: Update.
63228         * doc/posix-functions/sprintf.texi: Update.
63229         * doc/posix-functions/vfprintf.texi: Update.
63230         * doc/posix-functions/vprintf.texi: Update.
63231         * doc/posix-functions/vsnprintf.texi: Update.
63232         * doc/posix-functions/vsprintf.texi: Update.
63233         Reported by Peter Fales <psfales@alcatel-lucent.com>.
63234
63235 2008-02-06  Bruno Haible  <bruno@clisp.org>
63236
63237         Fix bug introduced on 2008-01-26.
63238         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
63239
63240 2008-02-06  Bruno Haible  <bruno@clisp.org>
63241
63242         Fix bug introduced on 2007-06-10.
63243         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
63244         !NEED_PRINTF_FLAG_ZERO.
63245
63246 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
63247
63248         getloadavg: use libperfstat on AIX5
63249         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
63250
63251 2008-02-03  Bruno Haible  <bruno@clisp.org>
63252
63253         * lib/diffseq.h: Add comments about required #includes.
63254         Reported by Michael Biggs <gnulib@doubleplum.net>.
63255
63256 2008-02-01  Bruno Haible  <bruno@clisp.org>
63257
63258         * users.txt: Add gnuit.
63259
63260 2008-01-31  Bruno Haible  <bruno@clisp.org>
63261
63262         * lib/md4.c (set_uint32): Mark as inline.
63263         * lib/md5.c (set_uint32): Likewise.
63264         * lib/sha1.c (set_uint32): Likewise.
63265         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
63266         * m4/md5.m4 (gl_MD5): Likewise.
63267         * m4/sha1.m4 (gl_SHA1): Likewise.
63268
63269 2008-01-31  Jim Meyering  <meyering@redhat.com>
63270
63271         Use "sizeof VAR", rather than a literal "4".
63272         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
63273         * lib/md4.c (md4_read_ctx): Likewise.
63274         * lib/sha1.c (sha1_read_ctx): Likewise.
63275
63276 2008-01-31  Simon Josefsson  <simon@josefsson.org>
63277
63278         * tests/test-sha1.c: New file, based on test-md5.c.
63279
63280         * modules/crypto/sha1-tests: New file.
63281
63282 2008-01-31  Simon Josefsson  <simon@josefsson.org>
63283
63284         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
63285
63286 2008-01-31  Jim Meyering  <meyering@redhat.com>
63287
63288         Prefer "sizeof v" over the equivalent "4".
63289         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
63290         * lib/md5.c (set_uint32): Likewise.
63291         * lib/sha1.c (set_uint32): Likewise.
63292
63293 2008-01-31  Simon Josefsson  <simon@josefsson.org>
63294
63295         * lib/sha1.c (set_uint32): Mark function as static.
63296
63297 2008-01-31  Simon Josefsson  <simon@josefsson.org>
63298
63299         md2: clarify comments to say that alignment is not required.
63300         * lib/md2.h: Remove warning about alignment in comment.
63301         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
63302         never been required.
63303
63304 2008-01-31  Simon Josefsson  <simon@josefsson.org>
63305
63306         md4: adapt alignment constraint fix from sha1.
63307         * lib/md4.c (set_uint32): New function, from sha1.c
63308         (md4_read_ctx): Use it.
63309         (md4_finish_ctx): Doc fix.
63310         * lib/md4.h: Doc fix.
63311
63312 2008-01-31  Simon Josefsson  <simon@josefsson.org>
63313
63314         md5: adapt alignment constraint fix from sha1.
63315         * lib/md5.c (set_uint32): New function, from sha1.c
63316         (md5_read_ctx): Use it.
63317         (md5_finish_ctx): Doc fix.
63318         * lib/md5.h: Doc fix.
63319
63320 2008-01-30  Peter Palfrader  <weasel@debian.org>
63321
63322         sha1: remove the result buffer alignment constraint
63323         * lib/sha1.c (set_uint32): New function.
63324         (sha1_read_ctx): Rewrite to remove the result buffer alignment
63325         constraint.
63326         (sha1_finish_ctx): Remove comment warning about alignment constraint.
63327         * lib/sha1.h: Likewise.
63328
63329 2008-01-30  Andreas Schwab  <schwab@suse.de>
63330             Bruno Haible  <bruno@clisp.org>
63331
63332         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
63333         correct definition of LDBL_MIN_EXP.
63334
63335 2008-01-30  Karl Berry  <karl@gnu.org>
63336
63337         * config/srclist-update: try to preserve x bit on updates.
63338         * config/srclistvars.sh: update for karl.
63339
63340 2008-01-29  Jim Meyering  <meyering@redhat.com>
63341
63342         vasnprintf.c: Avoid warning about unused label
63343         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
63344         "overflow" label definition and associated code with the
63345         same cpp condition that guards the sole use of that label.
63346
63347 2008-01-26  Bruno Haible  <bruno@clisp.org>
63348
63349         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
63350         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
63351         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
63352         * lib/isnanl-nolibm.h (isnanl): Likewise.
63353         Reported by Paul Eggert <eggert@cs.ucla.edu>.
63354
63355 2008-01-26  Bruno Haible  <bruno@clisp.org>
63356
63357         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
63358         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
63359
63360 2008-01-26  Bruno Haible  <bruno@clisp.org>
63361
63362         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
63363         GCC >= 4.0 built-in.
63364         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
63365
63366 2008-01-26  Bruno Haible  <bruno@clisp.org>
63367
63368         Rename isnan, applicable to 'double' only, to isnand.
63369         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
63370         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
63371         (configure.ac): Update.
63372         (Include): Replace "isnan.h" with "isnand.h".
63373         * m4/isnand.m4: Renamed from m4/isnan.m4.
63374         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
63375         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
63376         instead of isnan.c.
63377         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
63378         instead of HAVE_ISNAN_IN_LIBC.
63379         (isnand): Renamed from isnan.
63380         * lib/isnand.c: New file.
63381         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
63382         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
63383         (Makefile.am): Update.
63384         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
63385         Include isnand.h instead of isnan.h.
63386         (main): Test isnand instead of isnan.
63387         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
63388         isnan-nolibm.
63389         * modules/frexp (Depends-on): Likewise.
63390         * modules/frexp-tests (Depends-on): Likewise.
63391         * modules/frexp-nolibm (Depends-on): Likewise.
63392         * modules/frexp-nolibm-tests (Depends-on): Likewise.
63393         * modules/isfinite (Depends-on): Likewise.
63394         * modules/round-tests (Depends-on): Likewise.
63395         * modules/signbit (Depends-on): Likewise.
63396         * modules/signbit-tests (Depends-on): Likewise.
63397         * modules/snprintf-posix (Depends-on): Likewise.
63398         * modules/sprintf-posix (Depends-on): Likewise.
63399         * modules/trunc-tests (Depends-on): Likewise.
63400         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
63401         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
63402         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
63403         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
63404         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
63405         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
63406         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
63407         * modules/vasnprintf-posix (Depends-on): Likewise.
63408         * modules/vasprintf-posix (Depends-on): Likewise.
63409         * modules/vfprintf-posix (Depends-on): Likewise.
63410         * modules/vsnprintf-posix (Depends-on): Likewise.
63411         * modules/vsprintf-posix (Depends-on): Likewise.
63412         * lib/frexp.c: Include isnand.h instead of isnan.h.
63413         (ISNAN): Set to isnand instead of isnan.
63414         * lib/isfinite.c: Include isnand.h instead of isnan.h.
63415         (gl_isfinited): Use isnand instead of isnan.
63416         * lib/signbitd.c: Include isnand.h instead of isnan.h.
63417         (gl_signbitd): Use isnand instead of isnan.
63418         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
63419         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
63420         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
63421         (main): Use isnand instead of isnan.
63422         * tests/test-round1.c: Include isnand.h.
63423         (main): Use isnand instead of isnan.
63424         * tests/test-round2.c: Include isnand.h instead of isnan.h.
63425         (ISNAN): Set to isnand instead of isnan.
63426         * tests/test-trunc1.c: Include isnand.h.
63427         (main): Use isnand instead of isnan.
63428         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
63429         (equal): Use isnand instead of isnan.
63430         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
63431         isnand-nolibm.
63432         * NEWS: Mention the change.
63433
63434 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
63435             Bruno Haible  <bruno@clisp.org>
63436
63437         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
63438         the GCC builtins for signbits are present and set
63439         REPLACE_SIGNBIT_USING_GCC if so.
63440         * lib/math.in.h (signbit): Define using GCC builtins if
63441         REPLACE_SIGNBIT_USING_GCC is set.
63442         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
63443         REPLACE_SIGNBIT_USING_GCC.
63444         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
63445
63446 2008-01-25  Jim Meyering  <meyering@redhat.com>
63447
63448         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
63449         * lib/poll.c: Include <config.h>, not "config.h".
63450         * tests/test-getaddrinfo.c: Likewise.
63451
63452 2008-01-25  Simon Josefsson  <simon@josefsson.org>
63453
63454         * modules/sockets-tests: New file.
63455
63456 2008-01-24  Simon Josefsson  <simon@josefsson.org>
63457
63458         * modules/sockets: New module, can be used to call WSA_Startup and
63459         WSA_Cleanup when needed.
63460
63461         * lib/sockets.h, lib/sockets.c: New files.
63462
63463         * m4/sockets.m4: New file.
63464
63465         * tests/test-sockets.c: New file.
63466
63467 2008-01-19  Bruno Haible  <bruno@clisp.org>
63468
63469         * doc/posix-headers: Renamed from doc/headers.
63470         * doc/posix-functions: Renamed from doc/functions.
63471         * doc/gnulib.texi: Update.
63472
63473 2008-01-19  Bruno Haible  <bruno@clisp.org>
63474
63475         * doc/glibc-functions/strcasestr.texi: Include contents of
63476         doc/functions/strcasestr.texi, fixing the list of platforms.
63477         * doc/functions/strcasestr.texi: Remove file.
63478
63479 2008-01-19  Bruno Haible  <bruno@clisp.org>
63480
63481         * doc/glibc-functions/memmem.texi: Include contents of
63482         doc/functions/memmem.texi.
63483         * doc/functions/memmem.texi: Remove file.
63484
63485 2008-01-18  Bruno Haible  <bruno@clisp.org>
63486
63487         * doc/glibc-functions/*.texi: New files.
63488         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
63489         to use the new files.
63490
63491 2008-01-17  Bruno Haible  <bruno@clisp.org>
63492
63493         * tests/test-gethostname.c (main): Fix printf statement.
63494
63495 2008-01-17  Simon Josefsson  <simon@josefsson.org>
63496
63497         * modules/gethostname-tests: New file.
63498
63499         * tests/test-gethostname.c: New file.
63500
63501 2008-01-17  Simon Josefsson  <simon@josefsson.org>
63502
63503         * lib/gethostname.c: Include string.h unconditionally, strncpy is
63504         used by the UNAME case.  Reported by Bruno Haible
63505         <bruno@clisp.org>.
63506
63507 2008-01-17  Eric Blake  <ebb9@byu.net>
63508
63509         Convert c-strcasestr to be more efficient.
63510         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
63511         (Depends-on): Add c-strcase, remove malloca, strnlen.
63512         * tests/test-c-strcasestr.c (main): Enhance test.
63513         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
63514
63515 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
63516
63517         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
63518         Use it in creating po/Makevars.
63519
63520 2008-01-15  Simon Josefsson  <simon@josefsson.org>
63521
63522         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
63523         Applications that requires it should initialize libgcrypt
63524         manually.
63525
63526 2008-01-16  Simon Josefsson  <simon@josefsson.org>
63527
63528         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
63529
63530 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
63531
63532         Fix problem with getdate on mingw32 reported by Simon Josefsson
63533         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
63534         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
63535         tzname", when deciding whether to declare tzname.
63536         * lib/strftime.c (tzname): Likewise.
63537
63538 2008-01-15  Bruno Haible  <bruno@clisp.org>
63539
63540         Work around a MacOS X 10.5 bug in frexpl().
63541         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
63542         * doc/functions/frexpl.texi: Document the bug.
63543         Reported by Elias Pipping <pipping@gentoo.org>.
63544
63545 2008-01-14  Eric Blake  <ebb9@byu.net>
63546
63547         Touch up previous patch.
63548         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
63549         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
63550
63551         Convert strcasestr module to use Two-Way algorithm.
63552         * modules/strcasestr-simple: New module, based on the old
63553         strcasestr, but with Two-Way rather than KMP.
63554         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
63555         * lib/string.in.h (rpl_strcasestr): Declare.
63556         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
63557         performance.
63558         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
63559         * modules/string (Makefile.am): Support strcasestr.
63560         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
63561         * modules/strcasestr-tests (Depends-on): Check for alarm.
63562         * tests/test-strcasestr.c: Augment test.
63563         * lib/str-two-way.h: Clean up stray macro.
63564         * NEWS: Document new module.
63565         * MODULES.html.sh (string handling): Likewise.
63566         * doc/functions/strcasestr.texi: New file.
63567         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
63568         here, since it is not a POSIX function.
63569
63570 2008-01-14  Colin Watson  <cjwatson@debian.org>
63571             Bruno Haible  <bruno@clisp.org>
63572
63573         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
63574         works fine; if not, set REPLACE_STRSIGNAL.
63575         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
63576         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63577         REPLACE_STRSIGNAL.
63578         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
63579         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
63580         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
63581
63582 2008-01-14  Bruno Haible  <bruno@clisp.org>
63583
63584         * modules/strsignal (Include): Change to <string.h>.
63585
63586 2008-01-14  Colin Watson  <cjwatson@debian.org>
63587
63588         * modules/argp (Notice): Add a notice recommending to change
63589         XGETTEXT_OPTIONS.
63590         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
63591
63592 2008-01-13  Colin Watson  <cjwatson@debian.org>
63593
63594         * modules/strsignal-tests: New file.
63595         * tests/test-strsignal.c: New file.
63596
63597         * lib/strsignal.c: New file, from glibc with modifications.
63598         * lib/siglist.h: New file, from glibc with modifications.
63599         * lib/string.in.h (strsignal): New declaration.
63600         * m4/strsignal.m4: New file.
63601         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63602         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
63603         * modules/strsignal: New file.
63604         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
63605         HAVE_DECL_STRSIGNAL.
63606
63607 2008-01-13  Bruno Haible  <bruno@clisp.org>
63608
63609         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
63610         locale encoding is not ASCII. Needed for OpenBSD 4.0.
63611         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
63612         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
63613
63614 2008-01-13  Bruno Haible  <bruno@clisp.org>
63615
63616         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
63617         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
63618         * lib/argp.h (__attribute__): Likewise.
63619         * lib/c-stack.c (__attribute__): Likewise.
63620         * lib/error.h (__attribute__): Likewise.
63621         * lib/fts.c (__attribute__): Likewise.
63622         * lib/openat.h (__attribute__): Likewise.
63623         * lib/stdio.in.h (__attribute__): Likewise.
63624         * lib/string.in.h (__attribute__): Likewise.
63625         * lib/utimens.c (__attribute__): Likewise.
63626         * lib/vasnprintf.h (__attribute__): Likewise.
63627         * lib/xalloc.h (__attribute__): Likewise.
63628         * lib/xprintf.h (__attribute__): Likewise.
63629         * lib/xstrtol.h (__attribute__): Likewise.
63630         * lib/xvasprintf.h (__attribute__): Likewise.
63631
63632 2008-01-12  Bruno Haible  <bruno@clisp.org>
63633
63634         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
63635         * doc/glibc-headers/a.out.texi: New file.
63636         * doc/glibc-headers/aliases.texi: New file.
63637         * doc/glibc-headers/alloca.texi: New file.
63638         * doc/glibc-headers/ar.texi: New file.
63639         * doc/glibc-headers/argp.texi: New file.
63640         * doc/glibc-headers/argz.texi: New file.
63641         * doc/glibc-headers/byteswap.texi: New file.
63642         * doc/glibc-headers/crypt.texi: New file.
63643         * doc/glibc-headers/endian.texi: New file.
63644         * doc/glibc-headers/envz.texi: New file.
63645         * doc/glibc-headers/err.texi: New file.
63646         * doc/glibc-headers/error.texi: New file.
63647         * doc/glibc-headers/execinfo.texi: New file.
63648         * doc/glibc-headers/fpu_control.texi: New file.
63649         * doc/glibc-headers/fstab.texi: New file.
63650         * doc/glibc-headers/fts.texi: New file.
63651         * doc/glibc-headers/getopt.texi: New file.
63652         * doc/glibc-headers/ieee754.texi: New file.
63653         * doc/glibc-headers/ifaddrs.texi: New file.
63654         * doc/glibc-headers/libintl.texi: New file.
63655         * doc/glibc-headers/mcheck.texi: New file.
63656         * doc/glibc-headers/mntent.texi: New file.
63657         * doc/glibc-headers/obstack.texi: New file.
63658         * doc/glibc-headers/paths.texi: New file.
63659         * doc/glibc-headers/printf.texi: New file.
63660         * doc/glibc-headers/pty.texi: New file.
63661         * doc/glibc-headers/resolv.texi: New file.
63662         * doc/glibc-headers/shadow.texi: New file.
63663         * doc/glibc-headers/sysexits.texi: New file.
63664         * doc/glibc-headers/ttyent.texi: New file.
63665
63666 2008-01-12  Jim Meyering  <meyering@redhat.com>
63667
63668         announce-gen: emit Gnulib's git-based version string.
63669         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
63670         New option --gnulib-version=V, where V is expected to be
63671         the output of running git describe in the gnulib directory.
63672         (get_tool_versions): Request feedback on xdelta.  I suspect it's
63673         not useful, and plan to stop publishing an xdelta file with each
63674         coreutils release.
63675
63676         * build-aux/announce-gen: Also check for lzma-compressed files.
63677
63678 2008-01-11  Bruno Haible  <bruno@clisp.org>
63679
63680         * tests/test-memmem.c (main): Increase maximum allowed time.
63681         * tests/test-strstr.c (main): Likewise.
63682
63683 2008-01-11  Bruno Haible  <bruno@clisp.org>
63684
63685         * doc/functions/memmem.texi: Add more precisions about platforms.
63686         * doc/functions/strstr.texi: Likewise.
63687
63688 2008-01-10  Eric Blake  <ebb9@byu.net>
63689
63690         * m4/strstr.m4: Delete cruft from copy-n-paste.
63691         Reported by Bruno Haible.
63692
63693 2008-01-10  Bruno Haible  <bruno@clisp.org>
63694
63695         Make c-strstr rely on strstr.
63696         * lib/c-strstr.c: Don't include str-kmp.h.
63697         (c_strstr): Define in terms of strstr.
63698         * modules/c-strstr (Files): Remove lib/str-kmp.h.
63699         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
63700
63701 2008-01-10  Bruno Haible  <bruno@clisp.org>
63702
63703         * doc/gnulib.texi (String Functions in C Locale): New section.
63704         * doc/c-ctype.texi: New file.
63705         * doc/c-strcase.texi: New file.
63706         * doc/c-strcaseeq.texi: New file.
63707         * doc/c-strcasestr.texi: New file.
63708         * doc/c-strstr.texi: New file.
63709         * doc/c-strtod.texi: New file.
63710         * doc/c-strtold.texi: New file.
63711
63712 2008-01-10  Eric Blake  <ebb9@byu.net>
63713
63714         * lib/relocatable.h: Fix a comment.
63715
63716 2008-01-10  Eric Blake  <ebb9@byu.net>
63717
63718         Share two-way algorithm.
63719         * lib/str-two-way.h: New file, merged from...
63720         * lib/memmem.c: ...here...
63721         * lib/strstr.c: ...and here.
63722         * modules/memmem (Files): Use it.
63723         * modules/strstr (Files): Likewise.
63724
63725         Avoid quadratic strstr implementations.
63726         * lib/strstr.c: New file.
63727         * m4/strstr.m4: Likewise.
63728         * modules/strstr: Likewise.
63729         * modules/strstr-tests: Likewise.
63730         * tests/test-strstr.c: Likewise.
63731         * lib/string.in.h (rpl_strstr): Declare.
63732         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
63733         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
63734         * modules/string (Makefile.am): Likewise.
63735         * MODULES.html.sh (string handling): Mention new module.
63736         * doc/functions/strstr.texi (strstr): Document the bug.
63737
63738 2008-01-10  Bruno Haible  <bruno@clisp.org>
63739
63740         * lib/relocatable.h (relocate): State whether result is freshly
63741         allocated or not.
63742         * lib/relocatable.c (relocate): Return a freshly allocated string
63743         instead of a pointer to a privately held string.
63744         Reported by Sylvain Beucler <beuc@gnu.org>.
63745
63746 2008-01-10  Colin Watson  <cjwatson@debian.org>
63747
63748         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
63749         s/S_ISNLK/S_ISLNK/.
63750
63751 2008-01-09  Bruno Haible  <bruno@clisp.org>
63752
63753         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
63754         and other files.
63755         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
63756         if it's only a guess.
63757         * modules/memmem: Simplify by depending on memmem-simple.
63758
63759 2008-01-09  Bruno Haible  <bruno@clisp.org>
63760
63761         Work around OpenBSD 4.0 tdelete() bug.
63762         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
63763         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
63764         macros and don't redefine the enum values.
63765         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
63766         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
63767         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
63768
63769 2008-01-09  Bruno Haible  <bruno@clisp.org>
63770
63771         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
63772         (main): Don't perform the tests if setlocale did not install a UTF-8
63773         locale. Needed on OpenBSD 4.0.
63774         * modules/wcwidth-tests (Depends-on): Add localcharset.
63775
63776 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
63777
63778         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
63779         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
63780         * NEWS: announce this.
63781         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
63782
63783 2008-01-09  Simon Josefsson  <simon@josefsson.org>
63784         and Eric Blake  <ebb9@byu.net>
63785
63786         Add memmem-simple module.
63787         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
63788         (gl_FUNC_MEMMEM): Separate performance from presence checks.
63789         * modules/memmem-simple: New file.
63790         * modules/memmem (Description): Tweak.
63791         * MODULES.html.sh (string handling): Mention new module.
63792         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
63793         addressed by memmem-simple.
63794         * NEWS: Document the difference.
63795
63796 2008-01-09  Eric Blake  <ebb9@byu.net>
63797
63798         Give gcc some memmem optimization hints.
63799         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
63800         (strcasestr): Declare as pure.
63801         * modules/memmem (Maintainer): Claim my implementation.
63802
63803 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63804
63805         Support AIX 6.1 and higher.
63806         * build-aux/config.libpath: Likewise.
63807         * build-aux/config.rpath: Likewise.
63808
63809 2008-01-08  Jim Meyering  <meyering@redhat.com>
63810             Bruno Haible  <bruno@clisp.org>
63811
63812         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
63813         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
63814         Reported by Peter Fales in
63815         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
63816
63817 2008-01-08  Bruno Haible  <bruno@clisp.org>
63818
63819         * modules/unictype/category-of (Depends-on): Add
63820         unictype/category-none.
63821         * modules/unictype/category-and-tests (Depends-on): Add
63822         unictype/category-{L,N,Lu,Nd}.
63823         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
63824         * modules/unictype/category-or-tests (Depends-on): Add
63825         unictype/category-{L,N}.
63826         * modules/unictype/category-name-tests (Depends-on): Add
63827         unictype/category-{Z,Nl}.
63828         Reported by Simon Josefsson.
63829
63830 2008-01-08  Bruno Haible  <bruno@clisp.org>
63831
63832         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
63833         convention better.
63834         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
63835         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
63836         Reported by Peter Miller <millerp@canb.auug.org.au>.
63837
63838 2008-01-08  Eric Blake  <ebb9@byu.net>
63839
63840         Rewrite memmem to guarantee linear complexity without malloc.
63841         * lib/memmem.c (memmem): Use Two-Way rather than
63842         Knuth-Morris-Pratt, to allow O(1) space usage.
63843         (critical_factorization, two_way_short_needle)
63844         (two_way_long_needle): New functions.
63845         (knuth_morris_pratt): Delete.
63846         * modules/memmem (Depends-on): No longer need malloca or stdbool.
63847         Add stdint.
63848         * tests/test-memmem.c (main): Add tests for periodic needle and
63849         sublinear performance.
63850         * doc/functions/memmem.texi (memmem): Document other deficiencies
63851         in cygwin and older glibc.
63852
63853 2008-01-08  Bruno Haible  <bruno@clisp.org>
63854
63855         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
63856         augmentation.
63857
63858 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
63859
63860         Add a configure time option: --disable-acl.
63861         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
63862         AC_ARG_ENABLE(acl).
63863
63864 2008-01-06  Simon Josefsson  <simon@josefsson.org>
63865
63866         * tests/test-localename.c: Don't include obsolete "setenv.h".
63867
63868         * modules/localename-tests (Depends-on): Need unsetenv.
63869
63870 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63871
63872         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
63873
63874 2008-01-06  Colin Watson  <cjwatson@debian.org>
63875
63876         * users.txt: Add man-db.
63877
63878 2008-01-07  Bruno Haible  <bruno@clisp.org>
63879
63880         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
63881         previous section name.
63882
63883 2008-01-07  Bruno Haible  <bruno@clisp.org>
63884
63885         * lib/progname.c (set_program_name): Don't strip off a leading
63886         "lt-" prefix outside a .libs directory.
63887         Suggested by Paul Eggert.
63888
63889 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
63890             Bruno Haible  <bruno@clisp.org>
63891
63892         Improve memory cleanup in 'relocatable' module.
63893         * lib/relocatable.h (compute_curr_prefix): Change return type to
63894         'char *'.
63895         * lib/relocatable.c (compute_curr_prefix): Change return type to
63896         'char *'. Free curr_installdir after use.
63897         (relocate): Free curr_prefix_better after use.
63898         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
63899
63900 2008-01-01  Bruno Haible  <bruno@clisp.org>
63901
63902         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
63903         failure on older glibc systems.
63904         Reported by Peter Fales <psfales@alcatel-lucent.com>.
63905
63906 2008-01-05  Eric Blake  <ebb9@byu.net>
63907
63908         Avoid quadratic system memmem.
63909         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
63910         Reported by Ralf Wildenhues.
63911
63912         Fix memmem test for mingw.
63913         * modules/memmem-tests (configure.ac): Check for alarm.
63914         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
63915         it.
63916         * doc/functions/memmem.texi: New file.
63917         * doc/gnulib.texi (Function Substitutes): Add memmem.
63918         Reported by Bruno Haible.
63919
63920 2008-01-04  Bruno Haible  <bruno@clisp.org>
63921
63922         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
63923         Require gl_HEADER_STRINGS_H_DEFAULTS, not
63924         gl_HEADER_STRING_H_DEFAULTS.
63925
63926 2008-01-04  Eric Blake  <ebb9@byu.net>
63927
63928         Shorten duration of memmem test.
63929         * tests/test-memmem.c (main): Use alarm to declare failure if test
63930         is taking too long.
63931         Reported by Ralf Wildenhues.
63932
63933 2007-12-21  Simon Josefsson  <simon@josefsson.org>
63934
63935         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
63936         string, needed by strerror.
63937
63938 2008-01-03  Colin Watson  <cjwatson@debian.org>
63939             Bruno Haible  <bruno@clisp.org>
63940
63941         * doc/gnulib-tool.texi (Localization): New section.
63942
63943 2008-01-02  Bruno Haible  <bruno@clisp.org>
63944
63945         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
63946         variables to 'unsigned char *' type.
63947         Reported by Paul Eggert.
63948
63949 2008-01-02  Jim Meyering  <jim@meyering.net>
63950
63951         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
63952
63953 2007-12-31  Jim Meyering  <jim@meyering.net>
63954
63955         Avoid use of private FTS type name.
63956         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
63957
63958 2007-12-30  Karl Berry  <karl@gnu.org>
63959
63960         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
63961         work around defect in Texinfo and/or the standalone Info browser.
63962
63963 2007-12-30  Bruno Haible  <bruno@clisp.org>
63964
63965         Unify 5 copies of the KMP code.
63966         * lib/str-kmp.h: New file.
63967         * lib/c-strcasestr.c: Include str-kmp.h.
63968         (knuth_morris_pratt): Remove function.
63969         (c_strcasestr): Update.
63970         * lib/c-strstr.c: Include str-kmp.h.
63971         (knuth_morris_pratt): Remove function.
63972         (c_strcasestr): Update.
63973         * lib/mbscasestr.c: Include str-kmp.h.
63974         (knuth_morris_pratt_unibyte): Remove function.
63975         * lib/mbsstr.c: Include str-kmp.h.
63976         (knuth_morris_pratt_unibyte): Remove function.
63977         * lib/strcasestr.c: Include str-kmp.h.
63978         (knuth_morris_pratt): Remove function.
63979         (strcasestr): Update.
63980         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
63981         * modules/c-strstr (Files): Likewise.
63982         * modules/mbscasestr (Files): Likewise.
63983         * modules/mbsstr (Files): Likewise.
63984         * modules/strcasestr (Files): Likewise.
63985         Suggested by Paul Eggert.
63986
63987 2007-12-30  Bruno Haible  <bruno@clisp.org>
63988
63989         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
63990         defined.
63991
63992 2007-12-30  Bruno Haible  <bruno@clisp.org>
63993
63994         * lib/xmalloca.h: Include xalloc.h.
63995         (xnmalloca): New macro.
63996
63997 2007-12-30  Bruno Haible  <bruno@clisp.org>
63998
63999         * lib/malloca.h (nmalloca): New macro.
64000         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
64001         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
64002         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
64003         knuth_morris_pratt_multibyte): Likewise.
64004         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
64005         knuth_morris_pratt_multibyte): Likewise.
64006         * lib/memmem.c (knuth_morris_pratt): Likewise.
64007         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
64008
64009 2007-12-25  Bruno Haible  <bruno@clisp.org>
64010
64011         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
64012         * lib/glob.c: Don't include openat.h.
64013         (link_exists2_p): Add back the code that deals with the
64014         !GLOB_ALTDIRFUNC case.
64015         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
64016         let it do the filename concatenation.
64017         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
64018         * modules/glob (Depends-on): Remove openat.
64019
64020 2007-12-31  Bruno Haible  <bruno@clisp.org>
64021
64022         * modules/dirfd (License): Change to LGPLv2+.
64023         Approved by Jim Meyering.
64024
64025 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
64026
64027         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
64028         when multiplying M by sizeof (size_t).
64029
64030 2007-12-10  Martin Lambers  <marlam@marlam.de>
64031
64032         Override getpagesize on mingw.
64033         * lib/getpagesize.c: New file.
64034         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
64035         * modules/getpagesize (Files): Add lib/getpagesize.c.
64036         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
64037         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
64038         REPLACE_GETPAGESIZE.
64039         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
64040
64041 2007-12-25  Bruno Haible  <bruno@clisp.org>
64042
64043         * modules/localcharset (Notice): New field.
64044         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
64045         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
64046
64047 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
64048             Bruno Haible  <bruno@clisp.org>
64049
64050         Avoid using the syntax symbol() in formatted documentation.
64051         * MODULES.html.sh (func_module): When replacing symbol() with a
64052         hyperlink, remove the parentheses. Show an error if some remain.
64053         Recognize and render the '...' syntax.
64054         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
64055         Rework. Add paragraph about GCC's inlining.
64056         * doc/alloca.texi: Likewise.
64057         * doc/error.texi: Remove parentheses from symbol reference.
64058         * doc/gnulib-intro.texi: Likewise.
64059         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
64060         * modules/fnmatch (Description): Reword to say "the ... function".
64061         * modules/full-read (Description): Likewise.
64062         * modules/full-write (Description): Likewise.
64063         * modules/safe-read (Description): Likewise.
64064         * modules/safe-write (Description): Likewise.
64065         * modules/strchrnul (Description): Likewise.
64066         * modules/trim (Description): Likewise.
64067         * modules/error (Description): Remove parentheses from symbol
64068         references.
64069         * modules/verror (Description): Likewise.
64070         Reported by Karl Berry.
64071
64072 2007-12-25  Bruno Haible  <bruno@clisp.org>
64073
64074         Fixup after 2007-10-16 commit.
64075         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
64076
64077 2007-12-24  Bruno Haible  <bruno@clisp.org>
64078
64079         Make --enable-relocatable work with DESTDIR.
64080         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
64081         to compute installdir from destprog.
64082         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
64083         also set the RELOC_DESTDIR variable.
64084         Reported by Левашев Иван <octagram@bluebottle.com>.
64085
64086 2007-12-24  Bruno Haible  <bruno@clisp.org>
64087
64088         Fix link error due to xalloc_die().
64089         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
64090         of xreadlink.
64091         * lib/relocwrapper.c: Update comments.
64092         * build-aux/install-reloc: Remove xreadlink.c from file list.
64093         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
64094         xreadlink.c.
64095         Reported by Левашев Иван <octagram@bluebottle.com>.
64096
64097 2007-12-24  Bruno Haible  <bruno@clisp.org>
64098
64099         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
64100         * lib/setenv.h: Remove file.
64101         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
64102         lib/setenv.h.
64103         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
64104         (Depends-on): Add stdlib.
64105         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
64106         gl_FUNC_UNSETENV.
64107         (Include): Replace setenv.h with <stdlib.h>.
64108         * modules/unsetenv: New file.
64109         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
64110         * lib/unsetenv.c: Include <stdlib.h> first.
64111         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
64112         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
64113         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
64114         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
64115         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
64116         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
64117         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
64118         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
64119         * doc/functions/unsetenv.texi: Update.
64120         * modules/xsetenv (Depends-on): Add unsetenv.
64121         * modules/getdate (Depends-on): Likewise.
64122         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
64123         * lib/xsetenv.c: Don't include setenv.h.
64124         * lib/getdate.y: Likewise.
64125         * lib/relocwrapper.c: Likewise.
64126         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
64127         (Depends-on): Add stdlib.
64128         * NEWS: Mention the changes.
64129         Reported by Левашев Иван <octagram@bluebottle.com>.
64130
64131 2007-12-23  Bruno Haible  <bruno@clisp.org>
64132
64133         * lib/memmem.c (memmem): Use lowercase variable names. Tab
64134         indentation.
64135
64136 2007-12-23  Bruno Haible  <bruno@clisp.org>
64137
64138         * lib/c-strcasestr.c: Add more comments.
64139         * lib/c-strstr.c: Likewise.
64140         * lib/mbscasestr.c: Likewise.
64141         * lib/mbsstr.c: Likewise.
64142         * lib/strcasestr.c: Likewise.
64143         * lib/memmem.c: Likewise.
64144
64145 2007-12-23  Bruno Haible  <bruno@clisp.org>
64146
64147         * tests/test-memmem.c: Include <string.h> first.
64148
64149 2007-12-22  Bruno Haible  <bruno@clisp.org>
64150
64151         * gnulib-tool (func_create_testdir): Change $auxdir while generating
64152         the contents of $testsbase.
64153         Reported by Ralf Wildenhues.
64154
64155 2007-12-22  Bruno Haible  <bruno@clisp.org>
64156
64157         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
64158         two variables local_ldadd_before, local_ldadd_last.
64159
64160 2007-12-20  Eric Blake  <ebb9@byu.net>
64161
64162         Work around circular library issue when cross-compiling.
64163         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
64164         that progname.o does not need to pull in rpl_memcmp.
64165
64166 2007-12-19  Eric Blake  <ebb9@byu.net>
64167
64168         Fix memmem to avoid O(n^2) worst-case complexity.
64169         * lib/memmem.c (knuth_morris_pratt): New function.
64170         (memmem): Use it if first few naive iterations fail.
64171         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
64172         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
64173         * modules/memchr (License): Likewise.
64174         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
64175         malloca.
64176         * tests/test-memmem.c: Rewrite, borrowing ideas from
64177         test-mbsstr1.c; the old version wouldn't even compile!
64178         * modules/memmem-tests: New file.
64179         * lib/string.in.h (rpl_memmem): Add declaration.
64180         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
64181         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
64182         REPLACE_MEMMEM.
64183
64184 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
64185
64186         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
64187         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
64188         before any system include files, and undef after them all.  This
64189         should fix a problem on VMS reported by John E. Malmberg in
64190         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
64191
64192 2007-12-17  Eric Blake  <ebb9@byu.net>
64193
64194         Revert addition of verify, for BSD/OS.
64195         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
64196         can't handle large files, for the sake of obsolete platforms.
64197         * modules/fseeko (Depends-on): Remove verify.
64198         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
64199         * doc/functions/ftello.texi (ftello): Likewise.
64200         * doc/functions/fgetpos.texi (fgetpos): Likewise.
64201         Reported by Larry Jones.
64202
64203 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
64204
64205         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
64206         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
64207
64208 2007-12-17  Jim Meyering  <meyering@redhat.com>
64209
64210         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
64211         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
64212         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
64213         * modules/getcwd (Depends-on): Add openat.
64214         Reported by Petr Salinger.
64215
64216 2007-12-17  Bruno Haible  <bruno@clisp.org>
64217
64218         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
64219         avoid a segmentation fault of the configure test on x86_64 systems.
64220
64221 2007-12-15  Jim Meyering  <meyering@redhat.com>
64222
64223         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
64224
64225 2007-12-13  Eric Blake  <ebb9@byu.net>
64226
64227         Another fseek test.
64228         * tests/test-fseek.c (main): Also test ungetc handling.
64229         * tests/test-fseeko.c (main): Likewise.
64230         * modules/fseeko (Depends-on): Add verify.
64231         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
64232         large.
64233         Reported by Larry Jones.
64234
64235         Fix fseeko on mingw.
64236         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
64237         seek.
64238
64239         Beef up fseek tests.
64240         * tests/test-fseek.c (main): Also test eof handling.
64241         * tests/test-fseeko.c (main): Likewise.
64242         Reported by Larry Jones.
64243
64244 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
64245
64246         Fix fseeko on BSD-based platforms.
64247         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
64248         successful seek.
64249
64250 2007-12-12  Eric Blake  <ebb9@byu.net>
64251
64252         Allow circular dependency of separate libtests.a
64253         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
64254         when use_libtests.
64255
64256 2007-12-11  Eric Blake  <ebb9@byu.net>
64257
64258         Fix bug with -0.0L in previous patch.
64259         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
64260         * tests/test-isnan.c (main): Also test on zeroes.
64261         * tests/test-isnanf.c (main): Likewise.
64262         * tests/test-isnanl.h (main): Likewise.
64263
64264         Detect pseudo-denormals on x86 even when cross-compiling.
64265         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
64266         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
64267         invalid bit patterns that happen to satisfy ==.
64268
64269         Avoid link failures with separate libtests.a.
64270         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
64271         last, to satisfy circular dependencies.
64272
64273 2007-12-11  Eric Blake  <ebb9@byu.net>
64274         and Bruno Haible  <bruno@clisp.org>
64275
64276         Fix OpenBSD 4.0 <float.h> handling of long double.
64277         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
64278         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
64279         * doc/headers/float.texi (float.h): Document OpenBSD bug.
64280
64281 2007-12-11  Jim Meyering  <meyering@redhat.com>
64282
64283         * users.txt: Add libvirt.
64284
64285         Support versions of autoconf prior to 2.59c.
64286         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
64287         if it is not already defined.
64288
64289 2007-12-09  Bruno Haible  <bruno@clisp.org>
64290
64291         Let 'gnulib-tool --import' collect sources needed for the tests in
64292         tests/ rather than in lib/.
64293         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
64294         argument. If true, add rules to generate libtests.a, and put libtests.a
64295         into $(LDADD). Consider source files in subdirectories and set
64296         uses_subdirs.
64297         (func_emit_initmacro_start, func_emit_initmacro_end,
64298         func_emit_initmacro_done): Pass all arguments explicitly.
64299         (func_import): Determine two module lists main_modules,
64300         testsrelated_modules. Determine use_libtests. Determine two variables
64301         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
64302         instead of just sed_transform_lib_file. Determine two variables
64303         main_files and testsrelated_files. Compute 'files' as the union of
64304         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
64305         func_add_or_update. In the generated gnulib-comp.m4, collect the
64306         object files for tests/ in different variables than those for lib/.
64307         Substitute LIBTESTS_LIBDEPS.
64308         (func_create_testdir): Combine the uses_subdirs results from
64309         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
64310
64311 2007-12-09  Bruno Haible  <bruno@clisp.org>
64312
64313         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
64314         the build-aux directory.
64315
64316 2007-12-09  Bruno Haible  <bruno@clisp.org>
64317
64318         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
64319         introduced on 2006-09-09.
64320
64321 2007-12-07  Jim Meyering  <meyering@redhat.com>
64322
64323         Let these macros work also with autoconf-2.59.
64324         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
64325         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
64326         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
64327
64328 2007-12-06  Jim Meyering  <meyering@redhat.com>
64329
64330         Avoid a configure-time syntax error in gl_FUNC_ACL.
64331         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
64332         function in each branch, before testing the cache variable.
64333
64334 2007-12-04  Eric Blake  <ebb9@byu.net>
64335
64336         Make scripts executable.
64337         * build-aux/config.guess: Add execute permissions.
64338         * build-aux/config.sub: Likewise.
64339         * build-aux/gendocs.sh: Likewise.
64340
64341         Fix frexp on mingw.
64342         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
64343         cross-compiling.
64344         * doc/functions/frexp.texi (frexp): Document the bug.
64345
64346         Make cygwin fseeko check more reliable.
64347         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
64348         version numbers, rather than unrelated feature check.
64349         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
64350         * doc/functions/ftello.texi (ftello): Likewise.
64351         Reported by Bruno Haible.
64352
64353         * m4/strerror.m4: Bump version number.
64354
64355 2007-12-03  Bruno Haible  <bruno@clisp.org>
64356
64357         * doc/functions/mprotect.texi: Mention the mingw problem.
64358
64359 2007-12-03  Eric Blake  <ebb9@byu.net>
64360
64361         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
64362         REPLACE_STRERROR is initialized before this macro.
64363
64364 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
64365
64366         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
64367         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
64368         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
64369         put -lsec in even for programs other than 'ls'.  This fixes a problem
64370         for gettext reported by Bruno Haible in
64371         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
64372         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
64373         Add support for Solaris 10.  This isn't efficient, but should get the
64374         job done for now.
64375
64376 2007-12-03  James Youngman  <jay@gnu.org>
64377
64378         * doc/regexprops-generic.texi: change "an close-group" to "a
64379         close-group" and "illegal" to "not allowed".
64380
64381 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64382
64383         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
64384         pr_byname.h. Needed for the rare case when the maintainer has done
64385         "make maintainer-clean" in the source directory and then attempts a
64386         build outside the source directory.
64387         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
64388         scripts_byname.h.
64389
64390 2007-12-02  Martin Lambers <marlam@marlam.de>
64391             Bruno Haible  <bruno@clisp.org>
64392
64393         * lib/getpagesize.h: Remove file.
64394         * lib/unistd.in.h: Include declaration of getpagesize here.
64395         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
64396         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
64397         HAVE_SYS_PARAM_H.
64398         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
64399         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
64400         * modules/getpagesize (Files): Remove lib/getpagesize.h.
64401         (Depends-on): Add unistd.
64402         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64403         (Include): Use <unistd.h> instead of getpagesize.h.
64404         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
64405         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
64406         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
64407         gl_GETPAGESIZE invocation, already handled by module dependency.
64408         * lib/pagealign_alloc.c: Don't include getpagesize.h.
64409
64410 2007-12-02  Bruno Haible  <bruno@clisp.org>
64411
64412         * modules/strings-tests: New file.
64413         * tests/test-strings.c: New file.
64414
64415         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
64416         * lib/strings.in.h: New file.
64417         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
64418         * m4/strings_h.m4: New file.
64419         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
64420         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
64421         * modules/strings: New file.
64422         * modules/string (Makefile.am): Update.
64423         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
64424         Reported by Karl Berry.
64425
64426 2007-12-01  Eric Blake  <ebb9@byu.net>
64427
64428         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
64429         accommodate fix in cygwin 1.5.25.
64430
64431 2007-12-01  Jim Meyering  <meyering@redhat.com>
64432
64433         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
64434         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
64435         that would inhibit utf8-optimization of a regexp containing line-
64436         or buffer-anchors, e.g., `^', `$'.
64437
64438 2007-11-30  Bruno Haible  <bruno@clisp.org>
64439
64440         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
64441         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
64442         glthread_recursive_lock_init.
64443         * lib/lock.c (glthread_recursive_lock_init)
64444         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
64445         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
64446
64447 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
64448
64449         New function qset_acl, like set_acl but with syscall semantics.
64450         * lib/acl.h (qset_acl): New decl.
64451         * lib/acl.c (qset_acl): New function.
64452         (set_acl): Use new function.  Use more-consistent diagnostics.
64453
64454 2007-11-28  Jim Meyering  <meyering@redhat.com>
64455
64456         * modules/physmem (License): Change from GPL to LGPLv2+.
64457
64458 2007-11-26  Bruno Haible  <bruno@clisp.org>
64459
64460         * lib/vasnprintf.c (decode_long_double): Don't abort if the
64461         'long double' type has excess precision.
64462         Reported by Jim Meyering in
64463         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
64464
64465 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64466
64467         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
64468         Sync from <http://gnu.org/licenses>.
64469         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
64470         with license text from same location.
64471         * doc/maintain.texi, doc/standards.texi:  Sync from
64472         <http://savannah.gnu.org/projects/gnustandards>.
64473
64474 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
64475         and Jim Meyering  <meyering@redhat.com>
64476
64477         Adjust getdate' grammar to accept a slightly more regular language.
64478         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
64479         Before, the former was rejected.
64480         * lib/getdate.y (digits_to_date_time): New function, factored
64481         out of ...
64482         (number): ...here.  Just call digits_to_date_time.
64483         (hybrid): New non-terminal to handle an <unsigned number,
64484         signed relative offset> sequence consistently.
64485
64486 2007-11-18  Jim Meyering  <meyering@redhat.com>
64487
64488         Pull my changes from coreutils:
64489         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
64490         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
64491         use of $gnulib_tool_option_extras, so that it's separated from the
64492         preceding argument.
64493
64494         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
64495         * build-aux/bootstrap (cp_mark_as_generated): Create any required
64496         parent destination directories before copying a file into place.
64497
64498 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
64499
64500         bootstrap: work also with 4-argument variant of AC_INIT
64501         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
64502
64503 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
64504
64505         Port test-getaddrinfo to Solaris.
64506         Problem reported by Bruno Haible in
64507         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
64508         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
64509         explanation of setting 'hints'.
64510         Don't reject an implementation merely because it returns EAI_SERVICE.
64511         (EAI_SERVICE): Define to 0 if not defined.
64512
64513 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
64514
64515         The license of gnu-make and posix-shell is now "GPLed build tool".
64516         * modules/gnu-make (License): Likewise.
64517         * modules/posix-shell (License): Likewise.
64518
64519         New module posix-shell, for determining a POSIX shell
64520         or perhaps something that is close enough to a POSIX shell.
64521         * m4/posix-shell.m4: New file.
64522         * modules/posix-shell: New file.
64523
64524         * MODULES.html.sh: Mention new module.
64525
64526         New module gnu-make, for determining whether we're using GNU Make.
64527         * m4/gnu-make.m4: New file.
64528         * modules/gnu-make: New file.
64529         * MODULES.html.sh: Mention new module.
64530
64531 2007-11-14  Jim Meyering  <meyering@redhat.com>
64532
64533         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
64534         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
64535         use this macro to create a function _definition_.
64536         Remove useless "#undef ARGMATCH_DIE".
64537
64538 2007-11-14  Bruno Haible  <bruno@clisp.org>
64539
64540         * lib/config.charset: Update for OpenBSD 4.1.
64541         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
64542
64543 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
64544
64545         Document 64-bit #if problems in stdint.texi.
64546         * doc/headers/stdint.texi (stdint.h): Mention problems with
64547         64-bit-#if, and how to work around them.
64548
64549         Don't insist on 'long long int' support in the preprocessor.  It
64550         breaks too many things.  For example, PRIdMAX still uses a 'long
64551         long int' format with the latest Sun compiler, even though
64552         HAVE_LONG_LONG_INT isn't defined due to that compiler's
64553         preprocessor problem.  This causes the latest coreutils to dump
64554         core on Solaris 10 sparc with the Sun C compiler.
64555         Instead, fix the 2007-10-16 problem in a different way, by evaluating
64556         the troublesome expressions at configure-time, not at #if-time.
64557         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
64558         preprocessor.
64559         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
64560         compile-time C checks, done at 'configure'-time.
64561         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
64562         * modules/inttypes (Makefile): Substitute the new symbols that
64563         gl_INTTYPES_H now generates.
64564         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
64565
64566 2007-11-12  Bruno Haible  <bruno@clisp.org>
64567
64568         Tests for Unicode character classification functions.
64569
64570         * modules/unictype/bidicategory-byname-tests: New file.
64571         * modules/unictype/bidicategory-name-tests: New file.
64572         * modules/unictype/bidicategory-of-tests: New file.
64573         * modules/unictype/bidicategory-test-tests: New file.
64574         * modules/unictype/block-list-tests: New file.
64575         * modules/unictype/block-of-tests: New file.
64576         * modules/unictype/block-test-tests: New file.
64577         * modules/unictype/category-C-tests: New file.
64578         * modules/unictype/category-Cc-tests: New file.
64579         * modules/unictype/category-Cf-tests: New file.
64580         * modules/unictype/category-Cn-tests: New file.
64581         * modules/unictype/category-Co-tests: New file.
64582         * modules/unictype/category-Cs-tests: New file.
64583         * modules/unictype/category-L-tests: New file.
64584         * modules/unictype/category-Ll-tests: New file.
64585         * modules/unictype/category-Lm-tests: New file.
64586         * modules/unictype/category-Lo-tests: New file.
64587         * modules/unictype/category-Lt-tests: New file.
64588         * modules/unictype/category-Lu-tests: New file.
64589         * modules/unictype/category-M-tests: New file.
64590         * modules/unictype/category-Mc-tests: New file.
64591         * modules/unictype/category-Me-tests: New file.
64592         * modules/unictype/category-Mn-tests: New file.
64593         * modules/unictype/category-N-tests: New file.
64594         * modules/unictype/category-Nd-tests: New file.
64595         * modules/unictype/category-Nl-tests: New file.
64596         * modules/unictype/category-No-tests: New file.
64597         * modules/unictype/category-P-tests: New file.
64598         * modules/unictype/category-Pc-tests: New file.
64599         * modules/unictype/category-Pd-tests: New file.
64600         * modules/unictype/category-Pe-tests: New file.
64601         * modules/unictype/category-Pf-tests: New file.
64602         * modules/unictype/category-Pi-tests: New file.
64603         * modules/unictype/category-Po-tests: New file.
64604         * modules/unictype/category-Ps-tests: New file.
64605         * modules/unictype/category-S-tests: New file.
64606         * modules/unictype/category-Sc-tests: New file.
64607         * modules/unictype/category-Sk-tests: New file.
64608         * modules/unictype/category-Sm-tests: New file.
64609         * modules/unictype/category-So-tests: New file.
64610         * modules/unictype/category-Z-tests: New file.
64611         * modules/unictype/category-Zl-tests: New file.
64612         * modules/unictype/category-Zp-tests: New file.
64613         * modules/unictype/category-Zs-tests: New file.
64614         * modules/unictype/category-and-not-tests: New file.
64615         * modules/unictype/category-and-tests: New file.
64616         * modules/unictype/category-byname-tests: New file.
64617         * modules/unictype/category-name-tests: New file.
64618         * modules/unictype/category-none-tests: New file.
64619         * modules/unictype/category-of-tests: New file.
64620         * modules/unictype/category-or-tests: New file.
64621         * modules/unictype/category-test-withtable-tests: New file.
64622         * modules/unictype/combining-class-tests: New file.
64623         * modules/unictype/ctype-alnum-tests: New file.
64624         * modules/unictype/ctype-alpha-tests: New file.
64625         * modules/unictype/ctype-blank-tests: New file.
64626         * modules/unictype/ctype-cntrl-tests: New file.
64627         * modules/unictype/ctype-digit-tests: New file.
64628         * modules/unictype/ctype-graph-tests: New file.
64629         * modules/unictype/ctype-lower-tests: New file.
64630         * modules/unictype/ctype-print-tests: New file.
64631         * modules/unictype/ctype-punct-tests: New file.
64632         * modules/unictype/ctype-space-tests: New file.
64633         * modules/unictype/ctype-upper-tests: New file.
64634         * modules/unictype/ctype-xdigit-tests: New file.
64635         * modules/unictype/decimal-digit-tests: New file.
64636         * modules/unictype/digit-tests: New file.
64637         * modules/unictype/mirror-tests: New file.
64638         * modules/unictype/numeric-tests: New file.
64639         * modules/unictype/property-alphabetic-tests: New file.
64640         * modules/unictype/property-ascii-hex-digit-tests: New file.
64641         * modules/unictype/property-bidi-arabic-digit-tests: New file.
64642         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
64643         * modules/unictype/property-bidi-block-separator-tests: New file.
64644         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
64645         * modules/unictype/property-bidi-common-separator-tests: New file.
64646         * modules/unictype/property-bidi-control-tests: New file.
64647         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
64648         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
64649         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
64650         * modules/unictype/property-bidi-european-digit-tests: New file.
64651         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
64652         * modules/unictype/property-bidi-left-to-right-tests: New file.
64653         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
64654         * modules/unictype/property-bidi-other-neutral-tests: New file.
64655         * modules/unictype/property-bidi-pdf-tests: New file.
64656         * modules/unictype/property-bidi-segment-separator-tests: New file.
64657         * modules/unictype/property-bidi-whitespace-tests: New file.
64658         * modules/unictype/property-byname-tests: New file.
64659         * modules/unictype/property-combining-tests: New file.
64660         * modules/unictype/property-composite-tests: New file.
64661         * modules/unictype/property-currency-symbol-tests: New file.
64662         * modules/unictype/property-dash-tests: New file.
64663         * modules/unictype/property-decimal-digit-tests: New file.
64664         * modules/unictype/property-default-ignorable-code-point-tests: New file.
64665         * modules/unictype/property-deprecated-tests: New file.
64666         * modules/unictype/property-diacritic-tests: New file.
64667         * modules/unictype/property-extender-tests: New file.
64668         * modules/unictype/property-format-control-tests: New file.
64669         * modules/unictype/property-grapheme-base-tests: New file.
64670         * modules/unictype/property-grapheme-extend-tests: New file.
64671         * modules/unictype/property-grapheme-link-tests: New file.
64672         * modules/unictype/property-hex-digit-tests: New file.
64673         * modules/unictype/property-hyphen-tests: New file.
64674         * modules/unictype/property-id-continue-tests: New file.
64675         * modules/unictype/property-id-start-tests: New file.
64676         * modules/unictype/property-ideographic-tests: New file.
64677         * modules/unictype/property-ids-binary-operator-tests: New file.
64678         * modules/unictype/property-ids-trinary-operator-tests: New file.
64679         * modules/unictype/property-ignorable-control-tests: New file.
64680         * modules/unictype/property-iso-control-tests: New file.
64681         * modules/unictype/property-join-control-tests: New file.
64682         * modules/unictype/property-left-of-pair-tests: New file.
64683         * modules/unictype/property-line-separator-tests: New file.
64684         * modules/unictype/property-logical-order-exception-tests: New file.
64685         * modules/unictype/property-lowercase-tests: New file.
64686         * modules/unictype/property-math-tests: New file.
64687         * modules/unictype/property-non-break-tests: New file.
64688         * modules/unictype/property-not-a-character-tests: New file.
64689         * modules/unictype/property-numeric-tests: New file.
64690         * modules/unictype/property-other-alphabetic-tests: New file.
64691         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
64692         * modules/unictype/property-other-grapheme-extend-tests: New file.
64693         * modules/unictype/property-other-id-continue-tests: New file.
64694         * modules/unictype/property-other-id-start-tests: New file.
64695         * modules/unictype/property-other-lowercase-tests: New file.
64696         * modules/unictype/property-other-math-tests: New file.
64697         * modules/unictype/property-other-uppercase-tests: New file.
64698         * modules/unictype/property-paired-punctuation-tests: New file.
64699         * modules/unictype/property-paragraph-separator-tests: New file.
64700         * modules/unictype/property-pattern-syntax-tests: New file.
64701         * modules/unictype/property-pattern-white-space-tests: New file.
64702         * modules/unictype/property-private-use-tests: New file.
64703         * modules/unictype/property-punctuation-tests: New file.
64704         * modules/unictype/property-quotation-mark-tests: New file.
64705         * modules/unictype/property-radical-tests: New file.
64706         * modules/unictype/property-sentence-terminal-tests: New file.
64707         * modules/unictype/property-soft-dotted-tests: New file.
64708         * modules/unictype/property-space-tests: New file.
64709         * modules/unictype/property-terminal-punctuation-tests: New file.
64710         * modules/unictype/property-test-tests: New file.
64711         * modules/unictype/property-titlecase-tests: New file.
64712         * modules/unictype/property-unassigned-code-value-tests: New file.
64713         * modules/unictype/property-unified-ideograph-tests: New file.
64714         * modules/unictype/property-uppercase-tests: New file.
64715         * modules/unictype/property-variation-selector-tests: New file.
64716         * modules/unictype/property-white-space-tests: New file.
64717         * modules/unictype/property-xid-continue-tests: New file.
64718         * modules/unictype/property-xid-start-tests: New file.
64719         * modules/unictype/property-zero-width-tests: New file.
64720         * modules/unictype/scripts-tests: New file.
64721         * modules/unictype/syntax-c-ident-tests: New file.
64722         * modules/unictype/syntax-c-whitespace-tests: New file.
64723         * modules/unictype/syntax-java-ident-tests: New file.
64724         * modules/unictype/syntax-java-whitespace-tests: New file.
64725         * tests/unictype/test-bidi_byname.c: New file.
64726         * tests/unictype/test-bidi_name.c: New file.
64727         * tests/unictype/test-bidi_of.c: New file.
64728         * tests/unictype/test-bidi_test.c: New file.
64729         * tests/unictype/test-block_list.c: New file.
64730         * tests/unictype/test-block_of.c: New file.
64731         * tests/unictype/test-block_test.c: New file.
64732         * tests/unictype/test-categ_and.c: New file.
64733         * tests/unictype/test-categ_and_not.c: New file.
64734         * tests/unictype/test-categ_byname.c: New file.
64735         * tests/unictype/test-categ_name.c: New file.
64736         * tests/unictype/test-categ_none.c: New file.
64737         * tests/unictype/test-categ_of.c: New file.
64738         * tests/unictype/test-categ_or.c: New file.
64739         * tests/unictype/test-categ_test_withtable.c: New file.
64740         * tests/unictype/test-combining.c: New file.
64741         * tests/unictype/test-decdigit.c: New file.
64742         * tests/unictype/test-digit.c: New file.
64743         * tests/unictype/test-mirror.c: New file.
64744         * tests/unictype/test-numeric.c: New file.
64745         * tests/unictype/test-pr_byname.c: New file.
64746         * tests/unictype/test-pr_test.c: New file.
64747         * tests/unictype/test-predicate-part1.h: New file.
64748         * tests/unictype/test-predicate-part2.h: New file.
64749         * tests/unictype/test-scripts.c: New file.
64750         * tests/unictype/test-sy_c_ident.c: New file.
64751         * tests/unictype/test-sy_java_ident.c: New file.
64752
64753         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
64754         for Unicode 5.0.0.
64755         * tests/unictype/test-categ_Cc.c: Likewise.
64756         * tests/unictype/test-categ_Cf.c: Likewise.
64757         * tests/unictype/test-categ_Cn.c: Likewise.
64758         * tests/unictype/test-categ_Co.c: Likewise.
64759         * tests/unictype/test-categ_Cs.c: Likewise.
64760         * tests/unictype/test-categ_L.c: Likewise.
64761         * tests/unictype/test-categ_Ll.c: Likewise.
64762         * tests/unictype/test-categ_Lm.c: Likewise.
64763         * tests/unictype/test-categ_Lo.c: Likewise.
64764         * tests/unictype/test-categ_Lt.c: Likewise.
64765         * tests/unictype/test-categ_Lu.c: Likewise.
64766         * tests/unictype/test-categ_M.c: Likewise.
64767         * tests/unictype/test-categ_Mc.c: Likewise.
64768         * tests/unictype/test-categ_Me.c: Likewise.
64769         * tests/unictype/test-categ_Mn.c: Likewise.
64770         * tests/unictype/test-categ_N.c: Likewise.
64771         * tests/unictype/test-categ_Nd.c: Likewise.
64772         * tests/unictype/test-categ_Nl.c: Likewise.
64773         * tests/unictype/test-categ_No.c: Likewise.
64774         * tests/unictype/test-categ_P.c: Likewise.
64775         * tests/unictype/test-categ_Pc.c: Likewise.
64776         * tests/unictype/test-categ_Pd.c: Likewise.
64777         * tests/unictype/test-categ_Pe.c: Likewise.
64778         * tests/unictype/test-categ_Pf.c: Likewise.
64779         * tests/unictype/test-categ_Pi.c: Likewise.
64780         * tests/unictype/test-categ_Po.c: Likewise.
64781         * tests/unictype/test-categ_Ps.c: Likewise.
64782         * tests/unictype/test-categ_S.c: Likewise.
64783         * tests/unictype/test-categ_Sc.c: Likewise.
64784         * tests/unictype/test-categ_Sk.c: Likewise.
64785         * tests/unictype/test-categ_Sm.c: Likewise.
64786         * tests/unictype/test-categ_So.c: Likewise.
64787         * tests/unictype/test-categ_Z.c: Likewise.
64788         * tests/unictype/test-categ_Zl.c: Likewise.
64789         * tests/unictype/test-categ_Zp.c: Likewise.
64790         * tests/unictype/test-categ_Zs.c: Likewise.
64791         * tests/unictype/test-ctype_alnum.c: Likewise.
64792         * tests/unictype/test-ctype_alpha.c: Likewise.
64793         * tests/unictype/test-ctype_blank.c: Likewise.
64794         * tests/unictype/test-ctype_cntrl.c: Likewise.
64795         * tests/unictype/test-ctype_digit.c: Likewise.
64796         * tests/unictype/test-ctype_graph.c: Likewise.
64797         * tests/unictype/test-ctype_lower.c: Likewise.
64798         * tests/unictype/test-ctype_print.c: Likewise.
64799         * tests/unictype/test-ctype_punct.c: Likewise.
64800         * tests/unictype/test-ctype_space.c: Likewise.
64801         * tests/unictype/test-ctype_upper.c: Likewise.
64802         * tests/unictype/test-ctype_xdigit.c: Likewise.
64803         * tests/unictype/test-decdigit.h: Likewise.
64804         * tests/unictype/test-digit.h: Likewise.
64805         * tests/unictype/test-numeric.h: Likewise.
64806         * tests/unictype/test-pr_alphabetic.c: Likewise.
64807         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
64808         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
64809         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
64810         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
64811         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
64812         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
64813         * tests/unictype/test-pr_bidi_control.c: Likewise.
64814         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
64815         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
64816         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
64817         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
64818         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
64819         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
64820         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
64821         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
64822         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
64823         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
64824         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
64825         * tests/unictype/test-pr_combining.c: Likewise.
64826         * tests/unictype/test-pr_composite.c: Likewise.
64827         * tests/unictype/test-pr_currency_symbol.c: Likewise.
64828         * tests/unictype/test-pr_dash.c: Likewise.
64829         * tests/unictype/test-pr_decimal_digit.c: Likewise.
64830         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
64831         * tests/unictype/test-pr_deprecated.c: Likewise.
64832         * tests/unictype/test-pr_diacritic.c: Likewise.
64833         * tests/unictype/test-pr_extender.c: Likewise.
64834         * tests/unictype/test-pr_format_control.c: Likewise.
64835         * tests/unictype/test-pr_grapheme_base.c: Likewise.
64836         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
64837         * tests/unictype/test-pr_grapheme_link.c: Likewise.
64838         * tests/unictype/test-pr_hex_digit.c: Likewise.
64839         * tests/unictype/test-pr_hyphen.c: Likewise.
64840         * tests/unictype/test-pr_id_continue.c: Likewise.
64841         * tests/unictype/test-pr_id_start.c: Likewise.
64842         * tests/unictype/test-pr_ideographic.c: Likewise.
64843         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
64844         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
64845         * tests/unictype/test-pr_ignorable_control.c: Likewise.
64846         * tests/unictype/test-pr_iso_control.c: Likewise.
64847         * tests/unictype/test-pr_join_control.c: Likewise.
64848         * tests/unictype/test-pr_left_of_pair.c: Likewise.
64849         * tests/unictype/test-pr_line_separator.c: Likewise.
64850         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
64851         * tests/unictype/test-pr_lowercase.c: Likewise.
64852         * tests/unictype/test-pr_math.c: Likewise.
64853         * tests/unictype/test-pr_non_break.c: Likewise.
64854         * tests/unictype/test-pr_not_a_character.c: Likewise.
64855         * tests/unictype/test-pr_numeric.c: Likewise.
64856         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
64857         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
64858         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
64859         * tests/unictype/test-pr_other_id_continue.c: Likewise.
64860         * tests/unictype/test-pr_other_id_start.c: Likewise.
64861         * tests/unictype/test-pr_other_lowercase.c: Likewise.
64862         * tests/unictype/test-pr_other_math.c: Likewise.
64863         * tests/unictype/test-pr_other_uppercase.c: Likewise.
64864         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
64865         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
64866         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
64867         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
64868         * tests/unictype/test-pr_private_use.c: Likewise.
64869         * tests/unictype/test-pr_punctuation.c: Likewise.
64870         * tests/unictype/test-pr_quotation_mark.c: Likewise.
64871         * tests/unictype/test-pr_radical.c: Likewise.
64872         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
64873         * tests/unictype/test-pr_soft_dotted.c: Likewise.
64874         * tests/unictype/test-pr_space.c: Likewise.
64875         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
64876         * tests/unictype/test-pr_titlecase.c: Likewise.
64877         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
64878         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
64879         * tests/unictype/test-pr_uppercase.c: Likewise.
64880         * tests/unictype/test-pr_variation_selector.c: Likewise.
64881         * tests/unictype/test-pr_white_space.c: Likewise.
64882         * tests/unictype/test-pr_xid_continue.c: Likewise.
64883         * tests/unictype/test-pr_xid_start.c: Likewise.
64884         * tests/unictype/test-pr_zero_width.c: Likewise.
64885         * tests/unictype/test-sy_c_whitespace.c: Likewise.
64886         * tests/unictype/test-sy_java_whitespace.c: Likewise.
64887
64888 2007-11-12  Bruno Haible  <bruno@clisp.org>
64889
64890         Unicode character classification functions.
64891         * lib/unictype.h: New file.
64892         * modules/unictype/base: New file.
64893         * modules/unictype/category-L: New file.
64894         * modules/unictype/category-Lu: New file.
64895         * modules/unictype/category-Ll: New file.
64896         * modules/unictype/category-Lt: New file.
64897         * modules/unictype/category-Lm: New file.
64898         * modules/unictype/category-Lo: New file.
64899         * modules/unictype/category-M: New file.
64900         * modules/unictype/category-Mn: New file.
64901         * modules/unictype/category-Mc: New file.
64902         * modules/unictype/category-Me: New file.
64903         * modules/unictype/category-N: New file.
64904         * modules/unictype/category-Nd: New file.
64905         * modules/unictype/category-Nl: New file.
64906         * modules/unictype/category-No: New file.
64907         * modules/unictype/category-P: New file.
64908         * modules/unictype/category-Pc: New file.
64909         * modules/unictype/category-Pd: New file.
64910         * modules/unictype/category-Ps: New file.
64911         * modules/unictype/category-Pe: New file.
64912         * modules/unictype/category-Pi: New file.
64913         * modules/unictype/category-Pf: New file.
64914         * modules/unictype/category-Po: New file.
64915         * modules/unictype/category-S: New file.
64916         * modules/unictype/category-Sm: New file.
64917         * modules/unictype/category-Sc: New file.
64918         * modules/unictype/category-Sk: New file.
64919         * modules/unictype/category-So: New file.
64920         * modules/unictype/category-Z: New file.
64921         * modules/unictype/category-Zs: New file.
64922         * modules/unictype/category-Zl: New file.
64923         * modules/unictype/category-Zp: New file.
64924         * modules/unictype/category-C: New file.
64925         * modules/unictype/category-Cc: New file.
64926         * modules/unictype/category-Cf: New file.
64927         * modules/unictype/category-Cs: New file.
64928         * modules/unictype/category-Co: New file.
64929         * modules/unictype/category-Cn: New file.
64930         * modules/unictype/category-or: New file.
64931         * modules/unictype/category-of: New file.
64932         * modules/unictype/category-test: New file.
64933         * modules/unictype/category-test-withtable: New file.
64934         * modules/unictype/category-byname: New file.
64935         * modules/unictype/category-none: New file.
64936         * modules/unictype/category-and: New file.
64937         * modules/unictype/category-and-not: New file.
64938         * modules/unictype/category-name: New file.
64939         * modules/unictype/combining-class: New file.
64940         * modules/unictype/category-all: New file.
64941         * modules/unictype/bidicategory-all: New file.
64942         * modules/unictype/bidicategory-byname: New file.
64943         * modules/unictype/bidicategory-name: New file.
64944         * modules/unictype/bidicategory-of: New file.
64945         * modules/unictype/bidicategory-test: New file.
64946         * modules/unictype/decimal-digit: New file.
64947         * modules/unictype/digit: New file.
64948         * modules/unictype/numeric: New file.
64949         * modules/unictype/mirror: New file.
64950         * modules/unictype/property-white-space: New file.
64951         * modules/unictype/property-alphabetic: New file.
64952         * modules/unictype/property-other-alphabetic: New file.
64953         * modules/unictype/property-not-a-character: New file.
64954         * modules/unictype/property-default-ignorable-code-point: New file.
64955         * modules/unictype/property-other-default-ignorable-code-point: New
64956         file.
64957         * modules/unictype/property-deprecated: New file.
64958         * modules/unictype/property-logical-order-exception: New file.
64959         * modules/unictype/property-variation-selector: New file.
64960         * modules/unictype/property-private-use: New file.
64961         * modules/unictype/property-unassigned-code-value: New file.
64962         * modules/unictype/property-uppercase: New file.
64963         * modules/unictype/property-other-uppercase: New file.
64964         * modules/unictype/property-lowercase: New file.
64965         * modules/unictype/property-other-lowercase: New file.
64966         * modules/unictype/property-titlecase: New file.
64967         * modules/unictype/property-soft-dotted: New file.
64968         * modules/unictype/property-id-start: New file.
64969         * modules/unictype/property-other-id-start: New file.
64970         * modules/unictype/property-id-continue: New file.
64971         * modules/unictype/property-other-id-continue: New file.
64972         * modules/unictype/property-xid-start: New file.
64973         * modules/unictype/property-xid-continue: New file.
64974         * modules/unictype/property-pattern-white-space: New file.
64975         * modules/unictype/property-pattern-syntax: New file.
64976         * modules/unictype/property-join-control: New file.
64977         * modules/unictype/property-grapheme-base: New file.
64978         * modules/unictype/property-grapheme-extend: New file.
64979         * modules/unictype/property-other-grapheme-extend: New file.
64980         * modules/unictype/property-grapheme-link: New file.
64981         * modules/unictype/property-bidi-control: New file.
64982         * modules/unictype/property-bidi-left-to-right: New file.
64983         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
64984         * modules/unictype/property-bidi-arabic-right-to-left: New file.
64985         * modules/unictype/property-bidi-european-digit: New file.
64986         * modules/unictype/property-bidi-eur-num-separator: New file.
64987         * modules/unictype/property-bidi-eur-num-terminator: New file.
64988         * modules/unictype/property-bidi-arabic-digit: New file.
64989         * modules/unictype/property-bidi-common-separator: New file.
64990         * modules/unictype/property-bidi-block-separator: New file.
64991         * modules/unictype/property-bidi-segment-separator: New file.
64992         * modules/unictype/property-bidi-whitespace: New file.
64993         * modules/unictype/property-bidi-non-spacing-mark: New file.
64994         * modules/unictype/property-bidi-boundary-neutral: New file.
64995         * modules/unictype/property-bidi-pdf: New file.
64996         * modules/unictype/property-bidi-embedding-or-override: New file.
64997         * modules/unictype/property-bidi-other-neutral: New file.
64998         * modules/unictype/property-hex-digit: New file.
64999         * modules/unictype/property-ascii-hex-digit: New file.
65000         * modules/unictype/property-ideographic: New file.
65001         * modules/unictype/property-unified-ideograph: New file.
65002         * modules/unictype/property-radical: New file.
65003         * modules/unictype/property-ids-binary-operator: New file.
65004         * modules/unictype/property-ids-trinary-operator: New file.
65005         * modules/unictype/property-zero-width: New file.
65006         * modules/unictype/property-space: New file.
65007         * modules/unictype/property-non-break: New file.
65008         * modules/unictype/property-iso-control: New file.
65009         * modules/unictype/property-format-control: New file.
65010         * modules/unictype/property-dash: New file.
65011         * modules/unictype/property-hyphen: New file.
65012         * modules/unictype/property-punctuation: New file.
65013         * modules/unictype/property-line-separator: New file.
65014         * modules/unictype/property-paragraph-separator: New file.
65015         * modules/unictype/property-quotation-mark: New file.
65016         * modules/unictype/property-sentence-terminal: New file.
65017         * modules/unictype/property-terminal-punctuation: New file.
65018         * modules/unictype/property-currency-symbol: New file.
65019         * modules/unictype/property-math: New file.
65020         * modules/unictype/property-other-math: New file.
65021         * modules/unictype/property-paired-punctuation: New file.
65022         * modules/unictype/property-left-of-pair: New file.
65023         * modules/unictype/property-combining: New file.
65024         * modules/unictype/property-composite: New file.
65025         * modules/unictype/property-decimal-digit: New file.
65026         * modules/unictype/property-numeric: New file.
65027         * modules/unictype/property-diacritic: New file.
65028         * modules/unictype/property-extender: New file.
65029         * modules/unictype/property-ignorable-control: New file.
65030         * modules/unictype/property-test: New file.
65031         * modules/unictype/property-byname: New file.
65032         * modules/unictype/property-all: New file.
65033         * modules/unictype/scripts: New file.
65034         * modules/unictype/scripts-all: New file.
65035         * modules/unictype/block-of: New file.
65036         * modules/unictype/block-test: New file.
65037         * modules/unictype/block-list: New file.
65038         * modules/unictype/block-all: New file.
65039         * modules/unictype/syntax-c-whitespace: New file.
65040         * modules/unictype/syntax-java-whitespace: New file.
65041         * modules/unictype/syntax-c-ident: New file.
65042         * modules/unictype/syntax-java-ident: New file.
65043         * modules/unictype/ctype-alnum: New file.
65044         * modules/unictype/ctype-alpha: New file.
65045         * modules/unictype/ctype-cntrl: New file.
65046         * modules/unictype/ctype-digit: New file.
65047         * modules/unictype/ctype-graph: New file.
65048         * modules/unictype/ctype-lower: New file.
65049         * modules/unictype/ctype-print: New file.
65050         * modules/unictype/ctype-punct: New file.
65051         * modules/unictype/ctype-space: New file.
65052         * modules/unictype/ctype-upper: New file.
65053         * modules/unictype/ctype-xdigit: New file.
65054         * modules/unictype/ctype-blank: New file.
65055         * lib/unictype/bidi_byname.c: New file.
65056         * lib/unictype/bidi_name.c: New file.
65057         * lib/unictype/bidi_of.c: New file.
65058         * lib/unictype/bidi_test.c: New file.
65059         * lib/unictype/bitmap.h: New file.
65060         * lib/unictype/block_test.c: New file.
65061         * lib/unictype/blocks.c: New file.
65062         * lib/unictype/categ_C.c: New file.
65063         * lib/unictype/categ_Cc.c: New file.
65064         * lib/unictype/categ_Cf.c: New file.
65065         * lib/unictype/categ_Cn.c: New file.
65066         * lib/unictype/categ_Co.c: New file.
65067         * lib/unictype/categ_Cs.c: New file.
65068         * lib/unictype/categ_L.c: New file.
65069         * lib/unictype/categ_Ll.c: New file.
65070         * lib/unictype/categ_Lm.c: New file.
65071         * lib/unictype/categ_Lo.c: New file.
65072         * lib/unictype/categ_Lt.c: New file.
65073         * lib/unictype/categ_Lu.c: New file.
65074         * lib/unictype/categ_M.c: New file.
65075         * lib/unictype/categ_Mc.c: New file.
65076         * lib/unictype/categ_Me.c: New file.
65077         * lib/unictype/categ_Mn.c: New file.
65078         * lib/unictype/categ_N.c: New file.
65079         * lib/unictype/categ_Nd.c: New file.
65080         * lib/unictype/categ_Nl.c: New file.
65081         * lib/unictype/categ_No.c: New file.
65082         * lib/unictype/categ_P.c: New file.
65083         * lib/unictype/categ_Pc.c: New file.
65084         * lib/unictype/categ_Pd.c: New file.
65085         * lib/unictype/categ_Pe.c: New file.
65086         * lib/unictype/categ_Pf.c: New file.
65087         * lib/unictype/categ_Pi.c: New file.
65088         * lib/unictype/categ_Po.c: New file.
65089         * lib/unictype/categ_Ps.c: New file.
65090         * lib/unictype/categ_S.c: New file.
65091         * lib/unictype/categ_Sc.c: New file.
65092         * lib/unictype/categ_Sk.c: New file.
65093         * lib/unictype/categ_Sm.c: New file.
65094         * lib/unictype/categ_So.c: New file.
65095         * lib/unictype/categ_Z.c: New file.
65096         * lib/unictype/categ_Zl.c: New file.
65097         * lib/unictype/categ_Zp.c: New file.
65098         * lib/unictype/categ_Zs.c: New file.
65099         * lib/unictype/categ_and.c: New file.
65100         * lib/unictype/categ_and_not.c: New file.
65101         * lib/unictype/categ_byname.c: New file.
65102         * lib/unictype/categ_name.c: New file.
65103         * lib/unictype/categ_none.c: New file.
65104         * lib/unictype/categ_of.c: New file.
65105         * lib/unictype/categ_or.c: New file.
65106         * lib/unictype/categ_test.c: New file.
65107         * lib/unictype/combining.c: New file.
65108         * lib/unictype/ctype_alnum.c: New file.
65109         * lib/unictype/ctype_alpha.c: New file.
65110         * lib/unictype/ctype_blank.c: New file.
65111         * lib/unictype/ctype_cntrl.c: New file.
65112         * lib/unictype/ctype_digit.c: New file.
65113         * lib/unictype/ctype_graph.c: New file.
65114         * lib/unictype/ctype_lower.c: New file.
65115         * lib/unictype/ctype_print.c: New file.
65116         * lib/unictype/ctype_punct.c: New file.
65117         * lib/unictype/ctype_space.c: New file.
65118         * lib/unictype/ctype_upper.c: New file.
65119         * lib/unictype/ctype_xdigit.c: New file.
65120         * lib/unictype/decdigit.c: New file.
65121         * lib/unictype/digit.c: New file.
65122         * lib/unictype/identsyntaxmap.h: New file.
65123         * lib/unictype/mirror.c: New file.
65124         * lib/unictype/numeric.c: New file.
65125         * lib/unictype/pr_alphabetic.c: New file.
65126         * lib/unictype/pr_ascii_hex_digit.c: New file.
65127         * lib/unictype/pr_bidi_arabic_digit.c: New file.
65128         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
65129         * lib/unictype/pr_bidi_block_separator.c: New file.
65130         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
65131         * lib/unictype/pr_bidi_common_separator.c: New file.
65132         * lib/unictype/pr_bidi_control.c: New file.
65133         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
65134         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
65135         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
65136         * lib/unictype/pr_bidi_european_digit.c: New file.
65137         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
65138         * lib/unictype/pr_bidi_left_to_right.c: New file.
65139         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
65140         * lib/unictype/pr_bidi_other_neutral.c: New file.
65141         * lib/unictype/pr_bidi_pdf.c: New file.
65142         * lib/unictype/pr_bidi_segment_separator.c: New file.
65143         * lib/unictype/pr_bidi_whitespace.c: New file.
65144         * lib/unictype/pr_byname.c: New file.
65145         * lib/unictype/pr_byname.gperf: New file.
65146         * lib/unictype/pr_combining.c: New file.
65147         * lib/unictype/pr_composite.c: New file.
65148         * lib/unictype/pr_currency_symbol.c: New file.
65149         * lib/unictype/pr_dash.c: New file.
65150         * lib/unictype/pr_decimal_digit.c: New file.
65151         * lib/unictype/pr_default_ignorable_code_point.c: New file.
65152         * lib/unictype/pr_deprecated.c: New file.
65153         * lib/unictype/pr_diacritic.c: New file.
65154         * lib/unictype/pr_extender.c: New file.
65155         * lib/unictype/pr_format_control.c: New file.
65156         * lib/unictype/pr_grapheme_base.c: New file.
65157         * lib/unictype/pr_grapheme_extend.c: New file.
65158         * lib/unictype/pr_grapheme_link.c: New file.
65159         * lib/unictype/pr_hex_digit.c: New file.
65160         * lib/unictype/pr_hyphen.c: New file.
65161         * lib/unictype/pr_id_continue.c: New file.
65162         * lib/unictype/pr_id_start.c: New file.
65163         * lib/unictype/pr_ideographic.c: New file.
65164         * lib/unictype/pr_ids_binary_operator.c: New file.
65165         * lib/unictype/pr_ids_trinary_operator.c: New file.
65166         * lib/unictype/pr_ignorable_control.c: New file.
65167         * lib/unictype/pr_iso_control.c: New file.
65168         * lib/unictype/pr_join_control.c: New file.
65169         * lib/unictype/pr_left_of_pair.c: New file.
65170         * lib/unictype/pr_line_separator.c: New file.
65171         * lib/unictype/pr_logical_order_exception.c: New file.
65172         * lib/unictype/pr_lowercase.c: New file.
65173         * lib/unictype/pr_math.c: New file.
65174         * lib/unictype/pr_non_break.c: New file.
65175         * lib/unictype/pr_not_a_character.c: New file.
65176         * lib/unictype/pr_numeric.c: New file.
65177         * lib/unictype/pr_other_alphabetic.c: New file.
65178         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
65179         * lib/unictype/pr_other_grapheme_extend.c: New file.
65180         * lib/unictype/pr_other_id_continue.c: New file.
65181         * lib/unictype/pr_other_id_start.c: New file.
65182         * lib/unictype/pr_other_lowercase.c: New file.
65183         * lib/unictype/pr_other_math.c: New file.
65184         * lib/unictype/pr_other_uppercase.c: New file.
65185         * lib/unictype/pr_paired_punctuation.c: New file.
65186         * lib/unictype/pr_paragraph_separator.c: New file.
65187         * lib/unictype/pr_pattern_syntax.c: New file.
65188         * lib/unictype/pr_pattern_white_space.c: New file.
65189         * lib/unictype/pr_private_use.c: New file.
65190         * lib/unictype/pr_punctuation.c: New file.
65191         * lib/unictype/pr_quotation_mark.c: New file.
65192         * lib/unictype/pr_radical.c: New file.
65193         * lib/unictype/pr_sentence_terminal.c: New file.
65194         * lib/unictype/pr_soft_dotted.c: New file.
65195         * lib/unictype/pr_space.c: New file.
65196         * lib/unictype/pr_terminal_punctuation.c: New file.
65197         * lib/unictype/pr_test.c: New file.
65198         * lib/unictype/pr_titlecase.c: New file.
65199         * lib/unictype/pr_unassigned_code_value.c: New file.
65200         * lib/unictype/pr_unified_ideograph.c: New file.
65201         * lib/unictype/pr_uppercase.c: New file.
65202         * lib/unictype/pr_variation_selector.c: New file.
65203         * lib/unictype/pr_white_space.c: New file.
65204         * lib/unictype/pr_xid_continue.c: New file.
65205         * lib/unictype/pr_xid_start.c: New file.
65206         * lib/unictype/pr_zero_width.c: New file.
65207         * lib/unictype/scripts.c: New file.
65208         * lib/unictype/sy_c_ident.c: New file.
65209         * lib/unictype/sy_c_whitespace.c: New file.
65210         * lib/unictype/sy_java_ident.c: New file.
65211         * lib/unictype/sy_java_whitespace.c: New file.
65212
65213         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
65214         Unicode 5.0.0.
65215         * lib/unictype/blocks.h: Likewise.
65216         * lib/unictype/categ_C.h: Likewise.
65217         * lib/unictype/categ_Cc.h: Likewise.
65218         * lib/unictype/categ_Cf.h: Likewise.
65219         * lib/unictype/categ_Cn.h: Likewise.
65220         * lib/unictype/categ_Co.h: Likewise.
65221         * lib/unictype/categ_Cs.h: Likewise.
65222         * lib/unictype/categ_L.h: Likewise.
65223         * lib/unictype/categ_Ll.h: Likewise.
65224         * lib/unictype/categ_Lm.h: Likewise.
65225         * lib/unictype/categ_Lo.h: Likewise.
65226         * lib/unictype/categ_Lt.h: Likewise.
65227         * lib/unictype/categ_Lu.h: Likewise.
65228         * lib/unictype/categ_M.h: Likewise.
65229         * lib/unictype/categ_Mc.h: Likewise.
65230         * lib/unictype/categ_Me.h: Likewise.
65231         * lib/unictype/categ_Mn.h: Likewise.
65232         * lib/unictype/categ_N.h: Likewise.
65233         * lib/unictype/categ_Nd.h: Likewise.
65234         * lib/unictype/categ_Nl.h: Likewise.
65235         * lib/unictype/categ_No.h: Likewise.
65236         * lib/unictype/categ_P.h: Likewise.
65237         * lib/unictype/categ_Pc.h: Likewise.
65238         * lib/unictype/categ_Pd.h: Likewise.
65239         * lib/unictype/categ_Pe.h: Likewise.
65240         * lib/unictype/categ_Pf.h: Likewise.
65241         * lib/unictype/categ_Pi.h: Likewise.
65242         * lib/unictype/categ_Po.h: Likewise.
65243         * lib/unictype/categ_Ps.h: Likewise.
65244         * lib/unictype/categ_S.h: Likewise.
65245         * lib/unictype/categ_Sc.h: Likewise.
65246         * lib/unictype/categ_Sk.h: Likewise.
65247         * lib/unictype/categ_Sm.h: Likewise.
65248         * lib/unictype/categ_So.h: Likewise.
65249         * lib/unictype/categ_Z.h: Likewise.
65250         * lib/unictype/categ_Zl.h: Likewise.
65251         * lib/unictype/categ_Zp.h: Likewise.
65252         * lib/unictype/categ_Zs.h: Likewise.
65253         * lib/unictype/categ_of.h: Likewise.
65254         * lib/unictype/combining.h: Likewise.
65255         * lib/unictype/ctype_alnum.h: Likewise.
65256         * lib/unictype/ctype_alpha.h: Likewise.
65257         * lib/unictype/ctype_blank.h: Likewise.
65258         * lib/unictype/ctype_cntrl.h: Likewise.
65259         * lib/unictype/ctype_digit.h: Likewise.
65260         * lib/unictype/ctype_graph.h: Likewise.
65261         * lib/unictype/ctype_lower.h: Likewise.
65262         * lib/unictype/ctype_print.h: Likewise.
65263         * lib/unictype/ctype_punct.h: Likewise.
65264         * lib/unictype/ctype_space.h: Likewise.
65265         * lib/unictype/ctype_upper.h: Likewise.
65266         * lib/unictype/ctype_xdigit.h: Likewise.
65267         * lib/unictype/decdigit.h: Likewise.
65268         * lib/unictype/digit.h: Likewise.
65269         * lib/unictype/mirror.h: Likewise.
65270         * lib/unictype/numeric.h: Likewise.
65271         * lib/unictype/pr_alphabetic.h: Likewise.
65272         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
65273         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
65274         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
65275         * lib/unictype/pr_bidi_block_separator.h: Likewise.
65276         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
65277         * lib/unictype/pr_bidi_common_separator.h: Likewise.
65278         * lib/unictype/pr_bidi_control.h: Likewise.
65279         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
65280         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
65281         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
65282         * lib/unictype/pr_bidi_european_digit.h: Likewise.
65283         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
65284         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
65285         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
65286         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
65287         * lib/unictype/pr_bidi_pdf.h: Likewise.
65288         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
65289         * lib/unictype/pr_bidi_whitespace.h: Likewise.
65290         * lib/unictype/pr_combining.h: Likewise.
65291         * lib/unictype/pr_composite.h: Likewise.
65292         * lib/unictype/pr_currency_symbol.h: Likewise.
65293         * lib/unictype/pr_dash.h: Likewise.
65294         * lib/unictype/pr_decimal_digit.h: Likewise.
65295         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
65296         * lib/unictype/pr_deprecated.h: Likewise.
65297         * lib/unictype/pr_diacritic.h: Likewise.
65298         * lib/unictype/pr_extender.h: Likewise.
65299         * lib/unictype/pr_format_control.h: Likewise.
65300         * lib/unictype/pr_grapheme_base.h: Likewise.
65301         * lib/unictype/pr_grapheme_extend.h: Likewise.
65302         * lib/unictype/pr_grapheme_link.h: Likewise.
65303         * lib/unictype/pr_hex_digit.h: Likewise.
65304         * lib/unictype/pr_hyphen.h: Likewise.
65305         * lib/unictype/pr_id_continue.h: Likewise.
65306         * lib/unictype/pr_id_start.h: Likewise.
65307         * lib/unictype/pr_ideographic.h: Likewise.
65308         * lib/unictype/pr_ids_binary_operator.h: Likewise.
65309         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
65310         * lib/unictype/pr_ignorable_control.h: Likewise.
65311         * lib/unictype/pr_iso_control.h: Likewise.
65312         * lib/unictype/pr_join_control.h: Likewise.
65313         * lib/unictype/pr_left_of_pair.h: Likewise.
65314         * lib/unictype/pr_line_separator.h: Likewise.
65315         * lib/unictype/pr_logical_order_exception.h: Likewise.
65316         * lib/unictype/pr_lowercase.h: Likewise.
65317         * lib/unictype/pr_math.h: Likewise.
65318         * lib/unictype/pr_non_break.h: Likewise.
65319         * lib/unictype/pr_not_a_character.h: Likewise.
65320         * lib/unictype/pr_numeric.h: Likewise.
65321         * lib/unictype/pr_other_alphabetic.h: Likewise.
65322         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
65323         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
65324         * lib/unictype/pr_other_id_continue.h: Likewise.
65325         * lib/unictype/pr_other_id_start.h: Likewise.
65326         * lib/unictype/pr_other_lowercase.h: Likewise.
65327         * lib/unictype/pr_other_math.h: Likewise.
65328         * lib/unictype/pr_other_uppercase.h: Likewise.
65329         * lib/unictype/pr_paired_punctuation.h: Likewise.
65330         * lib/unictype/pr_paragraph_separator.h: Likewise.
65331         * lib/unictype/pr_pattern_syntax.h: Likewise.
65332         * lib/unictype/pr_pattern_white_space.h: Likewise.
65333         * lib/unictype/pr_private_use.h: Likewise.
65334         * lib/unictype/pr_punctuation.h: Likewise.
65335         * lib/unictype/pr_quotation_mark.h: Likewise.
65336         * lib/unictype/pr_radical.h: Likewise.
65337         * lib/unictype/pr_sentence_terminal.h: Likewise.
65338         * lib/unictype/pr_soft_dotted.h: Likewise.
65339         * lib/unictype/pr_space.h: Likewise.
65340         * lib/unictype/pr_terminal_punctuation.h: Likewise.
65341         * lib/unictype/pr_titlecase.h: Likewise.
65342         * lib/unictype/pr_unassigned_code_value.h: Likewise.
65343         * lib/unictype/pr_unified_ideograph.h: Likewise.
65344         * lib/unictype/pr_uppercase.h: Likewise.
65345         * lib/unictype/pr_variation_selector.h: Likewise.
65346         * lib/unictype/pr_white_space.h: Likewise.
65347         * lib/unictype/pr_xid_continue.h: Likewise.
65348         * lib/unictype/pr_xid_start.h: Likewise.
65349         * lib/unictype/pr_zero_width.h: Likewise.
65350         * lib/unictype/scripts.h: Likewise.
65351         * lib/unictype/scripts_byname.gperf: Likewise.
65352         * lib/unictype/sy_c_ident.h: Likewise.
65353         * lib/unictype/sy_c_whitespace.h: Likewise.
65354         * lib/unictype/sy_java_ident.h: Likewise.
65355         * lib/unictype/sy_java_whitespace.h: Likewise.
65356
65357         * lib/unictype/Makefile: New file.
65358         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
65359         glibc.
65360         * lib/unictype/3level.h: New file, copied from glibc.
65361         * lib/unictype/3levelbit.h: New file.
65362
65363 2007-11-11  Bruno Haible  <bruno@clisp.org>
65364
65365         * modules/gperf: New file.
65366         * modules/iconv_open (Depends-on): Add it.
65367         (Makefile.am): Remove the GPERF definition.
65368
65369 2007-11-11  Bruno Haible  <bruno@clisp.org>
65370
65371         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
65372         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
65373
65374 2007-11-11  Bruno Haible  <bruno@clisp.org>
65375
65376         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
65377         (usage): Remove function.
65378
65379 2007-11-11  Bruno Haible  <bruno@clisp.org>
65380
65381         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
65382         gl_FUNC_CEILF_LIBS.
65383         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
65384         gl_FUNC_CEIL_LIBS.
65385         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
65386         gl_FUNC_CEILL_LIBS.
65387         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
65388         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
65389         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
65390
65391 2007-11-11  Bruno Haible  <bruno@clisp.org>
65392
65393         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
65394         roundf were declared but do not exist on functions.
65395         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
65396         roundl were declared but do not exist on functions.
65397         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
65398         HAVE_FLOORL_AND_CEILL, respectively.
65399         Needed for Sun C on Solaris 10.
65400
65401 2007-11-11  Bruno Haible  <bruno@clisp.org>
65402
65403         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
65404         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
65405         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
65406         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
65407         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
65408         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
65409         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
65410         HAVE_DECL_ROUNDF.
65411         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
65412         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
65413         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
65414         of HAVE_DECL_ROUND*.
65415         * modules/math (Makefile.am): Update.
65416
65417 2007-11-10  Bruno Haible  <bruno@clisp.org>
65418
65419         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
65420         ptrdiff_t as m4/intl.m4.
65421
65422 2007-11-10  Jim Meyering  <meyering@redhat.com>
65423
65424         Avoid link failure for the argmatch test.
65425         * tests/test-argmatch.c (usage): Define function to avoid a link
65426         failure: argmatch_die requires a usage function.
65427
65428 2007-11-09  Bruno Haible  <bruno@clisp.org>
65429
65430         * doc/functions/snprintf.texi: Mention BeOS deficiency.
65431         * doc/functions/vsnprintf.texi: Likewise.
65432         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
65433         with a size argument < 2.
65434
65435 2007-11-09  Bruno Haible  <bruno@clisp.org>
65436
65437         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
65438         buffer. Fixes an inefficiency introduced on 2007-11-03.
65439
65440 2007-11-09  Bruno Haible  <bruno@clisp.org>
65441
65442         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
65443         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
65444
65445 2007-11-08  Jim Meyering  <meyering@redhat.com>
65446
65447         Change cache variable name prefix "jm_" to "gl_" everywhere.
65448         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
65449         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
65450         * m4/uptime.m4: s/gl_/jm_/
65451
65452 2007-11-07  Bruno Haible  <bruno@clisp.org>
65453
65454         Update to GNU gettext 0.17.
65455         * m4/intl.m4: Update to GNU gettext 0.17.
65456         * m4/po.m4: Likewise.
65457         * modules/gettext (Files): Remove m4/ulonglong.m4.
65458         (configure.ac): Require gettext infrastructure from version 0.17.
65459
65460 2007-11-06  Bruno Haible  <bruno@clisp.org>
65461
65462         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
65463         symbolic values are not defined in a public header.
65464         * lib/freadable.c (freadable) [QNX]: Likewise.
65465         * lib/freadahead.c (freadahead) [QNX]: Likewise.
65466         * lib/freading.c (freading) [QNX]: Likewise.
65467         * lib/fseterr.c (fseterr) [QNX]: Likewise.
65468         * lib/fwritable.c (fwritable) [QNX]: Likewise.
65469         * lib/fwriting.c (fwriting) [QNX]: Likewise.
65470         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
65471         Reported by Alain Magloire.
65472
65473         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
65474
65475 2007-11-05  Bruno Haible  <bruno@clisp.org>
65476
65477         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
65478         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
65479         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
65480         Reported by Eric Blake.
65481
65482 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65483             Bruno Haible  <bruno@clisp.org>
65484
65485         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
65486         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
65487         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
65488         (malloc): Undefine also before including <stdlib.h>.
65489         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
65490         Needed on OSF/1 4.0.
65491
65492 2007-11-05  Jim Meyering  <meyering@redhat.com>
65493
65494         git-version-gen: sync from coreutils.
65495         * build-aux/git-version-gen: Add comments.
65496         Change the first '-' to '.' in the snapshot version string,
65497         e.g., 6.9-377-08144 -> 6.9.377-08144
65498         Remove first parameter.
65499         Don't declare a version "-dirty" merely because a time
65500         stamp has changed.
65501
65502 2007-11-04  Bruno Haible  <bruno@clisp.org>
65503
65504         * lib/lock.h: Protect all macro definitions containing an 'if'
65505         statement through a "do { ... } while (0)".
65506         * lib/tls.h: Likewise.
65507
65508 2007-11-04  Bruno Haible  <bruno@clisp.org>
65509
65510         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
65511
65512 2007-11-04  Bruno Haible  <bruno@clisp.org>
65513
65514         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
65515         * modules/fprintf-posix (Depends-on): Add nocrash.
65516         * modules/snprintf-posix (Depends-on): Likewise.
65517         * modules/sprintf-posix (Depends-on): Likewise.
65518         * modules/vasnprintf-posix (Depends-on): Likewise.
65519         * modules/vasprintf-posix (Depends-on): Likewise.
65520         * modules/vfprintf-posix (Depends-on): Likewise.
65521         * modules/vsnprintf-posix (Depends-on): Likewise.
65522         * modules/vsprintf-posix (Depends-on): Likewise.
65523         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
65524         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
65525         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
65526         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
65527         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
65528         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
65529         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
65530
65531 2007-11-04  Bruno Haible  <bruno@clisp.org>
65532
65533         * modules/nocrash: New file.
65534         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
65535         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
65536
65537 2007-11-04  Bruno Haible  <bruno@clisp.org>
65538
65539         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
65540         precision handling.
65541         * tests/test-vasprintf-posix.c (test_function): Likewise.
65542         * tests/test-snprintf-posix.h (test_function): Likewise.
65543         * tests/test-sprintf-posix.h (test_function): Likewise.
65544
65545         Fix *printf behaviour for large precisions on mingw and BeOS.
65546         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
65547         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
65548         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
65549         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
65550         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65551         gl_PRINTF_PRECISION and test its result. Invoke
65552         gl_PREREQ_VASNPRINTF_PRECISION.
65553         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65554         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65555         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65556         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65557         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65558         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65559         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65560         * doc/functions/fprintf.texi: Update.
65561         * doc/functions/printf.texi: Update.
65562         * doc/functions/snprintf.texi: Update.
65563         * doc/functions/sprintf.texi: Update.
65564         * doc/functions/vfprintf.texi: Update.
65565         * doc/functions/vprintf.texi: Update.
65566         * doc/functions/vsnprintf.texi: Update.
65567         * doc/functions/vsprintf.texi: Update.
65568
65569 2007-11-04  Bruno Haible  <bruno@clisp.org>
65570
65571         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
65572
65573 2007-11-04  Bruno Haible  <bruno@clisp.org>
65574
65575         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
65576         Reported by Sylvain Beucler <beuc@gnu.org>.
65577
65578 2007-11-03  Bruno Haible  <bruno@clisp.org>
65579
65580         * tests/test-fprintf-posix2.sh: New file.
65581         * tests/test-fprintf-posix2.c: New file.
65582         * modules/fprintf-posix-tests (Files): Add them.
65583         (TESTS): Add test-fprintf-posix2.sh.
65584         (configure.ac): Check for getrlimit and setrlimit.
65585         (check_PROGRAMS): Add test-fprintf-posix2.
65586
65587         * tests/test-printf-posix2.sh: New file.
65588         * tests/test-printf-posix2.c: New file.
65589         * modules/printf-posix-tests (Files): Add them.
65590         (TESTS): Add test-printf-posix2.sh.
65591         (configure.ac): Check for getrlimit and setrlimit.
65592         (check_PROGRAMS): Add test-printf-posix2.
65593
65594         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
65595         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
65596         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
65597         (decode_double): New function, copied from decode_long_double.
65598         (scale10_round_decimal_decoded): New function, extracted from
65599         scale10_round_decimal_long_double.
65600         (scale10_round_decimal_long_double): Use it.
65601         (scale10_round_decimal_double): New function.
65602         (floorlog10): New function.
65603         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
65604         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
65605         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
65606         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65607         gl_PRINTF_ENOMEM and test its result. Invoke
65608         gl_PREREQ_VASNPRINTF_ENOMEM.
65609         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65610         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65611         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65612         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65613         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65614         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65615         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65616         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
65617         * modules/snprintf-posix (Depends-on): Likewise.
65618         * modules/sprintf-posix (Depends-on): Likewise.
65619         * modules/vasnprintf-posix (Depends-on): Likewise.
65620         * modules/vasprintf-posix (Depends-on): Likewise.
65621         * modules/vfprintf-posix (Depends-on): Likewise.
65622         * modules/vsnprintf-posix (Depends-on): Likewise.
65623         * modules/vsprintf-posix (Depends-on): Likewise.
65624         * doc/functions/fprintf.texi: Update.
65625         * doc/functions/printf.texi: Update.
65626         * doc/functions/snprintf.texi: Update.
65627         * doc/functions/sprintf.texi: Update.
65628         * doc/functions/vfprintf.texi: Update.
65629         * doc/functions/vprintf.texi: Update.
65630         * doc/functions/vsnprintf.texi: Update.
65631         * doc/functions/vsprintf.texi: Update.
65632
65633 2007-11-03  Bruno Haible  <bruno@clisp.org>
65634
65635         * modules/frexp-nolibm-tests: New file.
65636
65637         * modules/frexp-nolibm: New file.
65638         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
65639
65640 2007-11-03  Bruno Haible  <bruno@clisp.org>
65641
65642         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
65643         value is C99 compliant.
65644         Needed for OSF/1 5.1.
65645
65646 2007-11-03  Bruno Haible  <bruno@clisp.org>
65647
65648         Fix out-of-memory handling of vasnprintf.
65649         * lib/printf-parse.c: Include <errno.h>.
65650         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
65651         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
65652         is already set.
65653
65654 2007-11-02  Eric Blake  <ebb9@byu.net>
65655
65656         Fix tests on cygwin.
65657         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
65658
65659 2007-11-01  Bruno Haible  <bruno@clisp.org>
65660
65661         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
65662         warning.
65663         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
65664         needed for POSIX compatibility.
65665
65666 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
65667
65668         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
65669         for compatibility with GNU.
65670
65671 2007-11-01  Bruno Haible  <bruno@clisp.org>
65672
65673         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
65674         (putenv): Renamed from rpl_putenv. Change argument type from
65675         'const char *' to 'char *'.
65676         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
65677         of defining putenv in config.h, just set REPLACE_PUTENV.
65678         * modules/putenv (Depends-on): Add stdlib.
65679         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
65680         (Include): Use <stdlib.h>.
65681         * lib/stdlib.in.h (putenv): New declaration.
65682         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
65683         REPLACE_PUTENV.
65684         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
65685         REPLACE_PUTENV.
65686         Needed for MacOS X 10.5.0.
65687         Reported by Peter O'Gorman <peter@pogma.com>.
65688
65689 2007-11-01  Jim Meyering  <meyering@redhat.com>
65690
65691         Treat an empty date string exactly like "0".
65692         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
65693         if the remaining date string (to be parsed) is empty, use "0".
65694         Reported by Mischa Molhoek and discussed in this thread:
65695         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
65696
65697 2007-10-31  Bruno Haible  <bruno@clisp.org>
65698
65699         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
65700         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
65701         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
65702         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
65703         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
65704         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
65705
65706 2007-10-31  Bruno Haible  <bruno@clisp.org>
65707
65708         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
65709         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
65710         (AC_TYPE_LONG_LONG_INT): Use it.
65711         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
65712         it as well.
65713         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
65714         to m4/longlong.m4.
65715         * modules/stdint (Files): Remove m4/ulonglong.m4.
65716         * modules/strtoull (Files): Use m4/longlong.m4 instead of
65717         m4/ulonglong.m4.
65718         * modules/strtoumax (Files): Likewise.
65719
65720 2007-10-30  Bruno Haible  <bruno@clisp.org>
65721
65722         * modules/xvasprintf-posix: New file.
65723         Suggested by Eric Blake.
65724
65725 2007-10-30  Bruno Haible  <bruno@clisp.org>
65726
65727         * modules/xprintf-posix-tests: New file.
65728         * tests/test-xprintf-posix.sh: New file.
65729         * tests/test-xprintf-posix.c: New file.
65730         * tests/test-xfprintf-posix.c: New file.
65731
65732         * modules/xprintf-posix: New file.
65733
65734 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65735
65736         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
65737         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
65738         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
65739
65740 2007-10-29  Bruno Haible  <bruno@clisp.org>
65741
65742         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
65743         contain the special marker '_cv_'.
65744         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
65745         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
65746         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
65747         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
65748         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
65749         Reported by Ralf Wildenhues.
65750
65751 2007-10-29  Bruno Haible  <bruno@clisp.org>
65752
65753         * gnulib-tool (func_import): When --lgpl is not specified, set
65754         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
65755         GPLv3.
65756         Reported by Simon Josefsson.
65757
65758 2007-10-28  Bruno Haible  <bruno@clisp.org>
65759
65760         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
65761         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
65762         HAVE_DECL_ISFINITE.
65763         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
65764         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
65765         HAVE_DECL_ISFINITE.
65766
65767 2007-10-28  Bruno Haible  <bruno@clisp.org>
65768
65769         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
65770         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
65771
65772 2007-10-28  Bruno Haible  <bruno@clisp.org>
65773
65774         Fix link errors with Sun C 5.0 on Solaris 10.
65775         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
65776         function is declared but not present in the compiler's libm.
65777         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
65778         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
65779         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
65780         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
65781         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
65782         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
65783         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
65784         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
65785         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
65786         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
65787         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
65788         HAVE_DECL_FLOORL.
65789
65790 2007-10-28  Bruno Haible  <bruno@clisp.org>
65791
65792         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
65793         gl_FUNC_FLOORL. Cache the result.
65794         (gl_FUNC_FLOORL): Use it.
65795         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
65796         gl_FUNC_CEILL. Cache the result.
65797         (gl_FUNC_CEILL): Use it.
65798
65799         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
65800         gl_FUNC_FLOOR. Cache the result.
65801         (gl_FUNC_FLOOR): Use it.
65802         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
65803         gl_FUNC_CEIL. Cache the result.
65804         (gl_FUNC_CEIL): Use it.
65805
65806         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
65807         gl_FUNC_FLOORF. Cache the result.
65808         (gl_FUNC_FLOORF): Use it.
65809         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
65810         gl_FUNC_CEILF. Cache the result.
65811         (gl_FUNC_CEILF): Use it.
65812
65813 2007-10-28  Bruno Haible  <bruno@clisp.org>
65814
65815         * gnulib-tool: Allow specifying the LGPL version number through
65816         --lgpl=2 or --lgpl=3.
65817         (func_usage): Document --lgpl with argument.
65818         Handle --lgpl=... arguments.
65819         (func_import): Recognize also gl_LGPL calls with an argument. When
65820         --lgpl=2 is used and the module's license is just LGPL, report an
65821         error. Set sed_transform_lib_file according to the lgpl variable. In
65822         the generated files, use --lgpl or gl_LGPL invocations with argument,
65823         if necessary.
65824         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
65825         an LGPv2+ license.
65826         * doc/gnulib-tool.texi (Modified imports): Update explanation of
65827         gl_LGPL macro.
65828
65829 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65830             Bruno Haible  <bruno@clisp.org>
65831
65832         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
65833         (u16_uctomb_aux): Likewise.
65834         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
65835         !HAVE_INLINE.
65836         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
65837
65838 2007-10-28  Bruno Haible  <bruno@clisp.org>
65839
65840         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
65841         Invoke AM_GETTEXT_OPTION if it exists.
65842         * modules/vasprintf: Likewise.
65843         * modules/verror: Likewise.
65844         * modules/xprintf: Likewise.
65845         * modules/xvasprintf: Likewise.
65846
65847 2007-10-27  Ben Pfaff  <blp@gnu.org>
65848
65849         * lib/math.in.h: Define isfinite macro and prototypes for
65850         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
65851         implementations.
65852         * m4/math_h.m4: New substitutions for isfinite module.
65853         * lib/isfinite.c: New file.
65854         * m4/isfinite.m4: New file.
65855         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
65856         * modules/isfinite: New file.
65857         * modules/isfinite-tests: New file.
65858         * tests/tests-isfinite.c: New file.
65859         * doc/functions/isfinite.texi: Mention isfinite module.
65860         * MODULES.html.sh: Mention new module.
65861
65862 2007-10-27  Ben Pfaff  <blp@gnu.org>
65863
65864         Ralf Wildenhues reported that Tru64 4.0D declares the round
65865         functions but does not have definitions.
65866         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
65867         cannot be found in any library, set the output variable to
65868         "missing" instead of "".
65869         * m4/round.m4: Also use our substitute if we cannot find round in
65870         any library, even if it is declared.
65871         * m4/roundf.m4: Likewise for roundf.
65872         * m4/roundl.m4: Likewise for roundl.
65873         * lib/math.in.h: Undefine roundf, round, roundl before defining
65874         their replacements, to allow for hypothetical systems where these
65875         may be defined as macros but not available in libraries.
65876
65877 2007-10-27  Bruno Haible  <bruno@clisp.org>
65878
65879         * doc/gnulib.texi: Invoke @firstparagraphindent.
65880         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
65881         changes in gnulib.
65882         (Source changes): New section.
65883
65884 2007-10-26  Bruno Haible  <bruno@clisp.org>
65885
65886         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
65887         borrowed from autoconf.
65888
65889 2007-10-26  Bruno Haible  <bruno@clisp.org>
65890
65891         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
65892         strerror returned the empty string. Needed on HP-UX 11.00.
65893
65894 2007-10-24  Micah Cowan  <micah@cowan.name>
65895
65896         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
65897         * build-aux/bootstrap: Remove support for now-unnecessary option,
65898         --cvs-user, and envvars CVS_USER, CVS_RSH.
65899
65900 2007-10-24  Jim Meyering  <meyering@redhat.com>
65901
65902         Avoid diagnostics from sha1sum when there is no cached checksum.
65903         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
65904         if the po.s1 file hasn't been created yet.
65905
65906         * build-aux/bootstrap: Sync from coreutils:
65907         2007-10-24  Jim Meyering  <meyering@redhat.com>
65908         Get gnulib from the git repository, not from an obsolete cvs one.
65909         * build-aux/bootstrap: Suggestion from Micah Cowan.
65910         2007-10-04  Jim Meyering  <jim@meyering.net>
65911         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
65912         (update_po_files): Work also when there are no .po files in po/.
65913
65914 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
65915
65916         * README: Append ".git" to git and cg examples.
65917         Problem reported by Benoit Sigoure.
65918
65919 2007-10-23  Micah Cowan  <micah@cowan.name>
65920
65921         * users.txt: Add wget.
65922
65923 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65924
65925         Fix linking of some unistdio tests on FreeBSD.
65926         * modules/unistdio/u16-vsnprintf-tests
65927         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
65928         * modules/unistdio/u16-vsprintf-tests
65929         (test_u16_vsnprintf1_LDADD): Likewise.
65930         * modules/unistdio/u32-vsnprintf-tests
65931         (test_u32_vsnprintf1_LDADD): Likewise.
65932         * modules/unistdio/u32-vsprintf-tests
65933         (test_u32_vsprintf1_LDADD): Likewise.
65934         * modules/unistdio/u8-vsnprintf-tests
65935         (test_u8_vsnprintf1_LDADD): Likewise.
65936         * modules/unistdio/u8-vsprintf-tests
65937         (test_u8_vsprintf1_LDADD): Likewise.
65938         * modules/unistdio/ulc-vsnprintf-tests
65939         (test_ulc_vsnprintf1_LDADD): Likewise.
65940         * modules/unistdio/ulc-vsprintf-tests
65941         (test_ulc_vsprintf1_LDADD): Likewise.
65942
65943         Fix linking of some uniconv tests on FreeBSD.
65944         * modules/uniconv/u16-conv-from-enc-tests
65945         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
65946         * modules/uniconv/u16-conv-to-enc-tests
65947         (test_u16_conv_to_enc_LDADD): Likewise.
65948         * modules/uniconv/u16-strconv-from-enc-tests
65949         (test_u16_strconv_from_enc_LDADD): Likewise.
65950         * modules/uniconv/u16-strconv-to-enc-tests
65951         (test_u16_strconv_to_enc_LDADD): Likewise.
65952         * modules/uniconv/u32-conv-from-enc-tests
65953         (test_u32_conv_from_enc_LDADD): Likewise.
65954         * modules/uniconv/u32-conv-to-enc-tests
65955         (test_u32_conv_to_enc_LDADD): Likewise.
65956         * modules/uniconv/u32-strconv-from-enc-tests
65957         (test_u32_strconv_from_enc_LDADD): Likewise.
65958         * modules/uniconv/u32-strconv-to-enc-tests
65959         (test_u32_strconv_to_enc_LDADD): Likewise.
65960         * modules/uniconv/u8-conv-from-enc-tests
65961         (test_u8_conv_from_enc_LDADD): Likewise.
65962         * modules/uniconv/u8-conv-to-enc-tests
65963         (test_u8_conv_to_enc_LDADD): Likewise.
65964         * modules/uniconv/u8-strconv-from-enc-tests
65965         (test_u8_strconv_from_enc_LDADD): Likewise.
65966         * modules/uniconv/u8-strconv-to-enc-tests
65967         (test_u8_strconv_to_enc_LDADD): Likewise.
65968
65969 2007-10-22  Bruno Haible  <bruno@clisp.org>
65970
65971         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
65972         size.
65973
65974 2007-10-22  Eric Blake  <ebb9@byu.net>
65975
65976         Tweak x*printf documentation.
65977         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
65978         variable name and comments.
65979         Suggested by Bruno Haible.
65980
65981 2007-10-22  Bruno Haible  <bruno@clisp.org>
65982
65983         * lib/acl.c (copy_acl): Fix file name in comment.
65984
65985 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
65986
65987         Fix Tru64 problem with stdbool.h.
65988         * lib/stdbool.in.h (false, true):
65989         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
65990         Don't declare as an enum in this situation; it runs afoul of Tru64.
65991         Problem reported by Steven M. Schweda in
65992         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
65993
65994 2007-10-22  Eric Blake  <ebb9@byu.net>
65995
65996         Also wrap vf?printf.
65997         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
65998         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
65999         (xvprintf, xvfprintf): New functions.
66000
66001 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66002
66003         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
66004         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
66005
66006         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
66007         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
66008
66009 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
66010
66011         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
66012         by Bruno Haible.
66013
66014 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66015
66016         * lib/getloadavg.c
66017         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
66018         Undef `sys' after including sys/table.h, for Tru64 4.0D.
66019
66020         * tests/test-i-ring.c: Work for C89.
66021
66022 2007-10-22  Bruno Haible  <bruno@clisp.org>
66023
66024         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
66025         -1u, in preprocessor expression, so that we don't test for the bug
66026         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
66027         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
66028
66029 2007-10-22  Eric Blake  <ebb9@byu.net>
66030
66031         * tests/test-yesno.sh: Silence stderr during test.
66032
66033 2007-10-22  Simon Josefsson  <simon@josefsson.org>
66034
66035         * modules/crypto/gc-camellia: New file.
66036
66037         * m4/gc-camellia.m4: New file.
66038
66039         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
66040
66041         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
66042
66043 2007-10-22  Simon Josefsson  <simon@josefsson.org>
66044
66045         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
66046         --help to stdout.  Reported by sms@antinode.org (Steven
66047         M. Schweda).
66048
66049 2007-10-22  Simon Josefsson  <simon@josefsson.org>
66050
66051         * users.txt: Fix link to libksba.
66052
66053 2007-10-21  Ben Pfaff  <blp@gnu.org>
66054
66055         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
66056         round.c roundf implementation that depends on floorf and ceilf to
66057         be tested unconditionally.
66058
66059 2007-10-21  Ben Pfaff  <blp@gnu.org>
66060
66061         * m4/check-libm-func.m4: Removed.
66062         * m4/check-math-lib.m4: New file.
66063         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
66064         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
66065         definition and lack of AC_LIBOBJ([roundf]).
66066         * m4/roundl.m4: Ditto, and similarly for roundl.
66067         * modules/round: Reference new m4 file.
66068         * modules/roundf: Ditto.
66069         * modules/roundl: Ditto.
66070         * tests/test-round2.c (main): Use ROUND instead of round.
66071         Bug report from Bruno Haible.
66072
66073 2007-10-21  Bruno Haible  <bruno@clisp.org>
66074
66075         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
66076         context.
66077
66078 2007-10-21  Bruno Haible  <bruno@clisp.org>
66079
66080         * tests/test-wcwidth.c (main): Allow negative result for some control
66081         characters.
66082
66083         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
66084         Needed on OSF/1 5.1.
66085
66086 2007-10-21  Bruno Haible  <bruno@clisp.org>
66087
66088         * tests/test-floorf1.c: Include isnanf.h.
66089         (main): Use isnanf() instead of isnan().
66090         * tests/test-ceilf1.c: Include isnanf.h.
66091         (main): Use isnanf() instead of isnan().
66092         * tests/test-truncf1.c: Include isnanf.h.
66093         (main): Use isnanf() instead of isnan().
66094         * tests/test-roundf1.c: Include isnanf.h.
66095         (main): Use isnanf() instead of isnan().
66096
66097 2007-10-21  Eric Blake  <ebb9@byu.net>
66098
66099         * users.txt: Update URL for m4.
66100
66101 2007-10-21  Bruno Haible  <bruno@clisp.org>
66102
66103         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
66104
66105 2007-10-21  Bruno Haible  <bruno@clisp.org>
66106
66107         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
66108         Git's management files if the CVS files are not present.
66109
66110 2007-10-20  Bruno Haible  <bruno@clisp.org>
66111
66112         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
66113         gcc-3.4.x.
66114
66115 2007-10-20  Ben Pfaff  <blp@gnu.org>
66116
66117         * lib/math.in.h: Declare round, roundf, roundl if we are providing
66118         implementations.
66119         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
66120         * lib/round.c: New file.
66121         * lib/roundf.c: New file.
66122         * lib/roundl.c: New file.
66123         * m4/round.m4: New file.
66124         * m4/roundf.m4: New file.
66125         * m4/roundl.m4: New file.
66126         * m4/check-libm-func-m4: New file.
66127         * modules/math: Replace round, roundf, roundl related @VARS@ in
66128         math.in.h.
66129         * modules/round: New file.
66130         * modules/round-tests: New file.
66131         * modules/roundf: New file.
66132         * modules/roundf-tests: New file.
66133         * modules/roundl: New file.
66134         * modules/roundl-tests: New file.
66135         * tests/test-round1.c: New file.
66136         * tests/test-round2.c: New file.
66137         * tests/test-roundf1.c: New file.
66138         * tests/test-roundf2.c: New file.
66139         * tests/test-roundl.c: New file.
66140         * doc/functions/round.texi: Mention round module.
66141         * doc/functions/roundf.texi: Mention roundf module.
66142         * doc/functions/roundl.texi: Mention roundl module.
66143         * MODULES.html.sh: Mention new modules.
66144         Thanks to Bruno Haible for suggestions.
66145
66146 2007-10-20  Jim Meyering  <meyering@redhat.com>
66147
66148         * lib/xprintf.c: Include <config.h> unconditionally.
66149
66150         Change xprintf's license to GPL.
66151         * modules/xprintf (License): s/LGPL/GPL/, since this module
66152         depends on modules (exit and exitfail) which are GPL.
66153         Suggestion from Bruno Haible.
66154
66155         xprintf fixes.
66156         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
66157         Use a clearer diagnostic.
66158         Patch from Bruno Haible.
66159
66160 2007-10-20  Bruno Haible  <bruno@clisp.org>
66161
66162         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
66163         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
66164         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66165
66166 2007-10-20  Bruno Haible  <bruno@clisp.org>
66167
66168         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
66169         precision in the comparison result > x - 1 or similar.
66170         * tests/test-ceilf2.c (correct_result_p): Likewise.
66171         * tests/test-truncf2.c (correct_result_p): Likewise.
66172         * tests/test-trunc2.c (correct_result_p): Likewise.
66173         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66174
66175 2007-10-20  Bruno Haible  <bruno@clisp.org>
66176
66177         * modules/ceil: New file.
66178         * m4/ceil.m4: New file.
66179         * doc/functions/ceil.texi: Mention the 'ceil' module.
66180
66181 2007-10-20  Bruno Haible  <bruno@clisp.org>
66182
66183         * modules/floor: New file.
66184         * m4/floor.m4: New file.
66185         * doc/functions/floor.texi: Mention the 'floor' module.
66186
66187 2007-10-20  Bruno Haible  <bruno@clisp.org>
66188
66189         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
66190         of %a.
66191         * modules/floorf-tests (Depends-on): Likewise.
66192         * modules/truncf-tests (Depends-on): Likewise.
66193         * modules/trunc-tests (Depends-on): Likewise.
66194         Reported by Ben Pfaff.
66195
66196 2007-10-19  Jim Meyering  <meyering@redhat.com>
66197
66198         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
66199         Don't bother testing specific errno values.  Just test ferror.
66200
66201         New module: xprintf
66202         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
66203
66204 2007-10-19  Bruno Haible  <bruno@clisp.org>
66205
66206         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
66207         syntax.
66208         * modules/javaexec (Makefile.am): Likewise.
66209         * modules/relocatable-prog (Makefile.am): Likewise.
66210         Suggested by Jim Meyering.
66211
66212 2007-10-18  Bruno Haible  <bruno@clisp.org>
66213
66214         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
66215         Reported by Jim Meyering.
66216
66217 2007-10-18  Eric Blake  <ebb9@byu.net>
66218
66219         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
66220
66221 2007-10-18  Bruno Haible  <bruno@clisp.org>
66222
66223         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
66224         the format string into writable memory. Needed in Fortify conditions.
66225
66226 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
66227             Bruno Haible  <bruno@clisp.org>
66228
66229         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
66230         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
66231         * modules/trim (Depends-on): Add mbchar.
66232         (configure.ac): Add gl_FUNC_MBRTOWC.
66233         (Makefile.am): Augment lib_SOURCES.
66234
66235 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
66236
66237         Modify glob.c to use fstatat and dirfd, to simplify it.
66238         Suggested by Eric Blake.
66239         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
66240         Don't include <stdbool.h>; not used.
66241         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
66242         (link_exists_p): Simplify implementation, since we can now assume
66243         dirfd and fstatat.
66244         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
66245
66246 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66247
66248         * gnulib-tool (func_get_dependencies): Fix sed script to
66249         match only tests.
66250
66251 2007-10-17  Bruno Haible  <bruno@clisp.org>
66252
66253         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
66254         allow locale names without encoding suffix.
66255         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
66256         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
66257
66258 2007-10-16  Bruno Haible  <bruno@clisp.org>
66259
66260         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
66261         * lib/getgroups.c (getgroups): Likewise.
66262         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
66263
66264 2007-10-16  Bruno Haible  <bruno@clisp.org>
66265
66266         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
66267         * modules/malloc-posix (License): Likewise.
66268         * modules/realloc-posix (License): Likewise.
66269         * modules/calloc-posix (License): Likewise.
66270         * modules/intprops (License): Change from GPL to LGPL, with
66271         Paul Eggert's approval.
66272
66273 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
66274
66275         Merge glibc changes into lib/glob.c.
66276
66277         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
66278         2007-10-15 04:59:03 UTC.  Here are the changes:
66279
66280         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
66281
66282         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
66283
66284         * lib/glob.c: Add some branch prediction throughout.
66285
66286         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
66287
66288         [BZ #5103]
66289         * lib/glob.c (glob): Recognize patterns starting \/.
66290
66291         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
66292
66293         [BZ #3996]
66294         * lib/glob.c (attribute_hidden): Define if not defined.
66295         (glob): Unescape dirname, filename or username when needed and not
66296         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
66297         is NULL.  Handle unescaped [ in pattern without closing ].
66298         Don't pass GLOB_CHECK down to recursive glob for directories.
66299         (__glob_pattern_type): New function.
66300         (__glob_pattern_p): Implement using __glob_pattern_type.
66301         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
66302         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
66303         Remove unreachable code.
66304
66305         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
66306
66307         * lib/glob.c (glob_in_dir): Add some comments and asserts to
66308         explain why there are no leaks.
66309
66310         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
66311
66312         [BZ #3253]
66313         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
66314         time, rather allocate increasingly bigger arrays of pointers, if
66315         possible with alloca, if too large with malloc.
66316
66317 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
66318
66319         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
66320         Problem reported by H.Merijn Brand in
66321         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
66322         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
66323         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
66324
66325 2007-10-15  Bruno Haible  <bruno@clisp.org>
66326
66327         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
66328         with explicit rpl_ prefix.
66329         * lib/fopen.c (fopen): Likewise.
66330         * lib/freopen.c (freopen): Likewise.
66331         * lib/iconv.c (iconv): Likewise.
66332         * lib/iconv_close.c (iconv_close): Likewise.
66333
66334 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66335
66336         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
66337
66338 2007-10-15  Bruno Haible  <bruno@clisp.org>
66339
66340         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
66341         <stddef.h> instead of <stdlib.h> since we only need NULL.
66342         Reported by Ben Pfaff <blp@cs.stanford.edu>.
66343
66344 2007-10-15  Bruno Haible  <bruno@clisp.org>
66345
66346         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
66347         Replace paragraph talking about LIBOBJS.
66348         Reported by Colin Watson <cjwatson@debian.org>.
66349
66350 2007-10-15  Bruno Haible  <bruno@clisp.org>
66351
66352         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
66353         <stdlib.h> before using NULL.
66354
66355 2007-10-15  Simon Josefsson  <simon@josefsson.org>
66356
66357         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
66358         Reported by Albert Chin <china@thewrittenword.com>.
66359
66360 2007-10-14  Bruno Haible  <bruno@clisp.org>
66361
66362         * modules/iconv_open-utf-tests: New file.
66363         * tests/test-iconv-utf.c: New file.
66364
66365         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
66366         * modules/iconv_open-utf: New file.
66367         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
66368         (iconv, iconv_close): New declarations.
66369         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
66370         be defined.
66371         (iconv_open): Add special handling of conversion between UTF-8 and
66372         UTF-{16,32}{BE,LE}.
66373         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
66374         * lib/iconv_close.c: New file.
66375         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
66376         gl_FUNC_ICONV_OPEN.
66377         (gl_FUNC_ICONV_OPEN): Use it.
66378         (gl_FUNC_ICONV_OPEN_UTF): New macro.
66379         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
66380         and REPLACE_ICONV_UTF.
66381         * modules/iconv_open (Depends-on): Add c-strcase.
66382         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
66383         ICONV_CONST.
66384         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
66385
66386 2007-10-13  Albert Chin  <china@thewrittenword.com>
66387             Bruno Haible  <bruno@clisp.org>
66388
66389         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
66390         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
66391
66392 2007-10-13  Bruno Haible  <bruno@clisp.org>
66393
66394         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
66395         defined, use the ISO C99 inline semantics.
66396         * lib/argp.h (ARGP_EI): Likewise.
66397
66398 2007-10-13  Bruno Haible  <bruno@clisp.org>
66399
66400         Handle 'inline' change in gcc 4.3.0.
66401         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
66402         argp_fmtstream_write, argp_fmtstream_set_lmargin,
66403         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
66404         argp_fmtstream_point): Disable 'extern' declaration if the function
66405         definition is going to be provided inline.
66406         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
66407         semantics, not the ISO C99 inline semantics.
66408         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
66409         'extern' declaration if the function definition is going to be provided
66410         inline.
66411         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
66412         the GNU C inline semantics, not the ISO C99 inline semantics. With
66413         GCC 4.2, avoid a warning.
66414
66415 2007-10-13  Bruno Haible  <bruno@clisp.org>
66416
66417         * lib/freading.h (freading): Enable the use of __freading for
66418         glibc >= 2.7.
66419         * lib/freading.c (freading): Likewise.
66420
66421 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
66422
66423         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
66424         "warning: C99 inline functions are not supported; using GNU89".
66425
66426 2007-10-12  Bruno Haible  <bruno@clisp.org>
66427
66428         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
66429         of 2.
66430         * tests/test-ceilf2.c: New file.
66431         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
66432
66433         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
66434         * modules/ceilf-tests: Update.
66435
66436 2007-10-12  Bruno Haible  <bruno@clisp.org>
66437
66438         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
66439         of 2.
66440         * tests/test-floorf2.c: New file.
66441         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
66442
66443         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
66444         * modules/floorf-tests: Update.
66445
66446 2007-10-12  Bruno Haible  <bruno@clisp.org>
66447
66448         * tests/test-trunc2.c: New file.
66449         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
66450
66451         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
66452         * modules/trunc-tests: Update.
66453
66454 2007-10-12  Bruno Haible  <bruno@clisp.org>
66455
66456         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
66457         of 2.
66458         * tests/test-truncf2.c: New file.
66459         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
66460
66461         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
66462         * modules/truncf-tests: Update.
66463
66464 2007-10-11  Eric Blake  <ebb9@byu.net>
66465
66466         Don't claim strerror is broken on Interix.
66467         * doc/functions/strerror.texi (strerror): Known broken systems are
66468         now Solaris 8, and not Interix.
66469         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
66470         Interix on cross-compile.
66471         Reported by Martin Koeppe in
66472         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
66473
66474 2007-10-11  Bruno Haible  <bruno@clisp.org>
66475
66476         * modules/i-ring-tests: New file.
66477         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
66478         instead of assert.
66479
66480 2007-10-11  Bruno Haible  <bruno@clisp.org>
66481
66482         * modules/filenamecat-tests: New file.
66483         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
66484         * lib/filenamecat.c: Remove test code.
66485
66486 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
66487
66488         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
66489
66490         * lib/strerror.c: Include <string.h> always, to test interface,
66491         and to remove the need for the dummy.
66492         Include intprops.h to compute width instead of doing it ourselves
66493         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
66494         (strerror): Define it to return NULL if there's no system strerror.
66495         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
66496         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
66497         ancient pre-strerror Unix systems well any more.  Saying "unknown
66498         system error" is enough.
66499         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
66500         simpler strerror.c implementation.
66501         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
66502         Simplify the tests to reflect the simpler strerror implementation.
66503         * modules/strerror (Depends-on): Add intprops.
66504
66505 2007-10-09  Eric Blake  <ebb9@byu.net>
66506
66507         Silence test-fpending.
66508         * modules/fpending-tests (Files): Add wrapper script.
66509         * tests/test-fpending.sh: New file.
66510
66511 2007-10-09  Bruno Haible  <bruno@clisp.org>
66512
66513         * MODULES.html.sh (func_module): Don't create a hyperlink for
66514         function names like 'printf_frexp'.
66515         (Misc): Add crc, memxor.
66516         (Characteristics of floating types): New section.
66517         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
66518         isnanf-nolibm, signbit, trunc, truncf, truncl.
66519         (Enhancements for ISO C 99 functions): New subsection Input/output.
66520         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
66521         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
66522         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
66523         (Compatibility checks for POSIX:2001 functions): Add clock-time.
66524         (Enhancements for POSIX:2001 functions): Add chdir-long.
66525         (File system functions): Add areadlink, chdir-safer, read-file.
66526         Remove cycle-check.
66527         (File system as inode set): New section.
66528         (Date and time): Add gethrxtime.
66529         (Multithreading): Add openmp.
66530         (Internationalization functions): Add localename.
66531         (Unicode string functions): Add unistr/u*-mbsnlen.
66532         (Support for maintaining and releasing projects): Add git-version-gen.
66533         (Lone files): Remove directories.
66534
66535 2007-10-08  Ben Pfaff  <blp@gnu.org>
66536
66537         * lib/xmalloca.h: Fix typo in comment.
66538
66539 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
66540
66541         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
66542         when avoiding problems with integer overflow.  Use a portable test
66543         instead.
66544
66545 2007-10-08  Simon Josefsson  <simon@josefsson.org>
66546
66547         * modules/dummy (License): Change to LGPLv2+.
66548         * modules/float (License): Likewise
66549         * modules/realloc (License): Likewise
66550         * modules/stdlib (License): Likewise
66551
66552 2007-10-07  Bruno Haible  <bruno@clisp.org>
66553
66554         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
66555         * floor.c (TWO_MANT_DIG): Likewise.
66556         * ceil.c (TWO_MANT_DIG): Likewise.
66557         Reported by Ben Pfaff.
66558
66559 2007-10-07  Bruno Haible  <bruno@clisp.org>
66560
66561         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
66562         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
66563         * lib/frexp.c (FUNC): Likewise.
66564         * lib/printf-frexp.h (printf_frexp): Likewise.
66565         * lib/printf-frexpl.h (printf_frexpl): Likewise.
66566         * lib/printf-frexp.c (FUNC): Likewise.
66567         Suggested by Jim Meyering.
66568
66569 2007-10-07  Jim Meyering  <meyering@redhat.com>
66570
66571         Make xnanosleep's integer overflow test more robust.
66572         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
66573         so that gcc-4.3.0 doesn't optimize away this test for overflow.
66574
66575 2007-10-07  Bruno Haible  <bruno@clisp.org>
66576
66577         * NEWS: Mention the license change.
66578
66579         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
66580         abbreviations in the modules files.
66581
66582         Change copyright notice from GPLv2+ to GPLv3+.
66583         * README: Change copyright notice.
66584         * MODULES.html.sh: Likewise.
66585         * build-aux/bootstrap.conf: Likewise.
66586         * build-aux/config.libpath: Likewise.
66587         * build-aux/csharpcomp.sh.in: Likewise.
66588         * build-aux/csharpexec.sh.in: Likewise.
66589         * build-aux/install-reloc: Likewise.
66590         * build-aux/javacomp.sh.in: Likewise.
66591         * build-aux/javaexec.sh.in: Likewise.
66592         * build-aux/ldd.sh.in: Likewise.
66593         * build-aux/reloc-ldflags: Likewise.
66594         * build-aux/relocatable.sh.in: Likewise.
66595         * build-aux/x-to-1.in: Likewise.
66596         * check-module: Likewise.
66597         * config/srclistvars.sh: Likewise.
66598         * gnulib-tool: Likewise.
66599         * lib/acl-internal.h: Likewise.
66600         * lib/acl.c: Likewise.
66601         * lib/acl.h: Likewise.
66602         * lib/acl_entries.c: Likewise.
66603         * lib/areadlink-with-size.c: Likewise.
66604         * lib/areadlink.c: Likewise.
66605         * lib/areadlink.h: Likewise.
66606         * lib/argmatch.c: Likewise.
66607         * lib/argmatch.h: Likewise.
66608         * lib/argp-ba.c: Likewise.
66609         * lib/argp-eexst.c: Likewise.
66610         * lib/argp-fmtstream.c: Likewise.
66611         * lib/argp-fmtstream.h: Likewise.
66612         * lib/argp-fs-xinl.c: Likewise.
66613         * lib/argp-help.c: Likewise.
66614         * lib/argp-namefrob.h: Likewise.
66615         * lib/argp-parse.c: Likewise.
66616         * lib/argp-pin.c: Likewise.
66617         * lib/argp-pv.c: Likewise.
66618         * lib/argp-pvh.c: Likewise.
66619         * lib/argp-xinl.c: Likewise.
66620         * lib/argp.h: Likewise.
66621         * lib/at-func.c: Likewise.
66622         * lib/atanl.c: Likewise.
66623         * lib/backupfile.c: Likewise.
66624         * lib/backupfile.h: Likewise.
66625         * lib/basename.c: Likewise.
66626         * lib/binary-io.h: Likewise.
66627         * lib/byteswap.in.h: Likewise.
66628         * lib/c-stack.c: Likewise.
66629         * lib/c-stack.h: Likewise.
66630         * lib/c-strcasestr.c: Likewise.
66631         * lib/c-strcasestr.h: Likewise.
66632         * lib/c-strstr.c: Likewise.
66633         * lib/c-strstr.h: Likewise.
66634         * lib/c-strtod.c: Likewise.
66635         * lib/calloc.c: Likewise.
66636         * lib/canon-host.c: Likewise.
66637         * lib/canon-host.h: Likewise.
66638         * lib/canonicalize-lgpl.c: Likewise.
66639         * lib/canonicalize.c: Likewise.
66640         * lib/canonicalize.h: Likewise.
66641         * lib/ceil.c: Likewise.
66642         * lib/ceilf.c: Likewise.
66643         * lib/ceill.c: Likewise.
66644         * lib/chdir-long.c: Likewise.
66645         * lib/chdir-long.h: Likewise.
66646         * lib/chdir-safer.c: Likewise.
66647         * lib/chdir-safer.h: Likewise.
66648         * lib/chown.c: Likewise.
66649         * lib/classpath.c: Likewise.
66650         * lib/classpath.h: Likewise.
66651         * lib/clean-temp.c: Likewise.
66652         * lib/clean-temp.h: Likewise.
66653         * lib/cloexec.c: Likewise.
66654         * lib/close-stream.c: Likewise.
66655         * lib/closein.c: Likewise.
66656         * lib/closein.h: Likewise.
66657         * lib/closeout.c: Likewise.
66658         * lib/closeout.h: Likewise.
66659         * lib/concat-filename.c: Likewise.
66660         * lib/copy-file.c: Likewise.
66661         * lib/copy-file.h: Likewise.
66662         * lib/count-one-bits.h: Likewise.
66663         * lib/crc.c: Likewise.
66664         * lib/crc.h: Likewise.
66665         * lib/creat-safer.c: Likewise.
66666         * lib/csharpcomp.c: Likewise.
66667         * lib/csharpcomp.h: Likewise.
66668         * lib/csharpexec.c: Likewise.
66669         * lib/csharpexec.h: Likewise.
66670         * lib/cycle-check.c: Likewise.
66671         * lib/cycle-check.h: Likewise.
66672         * lib/diacrit.c: Likewise.
66673         * lib/diacrit.h: Likewise.
66674         * lib/diffseq.h: Likewise.
66675         * lib/dirchownmod.c: Likewise.
66676         * lib/dirent.in.h: Likewise.
66677         * lib/dirfd.c: Likewise.
66678         * lib/dirfd.h: Likewise.
66679         * lib/dirname.c: Likewise.
66680         * lib/dirname.h: Likewise.
66681         * lib/dummy.c: Likewise.
66682         * lib/dup-safer.c: Likewise.
66683         * lib/dup2.c: Likewise.
66684         * lib/eealloc.h: Likewise.
66685         * lib/error.c: Likewise.
66686         * lib/error.h: Likewise.
66687         * lib/euidaccess.c: Likewise.
66688         * lib/exclude.c: Likewise.
66689         * lib/exclude.h: Likewise.
66690         * lib/execute.c: Likewise.
66691         * lib/execute.h: Likewise.
66692         * lib/exitfail.c: Likewise.
66693         * lib/exitfail.h: Likewise.
66694         * lib/expl.c: Likewise.
66695         * lib/fatal-signal.c: Likewise.
66696         * lib/fatal-signal.h: Likewise.
66697         * lib/fbufmode.c: Likewise.
66698         * lib/fbufmode.h: Likewise.
66699         * lib/fchdir.c: Likewise.
66700         * lib/fchmodat.c: Likewise.
66701         * lib/fchownat.c: Likewise.
66702         * lib/fcntl--.h: Likewise.
66703         * lib/fcntl-safer.h: Likewise.
66704         * lib/fcntl.in.h: Likewise.
66705         * lib/fd-safer.c: Likewise.
66706         * lib/fflush.c: Likewise.
66707         * lib/file-has-acl.c: Likewise.
66708         * lib/file-set.c: Likewise.
66709         * lib/file-type.c: Likewise.
66710         * lib/file-type.h: Likewise.
66711         * lib/fileblocks.c: Likewise.
66712         * lib/filemode.c: Likewise.
66713         * lib/filemode.h: Likewise.
66714         * lib/filename.h: Likewise.
66715         * lib/filenamecat.c: Likewise.
66716         * lib/filenamecat.h: Likewise.
66717         * lib/findprog.c: Likewise.
66718         * lib/findprog.h: Likewise.
66719         * lib/float.in.h: Likewise.
66720         * lib/floor.c: Likewise.
66721         * lib/floorf.c: Likewise.
66722         * lib/floorl.c: Likewise.
66723         * lib/fopen-safer.c: Likewise.
66724         * lib/fopen.c: Likewise.
66725         * lib/fpending.c: Likewise.
66726         * lib/fpending.h: Likewise.
66727         * lib/fprintf.c: Likewise.
66728         * lib/fprintftime.h: Likewise.
66729         * lib/fpucw.h: Likewise.
66730         * lib/fpurge.c: Likewise.
66731         * lib/fpurge.h: Likewise.
66732         * lib/freadable.c: Likewise.
66733         * lib/freadable.h: Likewise.
66734         * lib/freadahead.c: Likewise.
66735         * lib/freadahead.h: Likewise.
66736         * lib/freading.c: Likewise.
66737         * lib/freading.h: Likewise.
66738         * lib/free.c: Likewise.
66739         * lib/freopen.c: Likewise.
66740         * lib/frexp.c: Likewise.
66741         * lib/frexpl.c: Likewise.
66742         * lib/fseek.c: Likewise.
66743         * lib/fseterr.c: Likewise.
66744         * lib/fseterr.h: Likewise.
66745         * lib/fstatat.c: Likewise.
66746         * lib/fstrcmp.c: Likewise.
66747         * lib/fstrcmp.h: Likewise.
66748         * lib/fsusage.c: Likewise.
66749         * lib/fsusage.h: Likewise.
66750         * lib/ftell.c: Likewise.
66751         * lib/ftello.c: Likewise.
66752         * lib/fts-cycle.c: Likewise.
66753         * lib/fts.c: Likewise.
66754         * lib/fts_.h: Likewise.
66755         * lib/full-read.c: Likewise.
66756         * lib/full-read.h: Likewise.
66757         * lib/full-write.c: Likewise.
66758         * lib/full-write.h: Likewise.
66759         * lib/fwritable.c: Likewise.
66760         * lib/fwritable.h: Likewise.
66761         * lib/fwriteerror.c: Likewise.
66762         * lib/fwriteerror.h: Likewise.
66763         * lib/fwriting.c: Likewise.
66764         * lib/fwriting.h: Likewise.
66765         * lib/gcd.c: Likewise.
66766         * lib/gcd.h: Likewise.
66767         * lib/getcwd.c: Likewise.
66768         * lib/getdate.h: Likewise.
66769         * lib/getdate.y: Likewise.
66770         * lib/getdomainname.c: Likewise.
66771         * lib/getdomainname.h: Likewise.
66772         * lib/getgroups.c: Likewise.
66773         * lib/gethostname.c: Likewise.
66774         * lib/gethrxtime.c: Likewise.
66775         * lib/gethrxtime.h: Likewise.
66776         * lib/getloadavg.c: Likewise.
66777         * lib/getndelim2.c: Likewise.
66778         * lib/getndelim2.h: Likewise.
66779         * lib/getnline.c: Likewise.
66780         * lib/getnline.h: Likewise.
66781         * lib/getopt.c: Likewise.
66782         * lib/getopt.in.h: Likewise.
66783         * lib/getopt1.c: Likewise.
66784         * lib/getopt_int.h: Likewise.
66785         * lib/getpagesize.h: Likewise.
66786         * lib/getsubopt.c: Likewise.
66787         * lib/gettime.c: Likewise.
66788         * lib/getugroups.c: Likewise.
66789         * lib/getugroups.h: Likewise.
66790         * lib/getusershell.c: Likewise.
66791         * lib/gl_anyavltree_list1.h: Likewise.
66792         * lib/gl_anyavltree_list2.h: Likewise.
66793         * lib/gl_anyhash_list1.h: Likewise.
66794         * lib/gl_anyhash_list2.h: Likewise.
66795         * lib/gl_anylinked_list1.h: Likewise.
66796         * lib/gl_anylinked_list2.h: Likewise.
66797         * lib/gl_anyrbtree_list1.h: Likewise.
66798         * lib/gl_anyrbtree_list2.h: Likewise.
66799         * lib/gl_anytree_list1.h: Likewise.
66800         * lib/gl_anytree_list2.h: Likewise.
66801         * lib/gl_anytree_oset.h: Likewise.
66802         * lib/gl_anytreehash_list1.h: Likewise.
66803         * lib/gl_anytreehash_list2.h: Likewise.
66804         * lib/gl_array_list.c: Likewise.
66805         * lib/gl_array_list.h: Likewise.
66806         * lib/gl_array_oset.c: Likewise.
66807         * lib/gl_array_oset.h: Likewise.
66808         * lib/gl_avltree_list.c: Likewise.
66809         * lib/gl_avltree_list.h: Likewise.
66810         * lib/gl_avltree_oset.c: Likewise.
66811         * lib/gl_avltree_oset.h: Likewise.
66812         * lib/gl_avltreehash_list.c: Likewise.
66813         * lib/gl_avltreehash_list.h: Likewise.
66814         * lib/gl_carray_list.c: Likewise.
66815         * lib/gl_carray_list.h: Likewise.
66816         * lib/gl_linked_list.c: Likewise.
66817         * lib/gl_linked_list.h: Likewise.
66818         * lib/gl_linkedhash_list.c: Likewise.
66819         * lib/gl_linkedhash_list.h: Likewise.
66820         * lib/gl_list.c: Likewise.
66821         * lib/gl_list.h: Likewise.
66822         * lib/gl_oset.c: Likewise.
66823         * lib/gl_oset.h: Likewise.
66824         * lib/gl_rbtree_list.c: Likewise.
66825         * lib/gl_rbtree_list.h: Likewise.
66826         * lib/gl_rbtree_oset.c: Likewise.
66827         * lib/gl_rbtree_oset.h: Likewise.
66828         * lib/gl_rbtreehash_list.c: Likewise.
66829         * lib/gl_rbtreehash_list.h: Likewise.
66830         * lib/gl_sublist.c: Likewise.
66831         * lib/gl_sublist.h: Likewise.
66832         * lib/group-member.c: Likewise.
66833         * lib/group-member.h: Likewise.
66834         * lib/hard-locale.c: Likewise.
66835         * lib/hard-locale.h: Likewise.
66836         * lib/hash-pjw.c: Likewise.
66837         * lib/hash-pjw.h: Likewise.
66838         * lib/hash-triple.c: Likewise.
66839         * lib/hash.c: Likewise.
66840         * lib/hash.h: Likewise.
66841         * lib/human.c: Likewise.
66842         * lib/human.h: Likewise.
66843         * lib/i-ring.c: Likewise.
66844         * lib/i-ring.h: Likewise.
66845         * lib/idcache.c: Likewise.
66846         * lib/imaxabs.c: Likewise.
66847         * lib/imaxdiv.c: Likewise.
66848         * lib/inet_pton.c: Likewise.
66849         * lib/inet_pton.h: Likewise.
66850         * lib/intprops.h: Likewise.
66851         * lib/inttostr.c: Likewise.
66852         * lib/inttostr.h: Likewise.
66853         * lib/inttypes.in.h: Likewise.
66854         * lib/isapipe.c: Likewise.
66855         * lib/isdir.c: Likewise.
66856         * lib/isnan.c: Likewise.
66857         * lib/isnan.h: Likewise.
66858         * lib/isnanf.c: Likewise.
66859         * lib/isnanf.h: Likewise.
66860         * lib/isnanl-nolibm.h: Likewise.
66861         * lib/isnanl.c: Likewise.
66862         * lib/isnanl.h: Likewise.
66863         * lib/javacomp.c: Likewise.
66864         * lib/javacomp.h: Likewise.
66865         * lib/javaexec.c: Likewise.
66866         * lib/javaexec.h: Likewise.
66867         * lib/javaversion.c: Likewise.
66868         * lib/javaversion.h: Likewise.
66869         * lib/javaversion.java: Likewise.
66870         * lib/lbrkprop.h: Likewise.
66871         * lib/lchmod.h: Likewise.
66872         * lib/lchown.c: Likewise.
66873         * lib/ldexpl.c: Likewise.
66874         * lib/linebreak.c: Likewise.
66875         * lib/linebreak.h: Likewise.
66876         * lib/linebuffer.c: Likewise.
66877         * lib/linebuffer.h: Likewise.
66878         * lib/locale.in.h: Likewise.
66879         * lib/logl.c: Likewise.
66880         * lib/long-options.c: Likewise.
66881         * lib/long-options.h: Likewise.
66882         * lib/lstat.c: Likewise.
66883         * lib/lstat.h: Likewise.
66884         * lib/math.in.h: Likewise.
66885         * lib/mbchar.c: Likewise.
66886         * lib/mbchar.h: Likewise.
66887         * lib/mbfile.h: Likewise.
66888         * lib/mbiter.h: Likewise.
66889         * lib/mbscasecmp.c: Likewise.
66890         * lib/mbscasestr.c: Likewise.
66891         * lib/mbschr.c: Likewise.
66892         * lib/mbscspn.c: Likewise.
66893         * lib/mbslen.c: Likewise.
66894         * lib/mbsncasecmp.c: Likewise.
66895         * lib/mbsnlen.c: Likewise.
66896         * lib/mbspbrk.c: Likewise.
66897         * lib/mbspcasecmp.c: Likewise.
66898         * lib/mbsrchr.c: Likewise.
66899         * lib/mbssep.c: Likewise.
66900         * lib/mbsspn.c: Likewise.
66901         * lib/mbsstr.c: Likewise.
66902         * lib/mbstok_r.c: Likewise.
66903         * lib/mbswidth.c: Likewise.
66904         * lib/mbswidth.h: Likewise.
66905         * lib/mbuiter.h: Likewise.
66906         * lib/memcasecmp.c: Likewise.
66907         * lib/memcasecmp.h: Likewise.
66908         * lib/memchr.c: Likewise.
66909         * lib/memcmp.c: Likewise.
66910         * lib/memcoll.c: Likewise.
66911         * lib/memcoll.h: Likewise.
66912         * lib/memcpy.c: Likewise.
66913         * lib/memrchr.c: Likewise.
66914         * lib/mkancesdirs.c: Likewise.
66915         * lib/mkdir-p.c: Likewise.
66916         * lib/mkdir-p.h: Likewise.
66917         * lib/mkdir.c: Likewise.
66918         * lib/mkdirat.c: Likewise.
66919         * lib/mkdtemp.c: Likewise.
66920         * lib/mkstemp-safer.c: Likewise.
66921         * lib/mkstemp.c: Likewise.
66922         * lib/modechange.c: Likewise.
66923         * lib/modechange.h: Likewise.
66924         * lib/mountlist.c: Likewise.
66925         * lib/mountlist.h: Likewise.
66926         * lib/mpsort.c: Likewise.
66927         * lib/nanosleep.c: Likewise.
66928         * lib/obstack.c: Likewise.
66929         * lib/obstack.h: Likewise.
66930         * lib/open-safer.c: Likewise.
66931         * lib/open.c: Likewise.
66932         * lib/openat-die.c: Likewise.
66933         * lib/openat-priv.h: Likewise.
66934         * lib/openat-proc.c: Likewise.
66935         * lib/openat.c: Likewise.
66936         * lib/openat.h: Likewise.
66937         * lib/pagealign_alloc.c: Likewise.
66938         * lib/pagealign_alloc.h: Likewise.
66939         * lib/physmem.c: Likewise.
66940         * lib/physmem.h: Likewise.
66941         * lib/pipe-safer.c: Likewise.
66942         * lib/pipe.c: Likewise.
66943         * lib/pipe.h: Likewise.
66944         * lib/posixtm.c: Likewise.
66945         * lib/posixtm.h: Likewise.
66946         * lib/posixver.c: Likewise.
66947         * lib/printf-frexp.c: Likewise.
66948         * lib/printf-frexp.h: Likewise.
66949         * lib/printf-frexpl.c: Likewise.
66950         * lib/printf-frexpl.h: Likewise.
66951         * lib/printf.c: Likewise.
66952         * lib/progname.c: Likewise.
66953         * lib/progname.h: Likewise.
66954         * lib/progreloc.c: Likewise.
66955         * lib/putenv.c: Likewise.
66956         * lib/quote.c: Likewise.
66957         * lib/quote.h: Likewise.
66958         * lib/quotearg.c: Likewise.
66959         * lib/quotearg.h: Likewise.
66960         * lib/raise.c: Likewise.
66961         * lib/readline.c: Likewise.
66962         * lib/readline.h: Likewise.
66963         * lib/readlink.c: Likewise.
66964         * lib/readtokens.c: Likewise.
66965         * lib/readtokens.h: Likewise.
66966         * lib/readtokens0.c: Likewise.
66967         * lib/readtokens0.h: Likewise.
66968         * lib/readutmp.c: Likewise.
66969         * lib/readutmp.h: Likewise.
66970         * lib/realloc.c: Likewise.
66971         * lib/relocwrapper.c: Likewise.
66972         * lib/rename-dest-slash.c: Likewise.
66973         * lib/rename.c: Likewise.
66974         * lib/rmdir.c: Likewise.
66975         * lib/rpmatch.c: Likewise.
66976         * lib/safe-read.c: Likewise.
66977         * lib/safe-read.h: Likewise.
66978         * lib/safe-write.c: Likewise.
66979         * lib/safe-write.h: Likewise.
66980         * lib/same-inode.h: Likewise.
66981         * lib/same.c: Likewise.
66982         * lib/same.h: Likewise.
66983         * lib/save-cwd.c: Likewise.
66984         * lib/save-cwd.h: Likewise.
66985         * lib/savedir.c: Likewise.
66986         * lib/savedir.h: Likewise.
66987         * lib/savewd.c: Likewise.
66988         * lib/savewd.h: Likewise.
66989         * lib/search.in.h: Likewise.
66990         * lib/setenv.c: Likewise.
66991         * lib/setenv.h: Likewise.
66992         * lib/settime.c: Likewise.
66993         * lib/sh-quote.c: Likewise.
66994         * lib/sh-quote.h: Likewise.
66995         * lib/sig2str.c: Likewise.
66996         * lib/sig2str.h: Likewise.
66997         * lib/signal.in.h: Likewise.
66998         * lib/signbitd.c: Likewise.
66999         * lib/signbitf.c: Likewise.
67000         * lib/signbitl.c: Likewise.
67001         * lib/sigprocmask.c: Likewise.
67002         * lib/sincosl.c: Likewise.
67003         * lib/sleep.c: Likewise.
67004         * lib/sprintf.c: Likewise.
67005         * lib/sqrtl.c: Likewise.
67006         * lib/stat-time.h: Likewise.
67007         * lib/stdio--.h: Likewise.
67008         * lib/stdio-safer.h: Likewise.
67009         * lib/stdlib--.h: Likewise.
67010         * lib/stdlib-safer.h: Likewise.
67011         * lib/stdlib.in.h: Likewise.
67012         * lib/stpcpy.c: Likewise.
67013         * lib/stpncpy.c: Likewise.
67014         * lib/strchrnul.c: Likewise.
67015         * lib/strcspn.c: Likewise.
67016         * lib/strerror.c: Likewise.
67017         * lib/strftime.c: Likewise.
67018         * lib/strftime.h: Likewise.
67019         * lib/striconveh.c: Likewise.
67020         * lib/striconveh.h: Likewise.
67021         * lib/striconveha.c: Likewise.
67022         * lib/striconveha.h: Likewise.
67023         * lib/stripslash.c: Likewise.
67024         * lib/strnlen1.c: Likewise.
67025         * lib/strnlen1.h: Likewise.
67026         * lib/strtod.c: Likewise.
67027         * lib/strtoimax.c: Likewise.
67028         * lib/strtok_r.c: Likewise.
67029         * lib/strtol.c: Likewise.
67030         * lib/strtoll.c: Likewise.
67031         * lib/strtoul.c: Likewise.
67032         * lib/strtoull.c: Likewise.
67033         * lib/sysexits.in.h: Likewise.
67034         * lib/tempname.c: Likewise.
67035         * lib/tempname.h: Likewise.
67036         * lib/timespec.h: Likewise.
67037         * lib/tls.c: Likewise.
67038         * lib/tls.h: Likewise.
67039         * lib/tmpdir.c: Likewise.
67040         * lib/tmpdir.h: Likewise.
67041         * lib/tmpfile-safer.c: Likewise.
67042         * lib/tmpfile.c: Likewise.
67043         * lib/trigl.c: Likewise.
67044         * lib/trigl.h: Likewise.
67045         * lib/trim.c: Likewise.
67046         * lib/trim.h: Likewise.
67047         * lib/trunc.c: Likewise.
67048         * lib/truncf.c: Likewise.
67049         * lib/truncl.c: Likewise.
67050         * lib/tsearch.c: Likewise.
67051         * lib/unicodeio.c: Likewise.
67052         * lib/unicodeio.h: Likewise.
67053         * lib/unistd--.h: Likewise.
67054         * lib/unistd-safer.h: Likewise.
67055         * lib/unistdio/ulc-fprintf.c: Likewise.
67056         * lib/unistdio/ulc-vfprintf.c: Likewise.
67057         * lib/unlinkdir.c: Likewise.
67058         * lib/unlinkdir.h: Likewise.
67059         * lib/unlocked-io.h: Likewise.
67060         * lib/unsetenv.c: Likewise.
67061         * lib/userspec.c: Likewise.
67062         * lib/utime.c: Likewise.
67063         * lib/utimecmp.c: Likewise.
67064         * lib/utimecmp.h: Likewise.
67065         * lib/utimens.c: Likewise.
67066         * lib/verify.h: Likewise.
67067         * lib/verror.c: Likewise.
67068         * lib/verror.h: Likewise.
67069         * lib/version-etc-fsf.c: Likewise.
67070         * lib/version-etc.c: Likewise.
67071         * lib/version-etc.h: Likewise.
67072         * lib/vfprintf.c: Likewise.
67073         * lib/vprintf.c: Likewise.
67074         * lib/vsprintf.c: Likewise.
67075         * lib/w32spawn.h: Likewise.
67076         * lib/wait-process.c: Likewise.
67077         * lib/wait-process.h: Likewise.
67078         * lib/wcwidth.c: Likewise.
67079         * lib/write-any-file.c: Likewise.
67080         * lib/xalloc-die.c: Likewise.
67081         * lib/xalloc.h: Likewise.
67082         * lib/xasprintf.c: Likewise.
67083         * lib/xgetcwd.c: Likewise.
67084         * lib/xgetcwd.h: Likewise.
67085         * lib/xgetdomainname.c: Likewise.
67086         * lib/xgetdomainname.h: Likewise.
67087         * lib/xgethostname.c: Likewise.
67088         * lib/xmalloc.c: Likewise.
67089         * lib/xmalloca.c: Likewise.
67090         * lib/xmalloca.h: Likewise.
67091         * lib/xmemcoll.c: Likewise.
67092         * lib/xnanosleep.c: Likewise.
67093         * lib/xreadlink.c: Likewise.
67094         * lib/xreadlink.h: Likewise.
67095         * lib/xsetenv.c: Likewise.
67096         * lib/xsetenv.h: Likewise.
67097         * lib/xstriconv.c: Likewise.
67098         * lib/xstriconv.h: Likewise.
67099         * lib/xstrndup.c: Likewise.
67100         * lib/xstrndup.h: Likewise.
67101         * lib/xstrtod.c: Likewise.
67102         * lib/xstrtod.h: Likewise.
67103         * lib/xstrtol-error.c: Likewise.
67104         * lib/xstrtol.c: Likewise.
67105         * lib/xstrtol.h: Likewise.
67106         * lib/xtime.h: Likewise.
67107         * lib/xvasprintf.c: Likewise.
67108         * lib/xvasprintf.h: Likewise.
67109         * lib/yesno.c: Likewise.
67110         * lib/yesno.h: Likewise.
67111         * posix-modules: Likewise.
67112         * tests/test-alloca-opt.c: Likewise.
67113         * tests/test-arcfour.c: Likewise.
67114         * tests/test-arctwo.c: Likewise.
67115         * tests/test-argmatch.c: Likewise.
67116         * tests/test-argp-2.sh: Likewise.
67117         * tests/test-argp.c: Likewise.
67118         * tests/test-arpa_inet.c: Likewise.
67119         * tests/test-array_list.c: Likewise.
67120         * tests/test-array_oset.c: Likewise.
67121         * tests/test-atexit.c: Likewise.
67122         * tests/test-avltree_list.c: Likewise.
67123         * tests/test-avltree_oset.c: Likewise.
67124         * tests/test-avltreehash_list.c: Likewise.
67125         * tests/test-base64.c: Likewise.
67126         * tests/test-binary-io.c: Likewise.
67127         * tests/test-byteswap.c: Likewise.
67128         * tests/test-c-ctype.c: Likewise.
67129         * tests/test-c-strcasecmp.c: Likewise.
67130         * tests/test-c-strcasestr.c: Likewise.
67131         * tests/test-c-strncasecmp.c: Likewise.
67132         * tests/test-c-strstr.c: Likewise.
67133         * tests/test-canonicalize-lgpl.c: Likewise.
67134         * tests/test-canonicalize.c: Likewise.
67135         * tests/test-carray_list.c: Likewise.
67136         * tests/test-ceilf.c: Likewise.
67137         * tests/test-ceill.c: Likewise.
67138         * tests/test-count-one-bits.c: Likewise.
67139         * tests/test-crc.c: Likewise.
67140         * tests/test-dirname.c: Likewise.
67141         * tests/test-fbufmode.c: Likewise.
67142         * tests/test-fcntl.c: Likewise.
67143         * tests/test-fflush.c: Likewise.
67144         * tests/test-floorf.c: Likewise.
67145         * tests/test-floorl.c: Likewise.
67146         * tests/test-fopen.c: Likewise.
67147         * tests/test-fprintf-posix.c: Likewise.
67148         * tests/test-fprintf-posix.h: Likewise.
67149         * tests/test-fpurge.c: Likewise.
67150         * tests/test-freadable.c: Likewise.
67151         * tests/test-freadahead.c: Likewise.
67152         * tests/test-freading.c: Likewise.
67153         * tests/test-freopen.c: Likewise.
67154         * tests/test-frexp.c: Likewise.
67155         * tests/test-frexpl.c: Likewise.
67156         * tests/test-fseek.c: Likewise.
67157         * tests/test-fseeko.c: Likewise.
67158         * tests/test-fseterr.c: Likewise.
67159         * tests/test-fstrcmp.c: Likewise.
67160         * tests/test-ftell.c: Likewise.
67161         * tests/test-ftello.c: Likewise.
67162         * tests/test-fwritable.c: Likewise.
67163         * tests/test-fwriting.c: Likewise.
67164         * tests/test-getaddrinfo.c: Likewise.
67165         * tests/test-getpass.c: Likewise.
67166         * tests/test-gettimeofday.c: Likewise.
67167         * tests/test-hmac-md5.c: Likewise.
67168         * tests/test-hmac-sha1.c: Likewise.
67169         * tests/test-iconv.c: Likewise.
67170         * tests/test-iconvme.c: Likewise.
67171         * tests/test-inttypes.c: Likewise.
67172         * tests/test-isnan.c: Likewise.
67173         * tests/test-isnanf.c: Likewise.
67174         * tests/test-isnanl-nolibm.c: Likewise.
67175         * tests/test-isnanl.c: Likewise.
67176         * tests/test-isnanl.h: Likewise.
67177         * tests/test-ldexpl.c: Likewise.
67178         * tests/test-linked_list.c: Likewise.
67179         * tests/test-linkedhash_list.c: Likewise.
67180         * tests/test-locale.c: Likewise.
67181         * tests/test-localename.c: Likewise.
67182         * tests/test-lock.c: Likewise.
67183         * tests/test-lseek.c: Likewise.
67184         * tests/test-malloca.c: Likewise.
67185         * tests/test-math.c: Likewise.
67186         * tests/test-mbscasecmp.c: Likewise.
67187         * tests/test-mbscasestr1.c: Likewise.
67188         * tests/test-mbscasestr2.c: Likewise.
67189         * tests/test-mbscasestr3.c: Likewise.
67190         * tests/test-mbscasestr4.c: Likewise.
67191         * tests/test-mbschr.c: Likewise.
67192         * tests/test-mbscspn.c: Likewise.
67193         * tests/test-mbsncasecmp.c: Likewise.
67194         * tests/test-mbspbrk.c: Likewise.
67195         * tests/test-mbspcasecmp.c: Likewise.
67196         * tests/test-mbsrchr.c: Likewise.
67197         * tests/test-mbsspn.c: Likewise.
67198         * tests/test-mbsstr1.c: Likewise.
67199         * tests/test-mbsstr2.c: Likewise.
67200         * tests/test-mbsstr3.c: Likewise.
67201         * tests/test-md5.c: Likewise.
67202         * tests/test-memmem.c: Likewise.
67203         * tests/test-netinet_in.c: Likewise.
67204         * tests/test-open.c: Likewise.
67205         * tests/test-printf-frexp.c: Likewise.
67206         * tests/test-printf-frexpl.c: Likewise.
67207         * tests/test-printf-posix.c: Likewise.
67208         * tests/test-printf-posix.h: Likewise.
67209         * tests/test-rbtree_list.c: Likewise.
67210         * tests/test-rbtree_oset.c: Likewise.
67211         * tests/test-rbtreehash_list.c: Likewise.
67212         * tests/test-read-file.c: Likewise.
67213         * tests/test-rijndael.c: Likewise.
67214         * tests/test-search.c: Likewise.
67215         * tests/test-signbit.c: Likewise.
67216         * tests/test-sleep.c: Likewise.
67217         * tests/test-snprintf-posix.c: Likewise.
67218         * tests/test-snprintf-posix.h: Likewise.
67219         * tests/test-snprintf.c: Likewise.
67220         * tests/test-sprintf-posix.c: Likewise.
67221         * tests/test-sprintf-posix.h: Likewise.
67222         * tests/test-stat-time.c: Likewise.
67223         * tests/test-stdbool.c: Likewise.
67224         * tests/test-stdint.c: Likewise.
67225         * tests/test-stdio.c: Likewise.
67226         * tests/test-stdlib.c: Likewise.
67227         * tests/test-stpncpy.c: Likewise.
67228         * tests/test-strcasestr.c: Likewise.
67229         * tests/test-striconv.c: Likewise.
67230         * tests/test-striconveh.c: Likewise.
67231         * tests/test-striconveha.c: Likewise.
67232         * tests/test-string.c: Likewise.
67233         * tests/test-sys_select.c: Likewise.
67234         * tests/test-sys_socket.c: Likewise.
67235         * tests/test-sys_stat.c: Likewise.
67236         * tests/test-sys_time.c: Likewise.
67237         * tests/test-sysexits.c: Likewise.
67238         * tests/test-time.c: Likewise.
67239         * tests/test-tls.c: Likewise.
67240         * tests/test-trunc.c: Likewise.
67241         * tests/test-truncf.c: Likewise.
67242         * tests/test-truncl.c: Likewise.
67243         * tests/test-unistd.c: Likewise.
67244         * tests/test-vasnprintf-posix.c: Likewise.
67245         * tests/test-vasnprintf-posix2.c: Likewise.
67246         * tests/test-vasnprintf.c: Likewise.
67247         * tests/test-vasprintf-posix.c: Likewise.
67248         * tests/test-vasprintf.c: Likewise.
67249         * tests/test-verify.c: Likewise.
67250         * tests/test-vfprintf-posix.c: Likewise.
67251         * tests/test-vprintf-posix.c: Likewise.
67252         * tests/test-vsnprintf-posix.c: Likewise.
67253         * tests/test-vsnprintf.c: Likewise.
67254         * tests/test-vsprintf-posix.c: Likewise.
67255         * tests/test-wchar.c: Likewise.
67256         * tests/test-wctype.c: Likewise.
67257         * tests/test-wcwidth.c: Likewise.
67258         * tests/test-xstrtol.c: Likewise.
67259         * tests/test-xvasprintf.c: Likewise.
67260         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
67261         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
67262         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
67263         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
67264         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
67265         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
67266         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
67267         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
67268         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
67269         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
67270         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
67271         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
67272         * tests/uniname/test-uninames.c: Likewise.
67273         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
67274         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
67275         * tests/unistdio/test-u16-printf1.h: Likewise.
67276         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
67277         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
67278         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
67279         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
67280         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
67281         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
67282         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
67283         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
67284         * tests/unistdio/test-u32-printf1.h: Likewise.
67285         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
67286         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
67287         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
67288         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
67289         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
67290         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
67291         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
67292         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
67293         * tests/unistdio/test-u8-printf1.h: Likewise.
67294         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
67295         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
67296         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
67297         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
67298         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
67299         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
67300         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
67301         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
67302         * tests/unistdio/test-ulc-printf1.h: Likewise.
67303         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
67304         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
67305         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
67306         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
67307         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
67308         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
67309         * tests/uniwidth/test-u16-strwidth.c: Likewise.
67310         * tests/uniwidth/test-u16-width.c: Likewise.
67311         * tests/uniwidth/test-u32-strwidth.c: Likewise.
67312         * tests/uniwidth/test-u32-width.c: Likewise.
67313         * tests/uniwidth/test-u8-strwidth.c: Likewise.
67314         * tests/uniwidth/test-u8-width.c: Likewise.
67315         * tests/uniwidth/test-uc_width.c: Likewise.
67316         * config/srclist-update: Likewise.
67317         (fixlicense): Update to GPLv3+.
67318
67319         Change copyright notice from LGPLv2.1+ to LGPLv3+.
67320         * tests/test-tsearch.c: Change copyright notice.
67321
67322         Change copyright notice from LGPLv2.0+ to LGPLv3+.
67323         * lib/c-strcaseeq.h: Change copyright notice.
67324         * lib/streq.h: Likewise.
67325         * lib/uniconv.h: Likewise.
67326         * lib/uniconv/u-conv-from-enc.h: Likewise.
67327         * lib/uniconv/u-conv-to-enc.h: Likewise.
67328         * lib/uniconv/u-strconv-from-enc.h: Likewise.
67329         * lib/uniconv/u-strconv-to-enc.h: Likewise.
67330         * lib/uniconv/u16-conv-from-enc.c: Likewise.
67331         * lib/uniconv/u16-conv-to-enc.c: Likewise.
67332         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
67333         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
67334         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
67335         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
67336         * lib/uniconv/u32-conv-from-enc.c: Likewise.
67337         * lib/uniconv/u32-conv-to-enc.c: Likewise.
67338         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
67339         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
67340         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
67341         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
67342         * lib/uniconv/u8-conv-from-enc.c: Likewise.
67343         * lib/uniconv/u8-conv-to-enc.c: Likewise.
67344         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
67345         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
67346         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
67347         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
67348         * lib/uniname.h: Likewise.
67349         * lib/uniname/uniname.c: Likewise.
67350         * lib/unistdio.h: Likewise.
67351         * lib/unistdio/u-asnprintf.h: Likewise.
67352         * lib/unistdio/u-asprintf.h: Likewise.
67353         * lib/unistdio/u-printf-args.c: Likewise.
67354         * lib/unistdio/u-printf-args.h: Likewise.
67355         * lib/unistdio/u-printf-parse.h: Likewise.
67356         * lib/unistdio/u-snprintf.h: Likewise.
67357         * lib/unistdio/u-sprintf.h: Likewise.
67358         * lib/unistdio/u-vasprintf.h: Likewise.
67359         * lib/unistdio/u-vsnprintf.h: Likewise.
67360         * lib/unistdio/u-vsprintf.h: Likewise.
67361         * lib/unistdio/u16-asnprintf.c: Likewise.
67362         * lib/unistdio/u16-asprintf.c: Likewise.
67363         * lib/unistdio/u16-printf-parse.c: Likewise.
67364         * lib/unistdio/u16-snprintf.c: Likewise.
67365         * lib/unistdio/u16-sprintf.c: Likewise.
67366         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
67367         * lib/unistdio/u16-u16-asprintf.c: Likewise.
67368         * lib/unistdio/u16-u16-snprintf.c: Likewise.
67369         * lib/unistdio/u16-u16-sprintf.c: Likewise.
67370         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
67371         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
67372         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
67373         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
67374         * lib/unistdio/u16-vasnprintf.c: Likewise.
67375         * lib/unistdio/u16-vasprintf.c: Likewise.
67376         * lib/unistdio/u16-vsnprintf.c: Likewise.
67377         * lib/unistdio/u16-vsprintf.c: Likewise.
67378         * lib/unistdio/u32-asnprintf.c: Likewise.
67379         * lib/unistdio/u32-asprintf.c: Likewise.
67380         * lib/unistdio/u32-printf-parse.c: Likewise.
67381         * lib/unistdio/u32-snprintf.c: Likewise.
67382         * lib/unistdio/u32-sprintf.c: Likewise.
67383         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
67384         * lib/unistdio/u32-u32-asprintf.c: Likewise.
67385         * lib/unistdio/u32-u32-snprintf.c: Likewise.
67386         * lib/unistdio/u32-u32-sprintf.c: Likewise.
67387         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
67388         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
67389         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
67390         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
67391         * lib/unistdio/u32-vasnprintf.c: Likewise.
67392         * lib/unistdio/u32-vasprintf.c: Likewise.
67393         * lib/unistdio/u32-vsnprintf.c: Likewise.
67394         * lib/unistdio/u32-vsprintf.c: Likewise.
67395         * lib/unistdio/u8-asnprintf.c: Likewise.
67396         * lib/unistdio/u8-asprintf.c: Likewise.
67397         * lib/unistdio/u8-printf-parse.c: Likewise.
67398         * lib/unistdio/u8-snprintf.c: Likewise.
67399         * lib/unistdio/u8-sprintf.c: Likewise.
67400         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
67401         * lib/unistdio/u8-u8-asprintf.c: Likewise.
67402         * lib/unistdio/u8-u8-snprintf.c: Likewise.
67403         * lib/unistdio/u8-u8-sprintf.c: Likewise.
67404         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
67405         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
67406         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
67407         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
67408         * lib/unistdio/u8-vasnprintf.c: Likewise.
67409         * lib/unistdio/u8-vasprintf.c: Likewise.
67410         * lib/unistdio/u8-vsnprintf.c: Likewise.
67411         * lib/unistdio/u8-vsprintf.c: Likewise.
67412         * lib/unistdio/ulc-asnprintf.c: Likewise.
67413         * lib/unistdio/ulc-asprintf.c: Likewise.
67414         * lib/unistdio/ulc-printf-parse.c: Likewise.
67415         * lib/unistdio/ulc-snprintf.c: Likewise.
67416         * lib/unistdio/ulc-sprintf.c: Likewise.
67417         * lib/unistdio/ulc-vasnprintf.c: Likewise.
67418         * lib/unistdio/ulc-vasprintf.c: Likewise.
67419         * lib/unistdio/ulc-vsnprintf.c: Likewise.
67420         * lib/unistdio/ulc-vsprintf.c: Likewise.
67421         * lib/unistr.h: Likewise.
67422         * lib/unistr/u-cpy-alloc.h: Likewise.
67423         * lib/unistr/u-cpy.h: Likewise.
67424         * lib/unistr/u-endswith.h: Likewise.
67425         * lib/unistr/u-move.h: Likewise.
67426         * lib/unistr/u-set.h: Likewise.
67427         * lib/unistr/u-startswith.h: Likewise.
67428         * lib/unistr/u-stpcpy.h: Likewise.
67429         * lib/unistr/u-stpncpy.h: Likewise.
67430         * lib/unistr/u-strcat.h: Likewise.
67431         * lib/unistr/u-strcpy.h: Likewise.
67432         * lib/unistr/u-strcspn.h: Likewise.
67433         * lib/unistr/u-strdup.h: Likewise.
67434         * lib/unistr/u-strlen.h: Likewise.
67435         * lib/unistr/u-strncat.h: Likewise.
67436         * lib/unistr/u-strncpy.h: Likewise.
67437         * lib/unistr/u-strnlen.h: Likewise.
67438         * lib/unistr/u-strpbrk.h: Likewise.
67439         * lib/unistr/u-strspn.h: Likewise.
67440         * lib/unistr/u-strstr.h: Likewise.
67441         * lib/unistr/u-strtok.h: Likewise.
67442         * lib/unistr/u16-check.c: Likewise.
67443         * lib/unistr/u16-chr.c: Likewise.
67444         * lib/unistr/u16-cmp.c: Likewise.
67445         * lib/unistr/u16-cpy-alloc.c: Likewise.
67446         * lib/unistr/u16-cpy.c: Likewise.
67447         * lib/unistr/u16-endswith.c: Likewise.
67448         * lib/unistr/u16-mblen.c: Likewise.
67449         * lib/unistr/u16-mbsnlen.c: Likewise.
67450         * lib/unistr/u16-mbtouc-aux.c: Likewise.
67451         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
67452         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
67453         * lib/unistr/u16-mbtouc.c: Likewise.
67454         * lib/unistr/u16-mbtoucr.c: Likewise.
67455         * lib/unistr/u16-move.c: Likewise.
67456         * lib/unistr/u16-next.c: Likewise.
67457         * lib/unistr/u16-prev.c: Likewise.
67458         * lib/unistr/u16-set.c: Likewise.
67459         * lib/unistr/u16-startswith.c: Likewise.
67460         * lib/unistr/u16-stpcpy.c: Likewise.
67461         * lib/unistr/u16-stpncpy.c: Likewise.
67462         * lib/unistr/u16-strcat.c: Likewise.
67463         * lib/unistr/u16-strchr.c: Likewise.
67464         * lib/unistr/u16-strcmp.c: Likewise.
67465         * lib/unistr/u16-strcpy.c: Likewise.
67466         * lib/unistr/u16-strcspn.c: Likewise.
67467         * lib/unistr/u16-strdup.c: Likewise.
67468         * lib/unistr/u16-strlen.c: Likewise.
67469         * lib/unistr/u16-strmblen.c: Likewise.
67470         * lib/unistr/u16-strmbtouc.c: Likewise.
67471         * lib/unistr/u16-strncat.c: Likewise.
67472         * lib/unistr/u16-strncmp.c: Likewise.
67473         * lib/unistr/u16-strncpy.c: Likewise.
67474         * lib/unistr/u16-strnlen.c: Likewise.
67475         * lib/unistr/u16-strpbrk.c: Likewise.
67476         * lib/unistr/u16-strrchr.c: Likewise.
67477         * lib/unistr/u16-strspn.c: Likewise.
67478         * lib/unistr/u16-strstr.c: Likewise.
67479         * lib/unistr/u16-strtok.c: Likewise.
67480         * lib/unistr/u16-to-u32.c: Likewise.
67481         * lib/unistr/u16-to-u8.c: Likewise.
67482         * lib/unistr/u16-uctomb-aux.c: Likewise.
67483         * lib/unistr/u16-uctomb.c: Likewise.
67484         * lib/unistr/u32-check.c: Likewise.
67485         * lib/unistr/u32-chr.c: Likewise.
67486         * lib/unistr/u32-cmp.c: Likewise.
67487         * lib/unistr/u32-cpy-alloc.c: Likewise.
67488         * lib/unistr/u32-cpy.c: Likewise.
67489         * lib/unistr/u32-endswith.c: Likewise.
67490         * lib/unistr/u32-mblen.c: Likewise.
67491         * lib/unistr/u32-mbsnlen.c: Likewise.
67492         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
67493         * lib/unistr/u32-mbtouc.c: Likewise.
67494         * lib/unistr/u32-mbtoucr.c: Likewise.
67495         * lib/unistr/u32-move.c: Likewise.
67496         * lib/unistr/u32-next.c: Likewise.
67497         * lib/unistr/u32-prev.c: Likewise.
67498         * lib/unistr/u32-set.c: Likewise.
67499         * lib/unistr/u32-startswith.c: Likewise.
67500         * lib/unistr/u32-stpcpy.c: Likewise.
67501         * lib/unistr/u32-stpncpy.c: Likewise.
67502         * lib/unistr/u32-strcat.c: Likewise.
67503         * lib/unistr/u32-strchr.c: Likewise.
67504         * lib/unistr/u32-strcmp.c: Likewise.
67505         * lib/unistr/u32-strcpy.c: Likewise.
67506         * lib/unistr/u32-strcspn.c: Likewise.
67507         * lib/unistr/u32-strdup.c: Likewise.
67508         * lib/unistr/u32-strlen.c: Likewise.
67509         * lib/unistr/u32-strmblen.c: Likewise.
67510         * lib/unistr/u32-strmbtouc.c: Likewise.
67511         * lib/unistr/u32-strncat.c: Likewise.
67512         * lib/unistr/u32-strncmp.c: Likewise.
67513         * lib/unistr/u32-strncpy.c: Likewise.
67514         * lib/unistr/u32-strnlen.c: Likewise.
67515         * lib/unistr/u32-strpbrk.c: Likewise.
67516         * lib/unistr/u32-strrchr.c: Likewise.
67517         * lib/unistr/u32-strspn.c: Likewise.
67518         * lib/unistr/u32-strstr.c: Likewise.
67519         * lib/unistr/u32-strtok.c: Likewise.
67520         * lib/unistr/u32-to-u16.c: Likewise.
67521         * lib/unistr/u32-to-u8.c: Likewise.
67522         * lib/unistr/u32-uctomb.c: Likewise.
67523         * lib/unistr/u8-check.c: Likewise.
67524         * lib/unistr/u8-chr.c: Likewise.
67525         * lib/unistr/u8-cmp.c: Likewise.
67526         * lib/unistr/u8-cpy-alloc.c: Likewise.
67527         * lib/unistr/u8-cpy.c: Likewise.
67528         * lib/unistr/u8-endswith.c: Likewise.
67529         * lib/unistr/u8-mblen.c: Likewise.
67530         * lib/unistr/u8-mbsnlen.c: Likewise.
67531         * lib/unistr/u8-mbtouc-aux.c: Likewise.
67532         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
67533         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
67534         * lib/unistr/u8-mbtouc.c: Likewise.
67535         * lib/unistr/u8-mbtoucr.c: Likewise.
67536         * lib/unistr/u8-move.c: Likewise.
67537         * lib/unistr/u8-next.c: Likewise.
67538         * lib/unistr/u8-prev.c: Likewise.
67539         * lib/unistr/u8-set.c: Likewise.
67540         * lib/unistr/u8-startswith.c: Likewise.
67541         * lib/unistr/u8-stpcpy.c: Likewise.
67542         * lib/unistr/u8-stpncpy.c: Likewise.
67543         * lib/unistr/u8-strcat.c: Likewise.
67544         * lib/unistr/u8-strchr.c: Likewise.
67545         * lib/unistr/u8-strcmp.c: Likewise.
67546         * lib/unistr/u8-strcpy.c: Likewise.
67547         * lib/unistr/u8-strcspn.c: Likewise.
67548         * lib/unistr/u8-strdup.c: Likewise.
67549         * lib/unistr/u8-strlen.c: Likewise.
67550         * lib/unistr/u8-strmblen.c: Likewise.
67551         * lib/unistr/u8-strmbtouc.c: Likewise.
67552         * lib/unistr/u8-strncat.c: Likewise.
67553         * lib/unistr/u8-strncmp.c: Likewise.
67554         * lib/unistr/u8-strncpy.c: Likewise.
67555         * lib/unistr/u8-strnlen.c: Likewise.
67556         * lib/unistr/u8-strpbrk.c: Likewise.
67557         * lib/unistr/u8-strrchr.c: Likewise.
67558         * lib/unistr/u8-strspn.c: Likewise.
67559         * lib/unistr/u8-strstr.c: Likewise.
67560         * lib/unistr/u8-strtok.c: Likewise.
67561         * lib/unistr/u8-to-u16.c: Likewise.
67562         * lib/unistr/u8-to-u32.c: Likewise.
67563         * lib/unistr/u8-uctomb-aux.c: Likewise.
67564         * lib/unistr/u8-uctomb.c: Likewise.
67565         * lib/unitypes.h: Likewise.
67566         * lib/uniwidth.h: Likewise.
67567         * lib/uniwidth/cjk.h: Likewise.
67568         * lib/uniwidth/u16-strwidth.c: Likewise.
67569         * lib/uniwidth/u16-width.c: Likewise.
67570         * lib/uniwidth/u32-strwidth.c: Likewise.
67571         * lib/uniwidth/u32-width.c: Likewise.
67572         * lib/uniwidth/u8-strwidth.c: Likewise.
67573         * lib/uniwidth/u8-width.c: Likewise.
67574         * lib/uniwidth/width.c: Likewise.
67575
67576 2007-10-07  Bruno Haible  <bruno@clisp.org>
67577
67578         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
67579         The file is still under LGPL (see modules/inttypes).
67580
67581 2007-10-06  Bruno Haible  <bruno@clisp.org>
67582
67583         * modules/trunc (Dependencies): Add 'extensions'.
67584         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
67585         Reported by Ben Pfaff <blp@gnu.org>.
67586
67587 2007-10-06  Bruno Haible  <bruno@clisp.org>
67588
67589         * modules/freopen-tests: New file.
67590         * tests/test-freopen.c: New file.
67591
67592         * modules/fopen-tests: New file.
67593         * tests/test-fopen.c: New file.
67594
67595         * modules/fopen: New file.
67596         * lib/fopen.c: New file.
67597         * m4/fopen.m4: New file.
67598         * modules/freopen: New file.
67599         * lib/freopen.c: New file.
67600         * m4/freopen.m4: New file.
67601         * lib/stdio.in.h (fopen, freopen): New declarations.
67602         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
67603         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
67604         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
67605         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
67606         * doc/functions/fopen.texi: Mention the 'fopen' module.
67607         * doc/functions/freopen.texi: Mention the 'freopen' module.
67608
67609 2007-10-06  Bruno Haible  <bruno@clisp.org>
67610
67611         * modules/open-tests: New file.
67612         * tests/test-open.c: New file.
67613
67614         * modules/open: New file.
67615         * lib/open.c: New file.
67616         * m4/open.m4: New file.
67617         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
67618         lib/open.c does.
67619         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
67620         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
67621         macros.
67622         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
67623         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
67624         REPLACE_OPEN.
67625         * doc/functions/open.texi: Mention the 'open' module.
67626
67627 2007-10-04  Bruno Haible  <bruno@clisp.org>
67628
67629         * modules/ceill-tests: New file.
67630         * tests/test-ceill.c: New file.
67631
67632         * modules/ceill: New file.
67633         * lib/ceill.c: Replace entire file.
67634         * m4/ceill.m4: New file.
67635         * lib/math.in.h (ceill): Replace declaration.
67636         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
67637         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
67638         * doc/functions/ceill.texi: Mention the 'ceill' module.
67639         * modules/mathl (Files): Remove lib/ceill.c.
67640         (Depends-on): Add ceill.
67641
67642 2007-10-04  Bruno Haible  <bruno@clisp.org>
67643
67644         * modules/ceilf-tests: New file.
67645         * tests/test-ceilf.c: New file.
67646
67647         * modules/ceilf: New file.
67648         * lib/ceil.c: New file.
67649         * lib/ceilf.c: New file.
67650         * m4/ceilf.m4: New file.
67651         * lib/math.in.h (ceilf): New declaration.
67652         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
67653         HAVE_DECL_CEILF.
67654         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
67655         HAVE_DECL_CEILF.
67656         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
67657
67658 2007-10-04  Bruno Haible  <bruno@clisp.org>
67659
67660         * modules/floorl-tests: New file.
67661         * tests/test-floorl.c: New file.
67662
67663         * modules/floorl: New file.
67664         * lib/floorl.c: Replace entire file.
67665         * m4/floorl.m4: New file.
67666         * lib/math.in.h (floorl): Replace declaration.
67667         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
67668         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
67669         * doc/functions/floorl.texi: Mention the 'floorl' module.
67670         * modules/mathl (Files): Remove lib/floorl.c.
67671         (Depends-on): Add floorl.
67672
67673 2007-10-04  Bruno Haible  <bruno@clisp.org>
67674
67675         * modules/floorf-tests: New file.
67676         * tests/test-floorf.c: New file.
67677
67678         * modules/floorf: New file.
67679         * lib/floor.c: New file.
67680         * lib/floorf.c: New file.
67681         * m4/floorf.m4: New file.
67682         * lib/math.in.h (floorf): New declaration.
67683         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
67684         HAVE_DECL_FLOORF.
67685         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
67686         HAVE_DECL_FLOORF.
67687         * doc/functions/floorf.texi: Mention the 'floorf' module.
67688
67689 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
67690             Bruno Haible  <bruno@clisp.org>
67691
67692         Advertise for the Git server instead of the CVS server.
67693         * doc/gnulib-intro.texi (Steady Development): Mention the Git
67694         repository instead of the CVS one.
67695         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
67696         about all VCS systems generically.
67697         * doc/gnulib.texi (Introduction): Capitalize `Git'.
67698
67699 2007-10-04  Bruno Haible  <bruno@clisp.org>
67700
67701         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
67702         means.
67703         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
67704
67705 2007-10-04  Bruno Haible  <bruno@clisp.org>
67706
67707         * modules/truncl-tests: New file.
67708         * tests/test-truncl.c: New file.
67709
67710         * modules/truncl: New file.
67711         * lib/truncl.c: New file.
67712         * m4/truncl.m4: New file.
67713         * lib/math.in.h (truncl): New declaration.
67714         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
67715         HAVE_DECL_TRUNCL.
67716         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
67717         HAVE_DECL_TRUNCL.
67718         * doc/functions/truncl.texi: Mention the 'truncl' module.
67719
67720 2007-10-04  Bruno Haible  <bruno@clisp.org>
67721
67722         * modules/truncf-tests: New file.
67723         * tests/test-truncf.c: New file.
67724
67725         * modules/truncf: New file.
67726         * lib/trunc.c: Make paramerizable through USE_* macros.
67727         * lib/truncf.c: New file.
67728         * m4/truncf.m4: New file.
67729         * lib/math.in.h (truncf): New declaration.
67730         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
67731         HAVE_DECL_TRUNCF.
67732         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
67733         HAVE_DECL_TRUNCF.
67734         * doc/functions/truncf.texi: Mention the 'truncf' module.
67735
67736 2007-10-03  Bruno Haible  <bruno@clisp.org>
67737
67738         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
67739         augmentation also for tests modules.
67740         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
67741         * modules/atexit-tests (Makefile.am): Likewise.
67742         * modules/binary-io-tests (Makefile.am): Likewise.
67743         * modules/c-strcase-tests (Makefile.am): Likewise.
67744         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
67745         * modules/canonicalize-tests (Makefile.am): Likewise.
67746         * modules/closein-tests (Makefile.am): Likewise.
67747         * modules/fprintf-posix-tests (Makefile.am): Likewise.
67748         * modules/freadahead-tests (Makefile.am): Likewise.
67749         * modules/fseek-tests (Makefile.am): Likewise.
67750         * modules/fseeko-tests (Makefile.am): Likewise.
67751         * modules/ftell-tests (Makefile.am): Likewise.
67752         * modules/ftello-tests (Makefile.am): Likewise.
67753         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
67754         * modules/isnanl-tests (Makefile.am): Likewise.
67755         * modules/lseek-tests (Makefile.am): Likewise.
67756         * modules/mbscasecmp-tests (Makefile.am): Likewise.
67757         * modules/mbscasestr-tests (Makefile.am): Likewise.
67758         * modules/mbschr-tests (Makefile.am): Likewise.
67759         * modules/mbscspn-tests (Makefile.am): Likewise.
67760         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
67761         * modules/mbspbrk-tests (Makefile.am): Likewise.
67762         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
67763         * modules/mbsrchr-tests (Makefile.am): Likewise.
67764         * modules/mbsspn-tests (Makefile.am): Likewise.
67765         * modules/mbsstr-tests (Makefile.am): Likewise.
67766         * modules/printf-posix-tests (Makefile.am): Likewise.
67767         * modules/snprintf-posix-tests (Makefile.am): Likewise.
67768         * modules/sprintf-posix-tests (Makefile.am): Likewise.
67769         * modules/tsearch-tests (Makefile.am): Likewise.
67770         * modules/uniname/uniname-tests (Makefile.am): Likewise.
67771         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
67772         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
67773         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
67774         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
67775         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
67776         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
67777         * modules/vprintf-posix-tests (Makefile.am): Likewise.
67778         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
67779         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
67780         * modules/xstrtoimax-tests (Makefile.am): Likewise.
67781         * modules/xstrtol-tests (Makefile.am): Likewise.
67782         * modules/xstrtoumax-tests (Makefile.am): Likewise.
67783         * modules/yesno-tests (Makefile.am): Likewise.
67784
67785 2007-10-03  Bruno Haible  <bruno@clisp.org>
67786
67787         * modules/trunc-tests: New file.
67788         * tests/test-trunc.c: New file.
67789
67790         * modules/trunc: New file.
67791         * lib/trunc.c: New file.
67792         * m4/trunc.m4: New file.
67793         * lib/math.in.h (trunc): New declaration.
67794         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
67795         HAVE_DECL_TRUNC.
67796         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
67797         HAVE_DECL_TRUNC.
67798         * doc/functions/trunc.texi: Mention the 'trunc' module.
67799
67800 2007-10-03  Bruno Haible  <bruno@clisp.org>
67801
67802         * tests/test-fpending.c: New file, mostly copied
67803         from coreutils/lib/t-fpending.c.
67804         * modules/fpending-tests: New file.
67805
67806 2007-10-03  Bruno Haible  <bruno@clisp.org>
67807
67808         Port the stdio extensions to QNX (untested).
67809         * lib/fseterr.c (fseterr): Add support for QNX.
67810         * lib/fbufmode.c (fbufmode): Likewise.
67811         * lib/freadable.c (freadable): Likewise.
67812         * lib/fwritable.c (fwritable): Likewise.
67813         * lib/freading.c (freading): Likewise.
67814         * lib/fwriting.c (fwriting): Likewise.
67815         * lib/freadahead.c (freadahed): Likewise.
67816         * lib/fpurge.c (fpurge): Likewise.
67817         * lib/fseeko.c (rpl_fseeko): Likewise.
67818
67819 2007-10-03  Bruno Haible  <bruno@clisp.org>
67820             Jim Meyering  <jim@meyering.net>
67821             Eric Blake  <ebb9@byu.net>
67822
67823         * doc/relocatable.texi: Use @command instead of @program.
67824
67825 2007-10-02  Jim Meyering  <jim@meyering.net>
67826
67827         Perform one more "_.h" -> ".in.h" substitution.
67828         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
67829         instead of unistd_.h here, too.
67830
67831 2007-10-01  Bruno Haible  <bruno@clisp.org>
67832
67833         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
67834         Needed for the alloca-opt module.
67835
67836 2007-09-30  Bruno Haible  <bruno@clisp.org>
67837
67838         * lib/alloca.in.h: Renamed from lib/alloca_.h.
67839         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
67840         alloca_.h.
67841         * lib/argz.in.h: Renamed from lib/argz_.h.
67842         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
67843         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
67844         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
67845         byteswap_.h.
67846         * lib/dirent.in.h: Renamed from lib/dirent_.h.
67847         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
67848         dirent_.h.
67849         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
67850         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
67851         fcntl_.h.
67852         * lib/float.in.h: Renamed from lib/float_.h.
67853         * modules/float (Files, Makefile.am): Use float.in.h instead of
67854         float_.h.
67855         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
67856         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
67857         fnmatch_.h.
67858         * lib/getopt.in.h: Renamed from lib/getopt_.h.
67859         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
67860         getopt_.h.
67861         * lib/glob.in.h: Renamed from lib/glob_.h.
67862         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
67863         * lib/iconv.in.h: Renamed from lib/iconv_.h.
67864         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
67865         iconv_.h.
67866         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
67867         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
67868         inttypes_.h.
67869         * lib/locale.in.h: Renamed from lib/locale_.h.
67870         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
67871         locale_.h.
67872         * lib/math.in.h: Renamed from lib/math_.h.
67873         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
67874         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
67875         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
67876         of netinet_in_.h. Add dependency.
67877         * lib/poll.in.h: Renamed from lib/poll_.h.
67878         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
67879         * lib/search.in.h: Renamed from lib/search_.h.
67880         * modules/search (Files, Makefile.am): Use search.in.h instead of
67881         search_.h.
67882         * lib/signal.in.h: Renamed from lib/signal_.h.
67883         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
67884         _signal.h.
67885         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
67886         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
67887         stdbool_.h.
67888         * lib/stdint.in.h: Renamed from lib/stdint_.h.
67889         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
67890         stdint_.h.
67891         * lib/stdio.in.h: Renamed from lib/stdio_.h.
67892         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
67893         stdio_.h.
67894         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
67895         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
67896         stdlib_.h.
67897         * lib/string.in.h: Renamed from lib/string_.h.
67898         * modules/string (Files, Makefile.am): Use string.in.h instead of
67899         string_.h.
67900         * doc/gnulib-tool.texi (Initial import): Update.
67901         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
67902         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
67903         of sys_select_.h. Add dependency.
67904         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
67905         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
67906         of sys_socket_.h.
67907         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
67908         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
67909         sys_stat_.h.
67910         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
67911         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
67912         sys_time_.h.
67913         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
67914         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
67915         sysexits_.h.
67916         * lib/time.in.h: Renamed from lib/time_.h.
67917         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
67918         * lib/unistd.in.h: Renamed from lib/unistd_.h.
67919         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
67920         unistd_.h.
67921         * lib/wchar.in.h: Renamed from lib/wchar_.h.
67922         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
67923         wchar_.h.
67924         * lib/wctype.in.h: Renamed from lib/wctype_.h.
67925         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
67926         wctype_.h.
67927         * build-aux/bootstrap (slurp): Update.
67928         * lib/.cppi-disable: Update.
67929
67930 2007-09-30  Bruno Haible  <bruno@clisp.org>
67931
67932         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
67933         Needed on BeOS.
67934
67935 2007-09-30  Bruno Haible  <bruno@clisp.org>
67936
67937         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
67938
67939 2007-09-29  Bruno Haible  <bruno@clisp.org>
67940
67941         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
67942
67943 2007-09-29  Bruno Haible  <bruno@clisp.org>
67944
67945         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
67946         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
67947         * build-aux/install-reloc: Compile also areadlink.c.
67948         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
67949
67950 2007-09-29  Bruno Haible  <bruno@clisp.org>
67951
67952         * gnulib-tool (func_emit_initmacro_done): Indentation.
67953
67954 2007-09-29  Bruno Haible  <bruno@clisp.org>
67955
67956         * README: Add CVS checkout update instructions.
67957         Info from Bob Proulx <bob@proulx.com>.
67958
67959 2007-09-28  Eric Blake  <ebb9@byu.net>
67960
67961         Provide move-if-change.
67962         * build-aux/move-if-change: New file, based on best practice
67963         rather than any canonical upstream location.
67964
67965 2007-09-28  Jim Meyering  <jim@meyering.net>
67966
67967         Fix canonicalize loop-detection corner case.
67968         Do not attempt to stat the symlink values stored via seen_triple.
67969         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
67970         on linux-2.6.18, (but not 2.6.22).
67971         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
67972         triple_compare.  The former compares dev,ino,filename, while the latter
67973         would actually stat dirname(filename) when dev and ino were equal.
67974         * lib/hash-triple.c: Install <string.h>.
67975         (STREQ): Define.
67976         (triple_compare_ino_str): New function.
67977         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
67978
67979 2007-09-28  Eric Blake  <ebb9@byu.net>
67980
67981         Enforce that AC_REPLACE_FUNCS files exist.
67982         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
67983         override check for typos.
67984
67985         Fix test-closein on Solaris 10.
67986         * tests/test-closein.c (main): Don't assume stdin can be inherited
67987         closed on all systems.
67988         * tests/test-closein.sh: Likewise.
67989         Reported by Piotr Tarnowski.
67990
67991 2007-09-28  Jim Meyering  <jim@meyering.net>
67992
67993         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
67994
67995 2007-09-27  Jim Meyering  <jim@meyering.net>
67996
67997         canonicalize: Avoid a false-positive cycle failure.
67998         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
67999         Sort.  Remove cycle-check.
68000         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
68001         not cycle-check.h.
68002         (seen_triple): New function.
68003         (canonicalize_filename_mode): Use it instead of cycle-check.
68004         * tests/test-canonicalize.c: Add a test for this bug.
68005         * tests/test-canonicalize.sh: Set up and run the test.
68006
68007         New module, file-set, from coreutils.
68008         * modules/file-set: Define it.
68009         * lib/file-set.c, lib/file-set.h: Implement.
68010
68011         New module, hash-triple, from coreutils.
68012         * modules/hash-triple: Define it.
68013         * lib/hash-triple.c, lib/hash-triple.h: Implement.
68014
68015 2007-09-25  Eric Blake  <ebb9@byu.net>
68016
68017         Fix strerror on Interix.
68018         * lib/string_.h (strerror): Declare replacement.
68019         * doc/functions/strerror.texi (strerror): Document the Interix
68020         shortcoming.
68021         * modules/string (Makefile.am): Support new hooks.
68022         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
68023         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
68024         gl_FUNC_STRERROR_SEPARATE.
68025         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
68026         * lib/strerror.c (rpl_strerror): Provide replacement.
68027         * modules/strerror (Depends-on): Add string.
68028         (configure.ac): Detect use of module.
68029         * tests/test-strerror.c: New file.
68030         * modules/strerror-tests: New test module.
68031         * modules/argp (Depends-on): Add strerror.
68032         * modules/error (Depends-on): Likewise.
68033         Reported by Martin Koeppe.
68034
68035 2007-09-24  Bruno Haible  <bruno@clisp.org>
68036
68037         * README: Update git instructions.
68038
68039 2007-09-24  Eric Blake  <ebb9@byu.net>
68040
68041         Revert fpending breakage from 2007-09-08.
68042         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
68043         __fpending.c.
68044
68045 2007-09-24  Jim Meyering  <jim@meyering.net>
68046
68047         filenamecat.c: Add a test.
68048         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
68049         showing how the function works when DIR is the empty string.
68050
68051 2007-09-21  Simon Josefsson  <simon@josefsson.org>
68052
68053         * tests/test-canonicalize.sh: Turn on executable bit.
68054
68055 2007-09-19  Eric Blake  <ebb9@byu.net>
68056
68057         * README: Update CVS instructions.
68058
68059 2007-09-18  Bruno Haible  <bruno@clisp.org>
68060
68061         * modules/areadlink: New file.
68062         * lib/areadlink.h (areadlink): New declaration.
68063         * lib/areadlink.c: New file, based on lib/xreadlink.c.
68064
68065 2007-09-17  Jim Meyering  <jim@meyering.net>
68066
68067         * lib/savewd.c (ESTALE) [!defined]: Define.
68068         Reported to be required on Interix by Martin Koeppe.
68069
68070 2007-09-17  Bruno Haible  <bruno@clisp.org>
68071
68072         * gnulib-tool (func_version): Use $version.
68073
68074 2007-09-16  Bruno Haible  <bruno@clisp.org>
68075
68076         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
68077         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
68078         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
68079         Reported by Greg Schafer <gschafer@zip.com.au>.
68080
68081 2007-09-15  Bruno Haible  <bruno@clisp.org>
68082
68083         * gnulib-tool (sed): Try a little harder to make bash understand the
68084         alias.
68085         Reported by Bruce Korb <bruce.korb@gmail.com>.
68086
68087 2007-09-13  Eric Blake  <ebb9@byu.net>
68088
68089         * ChangeLog: Remove conflict markers.
68090
68091 2007-09-13  Simon Josefsson  <simon@josefsson.org>
68092
68093         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
68094         Reported by Bruno Haible <bruno@clisp.org>.
68095
68096 2007-09-12  Bruno Haible  <bruno@clisp.org>
68097
68098         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
68099         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
68100         is not defined.
68101
68102 2007-09-12  Eric Blake  <ebb9@byu.net>
68103
68104         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
68105         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
68106         Autoconf definition.
68107         * modules/euidaccess (Depends-on): Add extensions, for
68108         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
68109         * modules/fnmatch (Depends-on): Likewise.
68110         * modules/getaddrinfo (Depends-on): Likewise.
68111         * modules/getdelim (Depends-on): Likewise.
68112         * modules/getline (Depends-on): Likewise.
68113         * modules/getsubopt (Depends-on): Likewise.
68114         * modules/gettext (Depends-on): Likewise.
68115         * modules/group-member (Depends-on): Likewise.
68116         * modules/mbchar (Depends-on): Likewise.
68117         * modules/memmem (Depends-on): Likewise.
68118         * modules/mempcpy (Depends-on): Likewise.
68119         * modules/memrchr (Depends-on): Likewise.
68120         * modules/pagealign_alloc (Depends-on): Likewise.
68121         * modules/readutmp (Depends-on): Likewise.
68122         * modules/stpcpy (Depends-on): Likewise.
68123         * modules/stpncpy (Depends-on): Likewise.
68124         * modules/strchrnul (Depends-on): Likewise.
68125         * modules/strndup (Depends-on): Likewise.
68126         * modules/strsep (Depends-on): Likewise.
68127         * modules/strverscmp (Depends-on): Likewise.
68128         * modules/vasprintf (Depends-on): Likewise.
68129         * modules/wcwidth (Depends-on): Likewise.
68130         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
68131         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
68132         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
68133         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
68134         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
68135         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
68136         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
68137         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
68138         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
68139         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
68140         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
68141         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
68142         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
68143         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
68144         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
68145         * m4/readutmp.m4 (gl_READUTMP): Likewise.
68146         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
68147         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
68148         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
68149         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
68150         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
68151         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
68152         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
68153         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
68154         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
68155         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
68156         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
68157         so that lock.m4 can be used in gettext without extensions module.
68158
68159 2007-09-11  Bruno Haible  <bruno@clisp.org>
68160
68161         * m4/isc-posix.m4: Remove file.
68162         Suggested by Eric Blake.
68163
68164 2007-09-11  Eric Blake  <ebb9@byu.net>
68165
68166         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
68167
68168 2007-09-10  Bruno Haible  <bruno@clisp.org>
68169
68170         * posix-modules: Fix typo in error message.
68171         Reported by Matt <mkraai@beckman.com>.
68172
68173 2007-09-09  Bruno Haible  <bruno@clisp.org>
68174
68175         * doc/functions/getdelim.texi: Update list of platforms lacking the
68176         function.
68177         * doc/functions/getline.texi: Likewise.
68178
68179 2007-09-09  Jim Meyering  <jim@meyering.net>
68180
68181         * lib/hash.c (hash_initialize): Detect calloc failure.
68182         Reported by Bruno Haible.
68183
68184 2007-09-09  Bruno Haible  <bruno@clisp.org>
68185
68186         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
68187         malloc or realloc fails.
68188
68189 2007-09-09  Bruno Haible  <bruno@clisp.org>
68190
68191         * modules/getcwd (Depends-on): Add malloc-posix.
68192         * modules/glob (Depends-on): Likewise.
68193         * modules/putenv (Depends-on): Likewise.
68194         * modules/strdup (Depends-on): Likewise.
68195         * modules/getdelim (Depends-on): Add realloc-posix.
68196         * modules/read-file (Depends-on): Likewise.
68197
68198 2007-09-09  Bruno Haible  <bruno@clisp.org>
68199
68200         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
68201         (gl_FUNC_MALLOC_POSIX): Require it.
68202         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
68203         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
68204         * modules/realloc (Files): Add m4/malloc.m4.
68205         * modules/calloc (Files): Likewise.
68206
68207 2007-09-09  Bruno Haible  <bruno@clisp.org>
68208
68209         * modules/malloc-posix: New file.
68210         * modules/malloc (Depends-on): Add malloc-posix.
68211         * lib/malloc.c: Include errno.h.
68212         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
68213         and a POSIX-compatible malloc into a single function. Set ENOMEM
68214         when returning NULL.
68215         * m4/malloc.m4: New file.
68216         * doc/functions/malloc.texi: Mention the malloc-posix module.
68217         * lib/stdlib_.h (malloc): New declaration.
68218         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
68219         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
68220         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
68221         and HAVE_MALLOC_POSIX.
68222
68223 2007-09-09  Bruno Haible  <bruno@clisp.org>
68224
68225         * modules/realloc-posix: New file.
68226         * modules/realloc (Depends-on): Add realloc-posix.
68227         * lib/realloc.c: Include errno.h.
68228         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
68229         and a POSIX-compatible realloc into a single function. Set ENOMEM
68230         when returning NULL.
68231         * m4/realloc.m4: New file.
68232         * doc/functions/realloc.texi: Mention the realloc-posix module.
68233         * lib/stdlib_.h (realloc): New declaration.
68234         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
68235         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
68236         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
68237         and HAVE_REALLOC_POSIX.
68238
68239 2007-09-09  Bruno Haible  <bruno@clisp.org>
68240
68241         * modules/calloc-posix: New file.
68242         * modules/calloc (Depends-on): Add calloc-posix.
68243         * lib/calloc.c: Include errno.h.
68244         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
68245         and a POSIX-compatible calloc into a single function. Set ENOMEM
68246         when returning NULL.
68247         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
68248         * doc/functions/calloc.texi: Mention the calloc-posix module.
68249         * lib/stdlib_.h (calloc): New declaration.
68250         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
68251         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
68252         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
68253         and HAVE_CALLOC_POSIX.
68254
68255 2007-09-09  Bruno Haible  <bruno@clisp.org>
68256
68257         Allow for modules to show an arbitrary notice.
68258         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
68259         * gnulib-tool: New option --extract-notice.
68260         (func_usage): Document it.
68261         (sed_extract_prog): Update.
68262         (func_get_notice): New function.
68263         (func_modules_notice): New function.
68264         (func_import, func_create_testdir): Invoke it.
68265         Suggested by Jim Meyering.
68266
68267 2007-09-09  Bruno Haible  <bruno@clisp.org>
68268
68269         * gnulib-tool: New options --verbose, --quiet.
68270         (func_usage): Document them.
68271         (verbose): New variable.
68272         (func_execute_command): New function.
68273         (func_import): Don't show the module list and the file list if
68274         $verbose < 0.
68275         (func_create_testdir): Likewise. Use func_execute_command.
68276         (func_create_megatestdir): Use func_execute_command.
68277
68278 2007-09-08  Bruno Haible  <bruno@clisp.org>
68279
68280         * gnulib-tool (func_import): Prefer rsync over wget when available,
68281         for fetching the PO files.
68282
68283 2007-09-08  Bruno Haible  <bruno@clisp.org>
68284
68285         * posix-modules: New file. Portions copied from gnulib-tool.
68286         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
68287
68288 2007-09-08  Jim Meyering  <jim@meyering.net>
68289
68290         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
68291         * lib/fpending.h: Rename from __fpending.h.
68292         * lib/fpending.c: Rename from __fpending.c.
68293         Include "fpending.h", not "__fpending.h".
68294         * lib/__fpending.h, lib/__fpending.c: Remove files.
68295         * modules/fpending (Files): Reflect new file names.
68296         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
68297
68298 2007-09-08  Bruno Haible  <bruno@clisp.org>
68299
68300         * m4/inttypes-h.m4: Remove stub file.
68301
68302 2007-09-07  Simon Josefsson  <simon@josefsson.org>
68303
68304         * doc/headers/stdint.texi: Discuss #include_next issue.
68305
68306 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
68307
68308         * build-aux/bootstrap: Remove obsolete comment about wget --help.
68309
68310 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68311
68312         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
68313         in variable name.
68314
68315 2007-09-03  Jim Meyering  <jim@meyering.net>
68316
68317         New module: git-version-gen.
68318         * modules/git-version-gen: New file.
68319
68320         Import changes from coreutils for bootstrap script.
68321
68322         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
68323
68324         bootstrap: uses rsync to download the .po files
68325         * build-aux/bootstrap (po_download_command_format): New global.
68326         (download_po_files): Use rsync.
68327         (update_po_files): Don't remove .po files after download,
68328         so future rsync runs can take advantage of the copies.
68329
68330         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
68331
68332         Solve the unnecessary-.po-file-regeneration problem once and for all.
68333         * build-aux/bootstrap (download_po_files): New function, renamed from
68334         get_translations.  Now, downloads, but doesn't update LINGUAS.
68335         (update_po_files): New function.
68336
68337         bootstrap: Ignore more.
68338         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
68339         uniwidth to e.g., lib/.gitignore.
68340         (slurp): Handle the sys_stat_.h -> sys mapping, too.
68341
68342         * build-aux/bootstrap: New setting: vc_ignore.
68343         (insert_sorted_if_absent): Create $file if absent.
68344         Adapt to new, possibly empty, list: $vc_ignore.
68345
68346         bootstrap: generate more ignorable names
68347         * build-aux/bootstrap (slurp): When generating ignorable names,
68348         also map .sin to .sed, .gperf to .c, and .y to .c.
68349
68350 2007-09-03  Jim Meyering  <jim@meyering.net>
68351
68352         * build-aux/git-version-gen: New file, from coreutils.  For details, see
68353         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
68354
68355 2007-09-02  Bruno Haible  <bruno@clisp.org>
68356
68357         Fix mis-recognition of 'mcs' on QNX 6.
68358         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
68359         output contains the string "Mono".
68360         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
68361         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
68362
68363 2007-09-01  Bruno Haible  <bruno@clisp.org>
68364
68365         Fix collision between uniwidth/* and linebreak modules.
68366         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
68367         u32_width): Remove declarations.
68368         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
68369         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
68370         streq3, streq2, streq1, streq0): Remove functions.
68371         (STREQ): Remove macro.
68372         (is_cjk_encoding): Remove function.
68373         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
68374         (uc_width, u8_width, u16_width, u32_width): Remove functions.
68375         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
68376         * NEWS: Document the change.
68377
68378 2007-09-01  Bruno Haible  <bruno@clisp.org>
68379
68380         * lib/streq.h: Add double-inclusion guard.
68381
68382 2007-09-01  Karl Berry  <karl@gnu.org>
68383
68384         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
68385
68386 2007-08-28  Jim Meyering  <jim@meyering.net>
68387
68388         Rename mreadlink_with_size to areadlink_with_size.
68389         * NEWS: Document the change.
68390         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
68391         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
68392         * lib/mreadlink.h: Rename this to...
68393         * lib/areadlink.h: ...this.
68394         * modules/mreadlink-with-size: Rename this to...
68395         * modules/areadlink-with-size: ...this.
68396         * lib/canonicalize.c: Reflect the renaming.
68397         * modules/canonicalize: Likewise.
68398
68399 2007-08-26  Bruno Haible  <bruno@clisp.org>
68400
68401         * gnulib-tool (func_import): When deciding which files to remove,
68402         consider also dangling symbolic links.
68403         Reported by Eric Blake.
68404
68405 2007-08-26  Bruno Haible  <bruno@clisp.org>
68406
68407         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
68408
68409 2007-08-23  Simon Josefsson  <simon@josefsson.org>
68410
68411         * lib/readline.c: Don't include getline.h, the prototype is now
68412         found in stdio.h.
68413
68414 2007-08-23  Jim Meyering  <jim@meyering.net>
68415
68416         Getdelim touchup.
68417         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
68418         around the funlockfile call, since funlockfile never sets errno.
68419         Don't set errno upon failed realloc.
68420
68421 2007-08-22  Eric Blake  <ebb9@byu.net>
68422
68423         Getline touchups.
68424         * lib/getdelim.c (getdelim): Revert regression that required *n to
68425         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
68426         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
68427         getdelim, rather than whether implementation is missing.
68428         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
68429         * lib/stdio_.h (getline): Also declare if replacement is
68430         required.
68431         * doc/functions/getdelim.texi: New file.
68432         * doc/functions/getline.texi: Likewise.
68433         * doc/gnulib.texi (Function Substitutes): Add new files.
68434         Reported by Bruno Haible.
68435
68436 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
68437
68438         * users.txt: Add Guile.
68439
68440 2007-08-22  Eric Blake  <ebb9@byu.net>
68441
68442         * tests/test-getdelim.c (main): Use remove, not unlink.
68443         * tests/test-getline.c (main): Likewise.
68444
68445         Move getline and getdelim into stdio.h, per POSIX 200x.
68446         * modules/getline (Files): Remove getline.h.
68447         (Depends-on): Add stdio.
68448         (configure.ac): Add module indicator.
68449         * modules/getdelim (Files): Remove getdelim.h.
68450         (Depends-on): Add stdio.
68451         (configure.ac): Add module indicator.
68452         * modules/stdio (Makefile.am): Work with new indicators.
68453         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
68454         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
68455         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
68456         * lib/getdelim.h: Delete.
68457         * lib/getline.h: Delete.
68458         * lib/stdio_.h (getdelim, getline): Declare.
68459         * modules/getdelim-tests: New module.
68460         * modules/getline-tests: Likewise.
68461         * tests/test-getdelim.c: New file.
68462         * tests/test-getline.c: Likewise.
68463         * NEWS: Document the change.
68464         * lib/getline.c: Update choice of header.
68465         * lib/csharpcomp.c: Likewise.
68466         * lib/getpass.c: Likewise.
68467         * lib/javacomp.c: Likewise.
68468         * lib/javaversion.c: Likewise.
68469         * lib/yesno.c: Likewise.
68470         * lib/getdelim.c: Likewise.
68471         (getdelim): Set errno on failure, and avoid memory leak.
68472
68473 2007-08-19  Bruno Haible  <bruno@clisp.org>
68474
68475         * modules/closein (Depends-on): Add freadahead.
68476         * lib/closein.c: Include freadahead.h.
68477         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
68478         is zero.
68479
68480 2007-08-19  Bruno Haible  <bruno@clisp.org>
68481
68482         * modules/freadahead-tests: New file.
68483         * tests/test-freadahead.sh: New file.
68484         * tests/test-freadahead.c: New file.
68485
68486         * modules/freadahead: New file.
68487         * lib/freadahead.h: New file.
68488         * lib/freadahead.c: New file.
68489         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
68490         fbufmode, fpurge, freadable, fwritable.
68491
68492 2007-08-19  Eric Blake  <ebb9@byu.net>
68493
68494         Test yesno in combination with closein.
68495         * lib/yesno.c (yesno): Document use of stdin.
68496         * modules/yesno-tests (Files): New module.
68497         * tests/test-yesno.c (main): New file.
68498         * tests/test-yesno.sh: Likewise.
68499
68500 2007-08-19  Bruno Haible  <bruno@clisp.org>
68501
68502         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
68503         * lib/fseeko.c (rpl_fseeko): Likewise.
68504         * lib/fseterr.c (fseterr): Likewise.
68505
68506 2007-08-19  Bruno Haible  <bruno@clisp.org>
68507
68508         * tests/test-lseek.c (main): Disable a test for BeOS.
68509         * doc/functions/lseek.texi: Document the BeOS bug.
68510
68511 2007-08-19  Bruno Haible  <bruno@clisp.org>
68512             Eric Blake  <ebb9@byu.net>
68513
68514         * lib/lseek.c: Include <sys/stat.h>.
68515         (rpl_lseek): Add workaround code also for Unix platforms.
68516         Needed for BeOS.
68517         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
68518         * doc/functions/lseek.texi: Document BeOS definiency.
68519
68520 2007-08-18  Bruno Haible  <bruno@clisp.org>
68521
68522         * modules/fstrcmp-tests: New file.
68523         * tests/test-fstrcmp.c: New file.
68524
68525 2007-08-18  Bruno Haible  <bruno@clisp.org>
68526
68527         * modules/fstrcmp: New file, from GNU gettext with modifications.
68528         * lib/fstrcmp.h: New file, from GNU gettext.
68529         * lib/fstrcmp.c: New file, from GNU gettext.
68530         * MODULES.html.sh (String handling): Add fstrcmp.
68531
68532 2007-08-18  Bruno Haible  <bruno@clisp.org>
68533
68534         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
68535         'bool'.
68536         (diag, compareseq): Remove const from the ctxt argument.
68537         (USE_HEURISTIC): Undefine at the end.
68538
68539 2007-08-18  Jim Meyering  <jim@meyering.net>
68540
68541         New file: lib/idcache.h
68542         * NEWS: Mention the addition.
68543         * modules/idcache (Files): Add lib/idcache.h
68544         * lib/idcache.c: Include "idcache.h".
68545         Don't include <sys/types.h>.
68546         Add a FIXME comment.
68547         Move file-scoped "static" declarations to the top.
68548         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
68549
68550 2007-08-17  Bruno Haible  <bruno@clisp.org>
68551         and Paul Eggert  <eggert@cs.ucla.edu>
68552
68553         * MODULES.html.sh: Add diffseq.
68554         * modules/diffseq: New file.
68555         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
68556         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
68557
68558 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68559
68560         Import changes from coreutils for bootstrap script.
68561
68562         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
68563
68564         * build-aux/bootstrap (slurp): Work even in environments where
68565         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
68566         current code does not slurp files whose names start with ".", and
68567         this looks like it might be a troublesome area.
68568
68569         2007-07-11  Jim Meyering  <jim@meyering.net>
68570
68571         If there's a GPL vN copyright comment, require that N == 3.
68572
68573         2007-07-08  Jim Meyering  <jim@meyering.net>
68574
68575         Run the coreutils-specific code only if tests/Makefile.am.in exists.
68576         * build-aux/bootstrap (mam_template): Move definition out of loop.
68577
68578         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
68579
68580         * build-aux/bootstrap (symlink_to_dir): Rename function from
68581         symlink_to_gnulib.  Add a directory parameter.  Update all
68582         callers.
68583         (cp_mark_as_generated): Also check for -- and link to -- files in
68584         gl/.
68585
68586         2007-07-08  Jim Meyering  <jim@meyering.net>
68587
68588         Adapt to deeper hierarchy in gnulib.
68589         * build-aux/bootstrap (symlink_to_dir): If the destination
68590         directory doesn't exist, create it. This is required at least for
68591         "lib/uniwidth/cjk.h".
68592
68593         2007-05-15  Jim Meyering  <jim@meyering.net>
68594
68595         * build-aux/bootstrap: Now that generated Makefile.am files
68596         are no longer under version control, they must be created at
68597         bootstrap time.
68598
68599 2007-08-14  Ben Pfaff  <blp@gnu.org>
68600
68601         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
68602
68603 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
68604
68605         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
68606         given the changes below.
68607         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
68608         even on hosts that have padding bits beyond the supported 64.
68609
68610 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
68611
68612         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
68613         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
68614         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
68615         depends on it.
68616         (xstrtol_error): Remove.
68617         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
68618         but with a different signature.
68619         (ATTRIBUTE_NORETURN, __attribute__): New macros.
68620         * lib/xstrtol-error.c: Include exitfail.h.
68621         (xstrtol_fatal): New function, with a different signature from the
68622         old xstrtol_error, so that the caller need not worry about passing
68623         in an exit status, or about storage management of the option argument.
68624         (xstrtol_error): Now a static function.  Redo signature to
68625         implement xstrtol_fatal.  Output the correct number of hyphens in
68626         front of the option so that the caller need not worry about
68627         storage management.
68628         (N_): New macro.
68629         (_): Remove; not used now.
68630         * modules/xstrtol: Depend on getopt.
68631         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
68632         of old STRTOL_FATAL_ERROR macro.
68633         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
68634         of test program.
68635         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
68636         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
68637
68638 2007-08-08  Eric Blake  <ebb9@byu.net>
68639
68640         * lib/xstrtol-error.c: Add missing include.
68641
68642         Move xstrtol messages into gnulib domain, when --pobase is used.
68643         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
68644         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
68645         * modules/xstrtol (Files): Distribute new file.
68646         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
68647         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
68648         * tests/test-xstrtol.c: ...into new file.
68649         * tests/test-xstrtoul.c: Also test xstrtoul.
68650         * tests/test-xstrtoimax.c: Also test xstrtoimax.
68651         * tests/test-xstrtoumax.c: Also test xstrtoumax.
68652         * tests/test-xstrtol.sh: Drive the tests.
68653         * tests/test-xstrtoimax.sh: Likewise.
68654         * tests/test-xstrtoumax.sh: Likewise.
68655         * modules/xstrtol-tests: New module.
68656         * modules/xstrtoimax-tests: Likewise.
68657         * modules/xstrtoumax-tests: Likewise.
68658
68659 2007-08-08  Jim Meyering  <jim@meyering.net>
68660
68661         New function: mfile_name_concat.
68662         * lib/filenamecat.c (mfile_name_concat): New function, just like
68663         file_name_concat, but return NULL upon failure rather than exiting
68664         with a diagnostic.
68665         * lib/filenamecat.h: Declare it.
68666
68667 2007-08-07  Bruno Haible  <bruno@clisp.org>
68668
68669         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
68670         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
68671         warning from gcc.
68672         Reported by Eric Blake.
68673
68674 2007-08-07  Simon Josefsson  <simon@josefsson.org>
68675
68676         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
68677         * modules/crypto/arcfour (License): Likewise.
68678         * modules/crypto/des-tests (License): Likewise.
68679         * modules/crypto/gc-arctwo-tests (License): Likewise.
68680         * modules/crypto/gc-des-tests (License): Likewise.
68681         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
68682         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
68683         * modules/crypto/gc-md2-tests (License): Likewise.
68684         * modules/crypto/gc-md4-tests (License): Likewise.
68685         * modules/crypto/gc-md5-tests (License): Likewise.
68686         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
68687         * modules/crypto/gc-rijndael-tests (License): Likewise.
68688         * modules/crypto/gc-sha1-tests (License): Likewise.
68689         * modules/crypto/gc-tests (License): Likewise.
68690         * modules/crypto/hmac-md5 (License): Likewise.
68691         * modules/crypto/hmac-sha1 (License): Likewise.
68692         * modules/crypto/md2-tests (License): Likewise.
68693         * modules/crypto/md4-tests (License): Likewise.
68694         * modules/crypto/md5 (License): Likewise.
68695         * modules/crypto/rijndael (License): Likewise.
68696         * modules/crypto/sha1 (License): Likewise.
68697         * modules/memxor (License): Likewise.
68698
68699 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
68700         and Bruno Haible  <bruno@clisp.org>
68701
68702         * NEWS: Describe interface changes to human, xstrtol.
68703         * lib/human.h: Include <xstrtol.h>.
68704         (human_options): Return enum strtol_error, not int.  Remove
68705         bool arg; take int * instead.
68706         * lib/human.c: Don't include "gettext.h".
68707         (_): Remove; no longer used.
68708         Don't include <xstrtol.h>, since human.h does it.
68709         (human_options): Adjust to abovementioned interface changes.
68710         Do not report error to stderr; that's now the caller's
68711         responsibility.
68712         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
68713         interface change.
68714         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
68715         Str, Argument_type_string.  All uses changed.  Put " argument"
68716         in diagnostics to make them clearer.  Change wording of suffix
68717         message for clarity.
68718         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
68719         Argument_type_string.
68720         (STRTOL_FATAL_WARN): Remove; no longer used.
68721         * modules/human (Depends-on): Remove gettext-h.
68722
68723 2007-08-06  Simon Josefsson  <simon@josefsson.org>
68724
68725         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
68726
68727 2007-07-31  Bruno Haible  <bruno@clisp.org>
68728
68729         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
68730         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
68731         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
68732
68733 2007-07-31  Bruno Haible  <bruno@clisp.org>
68734
68735         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
68736         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
68737
68738 2007-07-30  Bruno Haible  <bruno@clisp.org>
68739
68740         * modules/base64 (License): Use the synonymous term "LGPLv2+".
68741         * modules/c-ctype (License): Likewise.
68742         * modules/c-strcase (License): Likewise.
68743         * modules/check-version (License): Likewise.
68744         * modules/iconv (License): Likewise.
68745         * modules/iconv_open (License): Likewise.
68746         * modules/read-file (License): Likewise.
68747         * modules/striconv (License): Likewise.
68748         * modules/strverscmp (License): Likewise.
68749         * modules/vasprintf (License): Likewise.
68750         * modules/crypto/des (License): Likewise.
68751         * modules/crypto/gc (License): Likewise.
68752         * modules/crypto/gc-arcfour (License): Likewise.
68753         * modules/crypto/gc-arctwo (License): Likewise.
68754         * modules/crypto/gc-des (License): Likewise.
68755         * modules/crypto/gc-hmac-md5 (License): Likewise.
68756         * modules/crypto/gc-hmac-sha1 (License): Likewise.
68757         * modules/crypto/gc-md2 (License): Likewise.
68758         * modules/crypto/gc-md4 (License): Likewise.
68759         * modules/crypto/gc-md5 (License): Likewise.
68760         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
68761         * modules/crypto/gc-random (License): Likewise.
68762         * modules/crypto/gc-rijndael (License): Likewise.
68763         * modules/crypto/gc-sha1 (License): Likewise.
68764         * modules/crypto/md2 (License): Likewise.
68765         * modules/crypto/md4 (License): Likewise.
68766
68767 2007-07-30  Jim Meyering  <jim@meyering.net>
68768
68769         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
68770         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
68771         it has valid stat data.  This bug would cause du not to count the
68772         sizes of inaccessible directories.
68773         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
68774         in <http://bugzilla.redhat.com/250077>.
68775
68776 2007-07-25  Peter O'Gorman  <peter@pogma.com>
68777             Bruno Haible  <bruno@clisp.org>
68778
68779         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
68780         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
68781         #include_next, gives a diagnostic about it, but reports no error in
68782         the exit code.
68783         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
68784
68785 2007-07-24  Ben Pfaff  <blp@gnu.org>
68786
68787         Improve name: "count-one-bits" is better than "popcount".
68788         * MODULES.html.sh: Update name.
68789         * lib/popcount.h: Renamed lib/count-one-bits.h.
68790         (popcount): Renamed count_one_bits.
68791         (popcountl): Renamed count_one_bits_l.
68792         (popcountll): Renamed count_one_bits_ll.
68793         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
68794         * modules/popcount: Renamed module/count-one-bits.
68795         * modules/popcount-tests: Renamed module/count-one-bits-tests.
68796         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
68797
68798 2007-07-23  Ben Pfaff  <blp@gnu.org>
68799
68800         * lib/popcount.h (popcount32): Reduce size of constants, to allow
68801         better code generation, and add U to large constants to avoid
68802         warnings, in non-GCC case.
68803         Suggested by Bruno Haible.
68804
68805 2007-07-23  Ben Pfaff  <blp@gnu.org>
68806
68807         * lib/popcount.h: Use verify_true instead of if...abort.
68808         * modules/popcount: Depend on verify module.
68809         Suggested by Jim Meyering.
68810
68811 2007-07-23  Bruno Haible  <bruno@clisp.org>
68812
68813         * gnulib-tool (func_import): Create a .cvsignore file also when the
68814         directory is not yet in CVS but the toplevel directory is. When
68815         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
68816         Reported by Karl Berry.
68817
68818 2007-07-22  Ben Pfaff  <blp@gnu.org>
68819
68820         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
68821         case.
68822         Suggested by Eric Blake.
68823
68824 2007-07-22  Ben Pfaff  <blp@gnu.org>
68825
68826         New module: popcount.
68827         * MODULES.html.sh: Add popcount.
68828         * modules/popcount: New file.
68829         * modules/popcount-tests: New file.
68830         * tests/test-popcount.c: New file.
68831         * lib/popcount.h: New file.
68832         * m4/popcount.m4: New file.
68833
68834 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
68835
68836         * build-aux/announce-gen: Update to GPLv3.
68837
68838         * build-aux/config.guess: Update from config.
68839
68840 2007-07-21  Bruno Haible  <bruno@clisp.org>
68841
68842         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
68843         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
68844
68845 2007-07-20  Jim Meyering  <jim@meyering.net>
68846
68847         * check-module: Diagnose a self-dependency.
68848
68849 2007-07-19  Bruno Haible  <bruno@clisp.org>
68850
68851         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
68852         empty.
68853         Reported by Eric Blake.
68854
68855 2007-07-18  Bruno Haible  <bruno@clisp.org>
68856
68857         * gnulib-tool: New options --po-base, --po-domain.
68858         (func_usage): Document them.
68859         (pobase, po_domain): New variables.
68860         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
68861         DEFAULT_TEXT_DOMAIN.
68862         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
68863         (func_import): Consider pobase and po_domain. Create a po/ directory.
68864         (func_create_testdir): Set pobase and po_domain to empty.
68865         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
68866         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
68867
68868 2007-07-18  Bruno Haible  <bruno@clisp.org>
68869
68870         * gnulib-tool (func_get_automake_snippet): Synthesize also an
68871         EXTRA_DIST augmentation for files in build-aux/.
68872
68873 2007-07-16  Bruno Haible  <bruno@clisp.org>
68874
68875         * modules/lseek (License): Use the synonymous term "LGPLv2+".
68876         * modules/getdelim (License): Likewise.
68877
68878 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68879
68880         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
68881         * modules/d-type (License): Likewise.
68882         * modules/extensions (License): Likewise.
68883         * modules/fnmatch (License): Likewise.
68884         * modules/fseeko (License): Likewise.
68885         * modules/getaddrinfo (License): Likewise.
68886         * modules/getline (License): Likewise.
68887         * modules/getlogin_r (License): Likewise.
68888         * modules/getpass (License): Likewise.
68889         * modules/gettimeofday (License): Likewise.
68890         * modules/glob (License): Likewise.
68891         * modules/inet_ntop (License): Likewise.
68892         * modules/malloc (License): Likewise.
68893         * modules/malloca (License): Likewise.
68894         * modules/memmem (License): Likewise.
68895         * modules/mempcpy (License): Likewise.
68896         * modules/memset (License): Likewise.
68897         * modules/minmax (License): Likewise.
68898         * modules/mktime (License): Likewise.
68899         * modules/netinet_in (License): Likewise.
68900         * modules/pathmax (License): Likewise.
68901         * modules/poll (License): Likewise.
68902         * modules/regex (License): Likewise.
68903         * modules/snprintf (License): Likewise.
68904         * modules/stdbool (License): Likewise.
68905         * modules/stdint (License): Likewise.
68906         * modules/stdio (License): Likewise.
68907         * modules/strcase (License): Likewise.
68908         * modules/strcasestr (License): Likewise.
68909         * modules/strdup (License): Likewise.
68910         * modules/string (License): Likewise.
68911         * modules/strndup (License): Likewise.
68912         * modules/strnlen (License): Likewise.
68913         * modules/strpbrk (License): Likewise.
68914         * modules/strptime (License): Likewise.
68915         * modules/strsep (License): Likewise.
68916         * modules/sys_select (License): Likewise.
68917         * modules/sys_socket (License): Likewise.
68918         * modules/sys_stat (License): Likewise.
68919         * modules/sys_time (License): Likewise.
68920         * modules/time (License): Likewise.
68921         * modules/time_r (License): Likewise.
68922         * modules/timegm (License): Likewise.
68923         * modules/unistd (License): Likewise.
68924         * modules/vsnprintf (License): Likewise.
68925         * modules/wctype (License): Likewise.
68926
68927 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68928
68929         * modules/argz (License): LGPLv2+.
68930
68931 2007-07-15  Karl Berry  <karl@gnu.org>
68932
68933         * doc/gnulib.texi: revise node structure per new fdl.texi.
68934
68935 2007-07-14  Bruno Haible  <bruno@clisp.org>
68936
68937         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
68938         the output file.
68939         * lib/uniname/uninames.h: Regenerated.
68940
68941 2007-07-14  Karl Berry  <karl@gnu.org>
68942
68943         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
68944         omitting sectioning and index commands.
68945
68946 2007-07-13  Bruno Haible  <bruno@clisp.org>
68947
68948         New gnulib-tool option --more-symlinks.
68949         * gnulib-tool (func_usage): Document --more-symlinks.
68950         (do_copyrights): New variable.
68951         Recognize option --more-symlinks.
68952         (func_import): Don't add a copyright notice transform to
68953         sed_transform_lib_file if do_copyrights is empty.
68954
68955 2007-07-13  Bruno Haible  <bruno@clisp.org>
68956
68957         * lib/vasnprintf.c (decimal_point_char): Define also if
68958         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
68959         && !NEED_PRINTF_DIRECTIVE_A.
68960         Reported by Clemens Koller <clemens.koller@anagramm.de> via
68961         Gary V. Vaughan <gary@gnu.org>.
68962
68963 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
68964
68965         * lib/inttypes_.h: Undo previous change, since it was fixed
68966         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
68967
68968 2007-07-13  Bruno Haible  <bruno@clisp.org>
68969
68970         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
68971         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
68972
68973 2007-07-13  Jim Meyering  <jim@meyering.net>
68974
68975         df: Don't fail for Tru64's "file-on-file mount".
68976         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
68977         so we fall through and use statfs instead.  Details here:
68978         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
68979         Reported by Albert Chin.
68980
68981 2007-07-13  Bruno Haible  <bruno@clisp.org>
68982
68983         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
68984         * modules/configmake (License): Likewise.
68985         * modules/gettext (License): Likewise.
68986         * modules/gettext-h (License): Likewise.
68987         * modules/include_next (License): Likewise.
68988         * modules/link-warning (License): Likewise.
68989         * modules/localcharset (License): Likewise.
68990         * modules/localename (License): Likewise.
68991         * modules/lock (License): Likewise.
68992         * modules/relocatable-lib-lgpl (License): Likewise.
68993         * modules/size_max (License): Likewise.
68994         * modules/vasnprintf (License): Likewise.
68995         * modules/wchar (License): Likewise.
68996         * modules/xsize (License): Likewise.
68997
68998 2007-07-13  Bruno Haible  <bruno@clisp.org>
68999
69000         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
69001         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
69002
69003 2007-07-12  Bruno Haible  <bruno@clisp.org>
69004
69005         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
69006         in the modules files.
69007
69008 2007-07-11  Karl Berry  <karl@gnu.org>
69009
69010         * MODULES.html.sh (func_module): use
69011          sed -e '\|^'"${includefile}"'$|d'
69012          instead of /.../d, to avoid errors on $includefile's containing /.
69013
69014 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
69015
69016         * gnulib-tool (func_import): Avoid duplication of --avoid
69017         statements
69018         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
69019         names to `_' in variable names.
69020
69021 2007-07-10  Eric Blake  <ebb9@byu.net>
69022
69023         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
69024         * NEWS: Document this change.
69025
69026 2007-07-08  Bruno Haible  <bruno@clisp.org>
69027
69028         Update to Unicode 5.0.
69029         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
69030         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
69031         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
69032         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
69033         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
69034         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
69035         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
69036         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
69037         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
69038         U+10A3F, U+1D242..U+1D244.
69039         (nonspacing_table_ind): Update.
69040         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
69041         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
69042
69043 2007-07-08  Bruno Haible  <bruno@clisp.org>
69044
69045         Update to Unicode 5.0.
69046         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
69047         code transform. Extend the name index field of unicode_name_to_code and
69048         unicode_code_to_name from 16 to 24 bits.
69049         * lib/uniname/uniname.c (unicode_character_name,
69050         unicode_name_character): Add the range 0x12xxx to the code transform.
69051         * lib/uniname/uninames.h: Regenerated.
69052         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
69053
69054 2007-07-07  Bruno Haible  <bruno@clisp.org>
69055
69056         * modules/wcwidth-tests: New file.
69057         * tests/test-wcwidth.c: New file.
69058
69059         Work around MacOS X wcwidth() bug.
69060         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
69061         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
69062         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
69063         original wcwidth in non-UTF-8 locales.
69064         * modules/wcwidth (Depends-on): Add localcharset, streq,
69065         uniwidth/width.
69066         * doc/functions/wcwidth.texi: Update.
69067
69068 2007-07-07  Bruno Haible  <bruno@clisp.org>
69069
69070         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
69071         (wcwidth): New declaration.
69072         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
69073         macros.
69074         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
69075         here. Prepare for creating <wchar.h> unconditionally.
69076         * modules/wchar (Depends-on): Add link-warning.
69077         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
69078         REPLACE_WCWIDTH, and GL_LINK_WARNING.
69079         * lib/wcwidth.h: Remove file.
69080         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
69081         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
69082         * modules/wcwidth (Files): Remove lib/wcwidth.h.
69083         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
69084         (Include): Replace wcwidth.h with <wchar.h>.
69085         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
69086         * lib/mbchar.h: Don't include wcwidth.h.
69087         * lib/mbswidth.c: Likewise.
69088         * NEWS: Mention the change.
69089
69090 2007-07-07  Bruno Haible  <bruno@clisp.org>
69091
69092         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
69093         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
69094         definition with an external declaration.
69095         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
69096         defined as a function. Remove AC_C_INLINE requirement.
69097         * modules/wcwidth (Files): Add lib/wcwidth.c.
69098         (Makefile.am): Remove redundant statement.
69099
69100 2007-07-07  Bruno Haible  <bruno@clisp.org>
69101
69102         * MODULES.html.sh (Unicode string functions): Add the new modules.
69103
69104         * tests/uniwidth/test-u32-strwidth.c: New file.
69105         * modules/uniwidth/u32-strwidth-tests: New file.
69106
69107         * lib/uniwidth/u32-strwidth.c: New file.
69108         * modules/uniwidth/u32-strwidth: New file.
69109
69110         * tests/uniwidth/test-u16-strwidth.c: New file.
69111         * modules/uniwidth/u16-strwidth-tests: New file.
69112
69113         * lib/uniwidth/u16-strwidth.c: New file.
69114         * modules/uniwidth/u16-strwidth: New file.
69115
69116         * tests/uniwidth/test-u8-strwidth.c: New file.
69117         * modules/uniwidth/u8-strwidth-tests: New file.
69118
69119         * lib/uniwidth/u8-strwidth.c: New file.
69120         * modules/uniwidth/u8-strwidth: New file.
69121
69122         * tests/uniwidth/test-u32-width.c: New file.
69123         * modules/uniwidth/u32-width-tests: New file.
69124
69125         * lib/uniwidth/u32-width.c: New file.
69126         * modules/uniwidth/u32-width: New file.
69127
69128         * tests/uniwidth/test-u16-width.c: New file.
69129         * modules/uniwidth/u16-width-tests: New file.
69130
69131         * lib/uniwidth/u16-width.c: New file.
69132         * modules/uniwidth/u16-width: New file.
69133
69134         * tests/uniwidth/test-u8-width.c: New file.
69135         * modules/uniwidth/u8-width-tests: New file.
69136
69137         * lib/uniwidth/u8-width.c: New file.
69138         * modules/uniwidth/u8-width: New file.
69139
69140         * tests/uniwidth/test-uc_width.c: New file.
69141         * modules/uniwidth/width-tests: New file.
69142
69143         * lib/uniwidth/width.c: New file, from GNU libiconv.
69144         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
69145         * modules/uniwidth/width: New file.
69146
69147         * lib/uniwidth.h: New file, from GNU libiconv.
69148         * modules/uniwidth/base: New file.
69149
69150 2007-07-07  Bruno Haible  <bruno@clisp.org>
69151
69152         * lib/uniname.h: New file, from GNU gettext.
69153         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
69154         * lib/uniname/uninames.h: New file, from GNU gettext.
69155         * lib/uniname/uniname.c: New file, from GNU gettext.
69156         * tests/uniname/test-uninames.sh: New file.
69157         * tests/uniname/test-uninames.c: New file, from GNU gettext.
69158         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
69159         * modules/uniname/base: New file.
69160         * modules/uniname/uniname: New file.
69161         * modules/uniname/uniname-tests: New file.
69162         * MODULES.html.sh (Unicode string functions): Add the new modules.
69163
69164 2007-07-06  Bruno Haible  <bruno@clisp.org>
69165
69166         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
69167
69168 2007-07-06  Bruno Haible  <bruno@clisp.org>
69169
69170         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
69171         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
69172         includes <cygwin/sys_time.h> which includes <sys/select.h> which
69173         include <sys/time.h>.
69174         Reported by Eric Blake.
69175
69176 2007-07-06  Eric Blake  <ebb9@byu.net>
69177
69178         Fix testing canonicalize on cygwin.
69179         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
69180         Revert patch from 2007-06-19.
69181         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
69182         canonicalize module is also in use.
69183         * tests/test-canonicalize.c: New file.
69184         * tests/test-canonicalize.sh: Likewise.
69185         * modules/canonicalize-tests: Likewise.
69186
69187 2007-07-06  Jim Meyering  <jim@meyering.net>
69188
69189         * lib/getugroups.c (getugroups): Detect getgrent failure.
69190         Adjust comment to reflect reality: this function may return -1.
69191
69192 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
69193
69194         * build-aux/bootstrap (TP_URL,get_translations): Update to use
69195         the new TP address.
69196         (usage): Fix typo
69197         (gnulib_mk): New variable.
69198
69199 2007-07-05  Jim Meyering  <jim@meyering.net>
69200
69201         Don't let endgrent clobber errno, no matter how improbable.
69202         * lib/getugroups.c (getugroups): Save and restore errno around
69203         endgrent call.
69204
69205         Close the group DB even when failing with 2^31 or more members.
69206         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
69207
69208 2007-07-04  Jim Meyering  <jim@meyering.net>
69209
69210         * lib/getugroups.h: New file.
69211         * lib/getugroups.c: Include "getugroups.h".
69212         Remove uses of "register" keyword.
69213         Move local variable, "cp", down into scope where used.
69214         Give "username" parameter the "const" attribute.
69215         * modules/getugroups (Files): Add lib/getugroups.h
69216
69217 2007-07-04  Karl Berry  <karl@gnu.org>
69218
69219         * MODULES.html.sh (func_all_modules): Complete rename of
69220         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
69221
69222 2007-07-02  Bruno Haible  <bruno@clisp.org>
69223
69224         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
69225         mode, when inttypes.h comes from gnulib.
69226         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
69227
69228 2007-07-02  Simon Josefsson  <simon@josefsson.org>
69229
69230         * NEWS: Mention lgpl module name change.
69231
69232         * modules/lgpl-2.1: Renamed from lgpl.
69233
69234         * NEWS: Mention gpl module name change.
69235
69236         * modules/gpl-3.0: New file, based on gpl-2.0.
69237
69238         * modules/gpl-2.0: Renamed from gpl.
69239
69240         * modules/gpl: Fix filename, doc/gpl.texi is now found at
69241         doc/gpl-2.0.texi.
69242
69243 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
69244
69245         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
69246         #define __STDC_LIMIT_MACROS temporarily while including
69247         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
69248         Problem reported by Joel E. Denny in
69249         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
69250
69251 2007-07-01  Bruno Haible  <bruno@clisp.org>
69252
69253         * lib/unistdio.h: New file.
69254         * lib/unistdio/u-asnprintf.h: New file.
69255         * lib/unistdio/u-asprintf.h: New file.
69256         * lib/unistdio/u-printf-args.c: New file.
69257         * lib/unistdio/u-printf-args.h: New file.
69258         * lib/unistdio/u-printf-parse.h: New file.
69259         * lib/unistdio/u-snprintf.h: New file.
69260         * lib/unistdio/u-sprintf.h: New file.
69261         * lib/unistdio/u-vasprintf.h: New file.
69262         * lib/unistdio/u-vsnprintf.h: New file.
69263         * lib/unistdio/u-vsprintf.h: New file.
69264         * lib/unistdio/ulc-asnprintf.c: New file.
69265         * lib/unistdio/ulc-asprintf.c: New file.
69266         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
69267         * lib/unistdio/ulc-printf-parse.c: New file.
69268         * lib/unistdio/ulc-snprintf.c: New file.
69269         * lib/unistdio/ulc-sprintf.c: New file.
69270         * lib/unistdio/ulc-vasnprintf.c: New file.
69271         * lib/unistdio/ulc-vasprintf.c: New file.
69272         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
69273         * lib/unistdio/ulc-vsnprintf.c: New file.
69274         * lib/unistdio/ulc-vsprintf.c: New file.
69275         * lib/unistdio/u8-asnprintf.c: New file.
69276         * lib/unistdio/u8-asprintf.c: New file.
69277         * lib/unistdio/u8-printf-parse.c: New file.
69278         * lib/unistdio/u8-snprintf.c: New file.
69279         * lib/unistdio/u8-sprintf.c: New file.
69280         * lib/unistdio/u8-vasnprintf.c: New file.
69281         * lib/unistdio/u8-vasprintf.c: New file.
69282         * lib/unistdio/u8-vsnprintf.c: New file.
69283         * lib/unistdio/u8-vsprintf.c: New file.
69284         * lib/unistdio/u8-u8-asnprintf.c: New file.
69285         * lib/unistdio/u8-u8-asprintf.c: New file.
69286         * lib/unistdio/u8-u8-snprintf.c: New file.
69287         * lib/unistdio/u8-u8-sprintf.c: New file.
69288         * lib/unistdio/u8-u8-vasnprintf.c: New file.
69289         * lib/unistdio/u8-u8-vasprintf.c: New file.
69290         * lib/unistdio/u8-u8-vsnprintf.c: New file.
69291         * lib/unistdio/u8-u8-vsprintf.c: New file.
69292         * lib/unistdio/u16-asnprintf.c: New file.
69293         * lib/unistdio/u16-asprintf.c: New file.
69294         * lib/unistdio/u16-printf-parse.c: New file.
69295         * lib/unistdio/u16-snprintf.c: New file.
69296         * lib/unistdio/u16-sprintf.c: New file.
69297         * lib/unistdio/u16-vasnprintf.c: New file.
69298         * lib/unistdio/u16-vasprintf.c: New file.
69299         * lib/unistdio/u16-vsnprintf.c: New file.
69300         * lib/unistdio/u16-vsprintf.c: New file.
69301         * lib/unistdio/u16-u16-asnprintf.c: New file.
69302         * lib/unistdio/u16-u16-asprintf.c: New file.
69303         * lib/unistdio/u16-u16-snprintf.c: New file.
69304         * lib/unistdio/u16-u16-sprintf.c: New file.
69305         * lib/unistdio/u16-u16-vasnprintf.c: New file.
69306         * lib/unistdio/u16-u16-vasprintf.c: New file.
69307         * lib/unistdio/u16-u16-vsnprintf.c: New file.
69308         * lib/unistdio/u16-u16-vsprintf.c: New file.
69309         * lib/unistdio/u32-asnprintf.c: New file.
69310         * lib/unistdio/u32-asprintf.c: New file.
69311         * lib/unistdio/u32-printf-parse.c: New file.
69312         * lib/unistdio/u32-snprintf.c: New file.
69313         * lib/unistdio/u32-sprintf.c: New file.
69314         * lib/unistdio/u32-vasnprintf.c: New file.
69315         * lib/unistdio/u32-vasprintf.c: New file.
69316         * lib/unistdio/u32-vsnprintf.c: New file.
69317         * lib/unistdio/u32-vsprintf.c: New file.
69318         * lib/unistdio/u32-u32-asnprintf.c: New file.
69319         * lib/unistdio/u32-u32-asprintf.c: New file.
69320         * lib/unistdio/u32-u32-snprintf.c: New file.
69321         * lib/unistdio/u32-u32-sprintf.c: New file.
69322         * lib/unistdio/u32-u32-vasnprintf.c: New file.
69323         * lib/unistdio/u32-u32-vasprintf.c: New file.
69324         * lib/unistdio/u32-u32-vsnprintf.c: New file.
69325         * lib/unistdio/u32-u32-vsprintf.c: New file.
69326         * tests/unistdio/test-ulc-asnprintf1.c: New file.
69327         * tests/unistdio/test-ulc-asnprintf1.h: New file.
69328         * tests/unistdio/test-ulc-printf1.h: New file.
69329         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
69330         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
69331         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
69332         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
69333         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
69334         * tests/unistdio/test-ulc-vasprintf1.c: New file.
69335         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
69336         * tests/unistdio/test-ulc-vsprintf1.c: New file.
69337         * tests/unistdio/test-u8-asnprintf1.c: New file.
69338         * tests/unistdio/test-u8-asnprintf1.h: New file.
69339         * tests/unistdio/test-u8-printf1.h: New file.
69340         * tests/unistdio/test-u8-vasnprintf1.c: New file.
69341         * tests/unistdio/test-u8-vasnprintf2.c: New file.
69342         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
69343         * tests/unistdio/test-u8-vasnprintf3.c: New file.
69344         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
69345         * tests/unistdio/test-u8-vasprintf1.c: New file.
69346         * tests/unistdio/test-u8-vsnprintf1.c: New file.
69347         * tests/unistdio/test-u8-vsprintf1.c: New file.
69348         * tests/unistdio/test-u16-asnprintf1.c: New file.
69349         * tests/unistdio/test-u16-asnprintf1.h: New file.
69350         * tests/unistdio/test-u16-printf1.h: New file.
69351         * tests/unistdio/test-u16-vasnprintf1.c: New file.
69352         * tests/unistdio/test-u16-vasnprintf2.c: New file.
69353         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
69354         * tests/unistdio/test-u16-vasnprintf3.c: New file.
69355         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
69356         * tests/unistdio/test-u16-vasprintf1.c: New file.
69357         * tests/unistdio/test-u16-vsnprintf1.c: New file.
69358         * tests/unistdio/test-u16-vsprintf1.c: New file.
69359         * tests/unistdio/test-u32-asnprintf1.c: New file.
69360         * tests/unistdio/test-u32-asnprintf1.h: New file.
69361         * tests/unistdio/test-u32-printf1.h: New file.
69362         * tests/unistdio/test-u32-vasnprintf1.c: New file.
69363         * tests/unistdio/test-u32-vasnprintf2.c: New file.
69364         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
69365         * tests/unistdio/test-u32-vasnprintf3.c: New file.
69366         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
69367         * tests/unistdio/test-u32-vasprintf1.c: New file.
69368         * tests/unistdio/test-u32-vsnprintf1.c: New file.
69369         * tests/unistdio/test-u32-vsprintf1.c: New file.
69370         * modules/unistdio/base: New file.
69371         * modules/unistdio/u-printf-args: New file.
69372         * modules/unistdio/ulc-asnprintf: New file.
69373         * modules/unistdio/ulc-asprintf: New file.
69374         * modules/unistdio/ulc-fprintf: New file.
69375         * modules/unistdio/ulc-printf-parse: New file.
69376         * modules/unistdio/ulc-snprintf: New file.
69377         * modules/unistdio/ulc-sprintf: New file.
69378         * modules/unistdio/ulc-vasnprintf: New file.
69379         * modules/unistdio/ulc-vasprintf: New file.
69380         * modules/unistdio/ulc-vfprintf: New file.
69381         * modules/unistdio/ulc-vsnprintf: New file.
69382         * modules/unistdio/ulc-vsprintf: New file.
69383         * modules/unistdio/u8-asnprintf: New file.
69384         * modules/unistdio/u8-asprintf: New file.
69385         * modules/unistdio/u8-printf-parse: New file.
69386         * modules/unistdio/u8-snprintf: New file.
69387         * modules/unistdio/u8-sprintf: New file.
69388         * modules/unistdio/u8-vasnprintf: New file.
69389         * modules/unistdio/u8-vasprintf: New file.
69390         * modules/unistdio/u8-vsnprintf: New file.
69391         * modules/unistdio/u8-vsprintf: New file.
69392         * modules/unistdio/u8-u8-asnprintf: New file.
69393         * modules/unistdio/u8-u8-asprintf: New file.
69394         * modules/unistdio/u8-u8-snprintf: New file.
69395         * modules/unistdio/u8-u8-sprintf: New file.
69396         * modules/unistdio/u8-u8-vasnprintf: New file.
69397         * modules/unistdio/u8-u8-vasprintf: New file.
69398         * modules/unistdio/u8-u8-vsnprintf: New file.
69399         * modules/unistdio/u8-u8-vsprintf: New file.
69400         * modules/unistdio/u16-asnprintf: New file.
69401         * modules/unistdio/u16-asprintf: New file.
69402         * modules/unistdio/u16-printf-parse: New file.
69403         * modules/unistdio/u16-snprintf: New file.
69404         * modules/unistdio/u16-sprintf: New file.
69405         * modules/unistdio/u16-vasnprintf: New file.
69406         * modules/unistdio/u16-vasprintf: New file.
69407         * modules/unistdio/u16-vsnprintf: New file.
69408         * modules/unistdio/u16-vsprintf: New file.
69409         * modules/unistdio/u16-u16-asnprintf: New file.
69410         * modules/unistdio/u16-u16-asprintf: New file.
69411         * modules/unistdio/u16-u16-snprintf: New file.
69412         * modules/unistdio/u16-u16-sprintf: New file.
69413         * modules/unistdio/u16-u16-vasnprintf: New file.
69414         * modules/unistdio/u16-u16-vasprintf: New file.
69415         * modules/unistdio/u16-u16-vsnprintf: New file.
69416         * modules/unistdio/u16-u16-vsprintf: New file.
69417         * modules/unistdio/u32-asnprintf: New file.
69418         * modules/unistdio/u32-asprintf: New file.
69419         * modules/unistdio/u32-printf-parse: New file.
69420         * modules/unistdio/u32-snprintf: New file.
69421         * modules/unistdio/u32-sprintf: New file.
69422         * modules/unistdio/u32-vasnprintf: New file.
69423         * modules/unistdio/u32-vasprintf: New file.
69424         * modules/unistdio/u32-vsnprintf: New file.
69425         * modules/unistdio/u32-vsprintf: New file.
69426         * modules/unistdio/u32-u32-asnprintf: New file.
69427         * modules/unistdio/u32-u32-asprintf: New file.
69428         * modules/unistdio/u32-u32-snprintf: New file.
69429         * modules/unistdio/u32-u32-sprintf: New file.
69430         * modules/unistdio/u32-u32-vasnprintf: New file.
69431         * modules/unistdio/u32-u32-vasprintf: New file.
69432         * modules/unistdio/u32-u32-vsnprintf: New file.
69433         * modules/unistdio/u32-u32-vsprintf: New file.
69434         * modules/unistdio/ulc-asnprintf-tests: New file.
69435         * modules/unistdio/ulc-vasnprintf-tests: New file.
69436         * modules/unistdio/ulc-vasprintf-tests: New file.
69437         * modules/unistdio/ulc-vsnprintf-tests: New file.
69438         * modules/unistdio/ulc-vsprintf-tests: New file.
69439         * modules/unistdio/u8-asnprintf-tests: New file.
69440         * modules/unistdio/u8-vasnprintf-tests: New file.
69441         * modules/unistdio/u8-vasprintf-tests: New file.
69442         * modules/unistdio/u8-vsnprintf-tests: New file.
69443         * modules/unistdio/u8-vsprintf-tests: New file.
69444         * modules/unistdio/u16-asnprintf-tests: New file.
69445         * modules/unistdio/u16-vasnprintf-tests: New file.
69446         * modules/unistdio/u16-vasprintf-tests: New file.
69447         * modules/unistdio/u16-vsnprintf-tests: New file.
69448         * modules/unistdio/u16-vsprintf-tests: New file.
69449         * modules/unistdio/u32-asnprintf-tests: New file.
69450         * modules/unistdio/u32-vasnprintf-tests: New file.
69451         * modules/unistdio/u32-vasprintf-tests: New file.
69452         * modules/unistdio/u32-vsnprintf-tests: New file.
69453         * modules/unistdio/u32-vsprintf-tests: New file.
69454         * MODULES.html.sh (Unicode string functions): Add the new modules.
69455
69456 2007-07-01  Bruno Haible  <bruno@clisp.org>
69457
69458         * lib/sprintf.c (sprintf): Limit the available length estimation,
69459         to avoid address wraparound.
69460         * lib/vsprintf.c (vsprintf): Likewise.
69461         * modules/sprintf-posix (Dependencies): Add stdint.
69462         * modules/vsprintf-posix (Dependencies): Likewise.
69463
69464 2007-07-01  Bruno Haible  <bruno@clisp.org>
69465
69466         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
69467         Windows PATH as well. Conservative double-quoting. Comments.
69468
69469 2007-07-01  Bruno Haible  <bruno@clisp.org>
69470             Eric Blake  <ebb9@byu.net>
69471             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69472
69473         * gnulib-tool (self_abspathname): Fix algorithm to cope with
69474         empty components in $PATH, denoting '.'.
69475
69476 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69477
69478         * gnulib-tool: Fix indentation.
69479         (func_create_megatestdir): Likewise.
69480         Report by Bruno Haible.
69481
69482 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69483
69484         Sync from Automake.
69485         * build-aux/gnupload: Fix shell portability issues with for loops.
69486         Report by Karl Berry.
69487
69488 2007-06-29  Simon Josefsson  <simon@josefsson.org>
69489
69490         * build-aux/maint.mk (POURL): Use translationproject.org.
69491
69492 2007-06-27  Simon Josefsson  <simon@josefsson.org>
69493             Bruno Haible  <bruno@clisp.org>
69494
69495         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
69496         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
69497         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
69498         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
69499         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
69500
69501 2007-06-27  Bruno Haible  <bruno@clisp.org>
69502
69503         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
69504         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
69505
69506 2007-06-26  Karl Berry  <karl@gnu.org>
69507
69508         * MODULES.html.sh: remove xreadlink-with-size.
69509
69510 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
69511
69512         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
69513         method that I hope also handles the double-include problem noted
69514         by Bruno Haible in
69515         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
69516
69517 2007-06-23  Bruno Haible  <bruno@clisp.org>
69518
69519         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69520         Don't let the 'mostlyclean' target fail if the last subdirectory could
69521         not be removed.
69522         Reported by Karl Berry.
69523
69524 2007-06-23  Bruno Haible  <bruno@clisp.org>
69525
69526         * gnulib-tool (echo): Add a speedier workaround for ksh.
69527         * tests/test-echo.sh: Likewise.
69528
69529 2007-06-23  Bruno Haible  <bruno@clisp.org>
69530
69531         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
69532         * tests/test-echo.sh: Likewise.
69533
69534 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69535
69536         * gnulib-tool (IFS): Initialize early, so we don't set it to
69537         empty later.
69538         (self_abspathname): Rewrite algorithm to set it, reindent.
69539         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
69540         (func_create_megatestdir): Merge some sed scripts.
69541
69542 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
69543
69544         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
69545         exposed by Sun Studio 11 cc on Solaris 8.
69546
69547 2007-06-22  Bruno Haible  <bruno@clisp.org>
69548
69549         * gnulib-tool (echo): Ensure the echo primitive does not interpret
69550         backslashes.
69551         * tests/test-echo.sh: New file.
69552
69553 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69554
69555         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
69556         simplify `sed_replace_build_aux' scripts, they are portable but
69557         echoing them with `echo' is not.
69558         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
69559
69560 2007-06-21  Karl Berry  <karl@gnu.org>
69561
69562         * config/srclist.txt: guess we can't handle the licenses via
69563         srclist at the moment.
69564
69565 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
69566
69567         * MODULES.html.sh: Add include_next.
69568         * modules/include_next: New file.
69569
69570 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
69571
69572         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
69573         INCLUDE_NEXT.
69574         (gl_CHECK_NEXT_HEADERS): New macro.
69575         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
69576         the obsolescent gl_ABSOLUTE_HEADER.
69577         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
69578         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
69579         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
69580         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
69581         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
69582         * m4/math_h.m4 (gl_MATH_H): Likewise.
69583         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
69584         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
69585         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
69586         * m4/stdint.m4 (gl_STDINT_H): Likewise.
69587         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
69588         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
69589         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
69590         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
69591         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
69592         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
69593         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
69594         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
69595         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
69596         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
69597         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
69598         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
69599         * m4/inttypes.m4 (gl_INTTYPES_H): Define
69600         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
69601         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
69602         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
69603         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
69604         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
69605         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
69606         * lib/float_.h: Likewise.
69607         * lib/inttypes_.h: Likewise.
69608         * lib/math_.h: Likewise.
69609         * lib/search_.h: Likewise.
69610         * lib/signal_.h: Likewise.
69611         * lib/stdint_.h: Likewise.
69612         * lib/stdio_.h: Likewise.
69613         * lib/stdlib_.h: Likewise.
69614         * lib/string_.h: Likewise.
69615         * lib/sys_stat_.h: Likewise.
69616         * lib/sys_time_.h: Likewise.
69617         * lib/time_.h: Likewise.
69618         * lib/unistd_.h: Likewise.
69619         * lib/wchar_.h: Likewise.
69620         * lib/wctype_.h: Likewise.
69621         * lib/dirent_.h: Likewise.
69622         * lib/iconv_.h: Likewise.
69623         * lib/locale_.h: Likewise.
69624         * lib/netinet_in_.h: Likewise.
69625         * lib/sys_select_.h: Likewise.
69626         * lib/sys_socket_.h: Likewise.
69627         * lib/sysexits_.h: Likewise.
69628         * modules/fcntl (Depends-on): Depend on include_next, not
69629         absolute_header.
69630         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
69631         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
69632         * modules/fchdir: Likewise.
69633         * modules/float: Likewise.
69634         * modules/iconv_open: Likewise.
69635         * modules/inttypes: Likewise.
69636         * modules/locale: Likewise.
69637         * modules/math: Likewise.
69638         * modules/netinet_in: Likewise.
69639         * modules/search: Likewise.
69640         * modules/signal: Likewise.
69641         * modules/stdint: Likewise.
69642         * modules/stdio: Likewise.
69643         * modules/stdlib: Likewise.
69644         * modules/string: Likewise.
69645         * modules/sys_select: Likewise.
69646         * modules/sys_socket: Likewise.
69647         * modules/sys_stat: Likewise.
69648         * modules/sys_time: Likewise.
69649         * modules/sysexits: Likewise.
69650         * modules/time: Likewise.
69651         * modules/unistd: Likewise.
69652         * modules/wchar: Likewise.
69653         * modules/wctype: Likewise.
69654         * modules/sys_stat: Change maintainer to "all".
69655         * modules/unistd: Likewise.
69656
69657 2007-06-20  Karl Berry  <karl@gnu.org>
69658
69659         * config/srclist.txt: track www changes in license files.
69660
69661 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
69662
69663         * build-aux/bootstrap: Remove stray dot.
69664         Make sure build_aux settings are honored when linking
69665         gnulib_extra_files.
69666
69667 2007-06-19  Eric Blake  <ebb9@byu.net>
69668
69669         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
69670         Allow compilation on cygwin.
69671
69672 2007-06-19  Jim Meyering  <jim@meyering.net>
69673
69674         xreadlink-with-size: Remove module.  No longer used.
69675         Ex-callers now use xreadlink or mreadlink-with-size.
69676         * modules/xreadlink-with-size: Remove module.
69677         * lib/xreadlink-with-size.c: Remove file.
69678         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
69679         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
69680         just before the function definition *is* accurate.
69681
69682         Eliminate one way canonicalize_filename_mode could exit.
69683         * lib/canonicalize.c (canonicalize_filename_mode):
69684         Use mreadlink_with_size, not xreadlink_with_size.
69685
69686 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
69687
69688         Detect porting problems to FreeBSD/arm, which has time_t wider than
69689         long int.  Original problem reported for GNU diff by Xin Li in
69690         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
69691         * modules/getdate (Depends-on): Add intprops, verify.
69692         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
69693         is an integer type no wider than long int.
69694
69695 2007-06-18  Jim Meyering  <jim@meyering.net>
69696
69697         New module: mreadlink-with-size.
69698         * MODULES.html.sh: Add mreadlink-with-size.
69699         * modules/mreadlink-with-size: New module
69700         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
69701         not xreadlink-with-size.
69702         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
69703
69704 2007-06-16  Bruno Haible  <bruno@clisp.org>
69705
69706         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
69707         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
69708         Reported by Gary V. Vaughan <gary@gnu.org>.
69709
69710 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
69711
69712         Revamp lchown so that it lives in unistd.h where it belongs.
69713         * lib/lchown.h: Remove.
69714         * lib/dirchownmod.c: Don't include lib/lchown.h.
69715         * lib/fchownat.c: Likewise.
69716         * lib/openat.c: Likewise.
69717         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
69718         does not follow symlinks.
69719         (EOPNOTSUPP): Define if not defined.
69720         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
69721         is defined to 0.
69722         (lchown): New decl.
69723         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
69724         Do not check for lchown decl.
69725         Set REPLACE_LCHOWN.
69726         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
69727         REPLACE_LCHOWN.
69728         * modules/chown: Make it clear it follows symlinks.
69729         * modules/lchown: Make it clear it doesn't follow symlinks.
69730         (Files): Remove lib/lchown.h
69731         (Depends-on): Add unistd.
69732         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
69733         (Include): Include <unistd.h>, not "lchown.h".
69734         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
69735         REPLACE_LCHOWN.
69736
69737 2007-06-15  Jim Meyering  <jim@meyering.net>
69738
69739         Change license (GPL to LGPL) of fsusage and dependents.
69740         * modules/fsusage (License): Change to LGPL.
69741         * modules/full-read (License): Likewise.
69742         * modules/full-write (License): Likewise.
69743         * modules/safe-read (License): Likewise.
69744         * modules/safe-write (License): Likewise.
69745
69746 2007-06-14  Ben Pfaff  <blp@gnu.org>
69747
69748         Missing part of allocsa -> malloca transition.
69749         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
69750         gl_MALLOCA.
69751
69752 2007-06-12  Bruno Haible  <bruno@clisp.org>
69753
69754         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
69755         to ia64, x86_64, i386.
69756         Reported by Eric Blake.
69757
69758 2007-06-12  Bruno Haible  <bruno@clisp.org>
69759
69760         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
69761         cross-compiling to x86_64.
69762
69763 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
69764
69765         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
69766         glitch reported by Ralf Wildenhues in
69767         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
69768
69769         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
69770         Vin Shelton.
69771
69772 2007-06-11  Bruno Haible  <bruno@clisp.org>
69773
69774         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
69775         replacement string.
69776         Reported by Eric Blake.
69777
69778 2007-06-10  Bruno Haible  <bruno@clisp.org>
69779
69780         Prepare vasnprintf code for use with Unicode strings.
69781         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
69782         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
69783         TYPE_U32_STRING.
69784         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
69785         a_u32_string variants.
69786         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
69787         * lib/printf-args.c: Don't include config.h and the specification
69788         header if PRINTF_FETCHARGS is already defined.
69789         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
69790         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
69791         TYPE_U16_STRING, TYPE_U32_STRING.
69792         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
69793         u16_directive, u16_directives, u32_directive, u32_directives): New
69794         types.
69795         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
69796         New declarations.
69797         * lib/printf-parse.c: Don't include config.h and the specification
69798         header if PRINTF_PARSE is already defined. Eliminate the set of
69799         parameters for WIDE_CHAR_VERSION; the user of this file must provide
69800         them now. Include c-ctype.h.
69801         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
69802         directive and CHAR_T_ONLY_ASCII.
69803         * lib/vasnprintf.c: Don't include config.h and the specification header
69804         if VASNPRINTF is already defined.
69805         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
69806         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
69807         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
69808         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
69809         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
69810         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
69811         code accordingly.
69812         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
69813         pad_ourselves also in this case, with the 'c' and 's' directives, and
69814         with a different notion of "width".
69815         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
69816
69817 2007-06-10  Bruno Haible  <bruno@clisp.org>
69818
69819         * modules/unistr/u32-mbsnlen: New file.
69820         * lib/unistr/u32-mbsnlen.c: New file.
69821
69822         * modules/unistr/u16-mbsnlen: New file.
69823         * lib/unistr/u16-mbsnlen.c: New file.
69824
69825         * modules/unistr/u8-mbsnlen: New file.
69826         * lib/unistr/u8-mbsnlen.c: New file.
69827
69828         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
69829         declarations.
69830
69831 2007-06-10  Bruno Haible  <bruno@clisp.org>
69832
69833         * lib/string_.h (mbsnlen): New declaration.
69834         * lib/mbsnlen.c: New file.
69835         * m4/mbsnlen.m4: New file.
69836         * modules/mbsnlen: New file.
69837         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
69838         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
69839         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
69840
69841 2007-06-10  Bruno Haible  <bruno@clisp.org>
69842
69843         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
69844
69845 2007-06-10  Bruno Haible  <bruno@clisp.org>
69846
69847         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
69848         * lib/mbuiter.h: Likewise.
69849
69850 2007-06-10  Bruno Haible  <bruno@clisp.org>
69851
69852         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
69853         declaration.
69854
69855 2007-06-10  Karl Berry  <karl@gnu.org>
69856
69857         * config/srclist.txt: remove gettext entries, Bruno prefers
69858         to update individually.
69859
69860 2007-06-10  Bruno Haible  <bruno@clisp.org>
69861
69862         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
69863         'maxlen'. Ensure only length + width bytes are allocated, not
69864         length + 1 + width.
69865
69866 2007-06-09  Bruno Haible  <bruno@clisp.org>
69867
69868         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
69869         (CHAR_T): Remove macro.
69870         (VASNPRINTF): Update.
69871
69872 2007-06-09  Bruno Haible  <bruno@clisp.org>
69873
69874         * MODULES.html.sh (Unicode string functions): Add the new modules.
69875
69876         * modules/uniconv/u32-conv-to-enc: New file.
69877         * lib/uniconv/u32-conv-to-enc.c: New file.
69878         * modules/uniconv/u32-conv-to-enc-tests: New file.
69879         * tests/uniconv/test-u32-conv-to-enc.c: New file.
69880
69881         * modules/uniconv/u16-conv-to-enc: New file.
69882         * lib/uniconv/u16-conv-to-enc.c: New file.
69883         * lib/uniconv/u-conv-to-enc.h: New file.
69884         * modules/uniconv/u16-conv-to-enc-tests: New file.
69885         * tests/uniconv/test-u16-conv-to-enc.c: New file.
69886
69887         * modules/uniconv/u8-conv-to-enc: New file.
69888         * lib/uniconv/u8-conv-to-enc.c: New file.
69889         * modules/uniconv/u8-conv-to-enc-tests: New file.
69890         * tests/uniconv/test-u8-conv-to-enc.c: New file.
69891
69892         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
69893         u32_conv_to_encoding): New declarations.
69894
69895 2007-06-09  Bruno Haible  <bruno@clisp.org>
69896
69897         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
69898
69899 2007-06-09  Bruno Haible  <bruno@clisp.org>
69900
69901         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
69902         * modules/malloca: Renamed from modules/allocsa, updated.
69903         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
69904         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
69905         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
69906         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
69907         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
69908         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
69909         * modules/xmalloca: Renamed from modules/xallocsa, updated.
69910         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
69911         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
69912         * modules/c-strcasestr (Depends-on): Update.
69913         * lib/c-strcasestr.c: Update.
69914         * modules/c-strstr (Depends-on): Update.
69915         * lib/c-strstr.c: Update.
69916         * modules/canonicalize-lgpl (Depends-on): Update.
69917         * lib/canonicalize-lgpl.c: Update.
69918         * modules/clean-temp (Depends-on): Update.
69919         * lib/clean-temp.c: Update.
69920         * modules/csharpcomp (Depends-on): Update.
69921         * lib/csharpcomp.c: Update.
69922         * modules/csharpexec (Depends-on): Update.
69923         * lib/csharpexec.c: Update.
69924         * modules/javacomp (Depends-on): Update.
69925         * lib/javacomp.c: Update.
69926         * modules/javaexec (Depends-on): Update.
69927         * lib/javaexec.c: Update.
69928         * modules/mbscasestr (Depends-on): Update.
69929         * lib/mbscasestr.c: Update.
69930         * modules/mbsstr (Depends-on): Update.
69931         * lib/mbsstr.c: Update.
69932         * modules/setenv (Depends-on): Update.
69933         * lib/setenv.c: Update.
69934         * modules/strcasestr (Depends-on): Update.
69935         * lib/strcasestr.c: Update.
69936         * modules/striconveha (Depends-on): Update.
69937         * lib/striconveha.c: Update.
69938         * modules/relocatable-prog-wrapper (Files): Update.
69939         * lib/relocwrapper.c: Update.
69940         * build-aux/install-reloc: Update.
69941         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
69942
69943 2007-06-08  Bruno Haible  <bruno@clisp.org>
69944
69945         Port to uClibc.
69946         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
69947         * lib/fpurge.c (fpurge): Likewise.
69948         * lib/freading.c (freading): Likewise.
69949         * lib/fseeko.c (rpl_fseeko): Likewise.
69950         * lib/fseterr.c (fseterr): Likewise.
69951         * lib/fwriting.c (fwriting): Likewise.
69952         * tests/test-fflush.c (main): Avoid a failure on uClibc.
69953
69954 2007-06-08  Bruno Haible  <bruno@clisp.org>
69955
69956         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
69957         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
69958         * modules/gettext (Files): Add m4/intlmacosx.m4.
69959
69960 2007-06-07  Bruno Haible  <bruno@clisp.org>
69961
69962         * modules/localename-tests: New file.
69963         * tests/test-localename.c: New file.
69964
69965         New module 'localename'.
69966         * lib/localename.h: New file.
69967         * lib/localename.c: New file, from GNU gettext.
69968         * m4/localename.m4: New file.
69969         * modules/localename: New file.
69970
69971 2007-06-07  Bruno Haible  <bruno@clisp.org>
69972
69973         Work around the lack of <wchar.h> on some builds of uClibc.
69974         * doc/headers/wchar.texi: Update.
69975         * lib/wchar_.h: Include <wchar.h> only if it exists.
69976         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
69977         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
69978         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
69979         doesn't exist.
69980         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
69981         * modules/mbfile (Depends-on): Add wchar.
69982         * modules/mbiter (Depends-on): Likewise.
69983         * modules/mbuiter (Depends-on): Likewise.
69984         Reported by Simon Josefsson.
69985
69986 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
69987
69988         Work around problem reported by Steven M. Schweda in
69989         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
69990         Tru64 5.1B with the Compaq compiler environment installed declares
69991         an 'isblank' function but does not define it in the C library.
69992         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
69993         * lib/regex_internal.h (isblank): Likewise.
69994         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
69995         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
69996
69997 2007-06-05  Bruno Haible  <bruno@clisp.org>
69998
69999         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
70000         ia64.
70001         * modules/printf-safe: New file.
70002         * modules/fprintf-posix (Depends-on): Add printf-safe.
70003         * modules/printf-posix (Depends-on): Likewise.
70004         * modules/snprintf-posix (Depends-on): Likewise.
70005         * modules/sprintf-posix (Depends-on): Likewise.
70006         * modules/vasnprintf-posix (Depends-on): Likewise.
70007         * modules/vasprintf-posix (Depends-on): Likewise.
70008         * modules/vfprintf-posix (Depends-on): Likewise.
70009         * modules/vprintf-posix (Depends-on): Likewise.
70010         * modules/vsnprintf-posix (Depends-on): Likewise.
70011         * modules/vsprintf-posix (Depends-on): Likewise.
70012         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
70013         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
70014         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
70015         "no" on i386, x86_64, ia64.
70016         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
70017         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
70018         on i386, x86_64, ia64.
70019         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
70020         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
70021         on i386, x86_64, ia64.
70022         * tests/test-vasnprintf-posix.c: Include float.h.
70023         (LDBL80_WORDS): New macro.
70024         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
70025         on i386, x86_64, ia64.
70026         * tests/test-vasprintf-posix.c: Include float.h.
70027         (LDBL80_WORDS): New macro.
70028         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
70029         on i386, x86_64, ia64.
70030         * tests/test-snprintf-posix.c: Include float.h.
70031         * tests/test-sprintf-posix.c: Likewise.
70032         * tests/test-vsnprintf-posix.c: Likewise.
70033         * tests/test-vsprintf-posix.c: Likewise.
70034
70035 2007-06-05  Bruno Haible  <bruno@clisp.org>
70036
70037         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
70038         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
70039         non-IEEE numbers on i386, x86_64, ia64.
70040         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
70041         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
70042         * tests/test-isnanl.h: Include float.h.
70043         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
70044
70045 2007-06-05  Bruno Haible  <bruno@clisp.org>
70046
70047         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
70048         also the %a / %A. Handle the %a / %A code before this extra handling.
70049
70050 2007-06-05  Bruno Haible  <bruno@clisp.org>
70051
70052         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
70053         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
70054
70055 2007-06-05  Bruno Haible  <bruno@clisp.org>
70056
70057         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
70058         typo in variable name.
70059
70060 2007-06-05  Eric Blake  <ebb9@byu.net>
70061
70062         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
70063         Reported by Simon Josefsson.
70064
70065 2007-06-04  Bruno Haible  <bruno@clisp.org>
70066
70067         Avoid test failures on some PowerPC platforms.
70068         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
70069         Define differently for PowerPC.
70070         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
70071         Reported by Gary V. Vaughan <gary@gnu.org>.
70072
70073 2007-06-02  Bruno Haible  <bruno@clisp.org>
70074
70075         Fix test-stdint failure on FreeBSD/ia64.
70076         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
70077         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
70078         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
70079         * doc/headers/stdint.texi: Update.
70080
70081 2007-06-01  Bruno Haible  <bruno@clisp.org>
70082
70083         * tests/test-binary-io.c (main): Pass a third argument to open().
70084         Reported by Gary V. Vaughan <gary@gnu.org>.
70085
70086 2007-06-01  Bruno Haible  <bruno@clisp.org>
70087
70088         * doc/functions/frexpl.texi: Update for mingw.
70089
70090 2007-06-01  Bruno Haible  <bruno@clisp.org>
70091
70092         * tests/test-lseek.c (main): Disable test of errno for invalid third
70093         argument.
70094         * doc/functions/lseek.texi: Update.
70095         Reported by Gary V. Vaughan <gary@gnu.org>.
70096
70097 2007-05-28  Bruno Haible  <bruno@clisp.org>
70098
70099         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
70100
70101 2007-05-31  Eric Blake  <ebb9@byu.net>
70102
70103         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
70104         cross compiling.
70105
70106 2007-05-30  Eric Blake  <ebb9@byu.net>
70107         and Bruno Haible  <bruno@clisp.org>
70108
70109         Work around mingw test failures exposed by m4-1.4.9b.
70110         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
70111         * tests/test-unistd.c: Disable uid_t and git_t tests for the
70112         moment.
70113
70114 2007-05-30  Bruno Haible  <bruno@clisp.org>
70115
70116         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
70117         assuming that they are closed. Needed on HP-UX 11.
70118
70119 2007-05-29  Bruno Haible  <bruno@clisp.org>
70120
70121         Fix a problem with #include_next.
70122         * lib/dirent_.h: Split the double-inclusion guard.
70123         * lib/fcntl_.h: Likewise.
70124         * lib/float_.h: Likewise.
70125         * lib/iconv_.h: Likewise.
70126         * lib/inttypes_.h: Likewise.
70127         * lib/locale_.h: Likewise.
70128         * lib/math_.h: Likewise.
70129         * lib/netinet_in_.h: Likewise.
70130         * lib/search_.h: Likewise.
70131         * lib/signal_.h: Likewise.
70132         * lib/stdint_.h: Likewise.
70133         * lib/stdio_.h: Likewise.
70134         * lib/stdlib_.h: Likewise.
70135         * lib/string_.h: Likewise.
70136         * lib/sys_select_.h: Likewise.
70137         * lib/sys_socket_.h: Likewise.
70138         * lib/sys_stat_.h: Likewise.
70139         * lib/sys_time_.h: Likewise.
70140         * lib/sysexits_.h: Likewise.
70141         * lib/time_.h: Likewise.
70142         * lib/unistd_.h: Likewise.
70143         * lib/wchar_.h: Likewise.
70144         * lib/wctype_.h: Likewise.
70145
70146 2007-05-29  Bruno Haible  <bruno@clisp.org>
70147
70148         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
70149         for the moment.
70150
70151 2007-05-29  Bruno Haible  <bruno@clisp.org>
70152
70153         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
70154         invocation.
70155         Reported by Eric Blake.
70156
70157 2007-05-29  Bruno Haible  <bruno@clisp.org>
70158
70159         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
70160         compiling case.
70161
70162 2007-05-29  Eric Blake  <ebb9@byu.net>
70163             Bruno Haible  <bruno@clisp.org>
70164
70165         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
70166         cross compiles.
70167
70168 2007-05-28  Eric Blake  <ebb9@byu.net>
70169
70170         * modules/closein-tests (test_closein_LDADD): Support test on
70171         cygwin with libtool.
70172
70173 2007-05-28  Bruno Haible  <bruno@clisp.org>
70174
70175         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
70176         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
70177         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
70178         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
70179         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
70180         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
70181         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
70182         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
70183         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
70184
70185 2007-05-28  Eric Blake  <ebb9@byu.net>
70186
70187         Unconditionally include <config.h> in unit tests.
70188         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
70189         * tests/test-allocsa.c, tests/test-arcfour.c,
70190         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
70191         tests/test-array_list.c, tests/test-array_oset.c,
70192         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
70193         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
70194         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
70195         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
70196         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
70197         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
70198         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
70199         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
70200         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
70201         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
70202         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
70203         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
70204         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
70205         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
70206         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
70207         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
70208         test-md5.c, test-memmem.c, test-printf-posix.c,
70209         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
70210         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
70211         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
70212         test-strcasestr.c, test-striconv.c, test-striconveh.c,
70213         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
70214         test-vasnprintf-posix2.c, test-vasnprintf.c,
70215         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
70216         test-vfprintf-posix.c, test-vprintf-posix.c,
70217         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
70218         test-xvasprintf.c: Likewise.
70219
70220 2007-05-28  Bruno Haible  <bruno@clisp.org>
70221
70222         * gnulib-tool (func_import): Remember the --with-tests command-line
70223         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
70224         Reported by Eric Blake.
70225
70226 2007-05-28  Bruno Haible  <bruno@clisp.org>
70227
70228         * modules/ftell-tests: New file.
70229         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
70230         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
70231
70232         * lib/ftell.c: New file.
70233         * modules/ftell: New file.
70234         * m4/ftell.m4: New file.
70235         * doc/functions/ftell.texi: Update.
70236         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
70237         REPLACE_FTELL.
70238         * lib/stdio_.h (rpl_ftell): New declaration.
70239         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
70240         REPLACE_FTELL.
70241
70242 2007-05-28  Eric Blake  <ebb9@byu.net>
70243
70244         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
70245
70246 2007-05-28  Bruno Haible  <bruno@clisp.org>
70247
70248         * modules/fseek-tests: New file.
70249         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
70250         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
70251
70252         * lib/fseek.c: New file.
70253         * modules/fseek: New file.
70254         * m4/fseek.m4: New file.
70255         * doc/functions/fseek.texi: Update.
70256         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
70257         REPLACE_FSEEK.
70258         * lib/stdio_.h (rpl_fseek): New declaration.
70259         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
70260         REPLACE_FSEEK.
70261
70262 2007-05-28  Bruno Haible  <bruno@clisp.org>
70263
70264         * lib/stdio_.h (fflush): More comments.
70265
70266 2007-05-28  Bruno Haible  <bruno@clisp.org>
70267
70268         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
70269         runtime test.
70270
70271 2007-05-28  Eric Blake  <ebb9@byu.net>
70272
70273         Improve lseek module.
70274         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
70275         * lib/unistd_.h (lseek): Scale back link warning message.
70276         * tests/test-lseek.c: Beef up test.
70277         * tests/test-lseek.sh: Exercise more facets of lseek.
70278         Reported by Bruno Haible.
70279
70280 2007-05-28  Bruno Haible  <bruno@clisp.org>
70281
70282         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
70283         to define.
70284
70285 2007-05-27  Bruno Haible  <bruno@clisp.org>
70286
70287         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
70288
70289 2007-05-27  Bruno Haible  <bruno@clisp.org>
70290
70291         * modules/openmp: New file.
70292         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
70293         Noah Misch.
70294
70295 2007-05-26  Bruno Haible  <bruno@clisp.org>
70296
70297         * modules/chdir-long (Depends-on): Add fchdir.
70298         * modules/chdir-safer (Depends-on): Likewise.
70299         * modules/fts (Depends-on): Likewise.
70300         * modules/fts-lgpl (Depends-on): Likewise.
70301         * modules/openat (Depends-on): Likewise.
70302         * modules/savewd (Depends-on): Likewise.
70303
70304 2007-05-24  Eric Blake  <ebb9@byu.net>
70305
70306         Fix lseek on mingw.
70307         * modules/lseek: New module.
70308         * m4/lseek.m4: New file.
70309         * lib/lseek.c: New file.
70310         * modules/lseek-tests: New file.
70311         * tests/test-lseek.c: New file.
70312         * tests/test-lseek.sh: New file.
70313         * MODULES.html.sh: Document lseek module.
70314         * modules/fflush (Depends-on): Add lseek, fseeko.
70315         * modules/fseeko (Depends-on): Likewise.
70316         * modules/ftello (Depends-on): Likewise.
70317         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
70318         broken.
70319         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
70320         broken.
70321         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
70322         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
70323         * lib/ftello.c (rpl_ftello): Likewise.
70324         * tests/test-fseeko.c (main): Test this.
70325         * tests/test-fseeko.sh: Likewise.
70326         * tests/test-ftello.c (main): Likewise.
70327         * tests/test-ftello.sh: Likewise.
70328         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
70329         implies replacing fseek.
70330         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
70331         HAVE_FTELLO.
70332         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
70333         * modules/unistd (Makefile.am): Likewise.
70334         * lib/unistd_.h (lseek): Declare a replacement.
70335         * doc/functions/lseek.texi (lseek): Document this fix.
70336         * doc/functions/fseek.texi (fseek): Likewise.
70337         * doc/functions/ftell.texi (ftell): Likewise.
70338
70339 2007-05-24  Bruno Haible  <bruno@clisp.org>
70340
70341         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
70342         in the printed representation of a NaN.
70343         * tests/test-vasprintf-posix.c (test_function): Likewise.
70344         * tests/test-snprintf-posix.h (test_function): Likewise.
70345         * tests/test-sprintf-posix.h (test_function): Likewise.
70346         Reported by Eric Blake.
70347
70348 2007-05-23  Eric Blake  <ebb9@byu.net>
70349
70350         Fix fseeko/ftello on cygwin 1.5.24.
70351         * doc/functions/fseeko.texi (fseeko): Document the fix.
70352         * doc/functions/ftello.texi (ftello): Document the fix.
70353         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
70354         * doc/functions/stdout.text (stdout): New file.
70355         * doc/functions/stderr.text (stderr): New file.
70356         * doc/gnulib.texi (Function Substitutes): Use new files.
70357         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
70358         prior to 1.7.0.
70359         * tests/test-ftello.c (main): Likewise for ftello.
70360         * tests/test-fseeko.sh: New file.
70361         * tests/test-ftello.sh: New file.
70362         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
70363         with seekable stdin.
70364         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
70365         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
70366         (gl_REPLACE_FSEEKO): New macro.
70367         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
70368         * modules/fseeko (Files): Distribute fseeko.c.
70369         * modules/ftello (Files): Distribute ftello.c.
70370         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
70371         mode.
70372         * lib/ftello.c (rpl_ftello): New file.
70373         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
70374         fseeko, ftello.
70375         (gl_STDIN_LARGE_OFFSET): New macro.
70376         * modules/stdio (Makefile.am): Perform the replacement.
70377         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
70378
70379 2007-05-23  Bruno Haible  <bruno@clisp.org>
70380
70381         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
70382         GNULIB_POSIXCHECK is defined.
70383
70384 2007-05-21  Bruno Haible  <bruno@clisp.org>
70385
70386         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
70387         Check also the output for NaN arguments. When cross-compiling, guess
70388         no on IRIX.
70389         * lib/vasnprintf.c: Update comments.
70390         * tests/test-vasnprintf-posix.c (strisnan): New function.
70391         (test_function): Use it.
70392         * tests/test-vasprintf-posix.c (strisnan): New function.
70393         (test_function): Use it.
70394         * tests/test-snprintf-posix.h (strisnan): New function.
70395         (test_function): Use it.
70396         * tests/test-sprintf-posix.h (strisnan): New function.
70397         (test_function): Use it.
70398         Reported by Eric Blake.
70399
70400 2007-05-20  Bruno Haible  <bruno@clisp.org>
70401
70402         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
70403         numbers that fails on BeOS.
70404         * doc/functions/frexpl.texi: Update.
70405
70406 2007-05-20  Jim Meyering  <jim@meyering.net>
70407
70408         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
70409         forced upon us by glibc-2.6.
70410
70411 2007-05-20  Bruno Haible  <bruno@clisp.org>
70412
70413         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
70414         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
70415         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
70416         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
70417         NEED_PRINTF_INFINITE.
70418         (is_infinitel): New function.
70419         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
70420         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
70421         gl_PREREQ_VASNPRINTF_INFINITE.
70422         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
70423         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
70424         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
70425         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
70426         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
70427         gl_PREREQ_VASNPRINTF_INFINITE.
70428         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
70429         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70430         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70431         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70432         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70433         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70434         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70435         * doc/functions/fprintf.texi: Update.
70436         * doc/functions/printf.texi: Update.
70437         * doc/functions/snprintf.texi: Update.
70438         * doc/functions/sprintf.texi: Update.
70439         * doc/functions/vfprintf.texi: Update.
70440         * doc/functions/vprintf.texi: Update.
70441         * doc/functions/vsnprintf.texi: Update.
70442         * doc/functions/vsprintf.texi: Update.
70443
70444 2007-05-20  Bruno Haible  <bruno@clisp.org>
70445
70446         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
70447         was not found in libc.
70448         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
70449
70450 2007-05-20  Bruno Haible  <bruno@clisp.org>
70451
70452         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
70453         printed as "-nan" instead of "nan".
70454         * tests/test-vasprintf-posix.c (test_function): Likewise.
70455         * tests/test-snprintf-posix.h (test_function): Likewise.
70456         * tests/test-sprintf-posix.h (test_function): Likewise.
70457         Needed for HP-UX 11.
70458
70459 2007-05-20  Jim Meyering  <jim@meyering.net>
70460
70461         Fix buggy test for the fchownat-deref bug.
70462         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
70463         symlink required for the run-test.  Without it, this test would
70464         always declare that fchownat doesn't work, and client code would
70465         unnecessarily use the replacement function with fixed libc.
70466         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
70467         Reported by Greg Schafer.
70468
70469 2007-05-19  Bruno Haible  <bruno@clisp.org>
70470
70471         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
70472         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
70473         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
70474         Needed for IRIX 6.5 and Solaris 2.5.1.
70475
70476 2007-05-19  Bruno Haible  <bruno@clisp.org>
70477
70478         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
70479         (test_function): Skip tests involving -0.0 on platforms where
70480         -0.0 = 0.0.
70481         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
70482         (test_function): Skip tests involving -0.0 on platforms where
70483         -0.0 = 0.0.
70484         * tests/test-snprintf-posix.h (have_minus_zero): New function.
70485         (test_function): Skip tests involving -0.0 on platforms where
70486         -0.0 = 0.0.
70487         * tests/test-sprintf-posix.h (have_minus_zero): New function.
70488         (test_function): Skip tests involving -0.0 on platforms where
70489         -0.0 = 0.0.
70490         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
70491         tests.
70492         * tests/test-printf-posix.h (test_function): Likewise.
70493         * tests/test-printf-posix.output: Remove all -0.0 related results.
70494         Needed for IRIX 6.5.
70495
70496 2007-05-19  Bruno Haible  <bruno@clisp.org>
70497
70498         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
70499         printed as "nan0x7fffffff" instead of "nan".
70500         * tests/test-vasprintf-posix.c (test_function): Likewise.
70501         * tests/test-snprintf-posix.h (test_function): Likewise.
70502         * tests/test-sprintf-posix.h (test_function): Likewise.
70503         * tests/test-fprintf-posix.h (NaN): Remove macro.
70504         (test_function): Remove all NaN related tests.
70505         * tests/test-printf-posix.h (NaN): Remove macro.
70506         (test_function): Remove all NaN related tests.
70507         * tests/test-printf-posix.output: Remove all NaN related results.
70508         Needed for IRIX 6.5.
70509
70510 2007-05-19  Bruno Haible  <bruno@clisp.org>
70511
70512         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
70513         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
70514
70515 2007-05-19  Bruno Haible  <bruno@clisp.org>
70516
70517         * lib/float_.h: New file.
70518         * m4/float_h.m4: New file.
70519         * modules/float: New file.
70520         * modules/isnanl (Dependencies): Add float.
70521         * modules/isnanl-nolibm (Dependencies): Likewise.
70522         * modules/mathl (Dependencies): Likewise.
70523         * modules/printf-frexpl (Dependencies): Likewise.
70524         * modules/signbit (Dependencies): Likewise.
70525         * modules/vasnprintf (Dependencies): Likewise.
70526         * doc/headers/float.texi: Update.
70527
70528 2007-05-19  Jim Meyering  <jim@meyering.net>
70529
70530         * lib/utimens.c (gl_futimens): Rename from futimens,
70531         now that glibc-2.6 declares futimens.
70532         * lib/utimens.h: Likewise.
70533
70534 2007-05-19  Bruno Haible  <bruno@clisp.org>
70535
70536         Avoid test failures on mingw.
70537         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
70538         * tests/test-printf-posix.sh: Likewise.
70539         * tests/test-vfprintf-posix.sh: Likewise.
70540         * tests/test-vprintf-posix.sh: Likewise.
70541
70542 2007-05-19  Bruno Haible  <bruno@clisp.org>
70543
70544         Fix *printf result for NaN, Inf, -0.0 on mingw.
70545         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
70546         * lib/vasnprintf.c: Include math.h and isnan.h.
70547         (is_infinite_or_zero): New function.
70548         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
70549         values in the %f, %F, %e, %E, %g, %G directives.
70550         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
70551         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
70552         gl_PRINTF_INFINITE and test its result. Invoke
70553         gl_PREREQ_VASNPRINTF_INFINITE.
70554         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
70555         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70556         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70557         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70558         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70559         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70560         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70561         * doc/functions/fprintf.texi: Update.
70562         * doc/functions/printf.texi: Update.
70563         * doc/functions/snprintf.texi: Update.
70564         * doc/functions/sprintf.texi: Update.
70565         * doc/functions/vfprintf.texi: Update.
70566         * doc/functions/vprintf.texi: Update.
70567         * doc/functions/vsnprintf.texi: Update.
70568         * doc/functions/vsprintf.texi: Update.
70569
70570 2007-05-19  Bruno Haible  <bruno@clisp.org>
70571
70572         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
70573         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
70574         Instead of multiplying with 10^k, set extra_zeroes to k.
70575         (scale10_round_long_double): Remove function.
70576
70577 2007-05-18  Bruno Haible  <bruno@clisp.org>
70578
70579         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
70580         introduced on 2007-05-06.
70581
70582 2007-05-18  Bruno Haible  <bruno@clisp.org>
70583
70584         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
70585         %g directives.
70586         * tests/test-vasprintf-posix.c (test_function): Likewise.
70587         * tests/test-snprintf-posix.h (test_function): Likewise.
70588         * tests/test-sprintf-posix.h (test_function): Likewise.
70589
70590 2007-05-18  Bruno Haible  <bruno@clisp.org>
70591
70592         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
70593         (strmatch): New function.
70594         (test_function): Test the %f directive on numbers of various exponents.
70595         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
70596         (strmatch): New function.
70597         (test_function): Test the %f directive on numbers of various exponents.
70598         * tests/test-snprintf-posix.h (strmatch): New function.
70599         (test_function): Test the %f directive on numbers of various exponents.
70600         * tests/test-sprintf-posix.h (strmatch): New function.
70601         (test_function): Test the %f directive on numbers of various exponents.
70602         * tests/test-snprintf-posix.c (SIZEOF): New macro.
70603         * tests/test-sprintf-posix.c (SIZEOF): New macro.
70604         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
70605         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
70606
70607 2007-05-18  Bruno Haible  <bruno@clisp.org>
70608
70609         Add support for 'long double' number output.
70610         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
70611         * lib/vasnprintf.c: Include math.h and float+.h.
70612         (mp_limb_t): New type.
70613         (GMP_LIMB_BITS): New macro.
70614         (mp_twolimb_t): New type.
70615         (GMP_TWOLIMB_BITS): New macro.
70616         (mpn_t): New type.
70617         (multiply, divide, convert_to_decimal, decode_long_double,
70618         scale10_round_long_double, scale10_round_decimal_long_double,
70619         floorlog10l): New functions.
70620         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
70621         for the %f, %F, %e, %E, %g, %G directives.
70622         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
70623         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
70624         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
70625         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
70626         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
70627         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70628         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70629         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70630         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70631         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70632         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70633         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
70634         * modules/snprintf-posix (Depends-on): Likewise.
70635         * modules/sprintf-posix (Depends-on): Likewise.
70636         * modules/vasnprintf-posix (Depends-on): Likewise.
70637         * modules/vasprintf-posix (Depends-on): Likewise.
70638         * modules/vfprintf-posix (Depends-on): Likewise.
70639         * modules/vsnprintf-posix (Depends-on): Likewise.
70640         * modules/vsprintf-posix (Depends-on): Likewise.
70641         * modules/vasnprintf (Files): Add lib/float+.h.
70642         * doc/functions/fprintf.texi: Update.
70643         * doc/functions/printf.texi: Update.
70644         * doc/functions/snprintf.texi: Update.
70645         * doc/functions/sprintf.texi: Update.
70646         * doc/functions/vfprintf.texi: Update.
70647         * doc/functions/vprintf.texi: Update.
70648         * doc/functions/vsnprintf.texi: Update.
70649         * doc/functions/vsprintf.texi: Update.
70650
70651 2007-05-18  Bruno Haible  <bruno@clisp.org>
70652
70653         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
70654
70655 2007-05-18  Bruno Haible  <bruno@clisp.org>
70656
70657         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
70658         for printing 64-bit integers. Needed for mingw.
70659
70660 2007-05-18  Bruno Haible  <bruno@clisp.org>
70661
70662         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
70663         gl_FUNC_FREXPL_WORKS.
70664         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
70665
70666 2007-05-18  Bruno Haible  <bruno@clisp.org>
70667
70668         * modules/frexpl-nolibm-tests: New file.
70669
70670         * modules/frexpl-nolibm: New file.
70671         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
70672
70673 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
70674
70675         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
70676         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
70677         GCC 4.2, which otherwise issues a lot of warnings.
70678         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
70679         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
70680         Likewise.
70681         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
70682         * modules/iconv_open (iconv.h): Likewise.
70683         * modules/locale (locale.h): Likewise.
70684         * modules/netinet_in (netinet/in.h): Likewise.
70685         * modules/sys_select (sys_select.h): Likewise.
70686         * modules/sys_socket (sys/socket.h): Likewise.
70687         * modules/sys_stat (sys/stat.h): Likewise.
70688         * modules/sysexits (sysexits.h): Likewise.
70689         * modules/unistd (unistd.h): Likewise.
70690
70691 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70692
70693         * modules/closein-tests (Makefile.am): Distribute
70694         `test-closein.sh'.
70695
70696 2007-05-17  Bruno Haible  <bruno@clisp.org>
70697
70698         * tests/test-printf-posix.output: Renamed from
70699         tests/test-fprintf-posix.out.
70700         * modules/fprintf-posix-tests: Update.
70701         * modules/printf-posix-tests: Update.
70702         * modules/vfprintf-posix-tests: Update.
70703         * modules/vprintf-posix-tests: Update.
70704         * tests/test-fprintf-posix.sh: Update.
70705         * tests/test-printf-posix.sh: Update.
70706         * tests/test-vfprintf-posix.sh: Update.
70707         * tests/test-vprintf-posix.sh: Update.
70708         Reported by Ralf Wildenhues.
70709
70710 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
70711
70712         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
70713         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
70714         GCC 4.2, which otherwise issues a lot of warnings.
70715         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
70716         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
70717         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
70718         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
70719         it should no longer be needed.
70720         * lib/string_.h: Likewise.
70721         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
70722         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
70723         * modules/inttypes (inttypes.h): Likewise.
70724         * modules/math (math.h): Likewise.
70725         * modules/search (search.h): Likewise.
70726         * modules/signal (signal.h): Likewise.
70727         * modules/stdint (stdint.h): Likewise.
70728         * modules/stdio (stdio.h): Likewise.
70729         * modules/stdlib (stdlib.h): Likewise.
70730         * modules/string (string.h): Likewise.
70731         * modules/sys_time (sys/time.h): Likewise.
70732         * modules/time (time.h): Likewise.
70733         * modules/wchar (wchar.h): Likewise.
70734         * modules/wctype (wtype.h): Likewise.
70735
70736 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
70737
70738         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
70739
70740 2007-05-13  Bruno Haible  <bruno@clisp.org>
70741
70742         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
70743         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
70744         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
70745         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
70746         (gl_PREREQ_STRTOK_R): Don't require it here.
70747
70748 2007-05-13  Bruno Haible  <bruno@clisp.org>
70749
70750         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
70751         when used in C++ mode.
70752
70753 2007-05-12  Bruno Haible  <bruno@clisp.org>
70754
70755         * lib/linebuffer.h: Tweak doc.
70756         * lib/linebuffer.c: Likewise.
70757
70758 2007-05-12  James Youngman  <jay@gnu.org>
70759
70760         * lib/linebuffer.c (readlinebuffer_delim): New function,
70761         like readlinebuffer, but use a caller-specified delimiter.
70762         (readlinebuffer): Just call readlinebuffer_delim with '\n'
70763         as the delimiter.
70764         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
70765
70766 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
70767
70768         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
70769         * modules/openat (Files): Remove openat-die.c.
70770         (Depends-on): Add openat-die.
70771         * modules/openat-die: New module.
70772
70773 2007-05-06  Bruno Haible  <bruno@clisp.org>
70774
70775         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
70776         Update with info about Cygwin.
70777         * doc/functions/fprintf.texi: Update.
70778         * doc/functions/printf.texi: Update.
70779         * doc/functions/snprintf.texi: Update.
70780         * doc/functions/sprintf.texi: Update.
70781         * doc/functions/vfprintf.texi: Update.
70782         * doc/functions/vprintf.texi: Update.
70783         * doc/functions/vsnprintf.texi: Update.
70784         * doc/functions/vsprintf.texi: Update.
70785         Reported by Eric Blake.
70786
70787 2007-05-06  Bruno Haible  <bruno@clisp.org>
70788
70789         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
70790         padding ourselves for the floating-point directives.
70791         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
70792         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
70793         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
70794         gl_PRINTF_FLAG_ZERO and test its result. Invoke
70795         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
70796         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70797         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
70798         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70799         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70800         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70801         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70802         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70803         * tests/test-snprintf-posix.h (test_function): Also check the width
70804         and some flags in the %f directive.
70805         * tests/test-sprintf-posix.h (test_function): Likewise.
70806         * tests/test-vasnprintf-posix.c (test_function): Likewise.
70807         * tests/test-vasprintf-posix.c (test_function): Likewise.
70808         * doc/functions/fprintf.texi: Update.
70809         * doc/functions/printf.texi: Update.
70810         * doc/functions/snprintf.texi: Update.
70811         * doc/functions/sprintf.texi: Update.
70812         * doc/functions/vfprintf.texi: Update.
70813         * doc/functions/vprintf.texi: Update.
70814         * doc/functions/vsnprintf.texi: Update.
70815         * doc/functions/vsprintf.texi: Update.
70816
70817 2007-05-06  Bruno Haible  <bruno@clisp.org>
70818
70819         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
70820         pass the ' flag character to sprintf or snprintf.
70821         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
70822         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
70823         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
70824         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
70825         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
70826         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70827         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
70828         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70829         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70830         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70831         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70832         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70833         * tests/test-snprintf-posix.h (test_function): Also check the grouping
70834         flag.
70835         * tests/test-sprintf-posix.h (test_function): Likewise.
70836         * tests/test-vasnprintf-posix.c (test_function): Likewise.
70837         * tests/test-vasprintf-posix.c (test_function): Likewise.
70838         * doc/functions/fprintf.texi: Update.
70839         * doc/functions/printf.texi: Update.
70840         * doc/functions/snprintf.texi: Update.
70841         * doc/functions/sprintf.texi: Update.
70842         * doc/functions/vfprintf.texi: Update.
70843         * doc/functions/vprintf.texi: Update.
70844         * doc/functions/vsnprintf.texi: Update.
70845         * doc/functions/vsprintf.texi: Update.
70846
70847 2007-05-01  Bruno Haible  <bruno@clisp.org>
70848
70849         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
70850
70851 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
70852
70853         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
70854         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
70855
70856 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
70857
70858         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
70859         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
70860         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
70861
70862 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
70863
70864         * lib/argp-help.c (struct hol_entry): New member `ord'.
70865         (HOL_ENTRY_PTRCMP): Use ord for comparison
70866         (hol_sort): Initialize ord.
70867
70868 2007-05-01  Bruno Haible  <bruno@clisp.org>
70869
70870         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
70871         Reported by Eric Blake.
70872         * doc/gnulib.texi (Function Substitutes): Update.
70873
70874 2007-05-01  Bruno Haible  <bruno@clisp.org>
70875
70876         * doc/functions.texi: Remove file, now redundant through
70877         doc/functions/*.texi.
70878
70879 2007-05-01  Bruno Haible  <bruno@clisp.org>
70880
70881         * modules/argp (Depends-on): Add sleep.
70882
70883 2007-05-01  Bruno Haible  <bruno@clisp.org>
70884
70885         * modules/sleep-tests: New file.
70886         * tests/test-sleep.c: New file.
70887
70888         * modules/sleep: New file.
70889         * lib/sleep.c: New file.
70890         * m4/sleep.m4: New file.
70891         * lib/unistd_.h (sleep): New declaration.
70892         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
70893         HAVE_SLEEP.
70894         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
70895         * doc/functions/sleep.texi: Document the sleep module.
70896
70897 2007-05-01  Bruno Haible  <bruno@clisp.org>
70898
70899         * lib/sigprocmask.h: Remove file.
70900         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
70901         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
70902         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
70903         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
70904         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
70905         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
70906         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
70907         HAVE_SIGSET_T as a shell variable.
70908         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
70909         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
70910         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
70911         (Depends-on): Add signal. Remove verify.
70912         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
70913         (Include): Mention <signal.h> instead of sigprocmask.h.
70914         * NEWS: Mention the change.
70915         * lib/fatal-signal.c: Don't include sigprocmask.h.
70916
70917 2007-05-01  Bruno Haible  <bruno@clisp.org>
70918
70919         * modules/signal: New file.
70920         * lib/signal_.h: New file.
70921         * m4/signal_h.m4: New file.
70922
70923 2007-05-01  Bruno Haible  <bruno@clisp.org>
70924
70925         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
70926         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
70927         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
70928         HAVE_WCTYPE_CTMP_BUG into wctype.h.
70929
70930 2007-05-01  Bruno Haible  <bruno@clisp.org>
70931
70932         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
70933         configure time.
70934         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
70935         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
70936         * modules/sys_stat (Makefile.am): Substitute their values into
70937         sys/stat.h.
70938
70939 2007-05-01  Bruno Haible  <bruno@clisp.org>
70940
70941         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
70942         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
70943         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
70944
70945 2007-05-01  Bruno Haible  <bruno@clisp.org>
70946
70947         * doc/header/assert.texi: Undo last change: don't mention the gnulib
70948         'assert' module here.
70949
70950 2007-05-01  Bruno Haible  <bruno@clisp.org>
70951
70952         * doc/functions/*.texi: New files.
70953         * doc/functions/google-ranking.txt: New file.
70954         * doc/gnulib.texi (Function Substitutes): New chapter.
70955         (ctime, inet_ntoa): Remove sections.
70956         * doc/ctime.texi: Remove file.
70957         * doc/inet_ntoa.texi: Remove file.
70958         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
70959         dependencies.
70960         (%.info): New rule, specifying a --reference-limit.
70961
70962 2007-05-01  Bruno Haible  <bruno@clisp.org>
70963
70964         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
70965
70966 2007-05-01  Bruno Haible  <bruno@clisp.org>
70967
70968         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
70969         the portability of 'mkdir' to mingw systems.
70970
70971 2007-05-01  Bruno Haible  <bruno@clisp.org>
70972
70973         * doc/headers/google-ranking.txt: New file.
70974
70975 2007-04-30  Eric Blake  <ebb9@byu.net>
70976
70977         Prefer fseeko to fseek.
70978         * modules/getpass (Depends-on): Add fseeko.
70979         * lib/getpass.c (getpass): Use fseeko, not fseek.
70980
70981 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
70982
70983         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
70984         assumes the sorting is stable, while most qsort implementations
70985         are not.  Use argument addresses to ensure they never compare as
70986         equal.
70987
70988         * tests/test-argp-2.sh (usage-indent test): Fix output
70989         (func_compare): Restore diff options
70990         * tests/test-argp.c: Restore #include "progname.h"
70991
70992 2007-04-29  Bruno Haible  <bruno@clisp.org>
70993
70994         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
70995         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
70996         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
70997         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70998         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
70999         (configure.ac): Define CHECK_SNPRINTF_POSIX.
71000         (TESTS, check_PROGRAMS): Add test-snprintf.
71001         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
71002         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
71003         (TESTS, check_PROGRAMS): Add test-vsnprintf.
71004         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
71005         assertions that fail on HP-UX, OSF/1, or IRIX.
71006         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
71007
71008 2007-04-29  Bruno Haible  <bruno@clisp.org>
71009
71010         * MODULES.html.sh (posix_functions): Remove 'contents'.
71011
71012 2007-04-29  Karl Berry  <karl@gnu.org>
71013
71014         * config/srclist.txt (gendocs_template_min): new entry.
71015
71016 2007-04-29  Bruno Haible  <bruno@clisp.org>
71017
71018         Work around fpurge bug on BSD systems.
71019         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
71020         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
71021         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
71022         fpurge to rpl_fpurge if the system already has this function.
71023         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
71024         the case where the system already has this function. Correct invariants
71025         on BSD systems.
71026         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
71027         BSD systems.
71028
71029 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
71030
71031         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
71032         proposed by Sven Verdoolaege.
71033
71034         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
71035         options.
71036         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
71037         (usage and help tests): Update
71038
71039 2007-04-29  Bruno Haible  <bruno@clisp.org>
71040
71041         * tests/test-fflush.c (main): Use a file of size 17, not 10.
71042         Print more information in case of failure. Disable a test on BeOS.
71043
71044 2007-04-29  Bruno Haible  <bruno@clisp.org>
71045
71046         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
71047         This helps debugging on systems on which no gdb is available.
71048
71049 2007-04-29  Bruno Haible  <bruno@clisp.org>
71050
71051         * lib/freading.h: Improve comments.
71052         * lib/fwriting.h: Likewise.
71053         * tests/test-freading.c (main): Don't check freading immediately after
71054         repositioning. Needed for glibc.
71055
71056 2007-04-29  Bruno Haible  <bruno@clisp.org>
71057
71058         * lib/freading.c (freading): Trivial simplification.
71059
71060 2007-04-28  Bruno Haible  <bruno@clisp.org>
71061
71062         * tests/test-fwriting.c (main): Also test the interaction between
71063         fflush and fwriting.
71064         * modules/fwriting-tests (Depends-on): Add fflush.
71065
71066         * tests/test-freading.c (main): Also test the interaction between
71067         fflush and freading.
71068         * modules/freading-tests (Depends-on): Add fflush.
71069
71070 2007-04-28  Bruno Haible  <bruno@clisp.org>
71071
71072         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
71073         fseeko and ftello.
71074         Suggested by Eric Blake.
71075
71076 2007-04-28  Jim Meyering  <jim@meyering.net>
71077
71078         Avoid false-negative in gl_STDINT_H's C99 conformance test.
71079         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
71080         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
71081
71082 2007-04-27  Eric Blake  <ebb9@byu.net>
71083
71084         * doc/headers/assert.texi (assert.h): Document assert module use.
71085
71086 2007-04-27  Bruno Haible  <bruno@clisp.org>
71087
71088         * doc/headers/*.texi: New files.
71089         * doc/gnulib.texi (Header File Substitutes): New chapter.
71090         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
71091         dependencies.
71092         (standards.info ,standards.html, standards.dvi): Update dependencies.
71093         (mostlyclean, clean): New targets.
71094
71095 2007-04-27  Bruno Haible  <bruno@clisp.org>
71096
71097         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
71098         * modules/sysexits (Files, Makefile.am): Update.
71099
71100         * lib/sys_socket_.h: Renamed from lib/socket_.h.
71101         * modules/sys_socket (Files, Makefile.am): Update.
71102
71103         * lib/sys_stat_.h: Renamed from lib/stat_.h.
71104         * modules/sys_stat (Files, Makefile.am): Update.
71105
71106 2007-04-27  Eric Blake  <ebb9@byu.net>
71107
71108         * lib/freading.h: Improve comments.
71109         * lib/fwriting.h: Likewise.
71110         * lib/fflush.c: Likewise.
71111
71112         Fix closein for mingw.
71113         * modules/closein-tests: Add tests for closein.
71114         * tests/test-closein.c: New file.
71115         * tests/test-closein.sh: Likewise.
71116         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
71117         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
71118
71119 2007-04-27  Bruno Haible  <bruno@clisp.org>
71120
71121         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
71122         version is < 6.
71123         * lib/math_.h [__DECC]: Likewise.
71124         * lib/stdio_.h [__DECC]: Likewise.
71125         * lib/stdlib_.h [__DECC]: Likewise.
71126         * lib/string_.h [__DECC]: Likewise.
71127         * lib/time_.h [__DECC]: Likewise.
71128         * lib/wchar_.h [__DECC]: Likewise.
71129         * lib/wctype_.h [__DECC]: Likewise.
71130
71131 2007-04-27  Bruno Haible  <bruno@clisp.org>
71132
71133         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
71134
71135 2007-04-27  Bruno Haible  <bruno@clisp.org>
71136
71137         * lib/fflush.c: Add comments.
71138         * modules/fpurge-tests (Depends-on): Add fflush.
71139         * modules/freadable-tests (Depends-on): Likewise.
71140         * modules/fwritable-tests (Depends-on): Likewise.
71141
71142 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
71143
71144         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
71145         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
71146         Report by Bruno Haible <bruno@clisp.org>.
71147
71148 2007-04-26  Eric Blake  <ebb9@byu.net>
71149
71150         Fix fflush on mingw.
71151         * modules/fflush (Depends-on): Add freading.
71152         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
71153         but unread data.
71154
71155 2007-04-26  Eric Blake  <ebb9@byu.net>
71156         and Bruno Haible  <bruno@clisp.org>
71157
71158         Implement freading and fwriting.
71159         * lib/freading.c: New file.
71160         * lib/freading.h: Likewise.
71161         * m4/freading.m4: Likewise.
71162         * modules/freading: Likewise.
71163         * modules/freading-tests: Likewise.
71164         * tests/test-freading.c: Likewise.
71165         * lib/fwriting.c: New file.
71166         * lib/fwriting.h: Likewise.
71167         * m4/fwriting.m4: Likewise.
71168         * modules/fwriting: Likewise.
71169         * modules/fwriting-tests: Likewise.
71170         * tests/test-fwriting.c: Likewise.
71171         * MODULES.html.sh (File stream based Input/Output): Mention them.
71172
71173 2007-04-26  Bruno Haible  <bruno@clisp.org>
71174
71175         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
71176         'long' when we assume it.
71177         Suggested by Eric Blake.
71178
71179 2007-04-26  Bruno Haible  <bruno@clisp.org>
71180
71181         Ensure fseeko, ftello are declared on glibc systems.
71182         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
71183         * modules/fseeko (configure.ac-early): Likewise.
71184         * modules/ftello (configure.ac-early): Likewise.
71185         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
71186         AC_FUNC_FSEEKO for this.
71187         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
71188         (gl_CHECK_FSEEKO): Remove macro.
71189
71190 2007-04-26  Bruno Haible  <bruno@clisp.org>
71191
71192         * tests/test-fflush.c (main): Also check the ftell result after
71193         fflush and fseek/fseeko.
71194         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
71195         file descriptor position cache in the stream.
71196         * lib/fseeko.c (rpl_fseeko): Likewise.
71197
71198 2007-04-26  Bruno Haible  <bruno@clisp.org>
71199
71200         * modules/fflush-tests (Depends-on): Add fseeko.
71201
71202 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
71203             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71204
71205         * lib/argz_.h: ensure error_t definition is obtained in same
71206         mechanism system argz.h would have.
71207         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
71208         argz facilities are known bad.  Err on the side of caution if
71209         cross-compiling.
71210
71211 2007-04-25  Eric Blake  <ebb9@byu.net>
71212
71213         * lib/fpurge.c (includes): Use stdlib.h for free.
71214         * tests/test-fflush.c (main): Also test fflush-fseeko.
71215
71216 2007-04-25  Bruno Haible  <bruno@clisp.org>
71217
71218         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
71219         * lib/fseeko.c: New file.
71220         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
71221         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
71222         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
71223         gl_FUNC_FSEEKO.
71224         (gl_FUNC_FSEEKO): Invoke it.
71225         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
71226         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
71227         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
71228
71229 2007-04-25  Bruno Haible  <bruno@clisp.org>
71230
71231         * modules/fflush (Depends-on): Add ftello.
71232
71233 2007-04-25  Bruno Haible  <bruno@clisp.org>
71234
71235         * modules/ftello-tests: New file.
71236         * tests/test-ftello.c: New file.
71237
71238         * modules/ftello: New file.
71239         * m4/ftello.m4: New file.
71240         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
71241         HAVE_FTELLO.
71242         * lib/stdio_.h (ftello): New declaration.
71243         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
71244         HAVE_FTELLO.
71245
71246 2007-04-25  Bruno Haible  <bruno@clisp.org>
71247
71248         * modules/fseeko-tests: New file.
71249         * tests/test-fseeko.c: New file.
71250
71251         * modules/fseeko: New file.
71252         * m4/fseeko.m4: New file.
71253         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
71254         HAVE_FSEEKO.
71255         * lib/stdio_.h (fseeko): New declaration.
71256         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
71257         HAVE_FSEEKO.
71258
71259 2007-04-25  Bruno Haible  <bruno@clisp.org>
71260
71261         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
71262
71263 2007-04-25  Bruno Haible  <bruno@clisp.org>
71264
71265         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
71266         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
71267         * tests/test-unistd.c: Likewise.
71268         * tests/test-fcntl.c: Likewise.
71269
71270 2007-04-23  Eric Blake  <ebb9@byu.net>
71271
71272         * lib/fflush.c: Fix missing include.
71273         Reported by Bruno Haible.
71274
71275 2007-04-23  Bruno Haible  <bruno@clisp.org>
71276
71277         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
71278         Reported by Eric Blake.
71279
71280 2007-04-23  Bruno Haible  <bruno@clisp.org>
71281
71282         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
71283
71284 2007-04-23  Bruno Haible  <bruno@clisp.org>
71285
71286         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
71287
71288 2007-04-23  Bruno Haible  <bruno@clisp.org>
71289
71290         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
71291         Needed on HP-UX 11.
71292
71293 2007-04-16  Eric Blake  <ebb9@byu.net>
71294
71295         Make fflush rely on fpurge.
71296         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
71297         open coding all variants.
71298         * modules/fflush (Depends-on): Add fpurge and unistd.
71299         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
71300         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
71301
71302         Fix --with-tests compilation on cygwin.
71303         * modules/argmatch-tests (Makefile.am): List gnulib library first
71304         in LDADD.
71305         * modules/argp-tests (Makefile.am): Likewise.
71306         * modules/array-list-tests (Makefile.am): Likewise.
71307         * modules/array-oset-tests (Makefile.am): Likewise.
71308         * modules/avltree-list-tests (Makefile.am): Likewise.
71309         * modules/avltree-oset-tests (Makefile.am): Likewise.
71310         * modules/avltreehash-list-tests (Makefile.am): Likewise.
71311         * modules/carray-list-tests (Makefile.am): Likewise.
71312         * modules/dirname-tests (Makefile.am): Likewise.
71313         * modules/frexp-tests (Makefile.am): Likewise.
71314         * modules/isnanl-tests (Makefile.am): Likewise.
71315         * modules/linked-list-tests (Makefile.am): Likewise.
71316         * modules/linkedhash-list-tests (Makefile.am): Likewise.
71317         * modules/lock-tests (Makefile.am): Likewise.
71318         * modules/rbtree-list-tests (Makefile.am): Likewise.
71319         * modules/rbtree-oset-tests (Makefile.am): Likewise.
71320         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
71321         * modules/tls-tests (Makefile.am): Likewise.
71322         * modules/tsearch-tests (Makefile.am): Likewise.
71323         * modules/xvasprintf-tests (Makefile.am): Likewise.
71324
71325         Fix fpurge for cygwin.
71326         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
71327         value.
71328         * modules/fpurge-tests (Depends-on): Clean up trash.
71329
71330 2007-04-16  Simon Josefsson  <simon@josefsson.org>
71331
71332         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
71333
71334         * m4/autobuild.m4: Re-indent.
71335
71336 2007-04-13  Bruno Haible  <bruno@clisp.org>
71337
71338         * modules/fpurge-tests: New file.
71339         * tests/test-fpurge.c: New file.
71340
71341         * modules/fpurge: New file.
71342         * lib/fpurge.h: New file.
71343         * lib/fpurge.c: New file.
71344         * m4/fpurge.m4: New file.
71345
71346 2007-04-13  Bruno Haible  <bruno@clisp.org>
71347
71348         * modules/fbufmode-tests: New file.
71349         * tests/test-fbufmode.c: New file.
71350
71351         * modules/fbufmode: New file.
71352         * lib/fbufmode.h: New file.
71353         * lib/fbufmode.c: New file.
71354         * m4/fbufmode.m4: New file.
71355
71356 2007-04-13  Bruno Haible  <bruno@clisp.org>
71357
71358         * modules/fwritable-tests: New file.
71359         * tests/test-fwritable.c: New file.
71360
71361         * modules/fwritable: New file.
71362         * lib/fwritable.h: New file.
71363         * lib/fwritable.c: New file.
71364         * m4/fwritable.m4: New file.
71365
71366 2007-04-13  Bruno Haible  <bruno@clisp.org>
71367
71368         * modules/freadable-tests: New file.
71369         * tests/test-freadable.c: New file.
71370
71371         * modules/freadable: New file.
71372         * lib/freadable.h: New file.
71373         * lib/freadable.c: New file.
71374         * m4/freadable.m4: New file.
71375
71376 2007-04-13  Bruno Haible  <bruno@clisp.org>
71377
71378         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
71379         MOSTLYCLEANFILES.
71380
71381 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
71382
71383         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
71384         gzip bootstrap.conf to avoid dragging in i18n machinery.
71385         (gnulib_tool_option): Use it.
71386
71387 2007-04-13  Bruno Haible  <bruno@clisp.org>
71388
71389         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
71390         %F directives.
71391         * tests/test-vasprintf-posix.c (test_function): Likewise.
71392         * tests/test-snprintf-posix.h (test_function): Likewise.
71393         * tests/test-sprintf-posix.h (test_function): Likewise.
71394         * tests/test-fprintf-posix.h (test_function): Likewise.
71395         * tests/test-printf-posix.h (test_function): Likewise.
71396         * tests/test-fprintf-posix.out: Likewise.
71397
71398 2007-04-13  Bruno Haible  <bruno@clisp.org>
71399
71400         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
71401         * modules/tls-tests (configure.ac): Likewise.
71402         Reported by Arto C. Nirkko <anirkko@insel.ch>.
71403
71404 2007-04-13  Bruno Haible  <bruno@clisp.org>
71405
71406         * lib/tls.c (glthread_tls_get): Fix return type.
71407         Patch by Arto C. Nirkko <anirkko@insel.ch>.
71408
71409 2007-04-12  Eric Blake  <ebb9@byu.net>
71410
71411         * modules/gettime (Depends-on): Remove gettime.
71412         Reported by Dmitry V. Levin.
71413
71414 2007-04-12  Bruno Haible  <bruno@clisp.org>
71415
71416         * modules/fflush (Include): Mention <stdio.h>.
71417         * modules/strtoimax (Include): Mention <inttypes.h>.
71418         * modules/strtoumax (Include): Likewise.
71419
71420 2007-04-12  Eric Blake  <ebb9@byu.net>
71421
71422         * .cvsignore: New file.
71423         * .gitignore: Likewise.
71424
71425 2007-04-12  Bruno Haible  <bruno@clisp.org>
71426
71427         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
71428         not before, since $(LDADD) often contains libgnu.a.
71429         * modules/striconv-tests (test_striconv_LDADD): Likewise.
71430         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
71431         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
71432         Needed on Cygwin.
71433
71434 2007-04-12  Eric Blake  <ebb9@byu.net>
71435
71436         Work around glibc's failure to flush stdin on fclose.
71437         * lib/closein.c (close_stdin): Flush stdin before closing.
71438
71439         Work around glibc's failure to reset seekable stdin on exit.
71440         * modules/closein: New module.
71441         * lib/closein.c: New file.
71442         * lib/closein.h: Likewise.
71443         * m4/closein.m4: Likewise.
71444         * MODULES.html.sh (File stream based Input/Output): Document it.
71445
71446 2007-04-12  Simon Josefsson  <simon@josefsson.org>
71447
71448         * gnulib-tool: Rename generated 'autobuild' script to
71449         'do-autobuild' in --create-megatestdir output.
71450
71451         * doc/gnulib.texi (Build robot for gnulib): Fix.
71452
71453 2007-04-12  Simon Josefsson  <simon@josefsson.org>
71454
71455         * modules/sysexits (Depends-on): Add absolute-header.
71456
71457 2007-04-12  Eric Blake  <ebb9@byu.net>
71458
71459         No need to preserve errno on success.
71460         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
71461         Reported by Bruno Haible.
71462
71463 2007-04-12  Simon Josefsson  <simon@josefsson.org>
71464
71465         * MODULES.html.sh (Support for maintaining and releasing
71466         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
71467
71468 2007-04-12  Simon Josefsson  <simon@josefsson.org>
71469
71470         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
71471
71472 2007-04-12  Simon Josefsson  <simon@josefsson.org>
71473
71474         * modules/autobuild: New module.
71475
71476         * m4/autobuild.m4: New file.
71477
71478 2007-04-11  Bruno Haible  <bruno@clisp.org>
71479
71480         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
71481         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
71482         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
71483         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
71484         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
71485         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71486         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71487         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
71488         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71489         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71490         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
71491         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71492         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71493         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
71494         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71495         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71496         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
71497         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71498         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71499         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
71500         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71501         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71502         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
71503         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71504         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71505         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
71506         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71507         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71508         Reported by Eric Blake.
71509
71510 2007-04-11  Bruno Haible  <bruno@clisp.org>
71511
71512         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
71513
71514 2007-04-10  Bruno Haible  <bruno@clisp.org>
71515
71516         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
71517         for NaN and Infinity. Needed on FreeBSD 6.1.
71518         * tests/test-vasnprintf-posix.c (test_function): Undo last change
71519         regarding results for "%010a" of Infinity and NaN.
71520         * tests/test-vasprintf-posix.c (test_function): Likewise.
71521         * tests/test-snprintf-posix.h (test_function): Likewise.
71522         * tests/test-sprintf-posix.h (test_function): Likewise.
71523         * tests/test-fprintf-posix.h (test_function): Likewise.
71524         * tests/test-printf-posix.h (test_function): Likewise.
71525         * tests/test-fprintf-posix.out: Likewise.
71526
71527 2007-04-10  Bruno Haible  <bruno@clisp.org>
71528
71529         * modules/locale-tests: New file.
71530         * tests/test-locale.c: New file.
71531
71532         * modules/locale: New file.
71533         * lib/locale_.h: New file.
71534         * m4/locale_h.m4: New file.
71535
71536 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
71537             Bruno Haible  <bruno@clisp.org>
71538
71539         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
71540         be determined, test for availability of the copysignf, copysign,
71541         copysignl functions.
71542         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
71543         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
71544         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
71545
71546 2007-04-09  Eric Blake  <ebb9@byu.net>
71547
71548         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
71549         * modules/stdio (Makefile.am): Support fflush.
71550         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
71551         * modules/fflush: New file.
71552         * lib/fflush.c: Likewise.
71553         * m4/fflush.m4: Likewise.
71554         * modules/fflush-tests: New test.
71555         * tests/test-fflush.c: Likewise.
71556         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
71557
71558 2007-04-06  Bruno Haible  <bruno@clisp.org>
71559
71560         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
71561         (VASNPRINTF): Use signbit for faster determination whether to print a
71562         minus sign.
71563         * modules/vasnprintf (Files): Remove lib/float+.h.
71564         * modules/fprintf-posix (Depends-on): Add signbit.
71565         * modules/snprintf-posix (Depends-on): Likewise.
71566         * modules/sprintf-posix (Depends-on): Likewise.
71567         * modules/vasnprintf-posix (Depends-on): Likewise.
71568         * modules/vasprintf-posix (Depends-on): Likewise.
71569         * modules/vfprintf-posix (Depends-on): Likewise.
71570         * modules/vsnprintf-posix (Depends-on): Likewise.
71571         * modules/vsprintf-posix (Depends-on): Likewise.
71572
71573 2007-04-06  Bruno Haible  <bruno@clisp.org>
71574
71575         * tests/test-frexp.c (main): Test also the sign bit of zero results.
71576         * tests/test-frexpl.c (main): Likewise.
71577         * tests/test-ldexpl.c (main): Likewise.
71578         * modules/frexp-tests (Depends-on): Add signbit.
71579         * modules/frexpl-tests (Depdends-on): Likewise.
71580         * modules/ldexpl-tests (Depdends-on): Likewise.
71581
71582 2007-04-06  Bruno Haible  <bruno@clisp.org>
71583
71584         * modules/signbit-tests: New file.
71585         * tests/test-signbit.c: New file.
71586
71587         * modules/signbit: New file.
71588         * lib/signbitf.c: New file.
71589         * lib/signbitd.c: New file.
71590         * lib/signbitl.c: New file.
71591         * m4/signbit.m4: New file.
71592         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
71593         (signbit): New macro.
71594         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
71595         REPLACE_SIGNBIT.
71596         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
71597         REPLACE_FREXPL into math.h.
71598
71599 2007-04-06  Bruno Haible  <bruno@clisp.org>
71600
71601         * modules/isnanf-nolibm-tests: New file.
71602         * tests/test-isnanf.c: New file.
71603
71604         * modules/isnanf-nolibm: New file.
71605         * lib/isnanf.h: New file.
71606         * lib/isnanf.c: New file.
71607         * lib/isnan.c: Consider the USE_FLOAT macro.
71608         * m4/isnanf.m4: New file.
71609
71610 2007-04-06  Bruno Haible  <bruno@clisp.org>
71611
71612         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
71613         (Link): New section.
71614
71615         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
71616
71617 2007-04-06  Bruno Haible  <bruno@clisp.org>
71618
71619         Assume the 'long double' type.
71620         * m4/longdouble.m4: Remove file.
71621         * config/srclist.txt: Don't mention longdouble.m4.
71622         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
71623         * lib/float+.h: Likewise.
71624         * lib/frexp.c: Likewise.
71625         * lib/printf-args.h: Likewise.
71626         * lib/printf-args.c: Likewise.
71627         * lib/printf-frexp.c: Likewise.
71628         * lib/printf-parse.c: Likewise.
71629         * lib/vasnprintf.c: Likewise.
71630         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
71631         * m4/intl.m4: Likewise.
71632         * m4/isnanl.m4: Likewise.
71633         * m4/printf.m4: Likewise.
71634         * m4/printf-frexpl.m4: Likewise.
71635         * m4/vasnprintf.m4: Likewise.
71636         * modules/allocsa (Files): Remove m4/longdouble.m4.
71637         * modules/gettext (Files): Likewise.
71638         * modules/relocatable-prog-wrapper (Files): Likewise.
71639         * modules/vasnprintf (Files): Likewise.
71640         * modules/isnanl (Files): Likewise.
71641         (Include): Simplify.
71642         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
71643         (Include): Simplify.
71644         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
71645         (Include): Simplify.
71646         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
71647         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71648         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
71649         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71650         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
71651         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71652         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
71653         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71654         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
71655         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71656         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
71657         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71658         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
71659         * tests/test-isnanl.c: Likewise.
71660         * tests/test-snprintf-posix.h: Likewise.
71661         * tests/test-sprintf-posix.h: Likewise.
71662         * tests/test-vasnprintf-posix.c: Likewise.
71663         * tests/test-vasnprintf-posix2.c: Likewise.
71664         * tests/test-vasprintf-posix.c: Likewise.
71665
71666 2007-04-06  Bruno Haible  <bruno@clisp.org>
71667
71668         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
71669         * lib/math_.h [__DECC]: Include the overridden include file through
71670         #include_next, outside the double-inclusion guard.
71671         * lib/stdio_.h [__DECC]: Likewise.
71672         * lib/stdlib_.h [__DECC]: Likewise.
71673         * lib/string_.h [__DECC]: Likewise.
71674         * lib/time_.h [__DECC]: Likewise.
71675         * lib/wchar_.h [__DECC]: Likewise.
71676         * lib/wctype_.h [__DECC]: Likewise.
71677         * lib/inttypes_.h [__DECC]: Likewise.
71678         Reported by Albert Chin <china@thewrittenword.com> in
71679         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
71680
71681 2007-04-04  Eric Blake  <ebb9@byu.net>
71682
71683         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
71684         1.5.x.
71685
71686 2007-04-04  Bruno Haible  <bruno@clisp.org>
71687
71688         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
71689         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
71690
71691 2007-04-04  Bruno Haible  <bruno@clisp.org>
71692
71693         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
71694         results for "%010a" of Infinity and NaN.
71695         * tests/test-vasprintf-posix.c (test_function): Likewise.
71696         * tests/test-snprintf-posix.h (test_function): Likewise.
71697         * tests/test-sprintf-posix.h (test_function): Likewise.
71698         * tests/test-fprintf-posix.h (test_function): Remove these tests.
71699         * tests/test-printf-posix.h (test_function): Likewise.
71700         * tests/test-fprintf-posix.out: Update.
71701         Needed for FreeBSD 6.1.
71702
71703 2007-04-04  Bruno Haible  <bruno@clisp.org>
71704
71705         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
71706         directly used by the gnulib modules nor by gnulib-tool.
71707
71708 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
71709
71710         * DEPENDENCIES: Give overall description of version dependency
71711         desirability.  Use more-typical names for apps.
71712         Add shell, coreutils, diffutils, grep, tar, gzip.
71713
71714 2007-04-04  Simon Josefsson  <simon@josefsson.org>
71715
71716         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
71717
71718 2007-04-04  Karl Berry  <karl@gnu.org>
71719
71720         * MODULES.html.sh (func_module): missing '.
71721
71722 2007-04-03  Bruno Haible  <bruno@clisp.org>
71723
71724         * modules/argmatch-tests (Makefile.am): New variable
71725         test_argmatch_LDADD.
71726         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
71727         * modules/array-list-tests (Makefile.am): New variable
71728         test_array_list_LDADD.
71729         * modules/array-oset-tests (Makefile.am): New variable
71730         test_array_oset_LDADD.
71731         * modules/avltree-list-tests (Makefile.am): New variable
71732         test_avltree_list_LDADD.
71733         * modules/avltree-oset-tests (Makefile.am): New variable
71734         test_avltree_oset_LDADD.
71735         * modules/avltreehash-list-tests (Makefile.am): New variable
71736         test_avltreehash_list_LDADD.
71737         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
71738         test_canonicalize_lgpl_LDADD.
71739         * modules/carray-list-tests (Makefile.am): New variable
71740         test_carray_list_LDADD.
71741         * modules/dirname-tests (Makefile.am): New variable
71742         test_dirname_LDADD.
71743         * modules/linked-list-tests (Makefile.am): New variable
71744         test_linked_list_LDADD.
71745         * modules/linkedhash-list-tests (Makefile.am): New variable
71746         test_linkedhash_list_LDADD.
71747         * modules/rbtree-list-tests (Makefile.am): New variable
71748         test_rbtree_list_LDADD.
71749         * modules/rbtree-oset-tests (Makefile.am): New variable
71750         test_rbtree_oset_LDADD.
71751         * modules/rbtreehash-list-tests (Makefile.am): New variable
71752         test_rbtreehash_list_LDADD.
71753         * modules/xvasprintf-tests (Makefile.am): New variable
71754         test_xvasprintf_LDADD.
71755         Reported by Eric Blake.
71756
71757 2007-04-03  Eric Blake  <ebb9@byu.net>
71758
71759         * DEPENDENCIES: Weaken m4 requirements.
71760
71761 2007-04-03  Bruno Haible  <bruno@clisp.org>
71762
71763         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
71764         * modules/isnanl-tests (configure.ac): Likewise.
71765
71766 2007-04-03  Ben Pfaff  <blp@gnu.org>
71767
71768         * modules/iconv_open: Add $(srcdir)/ to source directory
71769         references in Makefile fragments that call gperf, to fix VPATH
71770         builds.
71771
71772 2007-04-03  Bruno Haible  <bruno@clisp.org>
71773
71774         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
71775         * lib/ldexpl.c: Undo last change.
71776
71777 2007-04-03  Bruno Haible  <bruno@clisp.org>
71778
71779         * modules/printf-frexpl (Depends-on): Undo last change.
71780         (Files): Add m4/ldexpl.m4.
71781
71782 2007-04-03  Bruno Haible  <bruno@clisp.org>
71783
71784         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
71785         * modules/isnanl (Link): New section.
71786
71787         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
71788         * modules/frexp (Link): New section.
71789
71790         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
71791         * modules/frexpl (Link): New section.
71792
71793         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
71794         * modules/ldexpl (Link): New section.
71795
71796 2007-04-03  Bruno Haible  <bruno@clisp.org>
71797
71798         * modules/TEMPLATE-EXTENDED: New file.
71799         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
71800
71801 2007-04-03  Bruno Haible  <bruno@clisp.org>
71802
71803         * DEPENDENCIES: New file.
71804         Suggested by Simon Josefsson.
71805
71806 2007-04-03  Bruno Haible  <bruno@clisp.org>
71807
71808         * doc/gnulib.texi: Escape @.
71809
71810 2007-04-03  James Youngman  <jay@gnu.org>
71811         and Paul Eggert  <eggert@cs.ucla.edu>
71812
71813         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
71814         birthtime on all systems that have birthtime, not just those which
71815         use st_birthtimensec rather than st_birthtim.  Putting zero in
71816         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
71817         that the birth time is not available for files on an NFS mount.
71818
71819 2007-04-03  Simon Josefsson  <simon@josefsson.org>
71820
71821         * modules/memxor: Move back from crypto/, suggested by Bruno.
71822         * modules/crypto/hmac-sha1: Fix memxor dependency.
71823
71824         * modules/crypto/gc: Moved from ../.
71825
71826 2007-04-02  Eric Blake  <ebb9@byu.net>
71827
71828         * lib/ldexpl.c (includes): Avoid libm.
71829
71830         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
71831
71832 2007-04-02  Bruno Haible  <bruno@clisp.org>
71833
71834         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
71835         on IRIX.
71836
71837 2007-04-02  Bruno Haible  <bruno@clisp.org>
71838
71839         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
71840         x86 or x86_64 platforms running MacOS X.
71841         Reported by Ryan Schmidt <@ryandesign.com>.
71842
71843 2007-04-02  Bruno Haible  <bruno@clisp.org>
71844
71845         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
71846         i386.
71847
71848 2007-04-01  Simon Josefsson  <simon@josefsson.org>
71849
71850         * modules/crypto/arcfour: Moved from ../.
71851         * modules/crypto/arcfour-tests: Moved from ../.
71852         * modules/crypto/arctwo: Moved from ../.
71853         * modules/crypto/arctwo-tests: Moved from ../.
71854         * modules/crypto/des: Moved from ../.
71855         * modules/crypto/des-tests: Moved from ../.
71856         * modules/crypto/gc-arcfour: Moved from ../.
71857         * modules/crypto/gc-arcfour-tests: Moved from ../.
71858         * modules/crypto/gc-arctwo: Moved from ../.
71859         * modules/crypto/gc-arctwo-tests: Moved from ../.
71860         * modules/crypto/gc-des: Moved from ../.
71861         * modules/crypto/gc-des-tests: Moved from ../.
71862         * modules/crypto/gc-hmac-md5: Moved from ../.
71863         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
71864         * modules/crypto/gc-hmac-sha1: Moved from ../.
71865         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
71866         * modules/crypto/gc-md2: Moved from ../.
71867         * modules/crypto/gc-md2-tests: Moved from ../.
71868         * modules/crypto/gc-md4: Moved from ../.
71869         * modules/crypto/gc-md4-tests: Moved from ../.
71870         * modules/crypto/gc-md5: Moved from ../.
71871         * modules/crypto/gc-md5-tests: Moved from ../.
71872         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
71873         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
71874         * modules/crypto/gc-random: Moved from ../.
71875         * modules/crypto/gc-rijndael: Moved from ../.
71876         * modules/crypto/gc-rijndael-tests: Moved from ../.
71877         * modules/crypto/gc-sha1: Moved from ../.
71878         * modules/crypto/gc-sha1-tests: Moved from ../.
71879         * modules/crypto/gc-tests: Moved from ../.
71880         * modules/crypto/hmac-md5: Moved from ../.
71881         * modules/crypto/hmac-md5-tests: Moved from ../.
71882         * modules/crypto/hmac-sha1: Moved from ../.
71883         * modules/crypto/hmac-sha1-tests: Moved from ../.
71884         * modules/crypto/md2: Moved from ../.
71885         * modules/crypto/md2-tests: Moved from ../.
71886         * modules/crypto/md4: Moved from ../.
71887         * modules/crypto/md4-tests: Moved from ../.
71888         * modules/crypto/md5: Moved from ../.
71889         * modules/crypto/md5-tests: Moved from ../.
71890         * modules/crypto/memxor: Moved from ../.
71891         * modules/crypto/rijndael: Moved from ../.
71892         * modules/crypto/rijndael-tests: Moved from ../.
71893         * modules/crypto/sha1: Moved from ../.
71894
71895 2007-03-30  James Youngman  <jay@gnu.org>
71896
71897         * tests/test-stat-time.c (prepare_test): use chmod() rather than
71898         rename() to change the ctime of a file (because ctime is unaffected
71899         by rename on jfs2 on AIX 5.1).
71900         (main): Start by doing cleanup, in case a previous run failed leaving
71901         test files behind.
71902
71903 2007-03-31  Bruno Haible  <bruno@clisp.org>
71904
71905         Support old proprietary implementations of iconv.
71906         * modules/iconv_open: New file.
71907         * lib/iconv_.h: New file.
71908         * m4/iconv_h.m4: New file.
71909         * lib/iconv_open.c: New file.
71910         * lib/iconv_open-aix.gperf: New file.
71911         * lib/iconv_open-hpux.gperf: New file.
71912         * lib/iconv_open-irix.gperf: New file.
71913         * lib/iconv_open-osf.gperf: New file.
71914         * m4/iconv_open.m4: New file.
71915         * modules/linebreak (Depends-on): Add iconv_open.
71916         * modules/striconv (Depends-on): Likewise.
71917         * modules/striconveh (Depends-on): Likewise.
71918         * modules/unicodeio (Depends-on): Likewise.
71919         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
71920         (iconv_t)(-1).
71921         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
71922         conversion if cd is (iconv_t)(-1).
71923         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
71924         is not possible.
71925
71926 2007-03-31  Bruno Haible  <bruno@clisp.org>
71927
71928         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
71929         work on Solaris either. Protect also second use of "autodetect_jp".
71930
71931 2007-03-31  Bruno Haible  <bruno@clisp.org>
71932
71933         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
71934         the function is not present.
71935
71936 2007-03-31  Bruno Haible  <bruno@clisp.org>
71937
71938         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
71939         the function is not present.
71940
71941 2007-03-31  Bruno Haible  <bruno@clisp.org>
71942
71943         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
71944         a bug in HP-UX iconv_open().
71945
71946 2007-03-31  Bruno Haible  <bruno@clisp.org>
71947
71948         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
71949         (Mathematics <math.h>): New section, add fpieee.
71950         (Input/output <stdio.h>): Add fseterr.
71951         (Mathematics <math.h>): New section, add printf-frexp.
71952         (Container data structures): Add sublist.
71953         (Core language properties): Add fpucw, inline.
71954         (Functions for greatest-width integer types <inttypes.h>): Add
71955         imaxabs, imaxdiv, inttypes.
71956         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
71957         isnanl-nolibm, ldexp.
71958         (Mathematics <math.h>): New section, add printf-frexpl.
71959         (Support for systems lacking POSIX:2001): Add fprintf-posix,
71960         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
71961         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
71962         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
71963         (Unicode string functions): Add unistr/u*-mbtoucr.
71964         (Java): Add javacomp-script, javaexec-script.
71965         (C#): Add csharpcomp-script, csharpexec-script.
71966         (Support for building libraries and executables): Add havelib,
71967         relocatable-*.
71968         (Support for maintaining and releasing projects): Renamed from
71969         'Support for maintaining and release projects'. Add announce-gen.
71970
71971 2007-03-31  Bruno Haible  <bruno@clisp.org>
71972
71973         * README: Talk primarily about git.
71974         (git and CVS): Renamed from CVS.
71975         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
71976         gnulib is available through git.
71977         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
71978
71979 2007-03-30  Bruno Haible  <bruno@clisp.org>
71980
71981         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
71982         * lib/poll_.h: Likewise.
71983         * lib/stat_.h: Likewise.
71984         * lib/sys_time_.h: Likewise.
71985         * lib/sysexit_.h: Likewise.
71986         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
71987         * lib/stdbool_.h: Likewise.
71988         * lib/byteswap_.h: Add double-inclusion guard.
71989
71990 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
71991
71992         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
71993
71994 2007-03-30  Karl Berry  <karl@gnu.org>
71995
71996         * config/srclist-update: double space after USA in the license
71997         substitution, since that's how it's usually (?) written.
71998
71999 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
72000
72001         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
72002         reported by Bruno Haible.
72003
72004 2007-03-29  Bruno Haible  <bruno@clisp.org>
72005
72006         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
72007         a bug in AIX iconv().
72008
72009 2007-03-29  Bruno Haible  <bruno@clisp.org>
72010
72011         * modules/ldexpl-tests: New file.
72012         * tests/test-ldexpl.c: New file.
72013
72014 2007-03-29  Bruno Haible  <bruno@clisp.org>
72015
72016         * lib/ldexpl.c: Include fpucw.h.
72017         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
72018         multiplication.
72019         * modules/ldexpl (Depends-on): Add fpucw.
72020
72021 2007-03-29  Bruno Haible  <bruno@clisp.org>
72022
72023         * modules/ldexpl: New file.
72024         * m4/ldexpl.m4: New file.
72025         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
72026         set.
72027         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
72028         REPLACE_LDEXPL.
72029         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
72030         REPLACE_LDEXPL.
72031         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
72032         gl_FUNC_LDEXPL_WORKS.
72033         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
72034         * modules/mathl (Files): Remove lib/ldexpl.c.
72035         (Depends-on): Add ldexpl.
72036
72037 2007-03-29  Bruno Haible  <bruno@clisp.org>
72038
72039         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
72040
72041 2007-03-29  Bruno Haible  <bruno@clisp.org>
72042
72043         * tests/test-striconveh.c (main): Don't assume that a direct conversion
72044         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
72045         and possibly also HP-UX.
72046         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
72047         work on AIX, IRIX, HP-UX, OSF/1.
72048         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
72049         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
72050         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
72051         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
72052         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
72053         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
72054
72055 2007-03-29  Bruno Haible  <bruno@clisp.org>
72056
72057         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
72058
72059 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
72060
72061         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
72062         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
72063
72064 2007-03-29  Eric Blake  <ebb9@byu.net>
72065
72066         * lib/acl-internal.h: Remove redundant include.
72067         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
72068         Cygwin when a file is locked.
72069
72070 2007-03-29  Bruno Haible  <bruno@clisp.org>
72071
72072         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
72073         file.
72074         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
72075
72076 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
72077
72078         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
72079         try to remove a parent directory if the child couldn't be removed
72080         (except for the first rmdir, which could fail because the child
72081         doesn't exist).  Problem reported by Jeff Blaine in
72082         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
72083
72084 2007-03-28  Bruno Haible  <bruno@clisp.org>
72085
72086         * lib/striconveh.c (utf8conv_carefully): New function.
72087         (mem_cd_iconveh_internal): Invoke it.
72088
72089 2007-03-28  Bruno Haible  <bruno@clisp.org>
72090
72091         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
72092         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
72093         input.
72094         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
72095         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
72096         unistr/u8-uctomb.
72097
72098 2007-03-28  Bruno Haible  <bruno@clisp.org>
72099
72100         * modules/unistr/u8-mbtoucr: New file.
72101         * lib/unistr/u8-mbtoucr.c: New file.
72102         * modules/unistr/u16-mbtoucr: New file.
72103         * lib/unistr/u16-mbtoucr.c: New file.
72104         * modules/unistr/u16-mbtoucr: New file.
72105         * lib/unistr/u16-mbtoucr.c: New file.
72106         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
72107
72108 2007-03-27  Simon Josefsson  <simon@josefsson.org>
72109             Bruno Haible  <bruno@clisp.org>
72110
72111         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
72112         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
72113         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
72114
72115         * m4/stdio_h.m4: Add stubs for vasprintf too.
72116
72117         * modules/stdio: Support vasprintf in sed command.
72118
72119         * modules/vasprintf: Depend on stdio for prototypes.  Remove
72120         vasprintf.h.  Add stdio module indicator.
72121
72122         * lib/stdio_.h: Declare asprintf and vasprintf, based on
72123         vasprintf.h.
72124
72125         * lib/vasprintf.h: File removed.
72126
72127         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
72128         * lib/vasprintf.c: Ditto.
72129         * lib/xvasprintf.c: Ditto.
72130         * tests/test-vasprintf-posix.c: Ditto.
72131         * tests/test-vasprintf.c: Ditto.
72132
72133 2007-03-27  Bruno Haible  <bruno@clisp.org>
72134
72135         Make vasnprintf multithread-safe.
72136         * lib/vasnprintf.c (decimal_point_char): New function.
72137         (VASNPRINTF): Use it.
72138         Suggested by Simon Josefsson.
72139
72140 2007-03-27  Eric Blake  <ebb9@byu.net>
72141
72142         Support sub-second birthtime on cygwin.
72143         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
72144         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
72145         (get_stat_birthtime): Also work with st_birthtim.
72146
72147 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
72148
72149         * lib/stat-time.h (USE_BIRTHTIME): Remove.
72150         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
72151         (get_stat_birthtime_ns): Do not try to use "spare" fields.
72152         (get_stat_birthtime_ns): Simplify compile-time tests.
72153         (get_stat_birthtime): Change the API to look like
72154         get_stat_mtime etc., except return a negative tv_nsec on error.
72155         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
72156         Don't check for "spare" fields.
72157         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
72158         or for struct stat.st_birthtime, as these tests aren't used.
72159         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
72160
72161 2007-03-27  Bruno Haible  <bruno@clisp.org>
72162
72163         * lib/stat-time.h: Include <sys/stat.h>.
72164
72165 2007-03-27  James Youngman  <jay@gnu.org>
72166
72167         * lib/stat-time.h (get_stat_birthtime): New function for
72168           retrieving st_birthtime as provided by UFS2 (hence *BSD).
72169         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
72170           and its variants.
72171         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
72172         * modules/stat-time-test: New file.
72173         * tests/test-stat-time.c: New test, devised by Bruno Haible.
72174
72175 2007-03-26  Bruno Haible  <bruno@clisp.org>
72176
72177         Better support of signalling NaNs.
72178         * lib/atanl.c: Include isnanl.h.
72179         (atanl): Perform test for NaN at the beginning of the function and
72180         through a call to isnanl.
72181         * lib/cosl.c: Include isnanl.h.
72182         (cosl): Perform test for NaN at the beginning of the function and
72183         through a call to isnanl.
72184         * lib/ldexpl.c: Include isnanl.h.
72185         (ldexpl): Perform test for NaN through a call to isnanl.
72186         * lib/logl.c: Include isnanl.h.
72187         (logl): Perform test for NaN at the beginning of the function and
72188         through a call to isnanl.
72189         * lib/sinl.c: Include isnanl.h.
72190         (sinl): Perform test for NaN at the beginning of the function and
72191         through a call to isnanl.
72192         * lib/sqrtl.c: Include isnanl.h.
72193         (sqrtl): Perform test for NaN at the beginning of the function and
72194         through a call to isnanl.
72195         * lib/tanl.c: Include isnanl.h.
72196         (tanl): Perform test for NaN at the beginning of the function and
72197         through a call to isnanl.
72198         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
72199         * modules/mathl (Depends-on): Add isnanl.
72200
72201 2007-03-26  Eric Blake  <ebb9@byu.net>
72202
72203         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
72204         regression in logic sense of previous patch.
72205
72206 2007-03-26  Bruno Haible  <bruno@clisp.org>
72207
72208         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
72209         unportable shell command "if ! ...".
72210         Reported by Ralf Wildenhues.
72211
72212 2007-03-25  Bruno Haible  <bruno@clisp.org>
72213
72214         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
72215         <sysexits.h> file, and only add EX_CONFIG.
72216         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
72217         absolute file name and whether it is sufficient. Substitute also
72218         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
72219         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
72220         ABSOLUTE_SYSEXITS_H into sysexits.h.
72221
72222 2007-03-25  Bruno Haible  <bruno@clisp.org>
72223
72224         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
72225         hints is NULL.
72226
72227 2007-03-25  Bruno Haible  <bruno@clisp.org>
72228
72229         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
72230         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
72231
72232 2007-03-25  Bruno Haible  <bruno@clisp.org>
72233
72234         * lib/vasnprintf.c: Include langinfo.h.
72235         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
72236         multithread-safe.
72237         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
72238         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
72239         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
72240         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
72241         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
72242         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
72243         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
72244         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
72245         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
72246         Reported by Simon Josefsson.
72247
72248 2007-03-25  Bruno Haible  <bruno@clisp.org>
72249
72250         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
72251         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
72252         * modules/vasnprintf (Depends-on): Add stdint.
72253
72254 2007-03-25  Bruno Haible  <bruno@clisp.org>
72255
72256         * modules/fpieee: New file.
72257         * m4/fpieee.m4: New file.
72258         * modules/isnan-nolibm (Depends-on): Add fpieee.
72259         * modules/isnanl-nolibm (Depends-on): Add fpieee.
72260         * modules/isnanl (Depends-on): Add fpieee.
72261
72262 2007-03-25  Bruno Haible  <bruno@clisp.org>
72263
72264         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
72265
72266 2007-03-25  Bruno Haible  <bruno@clisp.org>
72267
72268         Avoid test failures on IRIX 6.5.
72269         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
72270         (main): Use it.
72271         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
72272         macros.
72273         (main): Use them.
72274
72275 2007-03-25  Bruno Haible  <bruno@clisp.org>
72276
72277         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
72278         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
72279         exists but doesn't work.
72280         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
72281         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
72282         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
72283         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
72284         math.h.
72285
72286 2007-03-25  Bruno Haible  <bruno@clisp.org>
72287
72288         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
72289         returns inf. Needed on IRIX 6.5.
72290
72291 2007-03-25  Bruno Haible  <bruno@clisp.org>
72292
72293         * tests/test-frexpl.c: Include isnanl-nolibm.h.
72294         (main): Use isnanl instead of x != x idiom.
72295         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
72296
72297         * tests/test-frexp.c: Include isnan.h.
72298         (main): Use isnan instead of x != x idiom.
72299         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
72300
72301 2007-03-25  Bruno Haible  <bruno@clisp.org>
72302
72303         * tests/test-frexp.c (NaN): New function/macro.
72304         (main): Use it instead of 0.0 / 0.0.
72305         * tests/test-isnan.c (NaN): New function/macro.
72306         (main): Use it instead of 0.0 / 0.0.
72307         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
72308         (test_function): Use it instead of 0.0 / 0.0.
72309         * tests/test-vasprintf-posix.c (NaN): New function/macro.
72310         (test_function): Use it instead of 0.0 / 0.0.
72311         * tests/test-snprintf-posix.h (NaN): New function/macro.
72312         (test_function): Use it instead of 0.0 / 0.0.
72313         * tests/test-sprintf-posix.h (NaN): New function/macro.
72314         (test_function): Use it instead of 0.0 / 0.0.
72315         * tests/test-fprintf-posix.h (NaN): New function/macro.
72316         (test_function): Use it instead of 0.0 / 0.0.
72317         * tests/test-printf-posix.h (NaN): New function/macro.
72318         (test_function): Use it instead of 0.0 / 0.0.
72319
72320         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
72321
72322 2007-03-25  Bruno Haible  <bruno@clisp.org>
72323
72324         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
72325
72326 2007-03-25  Bruno Haible  <bruno@clisp.org>
72327
72328         * lib/regexec.c (merge_state_with_log): Make static.
72329
72330 2007-03-25  Bruno Haible  <bruno@clisp.org>
72331
72332         * lib/trigl.c (kernel_rem_pio2): Make static.
72333
72334 2007-03-25  Bruno Haible  <bruno@clisp.org>
72335
72336         * lib/sincosl.c (sincosl_table): Make static.
72337
72338 2007-03-25  Bruno Haible  <bruno@clisp.org>
72339
72340         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
72341         if the compiler does not support C99.
72342
72343 2007-03-25  Bruno Haible  <bruno@clisp.org>
72344
72345         * modules/time (Makefile.am): Ensure all rule action lines start with a
72346         tab.
72347
72348 2007-03-24  Bruno Haible  <bruno@clisp.org>
72349
72350         * modules/tsearch-tests: New file.
72351         * tests/test-tsearch.sh: New file.
72352         * tests/test-tsearch.c: New file, mostly copied from glibc.
72353
72354         * modules/search-tests: New file.
72355         * tests/test-search.c: New file.
72356
72357         * modules/search: New file.
72358         * lib/search_.h: New file, incorporating lib/tsearch.h.
72359         * m4/search_h.m4: New file.
72360         * lib/tsearch.h: Remove file.
72361         * lib/tsearch.c: Include search.h instead of tsearch.h.
72362         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
72363         HAVE_TSEARCH.
72364         * modules/tsearch (Files): Remove lib/tsearch.h.
72365         (Depends-on): Add search.
72366         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
72367         (Include): Change tsearch.h into search.h.
72368
72369 2007-03-24  Bruno Haible  <bruno@clisp.org>
72370
72371         * modules/fpucw: New file.
72372         * lib/fpucw.h: New file.
72373         * lib/frexp.c: Include fpucw.h.
72374         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
72375         (FUNC): Use them.
72376         * lib/printf-frexp.c: Include fpucw.h.
72377         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
72378         (FUNC): Use them.
72379         * lib/vasnprintf.c: Include fpucw.h.
72380         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
72381         'long double' calculations.
72382         * tests/test-frexpl.c: Include fpucw.h.
72383         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
72384         * tests/test-printf-frexpl.c: Include fpucw.h.
72385         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
72386         * modules/frexpl (Depends-on): Add fpucw.
72387         * modules/printf-frexpl (Depends-on): Likewise.
72388         * modules/fprintf-posix (Depends-on): Likewise.
72389         * modules/snprintf-posix (Depends-on): Likewise.
72390         * modules/sprintf-posix (Depends-on): Likewise.
72391         * modules/vasnprintf-posix (Depends-on): Likewise.
72392         * modules/vasprintf-posix (Depends-on): Likewise.
72393         * modules/vfprintf-posix (Depends-on): Likewise.
72394         * modules/vsnprintf-posix (Depends-on): Likewise.
72395         * modules/vsprintf-posix (Depends-on): Likewise.
72396         * modules/frexpl-tests (Depends-on): Likewise.
72397         * modules/printf-frexpl-tests (Depends-on): Likewise.
72398
72399 2007-03-24  Bruno Haible  <bruno@clisp.org>
72400
72401         * lib/float+.h: New file.
72402         * lib/isnan.c: Include float+.h.
72403         (SIZE): New macro.
72404         (FUNC): Compare only SIZE bytes of the value.
72405         * lib/vasnprintf.c: Include float+.h.
72406         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
72407         SIZEOF_LDBL or SIZEOF_DBL bytes.
72408         * modules/isnan-nolibm (Files): Add lib/float+.h.
72409         * modules/isnanl-nolibm (Files): Add lib/float+.h.
72410         * modules/isnanl (Files): Add lib/float+.h.
72411         * modules/vasnprintf (Files): Add lib/float+.h.
72412
72413 2007-03-24  Bruno Haible  <bruno@clisp.org>
72414
72415         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
72416         include isnanl-nolibm.h.
72417
72418 2007-03-24  Bruno Haible  <bruno@clisp.org>
72419
72420         * tests/test-read-file.c (main): Don't produce spurious output for
72421         expected situations. Make the test fail if it encountered unexpected
72422         results.
72423
72424 2007-03-24  Bruno Haible  <bruno@clisp.org>
72425
72426         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
72427         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
72428
72429 2007-03-24  Bruno Haible  <bruno@clisp.org>
72430
72431         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
72432
72433 2007-03-24  Bruno Haible  <bruno@clisp.org>
72434
72435         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
72436         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
72437
72438         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
72439         * modules/utf8-ucs4: Turn into a symbolic link to module
72440         unistr/u8-mbtouc.
72441
72442         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
72443         utf8-ucs4-unsafe.
72444         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
72445         unistr/u8-mbtouc-unsafe.
72446
72447         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
72448         * modules/utf16-ucs4: Turn into a symbolic link to module
72449         unistr/u16-mbtouc.
72450
72451         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
72452         utf16-ucs4-unsafe.
72453         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
72454         unistr/u16-mbtouc-unsafe.
72455
72456         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
72457         * modules/ucs4-utf8: Turn into a symbolic link to module
72458         unistr/u8-ubtomb.
72459
72460         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
72461         * modules/ucs4-utf16: Turn into a symbolic link to module
72462         unistr/u16-ubtomb.
72463
72464 2007-03-24  Bruno Haible  <bruno@clisp.org>
72465
72466         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
72467         Enable the function only if HAVE_INLINE.
72468         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
72469         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
72470         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
72471         Enable the function only if HAVE_INLINE.
72472         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
72473         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
72474         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
72475         Enable the function only if HAVE_INLINE.
72476         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
72477         Enable the function only if HAVE_INLINE.
72478         * modules/utf8-ucs4: Update.
72479         * modules/utf8-ucs4-unsafe: Update.
72480         * modules/utf16-ucs4: Update.
72481         * modules/utf16-ucs4-unsafe: Update.
72482         * modules/ucs4-utf8: Update.
72483         * modules/ucs4-utf16: Update.
72484
72485 2007-03-24  Bruno Haible  <bruno@clisp.org>
72486
72487         * lib/utf8-ucs4.h: Remove file.
72488         * lib/utf8-ucs4-unsafe.h: Remove file.
72489         * lib/utf16-ucs4.h: Remove file.
72490         * lib/utf16-ucs4-unsafe.h: Remove file.
72491         * lib/ucs4-utf8.h: Remove file.
72492         * lib/ucs4-utf16.h: Remove file.
72493         * lib/unistr.h: Include their previous contents.
72494         * m4/utf-ucs4.m4: Remove file.
72495         * m4/ucs4-utf.m4: Remove file.
72496         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
72497         (Depends-on): Add unistr/base.
72498         (configure.ac): Remove gl_UTF_UCS4.
72499         (Makefile.am): Update.
72500         (Include): Change to unistr.h.
72501         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
72502         (Depends-on): Add unistr/base.
72503         (configure.ac): Remove gl_UTF_UCS4.
72504         (Makefile.am): Update.
72505         (Include): Change to unistr.h.
72506         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
72507         (Depends-on): Add unistr/base.
72508         (configure.ac): Remove gl_UTF_UCS4.
72509         (Makefile.am): Update.
72510         (Include): Change to unistr.h.
72511         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
72512         (Depends-on): Add unistr/base.
72513         (configure.ac): Remove gl_UTF_UCS4.
72514         (Makefile.am): Update.
72515         (Include): Change to unistr.h.
72516         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
72517         (Depends-on): Add unistr/base.
72518         (configure.ac): Remove gl_UCS4_UTF.
72519         (Makefile.am): Update.
72520         (Include): Change to unistr.h.
72521         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
72522         (Depends-on): Add unistr/base.
72523         (configure.ac): Remove gl_UCS4_UTF.
72524         (Makefile.am): Update.
72525         (Include): Change to unistr.h.
72526         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
72527         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
72528         utf8-ucs4-unsafe.h.
72529         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
72530         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
72531         utf16-ucs4-unsafe.h.
72532         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
72533         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
72534         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
72535         * lib/unistr/u8-strchr.c: Likewise.
72536         * lib/unistr/u8-strrchr.c: Likewise.
72537         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
72538         * lib/unistr/u16-strchr.c: Likewise.
72539         * lib/unistr/u16-strrchr.c: Likewise.
72540         * lib/striconveh.c: Update.
72541         * lib/linebreak.c: Update.
72542
72543 2007-03-24  Bruno Haible  <bruno@clisp.org>
72544
72545         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
72546         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
72547
72548 2007-03-22  Bruno Haible  <bruno@clisp.org>
72549
72550         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
72551
72552 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
72553
72554         * MODULES.html.sh (File system functions): New module write-any-file.
72555         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
72556         * m4/write-any-file.m4: New files.
72557
72558 2007-03-23  Eric Blake  <ebb9@byu.net>
72559
72560         * gnulib-tool: Rearrange space-tab sequences, since some editors
72561         like to eat them.
72562
72563 2007-03-23  Eric Blake  <ebb9@byu.net>
72564
72565         * lib/version-etc.c (version_etc_va): Update license wording to
72566         be more concise.  Recommended by Richard Stallman.
72567
72568 2007-03-22  Bruno Haible  <bruno@clisp.org>
72569
72570         * lib/poll.c (MSG_PEEK): New fallback definition.
72571
72572 2007-03-22  Bruno Haible  <bruno@clisp.org>
72573
72574         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
72575         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
72576         (main): Update.
72577         Fixes a compilation error on BeOS.
72578
72579 2007-03-22  Bruno Haible  <bruno@clisp.org>
72580
72581         * modules/frexpl-tests: New file.
72582         * tests/test-frexpl.c: New file.
72583
72584         * modules/frexpl: New file.
72585         * m4/frexpl.m4: New file.
72586         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
72587         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
72588         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
72589         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
72590         (Depends-on): Add frexpl. Remove isnanl-nolibm.
72591         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
72592
72593 2007-03-22  Bruno Haible  <bruno@clisp.org>
72594
72595         * lib/frexpl.c: Share code with lib/frexp.c.
72596         * modules/mathl (Files): Add lib/frexp.c.
72597         (Depends-on): Add isnanl-nolibm.
72598
72599 2007-03-22  Bruno Haible  <bruno@clisp.org>
72600
72601         * modules/printf-frexp (Files): Add m4/frexp.m4.
72602         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
72603         only if the found frexp function actually works.
72604
72605 2007-03-22  Bruno Haible  <bruno@clisp.org>
72606
72607         * lib/frexp.c: Remove older implementation that uses divisions.
72608
72609 2007-03-21  Bruno Haible  <bruno@clisp.org>
72610
72611         * modules/frexp-tests: New file.
72612         * tests/test-frexp.c: New file.
72613
72614         * modules/frexp: New file.
72615         * lib/frexp.c: New file.
72616         * m4/frexp.m4: New file.
72617         * lib/math_.h (frexp): New declaration.
72618         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
72619         REPLACE_FREXP.
72620         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
72621
72622 2007-03-21  Bruno Haible  <bruno@clisp.org>
72623
72624         * modules/isnanl-tests: New file.
72625         * tests/test-isnanl.c: New file.
72626
72627         * modules/isnanl: New file.
72628         * lib/isnanl.h: New file.
72629         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
72630         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
72631         gl_FUNC_ISNANL_WORKS.
72632         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
72633         New macros.
72634
72635 2007-03-21  Bruno Haible  <bruno@clisp.org>
72636
72637         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
72638         lib/isnanl.h.
72639         (Include): Update.
72640         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
72641         * lib/vasnprintf.c: Update.
72642         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
72643         tests/test-isnanl.h, remove tests/test-isnanl.c.
72644         (Makefile.am): Update.
72645         * tests/test-isnanl-nolibm.c: New file.
72646         * tests/test-isnanl.h: New file.
72647         * tests/test-isnanl.c: Remove file.
72648
72649 2007-03-21  Jim Meyering  <jim@meyering.net>
72650
72651         When trying to open ".", treat ESTALE like EACCES.
72652         * lib/savewd.c (savewd_save): Resort to forking not just upon
72653         failure with EACCES, but also when errno is ESTALE.
72654
72655 2007-03-20  Bruno Haible  <bruno@clisp.org>
72656
72657         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
72658         Needed on AIX 5.1. Reported by Matthew Woehlke.
72659
72660 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
72661
72662         Suggestions by Bruno Haible:
72663         * lib/acl-internal.h: Include "gettext.h" rather than rolling
72664         our own.
72665         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
72666         * modules/acl (Depends-on): Add gettext.
72667
72668 2007-03-19  Bruno Haible  <bruno@clisp.org>
72669
72670         * modules/iconvme: Remove file.
72671         * lib/iconvme.h: Remove file.
72672         * lib/iconvme.c: Remove file.
72673         * m4/iconvme.m4: Remove file.
72674
72675 2007-03-19  Bruno Haible  <bruno@clisp.org>
72676
72677         * doc/relocatable-maint.texi: Break long shell script line.
72678         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
72679
72680 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
72681
72682         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
72683         handle file_has_acl.
72684         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
72685         * lib/acl.c: Move header inclusions and related macro defns into
72686         lib/acl-internal.h.
72687         (S_ISLNK): Remove defn, since that's now done for us.
72688         (file_has_acl): Move to lib/file-has-acl.c.
72689         Call acl_trivial if available.  This is the crucial part of the fix.
72690         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
72691         shared within the library.  Rewrite a bit, partly to make it compatible
72692         with the GNU coding style.
72693         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
72694         Remove unnecessary double-quotes.
72695         Don't test for acl_to_text; the build will catch that.
72696         Replace acl_entries if it doesn't exist and it is needed.
72697         Check for -lsec and acl_trivial (as used on Solaris 10).
72698         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
72699         lib/file-has-acl.c.
72700         (Depends-on): Add sys_stat, for S_ISLNK.
72701
72702 2007-03-19  Ben Pfaff  <blp@gnu.org>
72703
72704         * doc/gnulib.texi: Fix typos.
72705         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
72706
72707 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
72708
72709         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
72710         If size is zero here, buf must be zero.
72711
72712 2007-03-19  Simon Josefsson  <simon@josefsson.org>
72713
72714         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
72715         <bruno@clisp.org>.
72716
72717 2007-03-18  Bruno Haible  <bruno@clisp.org>
72718
72719         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
72720         Suggested by Eric Blake.
72721
72722 2007-03-18  Ben Pfaff  <blp@gnu.org>
72723
72724         * doc/relocatable.texi: Recommend using as prefix a directory
72725         that does not exist and will never be created.  Based on
72726         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
72727         and others.
72728
72729 2007-03-17  Bruno Haible  <bruno@clisp.org>
72730
72731         * lib/fchownat.c: Include lchown.h.
72732
72733 2007-03-17  Bruno Haible  <bruno@clisp.org>
72734
72735         Fix endless loop when the given allocated size was > INT_MAX.
72736         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
72737         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
72738         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
72739         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
72740         * lib/sprintf.c (sprintf): Likewise.
72741
72742 2007-03-17  Bruno Haible  <bruno@clisp.org>
72743
72744         * tests/test-argp-2.sh (func_compare): Output a context diff.
72745
72746 2007-03-17  Bruno Haible  <bruno@clisp.org>
72747
72748         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
72749         locale's decimal-point character.
72750
72751 2007-03-17  Bruno Haible  <bruno@clisp.org>
72752
72753         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
72754         before comparing it. Needed because on some platforms (e.g. x86) a
72755         'long double' occupies less bytes than sizeof (long double).
72756
72757 2007-03-17  Bruno Haible  <bruno@clisp.org>
72758
72759         * tests/test-crc.c (main): Make printf statements 64-bit clean.
72760         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
72761         * tests/test-getaddrinfo.c (simple): Likewise.
72762         * tests/test-read-file.c (main): Likewise.
72763
72764 2007-03-17  Bruno Haible  <bruno@clisp.org>
72765
72766         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
72767
72768 2007-03-17  Bruno Haible  <bruno@clisp.org>
72769
72770         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
72771         unused variable.
72772
72773 2007-03-17  Bruno Haible  <bruno@clisp.org>
72774
72775         * tests/test-c-strcasecmp.c: Include c-strcase.h.
72776         * tests/test-c-strncasecmp.c: Likewise.
72777
72778 2007-03-17  Bruno Haible  <bruno@clisp.org>
72779
72780         * modules/stdlib (Depends-on): Add unistd.
72781         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
72782         Needed for MacOS X 10.3.
72783
72784 2007-03-17  Bruno Haible  <bruno@clisp.org>
72785
72786         * lib/unistr/u-strdup.h: Include <stdlib.h>.
72787
72788 2007-03-17  Bruno Haible  <bruno@clisp.org>
72789
72790         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
72791
72792 2007-03-17  Bruno Haible  <bruno@clisp.org>
72793
72794         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
72795         to reflect files copied from gnulib (with or without modifications).
72796         Suggested by Jim Meyering.
72797
72798 2007-03-17  Eric Blake  <ebb9@byu.net>
72799
72800         * NEWS: Document stdlib change from 2007-02-18.
72801
72802 2007-03-17  Jim Meyering  <jim@meyering.net>
72803
72804         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
72805         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
72806         someone uses a name containing shell meta-characters.
72807         Reported by Alfred M. Szmidt.
72808
72809         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
72810
72811 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
72812
72813         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
72814         and copy gettext configuration files only if configure.ac contains
72815         a use of AM_GNU_GETTEXT_VERSION.
72816
72817 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
72818
72819         * build-aux/bootstrap (gnulib_name): New variable.
72820         (gnulib_tool_options): Use it.
72821
72822 2007-03-13  Simon Josefsson  <simon@josefsson.org>
72823
72824         * tests/test-des.c: Use new namespace.
72825
72826 2007-03-15  Bruno Haible  <bruno@clisp.org>
72827
72828         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
72829         Reported by James Youngman <jay@gnu.org>.
72830
72831 2007-03-15  Bruno Haible  <bruno@clisp.org>
72832
72833         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
72834         declared prototype. Needed with cc on OSF/1 5.1.
72835
72836 2007-03-15  Bruno Haible  <bruno@clisp.org>
72837
72838         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
72839         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
72840         (struct gl_list_implementation): Add dispose_fn argument to the
72841         'create_empty', 'create' methods.
72842         (struct gl_list_impl_base): Add field 'dispose_fn'.
72843         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
72844         argument.
72845         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
72846         dispose_fn argument.
72847         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
72848         dispose_fn on the dropped values.
72849         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
72850         dispose_fn argument.
72851         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
72852         dropped values.
72853         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
72854         (gl_tree_remove_node): Call dispose_fn on the dropped value.
72855         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
72856         (gl_tree_remove_node): Call dispose_fn on the dropped value.
72857         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
72858         argument.
72859         (gl_tree_list_free): Call dispose_fn on the dropped values.
72860         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
72861         the dropped values.
72862         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
72863         Add dispose_fn argument.
72864         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
72865         Call dispose_fn on the dropped values.
72866         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
72867         Add dispose_fn argument.
72868         (gl_sublist_create): Initialize the 'dispose_fn' field.
72869         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
72870         * tests/test-array_list.c (main): Update.
72871         * tests/test-carray_list.c (main): Update.
72872         * tests/test-avltree_list.c (main): Update.
72873         * tests/test-rbtree_list.c (main): Update.
72874         * tests/test-avltreehash_list.c (main): Update.
72875         * tests/test-rbtreehash_list.c (main): Update.
72876         * tests/test-linked_list.c (main): Update.
72877         * tests/test-linkedhash_list.c (main): Update.
72878         * tests/test-array_oset.c (main): Update.
72879
72880 2007-03-15  Bruno Haible  <bruno@clisp.org>
72881
72882         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
72883         (gl_oset_create_empty): Add dispose_fn argument.
72884         (struct gl_oset_implementation): Add dispose_fn argument to
72885         'create_empty' method.
72886         (struct gl_oset_impl_base): Add dispose_fn field.
72887         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
72888         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
72889         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
72890         values.
72891         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
72892         (gl_tree_oset_free): Call dispose_fn on the dropped values.
72893         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
72894         dropped value.
72895         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
72896         dropped value.
72897         * tests/test-array_oset.c (main): Update.
72898         * tests/test-avltree_oset.c (main): Update.
72899         * tests/test-rbtree_oset.c (main): Update.
72900         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
72901
72902 2007-03-13  Bruno Haible  <bruno@clisp.org>
72903
72904         * tests/test-stdbool.c (i): Update after last patch.
72905
72906 2007-03-12  Bruno Haible  <bruno@clisp.org>
72907
72908         * lib/quotearg.c: Include <wctype.h> early, before the definition of
72909         the iswprint macro. Needed on Solaris 2.5.1.
72910
72911 2007-03-12  Bruno Haible  <bruno@clisp.org>
72912
72913         * tests/test-printf-frexp.c (main): Declare x as volatile.
72914
72915 2007-03-12  Simon Josefsson  <simon@josefsson.org>
72916
72917         * doc/gnulib.texi (Build robot for gnulib): New section.
72918
72919 2007-03-12  Jim Meyering  <jim@meyering.net>
72920
72921         * build-aux/bootstrap: New file.
72922         * build-aux/bootstrap.conf: New file, from coreutils.
72923
72924 2007-03-11  Bruno Haible  <bruno@clisp.org>
72925
72926         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
72927
72928 2007-03-12  Simon Josefsson  <simon@josefsson.org>
72929
72930         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
72931         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
72932         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
72933
72934 2007-03-11  Bruno Haible  <bruno@clisp.org>
72935
72936         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
72937         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
72938
72939 2007-03-11  Bruno Haible  <bruno@clisp.org>
72940
72941         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
72942         formula. Needed for SunPRO C 5.0.
72943
72944 2007-03-11  Bruno Haible  <bruno@clisp.org>
72945
72946         * modules/long-options (Depends-on): Add getopt.
72947
72948 2007-03-11  Bruno Haible  <bruno@clisp.org>
72949
72950         * modules/modechange (Depends-on): Add stdbool.
72951
72952 2007-03-11  Bruno Haible  <bruno@clisp.org>
72953
72954         * modules/i-ring (Depends-on): Add stdbool.
72955
72956 2007-03-11  Bruno Haible  <bruno@clisp.org>
72957
72958         * modules/gc-des (Depends-on): Add stdbool.
72959
72960 2007-03-11  Bruno Haible  <bruno@clisp.org>
72961
72962         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
72963
72964 2007-03-11  Bruno Haible  <bruno@clisp.org>
72965
72966         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
72967
72968 2007-03-11  Bruno Haible  <bruno@clisp.org>
72969
72970         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
72971
72972 2007-03-11  Bruno Haible  <bruno@clisp.org>
72973
72974         * lib/vasnprintf.c (sprintf): Undefine.
72975
72976 2007-03-11  Bruno Haible  <bruno@clisp.org>
72977
72978         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
72979         initializers in SunPRO C and Compaq C compilers.
72980
72981 2007-03-11  Bruno Haible  <bruno@clisp.org>
72982
72983         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
72984         decrementing code ANSI C compliant.
72985
72986 2007-03-11  Bruno Haible  <bruno@clisp.org>
72987
72988         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
72989         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
72990
72991 2007-03-11  Bruno Haible  <bruno@clisp.org>
72992
72993         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
72994         <stdbool.h> substitute doesn't pass.
72995
72996 2007-03-11  Bruno Haible  <bruno@clisp.org>
72997
72998         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
72999
73000 2007-03-11  Bruno Haible  <bruno@clisp.org>
73001
73002         * gnulib-tool (func_create_megatestdir): Create also an autobuild
73003         script, for submission to autobuild.josefsson.org.
73004
73005 2007-03-10  Bruno Haible  <bruno@clisp.org>
73006
73007         * modules/canonicalize-lgpl-tests: New file.
73008         * tests/test-canonicalize-lgpl.sh: New file.
73009         * tests/test-canonicalize-lgpl.c: New file.
73010
73011         * modules/c-strcase-tests: New file.
73012         * tests/test-c-strcase.sh: New file.
73013         * tests/test-c-strcasecmp.c: New file.
73014         * tests/test-c-strncasecmp.c: New file.
73015
73016         * modules/atexit-tests: New file.
73017         * tests/test-atexit.sh: New file.
73018         * tests/test-atexit.c: New file.
73019
73020 2007-03-10  Bruno Haible  <bruno@clisp.org>
73021
73022         * tests/test-binary-io.sh: Use temporary filenames that are not so
73023         likely to clash with those of other tests (in a parallel make).
73024         * tests/test-binary-io.c: Likewise.
73025
73026 2007-03-10  Bruno Haible  <bruno@clisp.org>
73027
73028         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
73029         fallback; use #error instead.
73030         Suggested by Simon Josefsson.
73031
73032 2007-03-10  Bruno Haible  <bruno@clisp.org>
73033
73034         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
73035         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
73036         first and the last.
73037
73038 2007-03-10  Bruno Haible  <bruno@clisp.org>
73039
73040         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
73041
73042 2007-03-10  Bruno Haible  <bruno@clisp.org>
73043
73044         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
73045         "make distcheck".
73046         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
73047         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
73048         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
73049
73050 2007-03-10  Bruno Haible  <bruno@clisp.org>
73051
73052         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
73053         variable.
73054         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
73055         variable.
73056
73057 2007-03-09  Eric Blake  <ebb9@byu.net>
73058         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
73059
73060         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
73061         types are not being provided by gnulib.
73062         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
73063         types are supported.
73064
73065 2007-03-10  Bruno Haible  <bruno@clisp.org>
73066
73067         * lib/stdio_.h (__attribute__): New macro.
73068         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
73069         vsprintf): Specify __attribute__ __format__ for GCC.
73070         Suggested by Eric Blake.
73071
73072 2007-03-09  Bruno Haible  <bruno@clisp.org>
73073
73074         * modules/printf-posix-tests: New file.
73075         * tests/test-printf-posix.sh: New file.
73076         * tests/test-printf-posix.c: New file.
73077
73078         * modules/printf-posix: New file.
73079         * lib/printf.c: New file.
73080         * m4/printf-posix-rpl.m4: New file.
73081         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
73082         REPLACE_PRINTF.
73083         * lib/stdio_.h (printf): New declaration.
73084         (format, __format__, ____printf____, ____scanf____, ____strftime____,
73085         ____strfmon____): New macros.
73086         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
73087         REPLACE_PRINTF.
73088
73089 2007-03-09  Bruno Haible  <bruno@clisp.org>
73090
73091         * tests/test-vasnprintf-posix2.sh: New file.
73092         * tests/test-vasnprintf-posix2.c: New file.
73093         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
73094         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
73095         (Makefile.am): Activate test-vasnprintf-posix2.sh.
73096
73097         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
73098         a locale dependent decimal point, rather than always '.'.
73099
73100 2007-03-09  Eric Blake  <ebb9@byu.net>
73101
73102         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
73103         spite of platforms like Tandem/NSK that define it to -1.
73104
73105 2007-03-08  Bruno Haible  <bruno@clisp.org>
73106
73107         * modules/vprintf-posix-tests: New file.
73108         * tests/test-vprintf-posix.sh: New file.
73109         * tests/test-vprintf-posix.c: New file.
73110         * tests/test-printf-posix.h: New file.
73111
73112         * modules/vprintf-posix: New file.
73113         * lib/vprintf.c: New file.
73114         * m4/vprintf-posix.m4: New file.
73115         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
73116         REPLACE_VPRINTF.
73117         * lib/stdio_.h (vprintf): New declaration.
73118         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
73119         REPLACE_VPRINTF.
73120
73121 2007-03-08  Bruno Haible  <bruno@clisp.org>
73122
73123         * modules/fprintf-posix-tests: New file.
73124         * tests/test-fprintf-posix.sh: New file.
73125         * tests/test-fprintf-posix.c: New file.
73126
73127         * modules/fprintf-posix: New file.
73128         * lib/fprintf.c: New file.
73129         * m4/fprintf-posix.m4: New file.
73130         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
73131         REPLACE_FPRINTF.
73132         * lib/stdio_.h (fprintf): New declaration.
73133         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
73134         REPLACE_FPRINTF.
73135
73136 2007-03-08  Bruno Haible  <bruno@clisp.org>
73137
73138         * modules/vfprintf-posix-tests: New file.
73139         * tests/test-vfprintf-posix.sh: New file.
73140         * tests/test-vfprintf-posix.c: New file.
73141         * tests/test-fprintf-posix.h: New file.
73142         * tests/test-fprintf-posix.out: New file.
73143
73144         * modules/vfprintf-posix: New file.
73145         * lib/vfprintf.c: New file.
73146         * m4/vfprintf-posix.m4: New file.
73147         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
73148         REPLACE_VFPRINTF.
73149         * lib/stdio_.h (vfprintf): New declaration.
73150         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
73151         REPLACE_VFPRINTF.
73152
73153 2007-03-08  Bruno Haible  <bruno@clisp.org>
73154
73155         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
73156
73157 2007-03-08  Bruno Haible  <bruno@clisp.org>
73158
73159         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
73160         instead of 'expr' invocations.
73161         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
73162         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
73163         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
73164         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
73165         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
73166         Suggested by Paul Eggert.
73167
73168 2007-03-08  Bruno Haible  <bruno@clisp.org>
73169
73170         * modules/fseterr-tests: New file.
73171         * tests/test-fseterr.c: New file.
73172
73173         * modules/fseterr: New file.
73174         * lib/fseterr.h: New file.
73175         * lib/fseterr.c: New file.
73176
73177 2007-03-08  Bruno Haible  <bruno@clisp.org>
73178
73179         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
73180         * lib/getopt_.h: Likewise.
73181         * lib/mbswidth.h: Likewise.
73182         * lib/setenv.h: Likewise.
73183         * lib/vasnprintf.h: Likewise.
73184         * lib/vasprintf.h: Likewise.
73185         * lib/verror.h: Likewise.
73186         * lib/xsetenv.h: Likewise.
73187         * lib/xvasprintf.h: Likewise.
73188
73189 2007-03-08  Jim Meyering  <jim@meyering.net>
73190
73191         * users.txt: Add parted.
73192
73193         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
73194
73195 2007-03-07  Bruno Haible  <bruno@clisp.org>
73196
73197         * m4/printf.m4: Make the shell script snippets copy&pastable.
73198
73199 2007-03-02  Bruno Haible  <bruno@clisp.org>
73200
73201         * lib/netinet_in_.h: New file.
73202         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
73203         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
73204         * modules/netinet_in (Files): Add lib/netinet_in_.h.
73205         (Depends-on): Add absolute-header.
73206         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
73207         into netinet/in.h.
73208
73209 2007-03-03  Bruno Haible  <bruno@clisp.org>
73210
73211         * lib/sys_select_.h: New file.
73212         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
73213         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
73214         * modules/sys_select (Files): Add lib/sys_select_.h.
73215         (Depends-on): Add absolute-header.
73216         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
73217         into sys/select.h.
73218
73219 2007-03-02  Bruno Haible  <bruno@clisp.org>
73220
73221         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
73222         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
73223         values.
73224         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
73225         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
73226         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
73227         * modules/sys_socket (Depends-on): Add absolute-header.
73228         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
73229         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
73230         (Include): Remove requirement of inclusion of <sys/types.h>.
73231
73232 2007-03-02  Bruno Haible  <bruno@clisp.org>
73233
73234         * lib/byteswap_.h (bswap_32): Fix formula.
73235
73236 2007-03-06  Bruno Haible  <bruno@clisp.org>
73237
73238         * modules/sprintf-posix-tests: New file.
73239         * tests/test-sprintf-posix.c: New file.
73240
73241         * modules/sprintf-posix: New file.
73242         * lib/sprintf.c: New file.
73243         * m4/sprintf-posix.m4: New file.
73244         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
73245         REPLACE_SPRINTF.
73246         * lib/stdio_.h (sprintf): New declaration.
73247         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
73248         REPLACE_SPRINTF.
73249
73250 2007-03-06  Bruno Haible  <bruno@clisp.org>
73251
73252         * modules/vsprintf-posix-tests: New file.
73253         * tests/test-vsprintf-posix.c: New file.
73254         * tests/test-sprintf-posix.h: New file.
73255
73256         * modules/vsprintf-posix: New file.
73257         * lib/vsprintf.c: New file.
73258         * m4/vsprintf-posix.m4: New file.
73259         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
73260         REPLACE_VSPRINTF.
73261         * lib/stdio_.h (vsprintf): New declaration.
73262         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
73263         REPLACE_VSPRINTF.
73264
73265 2007-03-06  Bruno Haible  <bruno@clisp.org>
73266
73267         * modules/vsnprintf (Depend-on): Remove minmax.
73268
73269 2007-03-06  Bruno Haible  <bruno@clisp.org>
73270
73271         * modules/snprintf-posix-tests: New file.
73272         * tests/test-snprintf-posix.c: New file.
73273
73274         * modules/snprintf-posix: New file.
73275         * m4/snprintf-posix.m4: New file.
73276         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
73277         gl_FUNC_SNPRINTF.
73278         (gl_FUNC_SNPRINTF): Invoke it.
73279         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
73280         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
73281         is set.
73282         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
73283
73284 2007-03-06  Bruno Haible  <bruno@clisp.org>
73285
73286         * modules/vsnprintf-posix-tests: New file.
73287         * tests/test-vsnprintf-posix.c: New file.
73288         * tests/test-snprintf-posix.h: New file.
73289
73290         * modules/vsnprintf-posix: New file.
73291         * m4/vsnprintf-posix.m4: New file.
73292         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
73293         gl_FUNC_VSNPRINTF.
73294         (gl_FUNC_VSNPRINTF): Invoke it.
73295         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
73296         * lib/stdio_.h (vsnprintf): Define as a replacement if
73297         REPLACE_VSNPRINTF is set.
73298         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
73299
73300 2007-03-06  Bruno Haible  <bruno@clisp.org>
73301
73302         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
73303         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
73304
73305 2007-03-06  Bruno Haible  <bruno@clisp.org>
73306
73307         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
73308         (asinl): Declare also if HAVE_DECL_ASINL is set.
73309         (atanl): Declare also if HAVE_DECL_ATANL is set.
73310         (ceill): Declare also if HAVE_DECL_CEILL is set.
73311         (cosl): Declare also if HAVE_DECL_COSL is set.
73312         (expl): Declare also if HAVE_DECL_EXPL is set.
73313         (floorl): Declare also if HAVE_DECL_FLOORL is set.
73314         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
73315         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
73316         (logl): Declare also if HAVE_DECL_LOGL is set.
73317         (sinl): Declare also if HAVE_DECL_SINL is set.
73318         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
73319         (tanl): Declare also if HAVE_DECL_TANL is set.
73320         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
73321         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
73322         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
73323         declaration of frexpl, ldexpl.
73324         * modules/printf-frexpl (Depends-on): Add math.
73325         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
73326
73327 2007-03-05  Bruno Haible  <bruno@clisp.org>
73328
73329         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
73330         frexpl and ldexpl are declared.
73331         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
73332
73333 2007-03-05  Bruno Haible  <bruno@clisp.org>
73334
73335         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
73336         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
73337
73338 2007-03-05  Bruno Haible  <bruno@clisp.org>
73339
73340         * lib/stdio_.h: Include <stddef.h>.
73341
73342 2007-03-05  Bruno Haible  <bruno@clisp.org>
73343
73344         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
73345
73346 2007-03-05  Bruno Haible  <bruno@clisp.org>
73347
73348         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
73349         NetBSD 4, from Ralf Wildenhues.
73350
73351 2007-03-04  Bruno Haible  <bruno@clisp.org>
73352
73353         * lib/vasprintf.h: Update #if logic for the case when the functions
73354         exist but are overridden.
73355
73356 2007-03-04  Bruno Haible  <bruno@clisp.org>
73357
73358         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
73359         implementations: glibc-2.4 and MacOS X 10.3.
73360         * tests/test-vasnprintf-posix.c (test_function): Test also the case
73361         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
73362         * tests/test-vasprintf-posix.c (test_function): Likewise.
73363
73364 2007-03-04  Bruno Haible  <bruno@clisp.org>
73365
73366         * modules/vasprintf-posix-tests: New file.
73367         * tests/test-vasprintf-posix.c: New file.
73368
73369         * modules/vasprintf-posix: New file.
73370         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
73371         defined.
73372         * m4/vasprintf-posix.m4: New file.
73373         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
73374         gl_FUNC_VASPRINTF.
73375         (gl_FUNC_VASPRINTF): Invoke it.
73376         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
73377         here.
73378         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
73379
73380 2007-03-04  Bruno Haible  <bruno@clisp.org>
73381
73382         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
73383         REPLACE_GETTIMEOFDAY.
73384         * modules/sys_time (Makefile.am): Likewise.
73385         * m4/sys_time_h.m4: Likewise.
73386         * m4/gettimeofday.m4: Likewise.
73387
73388 2007-03-04  Bruno Haible  <bruno@clisp.org>
73389
73390         * modules/vasnprintf-posix-tests: New file.
73391         * tests/test-vasnprintf-posix.c: New file.
73392
73393         * modules/vasnprintf-posix: New file.
73394         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
73395         printf-frexpl.h.
73396         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
73397         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
73398         REPLACE_VASNPRINTF is defined.
73399         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
73400         gl_FUNC_VASNPRINTF.
73401         (gl_FUNC_VASNPRINTF): Invoke it.
73402         * m4/vasnprintf-posix.m4: New file.
73403         * m4/printf.m4: New file.
73404
73405 2007-03-04  Bruno Haible  <bruno@clisp.org>
73406
73407         Compile progreloc.c only if --enable-relocatable is specified.
73408         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
73409         if --enable-relocatable was specified.
73410         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
73411         lib_SOURCES.
73412
73413 2007-03-04  Jim Meyering  <jim@meyering.net>
73414
73415         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
73416         Use it consistently, rather than enumerating errno constants.
73417
73418 2007-03-04  Bruno Haible  <bruno@clisp.org>
73419
73420         * modules/xvasprintf-tests: New file.
73421         * tests/test-xvasprintf.c: New file.
73422
73423         * modules/vasprintf-tests: New file.
73424         * tests/test-vasprintf.c: New file.
73425
73426         * modules/vasnprintf-tests: New file.
73427         * tests/test-vasnprintf.c: New file.
73428
73429         * modules/vsnprintf-tests: New file.
73430         * tests/test-vsnprintf.c: New file.
73431
73432         * modules/snprintf-tests: New file.
73433         * tests/test-snprintf.c: New file.
73434
73435 2007-03-04  Bruno Haible  <bruno@clisp.org>
73436
73437         Compile relocatable.c only if --enable-relocatable is specified.
73438         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
73439         gl_RELOCATABLE_LIBRARY.
73440         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
73441         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
73442         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
73443         gl_RELOCATABLE_LIBRARY.
73444         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
73445         (Makefile.am): Remove lib_SOURCES.
73446         * modules/relocatable-lib-lgpl (configure.ac): Invoke
73447         gl_RELOCATABLE_LIBRARY.
73448         (Makefile.am): Remove lib_SOURCES.
73449         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
73450         always.
73451         * modules/relocatable-prog-wrapper (configure.ac): Invoke
73452         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
73453
73454 2007-03-04  Bruno Haible  <bruno@clisp.org>
73455
73456         * modules/argmatch-tests: New file.
73457         * tests/test-argmatch.c: New file.
73458
73459         * tests/test-allocsa.c (main): Halve the number of loop runs.
73460
73461         * modules/alloca-opt-tests: New file.
73462         * tests/test-alloca-opt.c: New file.
73463
73464 2007-03-04  Jim Meyering  <jim@meyering.net>
73465
73466         Work around difference between Linux ACLs and Solaris 10 ZFS.
73467         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
73468         for EINVAL.
73469
73470 2007-03-03  Bruno Haible  <bruno@clisp.org>
73471
73472         * modules/relocatable-prog (Depends-on): Add back progreloc's
73473         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
73474
73475 2007-03-03  Bruno Haible  <bruno@clisp.org>
73476
73477         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
73478         * modules/relocatable-lib: New file.
73479
73480 2007-03-03  Bruno Haible  <bruno@clisp.org>
73481
73482         * modules/relocatable-prog: Renamed from modules/relocatable.
73483         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
73484
73485 2007-03-03  Bruno Haible  <bruno@clisp.org>
73486
73487         * modules/relocatable-script (Files): Add doc/relocatable.texi,
73488         m4/relocatable-lib.m4.
73489         (Depends-on): Remove 'relocatable'.
73490         (configure.ac): Add gl_RELOCATABLE_NOP.
73491
73492 2007-03-03  Bruno Haible  <bruno@clisp.org>
73493
73494         * modules/relocatable-prog-wrapper: New file.
73495         * modules/relocatable (Depends-on): Add it. Remove all other
73496         dependencies except progname.
73497         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
73498
73499         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
73500         (gl_FUNC_STRERROR): Nop.
73501         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
73502
73503         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
73504         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
73505
73506         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
73507         (gl_FUNC_READLINK): Update.
73508
73509         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
73510
73511 2007-03-03  Bruno Haible  <bruno@clisp.org>
73512
73513         * lib/xreadlink.c: Include <unistd.h> unconditionally.
73514         * modules/xreadlink (Depends-on): Add unistd.
73515         * modules/xreadlink-with-size (Depends-on): Likewise.
73516
73517 2007-03-03  Bruno Haible  <bruno@clisp.org>
73518
73519         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
73520         extracted from gt_FUNC_SETENV.
73521         (gt_FUNC_SETENV): Remove macro.
73522         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
73523         remove gt_FUNC_SETENV.
73524
73525 2007-03-03  Bruno Haible  <bruno@clisp.org>
73526
73527         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
73528         ENABLE_RELOCATABLE here.
73529         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
73530
73531 2007-03-03  Bruno Haible  <bruno@clisp.org>
73532
73533         * modules/rbtreehash-list-tests (Depends-on): Add progname.
73534         * tests/test-rbtreehash_list.c: Include progname.h.
73535         (main): Call set_program_name.
73536
73537         * modules/rbtree-oset-tests (Depends-on): Add progname.
73538         * tests/test-rbtree_oset.c: Include progname.h.
73539         (main): Call set_program_name.
73540
73541         * modules/rbtree-list-tests (Depends-on): Add progname.
73542         * tests/test-rbtree_list.c: Include progname.h.
73543         (main): Call set_program_name.
73544
73545         * modules/linked-list-tests (Depends-on): Add progname.
73546         * tests/test-linked_list.c: Include progname.h.
73547         (main): Call set_program_name.
73548
73549 2007-03-03  Bruno Haible  <bruno@clisp.org>
73550
73551         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
73552         All uses of __restrict changed to _Restrict_.
73553         * lib/glob_.h (__restrict): Remove macro.
73554
73555 2007-03-02  Bruno Haible  <bruno@clisp.org>
73556
73557         * modules/gettext (configure.ac): Require gettext infrastructure
73558         from version 0.16.1.
73559
73560 2007-03-02  Bruno Haible  <bruno@clisp.org>
73561
73562         * modules/linkedhash-list-tests (Depends-on): Add progname.
73563         * tests/test-linkedhash_list.c: Include progname.h.
73564         (main): Call set_program_name.
73565
73566         * modules/carray-list-tests (Depends-on): Add progname.
73567         * tests/test-carray_list.c: Include progname.h.
73568         (main): Call set_program_name.
73569
73570         * modules/avltreehash-list-tests (Depends-on): Add progname.
73571         * tests/test-avltreehash_list.c: Include progname.h.
73572         (main): Call set_program_name.
73573
73574         * modules/avltree-oset-tests (Depends-on): Add progname.
73575         * tests/test-avltree_oset.c: Include progname.h.
73576         (main): Call set_program_name.
73577
73578         * modules/avltree-list-tests (Depends-on): Add progname.
73579         * tests/test-avltree_list.c: Include progname.h.
73580         (main): Call set_program_name.
73581
73582         * modules/array-oset-tests (Depends-on): Add progname.
73583         * tests/test-array_oset.c: Include progname.h.
73584         (main): Call set_program_name.
73585
73586         * modules/array-list-tests (Depends-on): Add progname.
73587         * tests/test-array_list.c: Include progname.h.
73588         (main): Call set_program_name.
73589
73590         * modules/argp-tests (Depends-on): Add progname.
73591         * tests/test-argp.c: Include argp.h first. Include progname.h.
73592         (main): Call set_program_name.
73593
73594 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
73595
73596         * doc/gnulib-tool.texi (Initial import): Reword description of
73597         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
73598         limited effect even if defined after the first system include.
73599
73600 2007-03-01  Bruno Haible  <bruno@clisp.org>
73601
73602         * build-aux/config.libpath: Update to libtool-1.5.22.
73603         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
73604
73605 2007-03-01  Bruno Haible  <bruno@clisp.org>
73606
73607         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
73608         foo_CFLAGS.
73609         Reported by Ralf Wildenhues.
73610
73611 2007-03-01  Bruno Haible  <bruno@clisp.org>
73612
73613         * build-aux/install-reloc: Remove object files left over by some
73614         compilers.
73615         Reported by Ralf Wildenhues.
73616
73617 2007-03-01  Bruno Haible  <bruno@clisp.org>
73618
73619         * build-aux/install-reloc: Break long lines.
73620
73621 2007-03-01  Bruno Haible  <bruno@clisp.org>
73622
73623         * doc/relocatable.texi: Document that it may not work on OpenBSD.
73624         Reported by Ralf Wildenhues.
73625
73626 2007-03-01  Bruno Haible  <bruno@clisp.org>
73627
73628         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
73629         include ordering constraints.
73630
73631 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73632
73633         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
73634         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
73635         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
73636         as another example.
73637         * lib/time_.h: Fix misspelling.
73638         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
73639         Require gl_HEADER_TIME_H_DEFAULTS.
73640         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
73641         * m4/time_r.m4 (gl_TIME_R): Likewise.
73642         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
73643
73644 2007-03-01  Bruno Haible  <bruno@clisp.org>
73645
73646         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
73647         * m4/utimens.m4 (gl_UTIMENS): Likewise.
73648
73649 2007-03-01  Jim Meyering  <jim@meyering.net>
73650
73651         * modules/xreadlink (Maintainer): Add my name.
73652         * modules/xreadlink-with-size (Depends-on): Alphabetize.
73653
73654 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
73655             Bruno Haible  <bruno@clisp.org>
73656
73657         * build-aux/install-reloc: Compile also c-ctype.c.
73658         * build-aux/relocatable.sh.in: New file.
73659         * doc/relocatable.texi: New file.
73660         * doc/relocatable-maint.texi: New file.
73661         * doc/gnulib.texi: Include relocatable-maint.texi.
73662         * lib/progreloc.c: Include unistd.h unconditionally.
73663         * lib/relocwrapper.c: Include unistd.h unconditionally.
73664         Include c-ctype.h.
73665         (add_dotbin): Use c_tolower.
73666         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
73667         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
73668         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
73669         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
73670         to m4/relocatable-lib.m4.
73671         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
73672         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
73673         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
73674         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
73675         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
73676         * modules/relocatable: New file.
73677         * modules/relocatable-lib: New file.
73678         * modules/relocatable-script: New file.
73679
73680 2007-02-28  Bruno Haible  <bruno@clisp.org>
73681
73682         Import --enable-relocatable infrastructure.
73683         * build-aux/config.libpath: New file, from GNU gettext.
73684         * build-aux/install-reloc: New file, from GNU gettext.
73685         * build-aux/reloc-ldflags: New file, from GNU gettext.
73686         * lib/relocatable.h: New file, from GNU gettext.
73687         * lib/relocatable.c: New file, from GNU gettext.
73688         * lib/relocwrapper.c: New file, from GNU gettext.
73689         * m4/relocatable.m4: New file, from GNU gettext.
73690
73691 2007-02-28  Bruno Haible  <bruno@clisp.org>
73692
73693         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
73694
73695         * modules/xreadlink: New file, from GNU gettext with modifications.
73696         * lib/xreadlink.c: New file, from GNU gettext.
73697         * lib/xreadlink.h: Add comments.
73698         (xreadlink): New declaration.
73699
73700         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
73701         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
73702         lib/xreadlink-with-size.c.
73703         (configure.ac): Remove gl_XREADLINK invocation.
73704         (Makefile.am): Augment lib_SOURCES.
73705         * m4/xreadlink.m4: Remove file.
73706         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
73707         (xreadlink_with_size): Renamed from xreadink.
73708         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
73709         * modules/canonicalize (Depends-on): Replace xreadlink with
73710         xreadlink-with-size.
73711         * lib/canonicalize.c (canonicalize_filename_mode): Update.
73712
73713 2007-02-25  Jim Meyering  <jim@meyering.net>
73714
73715         * build-aux/announce-gen: When complaining about excess arguments,
73716         list them.
73717
73718 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
73719
73720         * README: Document signed integer overflow situation more
73721         accurately.
73722
73723 2007-02-25  Bruno Haible  <bruno@clisp.org>
73724
73725         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
73726         'a' or 'A' conversion.
73727
73728 2007-02-25  Bruno Haible  <bruno@clisp.org>
73729
73730         * modules/filename: Renamed from modules/pathname.
73731         (Files): Replace lib/pathname.h with lib/filename.h. Replace
73732         lib/concatpath.c with lib/concat-filename.c.
73733         (Makefile.am): Update.
73734         (Include): Replace pathname.h with filename.h.
73735         * lib/filename.h: Renamed from lib/pathname.h.
73736         (concatenated_filename): Renamed from concatenated_pathname.
73737         * lib/concat-filename.c: Renamed from lib/concatpath.c.
73738         (concatenated_filename): Renamed from concatenated_pathname.
73739         * lib/findprog.c: Include filename.h instead of pathname.h.
73740         (find_in_path): Update.
73741         * lib/javacomp.c: Include filename.h instead of pathname.h.
73742         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
73743         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
73744         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
73745         is_oldgcj_14_13_usable, is_javac_usable): Update.
73746         * lib/javaexec.c: Include filename.h instead of pathname.h.
73747         (execute_java_class): Update.
73748         * modules/findprog: Update.
73749         * modules/javacomp: Update.
73750         * modules/javaexec: Update.
73751         * MODULES.html.sh (File system functions): Add 'filename', remove
73752         'pathname'.
73753
73754 2007-02-25  Bruno Haible  <bruno@clisp.org>
73755
73756         * modules/printf-frexpl-tests: New file.
73757         * tests/test-printf-frexpl.c: New file.
73758
73759         * modules/printf-frexpl: New file.
73760         * lib/printf-frexpl.h: New file.
73761         * lib/printf-frexpl.c: New file.
73762         * m4/printf-frexpl.m4: New file.
73763
73764 2007-02-25  Bruno Haible  <bruno@clisp.org>
73765
73766         * modules/printf-frexp-tests: New file.
73767         * tests/test-printf-frexp.c: New file.
73768
73769         * modules/printf-frexp: New file.
73770         * lib/printf-frexp.h: New file.
73771         * lib/printf-frexp.c: New file.
73772         * m4/printf-frexp.m4: New file.
73773
73774 2007-02-25  Bruno Haible  <bruno@clisp.org>
73775
73776         Assume automake >= 1.10 for the tests.
73777         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
73778         * modules/arctwo-tests: Likewise.
73779         * modules/argp-tests: Likewise.
73780         * modules/avltree-list-tests: Likewise.
73781         * modules/avltree-oset-tests: Likewise.
73782         * modules/avltreehash-list-tests: Likewise.
73783         * modules/carray-list-tests: Likewise.
73784         * modules/crc-tests: Likewise.
73785         * modules/des-tests: Likewise.
73786         * modules/gc-arcfour-tests: Likewise.
73787         * modules/gc-arctwo-tests: Likewise.
73788         * modules/gc-des-tests: Likewise.
73789         * modules/gc-hmac-md5-tests: Likewise.
73790         * modules/gc-hmac-sha1-tests: Likewise.
73791         * modules/gc-md2-tests: Likewise.
73792         * modules/gc-md4-tests: Likewise.
73793         * modules/gc-md5-tests: Likewise.
73794         * modules/gc-pbkdf2-sha1-tests: Likewise.
73795         * modules/gc-rijndael-tests: Likewise.
73796         * modules/gc-sha1-tests: Likewise.
73797         * modules/gc-tests: Likewise.
73798         * modules/getaddrinfo-tests: Likewise.
73799         * modules/hmac-md5-tests: Likewise.
73800         * modules/hmac-sha1-tests: Likewise.
73801         * modules/linked-list-tests: Likewise.
73802         * modules/linkedhash-list-tests: Likewise.
73803         * modules/lock-tests: Likewise.
73804         * modules/md2-tests: Likewise.
73805         * modules/md4-tests: Likewise.
73806         * modules/md5-tests: Likewise.
73807         * modules/rbtree-list-tests: Likewise.
73808         * modules/rbtree-oset-tests: Likewise.
73809         * modules/rbtreehash-list-tests: Likewise.
73810         * modules/read-file-tests: Likewise.
73811         * modules/rijndael-tests: Likewise.
73812         * modules/stdint-tests: Likewise.
73813         * modules/tls-tests: Likewise.
73814
73815 2007-02-24  Bruno Haible  <bruno@clisp.org>
73816
73817         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
73818         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
73819         function; instead check whether isnan with a double argument links.
73820         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
73821         function; instead check whether isnan with a 'long double' argument
73822         links.
73823         Reported by Eric Blake <ebb9@byu.net>.
73824
73825 2007-02-24  Bruno Haible  <bruno@clisp.org>
73826
73827         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
73828         defined.
73829         * lib/isnanl.c: Remove all code. Just include isnan.c.
73830         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
73831
73832 2007-02-25  Jim Meyering  <jim@meyering.net>
73833
73834         Avoid conflicting types for 'unsetenv' on FreeBSD.
73835         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
73836         conflicting with FreeBSD's (5.0 and 6.1) function declaration
73837         in stdlib.h.
73838
73839 2007-02-24  Bruno Haible  <bruno@clisp.org>
73840
73841         * modules/isnanl-nolibm-tests: New file.
73842         * tests/test-isnanl.c: New file.
73843
73844         * modules/isnanl-nolibm: New file.
73845         * lib/isnanl.h: New file.
73846         * lib/isnanl.c: New file.
73847         * m4/isnanl.m4: New file.
73848
73849 2007-02-24  Bruno Haible  <bruno@clisp.org>
73850
73851         * modules/isnan-nolibm-tests: New file.
73852         * tests/test-isnan.c: New file.
73853
73854         * modules/isnan-nolibm: New file.
73855         * lib/isnan.h: New file.
73856         * lib/isnan.c: New file.
73857         * m4/isnan.m4: New file.
73858
73859 2007-02-24  Bruno Haible  <bruno@clisp.org>
73860
73861         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
73862         assume that an exponent fits in 20 bits.
73863
73864 2007-02-24  Jim Meyering  <jim@meyering.net>
73865
73866         * m4/regex.m4: Update the description of the configure-time option,
73867         --without-included-regex, to state accurately what the defaults are,
73868         and perhaps to give people an idea why using this option is risky.
73869
73870 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
73871
73872         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
73873         loops on small arguments.  This attempts to avoid the problem
73874         Bruno Haible reported for AIX 4.3.2 in
73875         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
73876
73877 2007-02-23  Bruno Haible  <bruno@clisp.org>
73878
73879         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
73880         Needed for help2man.
73881
73882 2007-02-23  Karl Berry  <karl@gnu.org>
73883
73884         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
73885         exists, foo.h should be cvs-ignored, not committed.
73886
73887 2007-02-23  Eric Blake  <ebb9@byu.net>
73888
73889         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
73890         * lib/stat-time.h (includes): Likewise.
73891         * lib/utimecmp.c (includes): Likewise.
73892         * lib/utimens.h (includes): Likewise.
73893         * lib/getdate.y (includes): Also include "timespec.h" for use
73894         internal to the module.
73895         * modules/utimens (Depends-on): Revert yesterday's patch.
73896         * modules/nanosleep (Depends-on): Add missing dependency.
73897
73898 2007-02-22  Bruno Haible  <bruno@clisp.org>
73899
73900         * lib/glob.c: Don't include getlogin_r.h.
73901
73902 2007-02-22  Jim Meyering  <jim@meyering.net>
73903
73904         * modules/utimens (Depends-on): Add timespec, required for
73905         utimens.h's inclusion of timespec.h.
73906
73907 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
73908
73909         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
73910         long unreadable paths in GNU/Linux.  Problem reported by Andreas
73911         Schwab in
73912         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
73913         I'll try to think of a better way to fix the Solaris problem.
73914
73915         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
73916         like glibc; on Solaris 10, it fails with errno == EINVAL.
73917         POSIX says the behavior is unspecified if the first argument is NULL,
73918         so play it safe and never pass NULL to the system getcwd.
73919
73920 2007-02-21  Jim Meyering  <jim@meyering.net>
73921
73922         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
73923         of gettimeofday.  It would conflict with the one now always
73924         provided via sys_time_.h.  Reported by Matthew Woehlke, as
73925         an IRIX 6.5 build failure.
73926
73927 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
73928
73929         Minor fixups to port to Solaris 10 with Sun C 5.8.
73930         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
73931         * modules/getcwd (Depends-on): Add dirfd.
73932         * lib/putenv.c (putenv): #undef it.
73933         (rpl_putenv): New decl.
73934         (malloc, free): Include <stdlib.h> rather than prototyping separately.
73935
73936 2007-02-20  Bruno Haible  <bruno@clisp.org>
73937
73938         * modules/stdio-tests: New file.
73939         * tests/test-stdio.c: New file.
73940
73941         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
73942         (Depends-on): Add stdio.
73943         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
73944         (Include): Use <stdio.h> instead of vsnprintf.h.
73945         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
73946         HAVE_DECL_VSNPRINTF.
73947         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
73948
73949         * modules/snprintf (Files): Remove lib/snprintf.h.
73950         (Depends-on): Add stdio.
73951         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
73952         (Include): Use <stdio.h> instead of snprintf.h.
73953         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
73954         HAVE_DECL_SNPRINTF.
73955         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
73956         * lib/getaddrinfo.c: Likewise.
73957
73958         * modules/stdio: New file.
73959         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
73960         * lib/snprintf.h: Remove file.
73961         * lib/vsnprintf.h: Remove file.
73962         * lib/.cppi-disable: Remove snprintf.h.
73963         * m4/stdio_h.m4: New file.
73964         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
73965
73966 2007-02-20  Jim Meyering  <jim@meyering.net>
73967
73968         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
73969         used by e.g., mingw.  From Bruno Haible.
73970
73971 2007-02-19  Bruno Haible  <bruno@clisp.org>
73972
73973         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
73974         warnings.
73975         Reported by Ben Pfaff <blp@cs.stanford.edu>.
73976
73977 2007-02-19  Bruno Haible  <bruno@clisp.org>
73978
73979         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
73980         from mingw users.
73981
73982 2007-02-19  Bruno Haible  <bruno@clisp.org>
73983
73984         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
73985         warnings.
73986         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
73987
73988 2007-02-19  Jim Meyering  <jim@meyering.net>
73989
73990         Don't use FD after a successful "fdopendir (fd)".
73991         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
73992         Reset it by calling dirfd on the just-obtained DIR*.
73993
73994         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
73995         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
73996
73997 2007-02-18  Bruno Haible  <bruno@clisp.org>
73998
73999         * lib/readlink.c: Include <unistd.h>.
74000         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
74001         HAVE_READLINK.
74002         * modules/readlink (Depends-on): Add unistd.
74003         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
74004         (Include): Add <unistd.h>.
74005
74006         * lib/getlogin_r.h: Remove file.
74007         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
74008         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
74009         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
74010         HAVE_DECL_GETLOGIN_R.
74011         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
74012         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
74013         (Include): Use <unistd.h> instead of getlogin_r.h.
74014
74015         * lib/getcwd.h: Remove file.
74016         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
74017         * lib/xgetcwd.c: Likewise.
74018         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
74019         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
74020         * modules/getcwd (Files): Remove lib/getcwd.h.
74021         (Depends-on): Add unistd.
74022         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
74023         (Include): Use <unistd.h> instad of getcwd.h.
74024
74025         * lib/ftruncate.c: Include <unistd.h> first.
74026         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
74027         Set HAVE_FTRUNCATE.
74028         * modules/ftruncate (Depends-on): Add unistd.
74029         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
74030
74031         * lib/fchdir.c: Include <unistd.h> first.
74032         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
74033         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
74034         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
74035         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
74036         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
74037
74038         * lib/dup2.c: Include <unistd.h> first.
74039         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
74040         HAVE_DUP2.
74041         * modules/dup2 (Depends-on): Add unistd.
74042         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
74043
74044         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
74045         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
74046         REPLACE_CHOWN. Don't define chown as a macro here.
74047         * modules/chown (Depends-on): Add unistd.
74048         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
74049
74050         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
74051         Add definition for GL_LINK_WARNING.
74052         (chown, dup2): New declarations.
74053         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
74054         link warning.
74055         (ftruncate): New declaration.
74056         (getcwd): New declaration, taken from old getcwd.h.
74057         (getlogin_r): New declaration, taken from old getlogin_r.h.
74058         (readlink): New declaration.
74059         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
74060         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
74061         (gl_PREREQ_UNISTD): Remove macro.
74062         (gl_UNISTD_MODULE_INDICATOR): New macro.
74063         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
74064         many new variables. Don't set UNISTD_H.
74065         * modules/unistd (Description): Change.
74066         (Depends-on): Add link-warning.
74067         (configure.ac): Update.
74068         (Makefile.am): Create unistd.h always. Substitute many new variables
74069         into it.
74070
74071 2007-02-18  Bruno Haible  <bruno@clisp.org>
74072
74073         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
74074         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
74075         HAVE_GETSUBOPT.
74076         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
74077         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
74078         * lib/getsubopt.h: Remove file.
74079         * modules/getsubopt (Files): Remove lib/getsubopt.h.
74080         (Depends-on): Add stdlib.
74081         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
74082         (Includes): Use <stdlib.h> instead of getsubopt.h.
74083         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
74084         Set HAVE_GETSUBOPT.
74085         * lib/getsubopt.c: Don't include getsubopt.h.
74086
74087 2007-02-18  Bruno Haible  <bruno@clisp.org>
74088
74089         * modules/fchdir (Depends-on): Add dup2.
74090
74091 2007-02-18  Bruno Haible  <bruno@clisp.org>
74092
74093         * lib/stdlib_.h: Handle glibc's special invocation convention
74094         specially.
74095
74096 2007-02-18  Bruno Haible  <bruno@clisp.org>
74097
74098         * modules/stdlib-tests: New file.
74099         * tests/test-stdlib.c: New file.
74100
74101         * modules/mkstemp (Files): Remove lib/mkstemp.h.
74102         (Depends-on): Add stdlib.
74103         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
74104         (Includes): Use <stdlib.h> instead of mkstemp.h.
74105         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
74106         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
74107         * lib/mkstemp.c: Don't include mkstemp.h.
74108         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
74109         * lib/stdlib--.h: Don't include mkstemp.h.
74110
74111         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
74112         (Depends-on): Add stdlib.
74113         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
74114         (Includes): Use <stdlib.h> instead of mkdtemp.h.
74115         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
74116         HAVE_MKDTEMP.
74117         * lib/mkdtemp.c: Don't include mkdtemp.h.
74118         * lib/clean-temp.c: Don't include mkdtemp.h.
74119
74120         * modules/exit (Files): Remove lib/exit.h.
74121         (Depends-on): Add stdlib.
74122         (Makefile.am): Remove lib_SOURCES.
74123         (Include): Use <stdlib.h> instead of exit.h.
74124         * lib/argmatch.c: Don't include exit.h.
74125         * lib/execute.c: Likewise.
74126         * lib/pagealign_alloc.c: Likewise.
74127         * lib/pipe.c: Likewise.
74128         * lib/wait-process.c: Likewise.
74129         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
74130         * lib/exitfail.c: Likewise.
74131         * lib/savewd.c: Likewise.
74132         * lib/xsetenv.c: Likewise.
74133
74134         * modules/stdlib: New file.
74135         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
74136         and extra comments about mkstemp().
74137         * lib/exit.h: Remove file.
74138         * lib/mkdtemp.h: Remove file.
74139         * lib/mkstemp.h: Remove file.
74140         * m4/stdlib_h.m4: New file.
74141         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
74142
74143 2007-02-18  Bruno Haible  <bruno@clisp.org>
74144
74145         * modules/math-tests: New file.
74146         * tests/test-math.c: New file.
74147
74148         * modules/math: New file.
74149         * modules/mathl (Files): Remove lib/mathl.h.
74150         (Depends-on): Add math.
74151         (Makefile.am): Don't mention mathl.h.
74152         (Include): Use <math.h> instead of mathl.h.
74153         * lib/math_.h: New file.
74154         * lib/mathl.h: Remove file.
74155         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
74156         mathl.h.
74157         * lib/asinl.c: Likewise.
74158         * lib/atanl.c: Likewise.
74159         * lib/ceill.c: Likewise.
74160         * lib/cosl.c: Likewise.
74161         * lib/expl.c: Likewise.
74162         * lib/floorl.c: Likewise.
74163         * lib/frexpl.c: Likewise.
74164         * lib/ldexpl.c: Likewise.
74165         * lib/logl.c: Likewise.
74166         * lib/sincosl.c: Likewise.
74167         * lib/sinl.c: Likewise.
74168         * lib/sqrtl.c: Likewise.
74169         * lib/tanl.c: Likewise.
74170         * lib/trigl.c: Likewise.
74171         * m4/math_h.m4: New file.
74172         * MODULES.html.sh (Mathematics): Add math.
74173
74174 2007-02-17  Bruno Haible  <bruno@clisp.org>
74175
74176         * modules/wctype-tests: New file.
74177         * tests/test-wctype.c: New file.
74178
74179         * modules/wchar-tests: New file.
74180         * tests/test-wchar.c: New file.
74181
74182         * modules/unistd-tests: New file.
74183         * tests/test-unistd.c: New file.
74184
74185         * modules/time-tests: New file.
74186         * tests/test-time.c: New file.
74187
74188         * modules/sysexits-tests: New file.
74189         * tests/test-sysexits.c: New file.
74190
74191         * modules/sys_time-tests: New file.
74192         * tests/test-sys_time.c: New file.
74193
74194         * modules/sys_stat-tests: New file.
74195         * tests/test-sys_stat.c: New file.
74196
74197         * modules/sys_socket-tests: New file.
74198         * tests/test-sys_socket.c: New file.
74199
74200         * modules/sys_select-tests: New file.
74201         * tests/test-sys_select.c: New file.
74202
74203         * modules/string-tests: New file.
74204         * tests/test-string.c: New file.
74205
74206         * modules/stdbool-tests: New file.
74207         * tests/test-stdbool.c: New file.
74208
74209         * modules/netinet_in-tests: New file.
74210         * tests/test-netinet_in.c: New file.
74211
74212         * modules/inttypes-tests: New file.
74213         * tests/test-inttypes.c: New file.
74214
74215         * modules/fcntl-tests: New file.
74216         * tests/test-fcntl.c: New file.
74217
74218         * modules/byteswap-tests: New file.
74219         * tests/test-byteswap.c: New file.
74220
74221         * modules/arpa_inet-tests: New file.
74222         * tests/test-arpa_inet.c: New file.
74223
74224 2007-02-17  Bruno Haible  <bruno@clisp.org>
74225
74226         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
74227         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
74228         if the corresponding module is not enabled. Emit link warnings if
74229         the function is used nevertheless.
74230         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
74231         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
74232         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
74233         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
74234         * modules/inttypes (Depends-on): Add link-warning.
74235         (Makefile.am): Copy the contents of build-aux/link-warning.h into
74236         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
74237         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
74238         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
74239         * modules/imaxdiv (configure.ac): Likewise.
74240         * modules/strtoimax (configure.ac): Likewise.
74241         * modules/strtoumax (configure.ac): Likewise.
74242
74243 2007-02-17  Bruno Haible  <bruno@clisp.org>
74244
74245         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
74246         gl_STRING_MODULE_INDICATOR_DEFAULTS.
74247         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
74248         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
74249
74250 2007-02-17  Bruno Haible  <bruno@clisp.org>
74251
74252         * modules/link-warning: New file.
74253         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
74254         * lib/string_.h (GL_LINK_WARNING): Remove definition.
74255         * modules/string (Depends-on): Add link-warning.
74256         (Makefile.am): Copy the contents of build-aux/link-warning.h into
74257         string.h.
74258         * MODULES.html.sh (Support for building libraries and executables): Add
74259         link-warning.
74260
74261 2007-02-17  Bruno Haible  <bruno@clisp.org>
74262
74263         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
74264         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
74265         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
74266         long lines.
74267
74268 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
74269             Bruno Haible  <bruno@clisp.org>
74270
74271         * modules/tmpfile: New file.
74272         * lib/tmpfile.c: New file.
74273         * m4/tmpfile.m4: New file.
74274         * MODULES.html.sh (func_all_modules): New section "Input/output".
74275
74276 2007-02-15  Bruno Haible  <bruno@clisp.org>
74277
74278         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
74279         (supports_delete_on_close): New function.
74280         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
74281
74282 2007-02-14  Bruno Haible  <bruno@clisp.org>
74283
74284         * modules/mbspcasecmp-tests: New file.
74285         * tests/test-mbspcasecmp.sh: New file.
74286         * tests/test-mbspcasecmp.c: New file.
74287
74288         New module mbspcasecmp.
74289         * modules/mbspcasecmp: New file.
74290         * lib/mbspcasecmp.c: New file.
74291         * lib/string_.h (strncasecmp): Change warning message.
74292         (mbspcasecmp): New declaration.
74293         * m4/mbspcasecmp.m4: New file.
74294         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74295         GNULIB_MBSPCASECMP.
74296         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
74297         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
74298
74299 2007-02-14  Bruno Haible  <bruno@clisp.org>
74300
74301         * modules/mbsncasecmp-tests: New file.
74302         * tests/test-mbsncasecmp.sh: New file.
74303         * tests/test-mbsncasecmp.c: New file.
74304
74305         New module mbsncasecmp.
74306         * modules/mbsncasecmp: New file.
74307         * lib/mbsncasecmp.c: New file.
74308         * lib/string_.h (mbsncasecmp): New declaration.
74309         * m4/mbsncasecmp.m4: New file.
74310         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74311         GNULIB_MBSNCASECMP.
74312         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
74313         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
74314
74315 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
74316
74317         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
74318         Verify that it doesn't overlap with our flags.
74319         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
74320         do not have the desired effect in multibyte locales; instead, use
74321         mbscasecmp.
74322         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
74323         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
74324         we don't require GNU fnmatch ourselves (if our users require it, they
74325         should do so explicitly).
74326
74327         Fix regex code so it doesn't rely on strcasecmp.
74328         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
74329         Otherwise, include gnulib's langinfo.h.
74330         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
74331         undesirable behavior in non-C locales.  Instead, rely on localecharset.
74332         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
74333         * modules/regex (FILES): Remove m4/codeset.m4.
74334         (Depends-on): Add localcharset.  Remove strcase.
74335
74336 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74337
74338         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
74339         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
74340
74341 2007-02-13  Bruno Haible  <bruno@clisp.org>
74342
74343         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
74344         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74345
74346 2007-02-12  Bruno Haible  <bruno@clisp.org>
74347
74348         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
74349         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
74350         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
74351         time warning rather than a link error.
74352
74353 2007-02-12  Bruno Haible  <bruno@clisp.org>
74354
74355         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
74356         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
74357         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74358
74359 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
74360
74361         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
74362         args, not 2.
74363
74364 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
74365
74366         New module 'time', so that apps can include <time.h> as per
74367         POSIX and GNU instead of separate include files like time_r.h
74368         and timegm.h.  This implementation tries out a simpler approach
74369         for replacing decls in standard include files (as compared to
74370         the string module), somewhat as an experiment.
74371
74372         * config/srclist.txt: Comment out mktime.c for now.
74373         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
74374         since it doesn't apply any more.  Use generic wording instead.
74375         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
74376         'time'.
74377         * lib/time_.h, m4/time_h.m4, modules/time: New files.
74378         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
74379         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
74380         Don't include <sys/types.h>; no longer needed since we assume C89.
74381         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
74382         * lib/strftime.c: Likewise.
74383         * lib/time_r.c: Likewise.
74384         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
74385         * lib/nanosleep.c: Include <time.h> first, to check interface.
74386         * lib/strptime.c: Likewise.
74387         * lib/time_r.c: Likewise.
74388         * lib/timegm.c: Likewise.
74389         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
74390         needed.
74391         * lib/timegm.c: Don't include timegm.h; no longer needed.
74392         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
74393         time.h now handles any problems in that area.
74394         (struct timespec, nanosleep): Remove; time.h now arranges for these.
74395         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
74396         that time.h defines struct timespec.
74397         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
74398         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
74399         handles that.
74400         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
74401         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
74402         needed.  Set REPLACE_LOCALTIME.
74403         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
74404         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
74405         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
74406         nanosleep; time_h.m4 now does that.  Don't require
74407         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
74408         module handles this now.
74409         * modules/getdate (Depends-on): Remove timespec.  Add time.
74410         * modules/nanosleep (Depends-on): Likewise.
74411         * modules/stat-time (Depends-on): Likewise.
74412         * modules/nanosleep (Include): Include time.h, not timespec.h.
74413         * modules/strptime (Files): Remove lib/strptime.h.
74414         (Depends-on): Add extensions, time.
74415         (Include): Include time.h, not strptime.h.
74416         * modules/time_r (Files): Remove lib/time_r.h.
74417         (Depends-on): Add time.
74418         (Include): Include time.h, not time_r.h.
74419         * modules/timegm: Likewise.
74420         * modules/timespec (Description): Now does timespec-related decls
74421         of our own, instead of struct timespec itself.
74422         (Depends-on): Add time; remove extensions.
74423         (Maintainer): Add self.
74424         * modules/utimecmp (Depends-on): Add time; remove timespec.
74425         * modules/utimens (Depends-on): Likewise.
74426         * modules/xnanosleep (Depends-on): Likewise.
74427
74428 2007-02-11  Bruno Haible  <bruno@clisp.org>
74429
74430         * lib/c-strstr.c: Include allocsa.h.
74431         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
74432         * lib/c-strcasestr.c: Include allocsa.h.
74433         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
74434         * lib/strcasestr.c: Include allocsa.h.
74435         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
74436         * lib/mbsstr.c: Include allocsa.h.
74437         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
74438         allocsa/freesa instead of malloc/free.
74439         * lib/mbscasestr.c: Include allocsa.h.
74440         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
74441         allocsa/freesa instead of malloc/free.
74442         * modules/c-strstr (Depends-on): Add allocsa.
74443         * modules/c-strcasestr (Depends-on): Likewise.
74444         * modules/strcasestr (Depends-on): Likewise.
74445         * modules/mbsstr (Depends-on): Likewise.
74446         * modules/mbscasestr (Depends-on): Likewise.
74447
74448 2007-02-11  Bruno Haible  <bruno@clisp.org>
74449
74450         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
74451
74452         * modules/mbsspn-tests: New file.
74453         * tests/test-mbsspn.sh: New file.
74454         * tests/test-mbsspn.c: New file.
74455
74456 2007-02-11  Bruno Haible  <bruno@clisp.org>
74457
74458         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
74459
74460         * modules/mbspbrk-tests: New file.
74461         * tests/test-mbspbrk.sh: New file.
74462         * tests/test-mbspbrk.c: New file.
74463
74464 2007-02-11  Bruno Haible  <bruno@clisp.org>
74465
74466         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
74467         unneeded cast.
74468
74469         * modules/mbscspn-tests: New file.
74470         * tests/test-mbscspn.sh: New file.
74471         * tests/test-mbscspn.c: New file.
74472
74473 2007-02-11  Bruno Haible  <bruno@clisp.org>
74474
74475         * modules/mbscasecmp-tests: New file.
74476         * tests/test-mbscasecmp.sh: New file.
74477         * tests/test-mbscasecmp.c: New file.
74478
74479 2007-02-11  Bruno Haible  <bruno@clisp.org>
74480
74481         Ensure O(n) worst-case complexity of mbscasestr.
74482         * lib/mbscasestr.c: Include stdbool.h.
74483         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
74484         functions.
74485         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
74486         the bookkeeping indicates that it's worth it.
74487         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
74488
74489         * modules/mbscasestr-tests: New file.
74490         * tests/test-mbscasestr1.c: New file.
74491         * tests/test-mbscasestr2.sh: New file.
74492         * tests/test-mbscasestr2.c: New file.
74493         * tests/test-mbscasestr3.sh: New file.
74494         * tests/test-mbscasestr3.c: New file.
74495         * tests/test-mbscasestr4.sh: New file.
74496         * tests/test-mbscasestr4.c: New file.
74497         * m4/locale-tr.m4: New file.
74498
74499 2007-02-11  Bruno Haible  <bruno@clisp.org>
74500
74501         Ensure O(n) worst-case complexity of mbsstr.
74502         * lib/mbsstr.c: Include stdbool.h.
74503         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
74504         functions.
74505         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
74506         bookkeeping indicates that it's worth it.
74507         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
74508
74509         * modules/mbsstr-tests: New file.
74510         * tests/test-mbsstr1.c: New file.
74511         * tests/test-mbsstr2.sh: New file.
74512         * tests/test-mbsstr2.c: New file.
74513         * tests/test-mbsstr3.sh: New file.
74514         * tests/test-mbsstr3.c: New file.
74515         * m4/locale-fr.m4: New file.
74516
74517 2007-02-11  Bruno Haible  <bruno@clisp.org>
74518
74519         * lib/mbsrchr.c (mbsrchr): Fix bug.
74520
74521         * modules/mbsrchr-tests: New file.
74522         * tests/test-mbsrchr.sh: New file.
74523         * tests/test-mbsrchr.c: New file.
74524
74525 2007-02-11  Bruno Haible  <bruno@clisp.org>
74526
74527         * lib/mbschr.c (mbschr): Fix bug.
74528
74529         * modules/mbschr-tests: New file.
74530         * tests/test-mbschr.sh: New file.
74531         * tests/test-mbschr.c: New file.
74532         * m4/locale-zh.m4: New file.
74533
74534 2007-02-11  Bruno Haible  <bruno@clisp.org>
74535
74536         Support for copying multibyte string iterators.
74537         * lib/mbiter.h: Include <string.h>.
74538         (mbiter_multi_copy): New function.
74539         (mbi_copy): New macro.
74540         * lib/mbuiter.h: Include <string.h>.
74541         (mbuiter_multi_copy): New function.
74542         (mbui_copy): New macro.
74543
74544 2007-02-11  Bruno Haible  <bruno@clisp.org>
74545
74546         New module mbslen.
74547         * modules/mbslen: New file.
74548         * lib/mbslen.c: New file.
74549         * lib/string_.h (mbslen): New declaration.
74550         * m4/mbslen.m4: New file.
74551         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74552         GNULIB_MBSLEN.
74553         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
74554         * MODULES.html.sh (Internationalization functions): Add mbslen.
74555
74556 2007-02-11  Bruno Haible  <bruno@clisp.org>
74557
74558         Ensure O(n) worst-case complexity of strcasestr substitute.
74559         * lib/strcasestr.c: Include stdbool.h.
74560         (knuth_morris_pratt): New function.
74561         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
74562         bookkeeping indicates that it's worth it.
74563         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
74564
74565         * modules/strcasestr-tests: New file.
74566         * tests/test-strcasestr.c: New file.
74567
74568 2007-02-11  Bruno Haible  <bruno@clisp.org>
74569
74570         Ensure O(n) worst-case complexity of c_strcasestr.
74571         * lib/c-strcasestr.c: Include stdbool.h, string.h.
74572         (knuth_morris_pratt): New function.
74573         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
74574         the bookkeeping indicates that it's worth it.
74575         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
74576
74577         * modules/c-strcasestr-tests: New file.
74578         * tests/test-c-strcasestr.c: New file.
74579
74580 2007-02-11  Bruno Haible  <bruno@clisp.org>
74581
74582         Ensure O(n) worst-case complexity of c_strstr.
74583         * lib/c-strstr.c: Include stdbool.h, string.h.
74584         (knuth_morris_pratt): New function.
74585         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
74586         bookkeeping indicates that it's worth it.
74587         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
74588
74589         * lib/c-strstr.c: Complete rewrite for maintainability.
74590
74591         * modules/c-strstr-tests: New file.
74592         * tests/test-c-strstr.c: New file.
74593
74594 2007-02-11  Bruno Haible  <bruno@clisp.org>
74595
74596         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
74597         5.2.1 and earlier, whereby \055 was treated just like the range
74598         delimiter '-'.
74599         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
74600
74601 2007-02-08  Bruno Haible  <bruno@clisp.org>
74602
74603         * modules/regex (Depends-on): Add stdbool.
74604         Reported by Dalibor Topic <robilad@kaffe.org>.
74605
74606 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
74607
74608         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
74609         Prefer returning from main to exiting from it.
74610         Remove unnecessary parens after sizeof.
74611
74612 2007-02-05  Bruno Haible  <bruno@clisp.org>
74613
74614         New module mbssep.
74615         * modules/mbssep: New file.
74616         * lib/mbssep.c: New file.
74617         * lib/string_.h (strsep): Add a conditional link warning.
74618         (mbssep): New declaration.
74619         * m4/mbssep.m4: New file.
74620         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74621         GNULIB_MBSSEP.
74622         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
74623         * MODULES.html.sh (Internationalization functions): Add mbssep.
74624
74625 2007-02-05  Bruno Haible  <bruno@clisp.org>
74626
74627         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
74628         Optimize search in case of 1 delimiter.
74629
74630 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
74631
74632         * lib/acl.h: Include sys/types.h before sys/acl.h.
74633
74634 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
74635
74636         Merge upstream fix for glibc bugzilla #3957:
74637
74638         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
74639
74640         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
74641         bit for RE_HAT_LISTS_NOT_NEWLINE.
74642         (build_charclass_op): Remove bogus comment.
74643
74644 2007-02-05  Simon Josefsson  <simon@josefsson.org>
74645
74646         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
74647
74648 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
74649
74650         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
74651         * lib/memmem.c [!defined _LIBC]: Include config.h.
74652
74653 2007-02-04  Bruno Haible  <bruno@clisp.org>
74654
74655         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
74656         warning message.
74657
74658 2007-02-04  Bruno Haible  <bruno@clisp.org>
74659
74660         New module mbstok_r.
74661         * modules/mbstok_r: New file.
74662         * lib/mbstok_r.c: New file.
74663         * lib/string_.h (strtok_r): Change argument names to match the
74664         comments. Add a conditional link warning.
74665         (mbstok_r): New declaration.
74666         * m4/mbstok_r.m4: New file.
74667         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74668         GNULIB_MBSTOK_R.
74669         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
74670         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
74671
74672 2007-02-04  Bruno Haible  <bruno@clisp.org>
74673
74674         New module mbsspn.
74675         * modules/mbsspn: New file.
74676         * lib/mbsspn.c: New file.
74677         * lib/string_.h (strspn): Add a conditional link warning.
74678         (mbsspn): New declaration.
74679         * m4/mbsspn.m4: New file.
74680         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74681         GNULIB_MBSSPN.
74682         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
74683         * MODULES.html.sh (Internationalization functions): Add mbsspn.
74684
74685 2007-02-04  Bruno Haible  <bruno@clisp.org>
74686
74687         New module mbspbrk.
74688         * modules/mbspbrk: New file.
74689         * lib/mbspbrk.c: New file.
74690         * lib/string_.h (strpbrk): Add a conditional link warning.
74691         (mbspbrk): New declaration.
74692         * m4/mbspbrk.m4: New file.
74693         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74694         GNULIB_MBSPBRK.
74695         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
74696         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
74697
74698 2007-02-04  Bruno Haible  <bruno@clisp.org>
74699
74700         New module mbscspn.
74701         * modules/mbscspn: New file.
74702         * lib/mbscspn.c: New file.
74703         * lib/string_.h (strcspn): Add a conditional link warning.
74704         (mbscspn): New declaration.
74705         * m4/mbscspn.m4: New file.
74706         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74707         GNULIB_MBSCSPN.
74708         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
74709         * MODULES.html.sh (Internationalization functions): Add mbscspn.
74710
74711 2007-02-04  Bruno Haible  <bruno@clisp.org>
74712
74713         New module mbscasestr, reduced goal of strcasestr.
74714         * modules/mbscasestr: New file.
74715         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
74716         (mbscasestr): Renamed from strcasestr.
74717         * lib/strcasestr.c: Don't include mbuiter.h.
74718         (strcasestr): Remove support for multibyte locales.
74719         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
74720         Change the conditional link warning.
74721         (mbscasestr): New declaration.
74722         * m4/mbscasestr.m4: New file.
74723         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
74724         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
74725         REPLACE_STRCASESTR.
74726         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
74727         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
74728         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
74729         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
74730         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
74731         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
74732         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
74733         (Depends-on): Remove mbuiter.
74734         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
74735
74736 2007-02-04  Bruno Haible  <bruno@clisp.org>
74737
74738         Simplify handling of strncasecmp.
74739         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
74740         the conditional link warning.
74741         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
74742         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
74743         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
74744         * modules/strcase (configure.ac): Don't invoke
74745         gl_STRING_MODULE_INDICATOR.
74746         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
74747
74748 2007-02-04  Bruno Haible  <bruno@clisp.org>
74749
74750         New module mbscasecmp, reduced goal of strcasecmp.
74751         * modules/mbscasecmp: New file.
74752         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
74753         (mbscasecmp): Renamed from strcasecmp.
74754         * lib/strcasecmp.c: Don't include mbuiter.h.
74755         (strcasecmp): Remove support for multibyte locales.
74756         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
74757         Change the conditional link warning.
74758         (mbscasecmp): New declaration.
74759         * m4/mbscasecmp.m4: New file.
74760         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
74761         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
74762         REPLACE_STRCASECMP.
74763         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
74764         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74765         GNULIB_MBSCASECMP.
74766         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
74767         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
74768         * modules/strcase (Files): Remove m4/mbrtowc.m4.
74769         (Depends-on): Remove mbuiter.
74770         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
74771
74772 2007-02-04  Bruno Haible  <bruno@clisp.org>
74773
74774         New module mbsstr. Remove module strstr.
74775         * modules/mbsstr: New file.
74776         * modules/strstr: Remove file.
74777         * lib/mbsstr.c: Renamed from lib/strstr.c.
74778         (mbsstr): Renamed from strstr.
74779         * lib/string_.h (strstr): Remove declaration. Change the conditional
74780         link warning.
74781         (mbsstr): New declaration.
74782         * m4/mbsstr.m4: New file.
74783         * m4/strstr.m4: Remove file.
74784         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
74785         REPLACE_STRSTR.
74786         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
74787         Don't initialize GNULIB_STRSTR.
74788         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
74789         substitute GNULIB_STRSTR and REPLACE_STRSTR.
74790         * MODULES.html.sh (Internationalization functions): Add mbsstr.
74791         (Support for systems lacking ANSI C 89): Remove strstr.
74792
74793 2007-02-04  Bruno Haible  <bruno@clisp.org>
74794
74795         New module mbsrchr.
74796         * modules/mbsrchr: New file.
74797         * lib/mbsrchr.c: New file.
74798         * lib/string_.h (strrchr): Add a conditional link warning.
74799         (mbsrchr): New declaration.
74800         * m4/mbsrchr.m4: New file.
74801         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74802         GNULIB_MBSRCHR.
74803         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
74804         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
74805
74806 2007-02-04  Bruno Haible  <bruno@clisp.org>
74807
74808         New module mbschr.
74809         * modules/mbschr: New file.
74810         * lib/mbschr.c: New file.
74811         * lib/string_.h (strchr): Add a conditional link warning.
74812         (mbschr): New declaration.
74813         * m4/mbschr.m4: New file.
74814         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74815         GNULIB_MBSCHR.
74816         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
74817         * MODULES.html.sh (Internationalization functions): Add mbschr.
74818
74819 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
74820
74821         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
74822
74823         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
74824
74825 2007-02-04  Bruno Haible  <bruno@clisp.org>
74826
74827         New module description section 'configure.ac-early'.
74828         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
74829         (func_get_autoconf_early_snippet): New function.
74830         (func_import, func_create_testdir): Use it. Remove special cases for
74831         modules 'extensions' and 'lock'.
74832         * modules/extensions (configure.ac-early): Require
74833         gl_USE_SYSTEM_EXTENSIONS.
74834         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
74835
74836 2007-02-04  Bruno Haible  <bruno@clisp.org>
74837
74838         Make use of gcj-4.3's -fsource and -ftarget option.
74839         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
74840         and if so try the options -fsource and -ftarget.
74841         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
74842         source_version, ftarget_option, target_version arguments.
74843         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
74844         (is_envjavac_oldgcj_14_14_usable): Renamed from
74845         is_envjavac_gcj_14_14_usable.
74846         (is_envjavac_oldgcj_14_13_usable): Renamed from
74847         is_envjavac_gcj_14_13_usable.
74848         (is_gcj_present): Update.
74849         (is_gcj_43, is_gcj43_usable): New functions.
74850         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
74851         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
74852         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
74853         try the options -fsource and -ftarget.
74854
74855 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
74856
74857         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
74858         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
74859         larger value.
74860
74861 2007-02-03  Jim Meyering  <jim@meyering.net>
74862
74863         Give tools a better chance to allocate space for very large buffers.
74864         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
74865
74866         Make pwd and readlink work also when run with an unreadable parent dir
74867         on systems with openat support.
74868         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
74869         provided getcwd function, even when we have openat support.
74870         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
74871
74872 2007-02-02  Bruno Haible  <bruno@clisp.org>
74873
74874         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
74875         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
74876         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
74877         portability problems if one of these functions is only used on specific
74878         platforms.
74879         Reported by Paul Eggert.
74880
74881 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
74882
74883         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
74884         is causing more trouble than it's curing.
74885         * lib/regex_internal.h (__mempcpy): Remove.
74886         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
74887         (and make the code a tad smaller to boot).
74888         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
74889
74890 2007-02-02  Jim Meyering  <jim@meyering.net>
74891
74892         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
74893         section, not in the Makefile.am: one.
74894
74895 2007-02-02  Eric Blake  <ebb9@byu.net>
74896
74897         * lib/strchrnul.c: Always include config.h first.
74898
74899         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
74900         gnulib strstr is not necessary here.
74901
74902 2007-02-02  Simon Josefsson  <simon@josefsson.org>
74903
74904         * m4/socklen.m4: Fix typo.
74905
74906 2007-02-02  Eric Blake  <ebb9@byu.net>
74907
74908         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
74909         * modules/netinet_in (Makefile.am): Likewise.
74910
74911 2007-02-01  Bruno Haible  <bruno@clisp.org>
74912
74913         * lib/string_.h (GL_LINK_WARNING): New macro.
74914         (strcasecmp, strstr, strcasestr): If provided by the system,
74915         conditionally define as a macro that leads to a warning instead of to
74916         an error.
74917         (strncasecmp): Conditionally define as a macro that leads to a warning.
74918
74919 2007-02-01  Karl Berry  <karl@gnu.org>
74920
74921         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
74922
74923 2007-02-01  Bruno Haible  <bruno@clisp.org>
74924
74925         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
74926         renamings.
74927
74928 2007-02-01  Eric Blake  <ebb9@byu.net>
74929
74930         * modules/regex (Depends-on): Revert dependence on mempcpy.
74931         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
74932         module's definition of mempcpy.
74933         Reported by Paul Eggert.
74934
74935 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
74936
74937         * lib/string_.h: If the gnulib module XYZ is not present, undefine
74938         the symbol XYZ before redefining it.  This fixes a problem with
74939         programs that don't use XYZ, when compiled on systems that define
74940         XYZ to something else.
74941
74942 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
74943
74944         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
74945         occurs when "mkdir -m foo" creates a setgid directory that is (1)
74946         writeable to group or other and (2) is intended to have a special
74947         mode bit that is set or cleared.  In such a case, the directory
74948         should be neither group- nor other-writeable until the special
74949         mode bits are right.
74950
74951 2007-01-31  Eric Blake  <ebb9@byu.net>
74952
74953         * modules/mountlist (Depends-on): Add strstr.
74954
74955         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
74956         bug.
74957         * modules/string (Makefile.am): Remove redundant replacement.
74958         * modules/regex (Depends-on): Add mempcpy.
74959
74960 2007-01-31  Bruno Haible  <bruno@clisp.org>
74961
74962         New module description field 'Link'.
74963         * gnulib-tool (func_usage): Document --extract-link-directive.
74964         (sed_extract_prog): Recognize 'Link' directive.
74965         (func_get_link_directive): New function.
74966         (func_import): Show summary of link directives.
74967         Handle --extract-link-directive option.
74968         * modules/acl (Link): New section.
74969         * modules/clock-time (Link): New section.
74970         * modules/euidaccess (Link): New section.
74971         * modules/gettext (Link): New section.
74972         * modules/iconv (Link): New section.
74973         * modules/lock (Link): New section.
74974         * modules/nanosleep (Link): New section.
74975         * modules/readline (Link): New section.
74976
74977 2007-01-27  Bruno Haible  <bruno@clisp.org>
74978
74979         Enforce the use of gnulib modules for unportable <string.h> functions.
74980         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
74981         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
74982         (gl_HEADER_STRING_H_BODY): Require it.
74983         * lib/string_.h: If the gnulib module XYZ is not present, redefine
74984         the symbol XYZ to one that gives a link error.
74985         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
74986         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
74987         * modules/mempcpy (configure.ac): Likewise.
74988         * modules/memrchr (configure.ac): Likewise.
74989         * modules/stpcpy (configure.ac): Likewise.
74990         * modules/stpncpy (configure.ac): Likewise.
74991         * modules/strcase (configure.ac): Likewise.
74992         * modules/strcasestr (configure.ac): Likewise.
74993         * modules/strchrnul (configure.ac): Likewise.
74994         * modules/strdup (configure.ac): Likewise.
74995         * modules/strndup (configure.ac): Likewise.
74996         * modules/strnlen (configure.ac): Likewise.
74997         * modules/strpbrk (configure.ac): Likewise.
74998         * modules/strsep (configure.ac): Likewise.
74999         * modules/strstr (configure.ac): Likewise.
75000         * modules/strtok_r (configure.ac): Likewise.
75001
75002 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
75003
75004         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
75005
75006 2007-01-30  Jim Meyering  <jim@meyering.net>
75007
75008         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
75009
75010 2007-01-29  Bruno Haible  <bruno@clisp.org>
75011
75012         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
75013         * lib/execute.c: Likewise.
75014         * lib/pipe.c: Likewise.
75015         * lib/printf-args.h: Likewise.
75016         * lib/printf-args.c: Likewise.
75017         * lib/printf-parse.c: Likewise.
75018         * lib/vasnprintf.c: Likewise.
75019
75020 2007-01-29  Eric Blake  <ebb9@byu.net>
75021
75022         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
75023         declaration.
75024
75025 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
75026
75027         * lib/strptime.h (strptime): Use 'restrict' for args where
75028         POSIX requires this.
75029         * lib/strptime.c (strptime): Likewise.
75030         Change license notice from LGPL to GPL, since gnulib-tool will
75031         change this as needed.
75032         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
75033         defined.
75034         Include "strptime.h" first, to check interface.
75035         Do not #undef _LIBC and _NL_CURRENT.
75036         Do not include <stdlib.h>; no longer needed.
75037         Include "time_r.h" and declare ptime_locale_status
75038         only if _LIBC is not defined.
75039         (__P): Remove unused macro.
75040         (match_string): Bring back glibc version, but use it only if _LIBC
75041         is defined.
75042         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
75043         Remove unnecessary assertion and abort() call.
75044         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
75045         * m4/strptime.m4: Fix serial number comment.
75046         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
75047         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
75048         (Depends-on): Add time_r.
75049
75050 2007-01-29  Bruno Haible  <bruno@clisp.org>
75051
75052         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75053         strptime.
75054         * modules/strptime (Depends-on): Add stdbool.
75055         * lib/strptime.h: Include <time.h> always. Add comments.
75056
75057 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75058
75059         * modules/strptime: New file.
75060         * lib/strptime.h: New file.
75061         * lib/strptime.c: New file.
75062         * m4/strptime.m4: New file.
75063
75064 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
75065
75066         * MODULES.html.sh: New module mpsort.
75067         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
75068
75069         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
75070         a circularity problem with HP-UX ia64 reported by Bob Proulx in
75071         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
75072         All uses changed.
75073         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
75074         All uses changed.
75075         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
75076         to _Restrict_.
75077         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
75078         the parameter matches the prototype.
75079
75080 2007-01-28  Jim Meyering  <jim@meyering.net>
75081
75082         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
75083         sys/time.h here, reverting that part of the previous patch:
75084         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
75085
75086 2007-01-28  Bruno Haible  <bruno@clisp.org>
75087
75088         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
75089         value of $(SYS_TIME_H).
75090         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
75091         remove it conditionally, too. [added by Jim Meyering]
75092         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
75093         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
75094         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
75095         GETTIMEOFDAY_REPLACEMENT to 1.
75096
75097 2007-01-28  Bruno Haible  <bruno@clisp.org>
75098
75099         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
75100         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
75101         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
75102         Set UNISTD_H instead of UNISTD_H2.
75103         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
75104
75105 2007-01-28  Bruno Haible  <bruno@clisp.org>
75106
75107         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
75108         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
75109
75110 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75111
75112         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
75113         (func_create_testdir): Ensure C locale for `grep' and `tr'
75114         character ranges.
75115         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
75116         ACLOCAL_AMFLAGS parsing state machine.
75117
75118 2007-01-27  Bruno Haible  <bruno@clisp.org>
75119
75120         * modules/unistr/base: Update.
75121
75122 2007-01-27  Bruno Haible  <bruno@clisp.org>
75123
75124         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
75125         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
75126         * modules/unistr/u32-mbtouc-unsafe: Renamed from
75127         modules/unistr/u32-mbtouc.
75128         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
75129         * lib/unistr.h: Update.
75130         * lib/linebreak.c: Update.
75131         * modules/unistr/u32-mbtouc: Renamed from
75132         modules/unistr/u32-mbtouc-safe.
75133         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
75134         * lib/unistr.h: Update.
75135         * lib/unistr/u32-to-u8.c: Update.
75136         * lib/unistr/u32-to-u16.c: Update.
75137
75138 2007-01-27  Bruno Haible  <bruno@clisp.org>
75139
75140         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
75141         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
75142         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
75143         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
75144         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
75145         * modules/unistr/u16-mbtouc-unsafe: Renamed from
75146         modules/unistr/u16-mbtouc.
75147         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
75148         * lib/unistr.h: Update.
75149         * lib/linebreak.c: Update.
75150         * modules/linebreak: Update.
75151         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
75152         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
75153         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
75154         * modules/unistr/u16-mbtouc: Renamed from
75155         modules/unistr/u16-mbtouc-safe.
75156         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
75157         * lib/unistr.h: Update.
75158         * lib/unistr/u16-to-u8.c: Update.
75159         * modules/unistr/u16-to-u8: Update.
75160         * lib/unistr/u16-to-u32.c: Update.
75161         * modules/unistr/u16-to-u32: Update.
75162
75163 2007-01-27  Bruno Haible  <bruno@clisp.org>
75164
75165         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
75166         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
75167         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
75168         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
75169         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
75170         * modules/unistr/u8-mbtouc-unsafe: Renamed from
75171         modules/unistr/u8-mbtouc.
75172         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
75173         * lib/unistr.h: Update.
75174         * lib/striconveh.c: Update.
75175         * modules/striconveh: Update.
75176         * lib/linebreak.c: Update.
75177         * modules/linebreak: Update.
75178         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
75179         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
75180         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
75181         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
75182         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
75183         * lib/unistr.h: Update.
75184         * lib/striconveh.c: Update.
75185         * modules/striconveh: Update.
75186         * lib/unistr/u8-to-u16.c: Update.
75187         * modules/unistr/u8-to-u16: Update.
75188         * lib/unistr/u8-to-u32.c: Update.
75189         * modules/unistr/u8-to-u32: Update.
75190
75191 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75192
75193         Sync from Libtool.
75194         * lib/argz.c: Do not include strings.h nor memory.h, include
75195         string.h unconditionally.  Patch by Simon Josefsson.
75196
75197 2007-01-27  Bruno Haible  <bruno@clisp.org>
75198
75199         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
75200         from gl_HEADER_STRING_H_BODY.
75201         (gl_HEADER_STRING_H_BODY): Require it.
75202         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
75203         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
75204         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
75205         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
75206         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
75207         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
75208         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
75209         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
75210         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
75211         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
75212         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
75213         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
75214         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
75215         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
75216         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
75217
75218 2007-01-27  Bruno Haible  <bruno@clisp.org>
75219
75220         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
75221         check_PROGRAMS into noinst_PROGRAMS.
75222         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
75223         check_PROGRAMS in this case.
75224         (func_import): Set for_test to false.
75225         (func_create_testdir): Set for_test to true.
75226
75227 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
75228             Bruno Haible  <bruno@clisp.org>
75229
75230         * modules/strcasestr (Files): Remove lib/strcasestr.h.
75231         (Depends-on): Add string.
75232         (Includes): Use <string.h> instead of strcasestr.h.
75233         * modules/string (Makefile.am): Also substitute the value of
75234         REPLACE_STRCASESTR.
75235         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
75236         assume strcasestr is declared in <string.h> not <strings.h>. Also
75237         set REPLACE_STRCASESTR.
75238         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
75239         REPLACE_STRCASESTR.
75240         * lib/strcasestr.h: Remove file.
75241         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
75242         * lib/string_.h (strcasestr): New declaration.
75243
75244 2007-01-27  Bruno Haible  <bruno@clisp.org>
75245
75246         * lib/string_.h: Use 'extern'.
75247
75248 2007-01-27  Jim Meyering  <jim@meyering.net>
75249
75250         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
75251         of set-but-not-used local, "q".
75252
75253         * lib/mempcpy.c: Include <config.h> before <string.h>.
75254         This fixes a compilation error on HP-UX, due to the system's
75255         "restrict"-using mempcpy prototype.
75256
75257 2007-01-26  Bruno Haible  <bruno@clisp.org>
75258
75259         Small optimization.
75260         * lib/javacomp.c: Include c-strstr.h.
75261          (is_envjavac_gcj): Use c_strstr instead of strstr.
75262         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
75263
75264 2007-01-26  Bruno Haible  <bruno@clisp.org>
75265
75266         * MODULES.html.sh (Unicode string functions): Add the new modules.
75267
75268         * modules/uniconv/u32-strconv-to-locale: New file.
75269         * lib/uniconv/u32-strconv-to-locale.c: New file.
75270
75271         * modules/uniconv/u16-strconv-to-locale: New file.
75272         * lib/uniconv/u16-strconv-to-locale.c: New file.
75273
75274         * modules/uniconv/u8-strconv-to-locale: New file.
75275         * lib/uniconv/u8-strconv-to-locale.c: New file.
75276
75277         * modules/uniconv/u32-strconv-from-locale: New file.
75278         * lib/uniconv/u32-strconv-from-locale.c: New file.
75279
75280         * modules/uniconv/u16-strconv-from-locale: New file.
75281         * lib/uniconv/u16-strconv-from-locale.c: New file.
75282
75283         * modules/uniconv/u8-strconv-from-locale: New file.
75284         * lib/uniconv/u8-strconv-from-locale.c: New file.
75285
75286         * modules/uniconv/u32-strconv-to-enc: New file.
75287         * lib/uniconv/u32-strconv-to-enc.c: New file.
75288         * modules/uniconv/u32-strconv-to-enc-tests: New file.
75289         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
75290
75291         * modules/uniconv/u16-strconv-to-enc: New file.
75292         * lib/uniconv/u16-strconv-to-enc.c: New file.
75293         * lib/uniconv/u-strconv-to-enc.h: New file.
75294         * modules/uniconv/u16-strconv-to-enc-tests: New file.
75295         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
75296
75297         * modules/uniconv/u8-strconv-to-enc: New file.
75298         * lib/uniconv/u8-strconv-to-enc.c: New file.
75299         * modules/uniconv/u8-strconv-to-enc-tests: New file.
75300         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
75301
75302         * modules/uniconv/u32-strconv-from-enc: New file.
75303         * lib/uniconv/u32-strconv-from-enc.c: New file.
75304         * modules/uniconv/u32-strconv-from-enc-tests: New file.
75305         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
75306
75307         * modules/uniconv/u16-strconv-from-enc: New file.
75308         * lib/uniconv/u16-strconv-from-enc.c: New file.
75309         * modules/uniconv/u16-strconv-from-enc-tests: New file.
75310         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
75311
75312         * modules/uniconv/u8-strconv-from-enc: New file.
75313         * lib/uniconv/u8-strconv-from-enc.c: New file.
75314         * lib/uniconv/u-strconv-from-enc.h: New file.
75315         * modules/uniconv/u8-strconv-from-enc-tests: New file.
75316         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
75317
75318         * modules/uniconv/u32-conv-from-enc: New file.
75319         * lib/uniconv/u32-conv-from-enc.c: New file.
75320         * modules/uniconv/u32-conv-from-enc-tests: New file.
75321         * tests/uniconv/test-u32-conv-from-enc.c: New file.
75322
75323         * modules/uniconv/u16-conv-from-enc: New file.
75324         * lib/uniconv/u16-conv-from-enc.c: New file.
75325         * lib/uniconv/u-conv-from-enc.h: New file.
75326         * modules/uniconv/u16-conv-from-enc-tests: New file.
75327         * tests/uniconv/test-u16-conv-from-enc.c: New file.
75328
75329         * modules/uniconv/u8-conv-from-enc: New file.
75330         * lib/uniconv/u8-conv-from-enc.c: New file.
75331         * modules/uniconv/u8-conv-from-enc-tests: New file.
75332         * tests/uniconv/test-u8-conv-from-enc.c: New file.
75333
75334         * modules/uniconv/base: New file.
75335         * lib/uniconv.h: New file.
75336
75337 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
75338
75339         * doc/gnulib-tool.texi (Initial import): Update to match current
75340         behavior with strdup module.
75341         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
75342         * lib/memmem.h: Remove; all uses removed.  This is now done
75343         by <string.h>.
75344         * lib/mempcpy.h: Likewise.
75345         * lib/memrchr.h: Likewise.
75346         * lib/stpcpy.h: Likewise.
75347         * lib/stpncpy.h: Likewise.
75348         * lib/strcase.h: Likewise.
75349         * lib/strchrnul.h: Likewise.
75350         * lib/strdup.h: Likewise.
75351         * lib/strndup.h: Likewise.
75352         * lib/strnlen.h: Likewise.
75353         * lib/strpbrk.h: Likewise.
75354         * lib/strsep.h: Likewise.
75355         * lib/strstr.h: Likewise.
75356         * lib/strtok_r.h: Likewise.
75357         * lib/string_.h: New file.
75358         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
75359         Rely on <string.h> instead.
75360         * lib/canon-host.c: Likewise.
75361         * lib/chdir-long.c: Likewise.
75362         * lib/concatpath.c: Likewise.
75363         * lib/exclude.c: Likewise.
75364         * lib/fchdir.c: Likewise.
75365         * lib/getaddrinfo.c: Likewise.
75366         * lib/getcwd.c: Likewise.
75367         * lib/getsubopt.c: Likewise.
75368         * lib/glob.c: Likewise.
75369         * lib/hard-locale.c: Likewise.
75370         * lib/iconvme.c: Likewise.
75371         * lib/javacomp.c: Likewise.
75372         * lib/mempcpy.c: Likewise.
75373         * lib/memrchr.c: Likewise.
75374         * lib/regex_internal.h: Likewise.
75375         * lib/stpncpy.c: Likewise.
75376         * lib/strcasecmp.c: Likewise.
75377         * lib/strchrnul.c: Likewise.
75378         * lib/strdup.c: Likewise.
75379         * lib/striconv.c: Likewise.
75380         * lib/striconveh.c: Likewise.
75381         * lib/striconveha.c: Likewise.
75382         * lib/strncasecmp.c: Likewise.
75383         * lib/strndup.c: Likewise.
75384         * lib/strnlen.c: Likewise.
75385         * lib/strsep.c: Likewise.
75386         * lib/strstr.c: Likewise.
75387         * lib/strtok_r.c: Likewise.
75388         * lib/userspec.c: Likewise.
75389         * lib/w32spawn.h: Likewise.
75390         * lib/xstrndup.c: Likewise.
75391         * lib/mountlist.c (strstr): Remove decl.
75392         * m4/string_h.m4: New file.
75393         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
75394         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
75395         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
75396         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
75397         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
75398         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
75399         Set REPLACE_STRCASECMP if necessary.
75400         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
75401         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
75402         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
75403         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
75404         HAVE_DECL_STRDUP if necessary.
75405         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
75406         since gl_FUNC_STRNDUP does that now.
75407         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
75408         Check for decl here...
75409         (gl_PREREQ_STRNLEN): ... not here.
75410         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
75411         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
75412         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
75413         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
75414         necessary.
75415         * modules/string: New file.
75416         * modules/memmem (Files): Remove special-purpose include file.
75417         (Depends-on): Add string.
75418         (Include): Include <string.h>, not the removed file.
75419         * modules/mempcpy: Likewise.
75420         * modules/memrchr: Likewise.
75421         * modules/stpcpy: Likewise.
75422         * modules/stpncpy: Likewise.
75423         * modules/strcase: Likewise.
75424         * modules/strchrnul: Likewise.
75425         * modules/strdup: Likewise.
75426         * modules/strndup: Likewise.
75427         * modules/strnlen: Likewise.
75428         * modules/strpbrk: Likewise.
75429         * modules/strsep: Likewise.
75430         * modules/strstr: Likewise.
75431         * modules/strtok_r: Likewise.
75432         * tests/test-dirname.c: Don't include "strdup.h", since
75433         <string.h> now suffices.
75434         * tests/test-memmem.c: Don't include "memmem.h", since
75435         <string.h> now suffices.
75436
75437 2007-01-25  Bruno Haible  <bruno@clisp.org>
75438
75439         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
75440         *resultp is 0.
75441
75442         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
75443         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
75444         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
75445         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
75446
75447         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
75448         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
75449         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
75450         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
75451         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
75452         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
75453
75454 2007-01-24  Bruno Haible  <bruno@clisp.org>
75455
75456         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
75457         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
75458         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
75459         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
75460         gl_FUNC_FTS_CORE.
75461         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
75462         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
75463         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
75464         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
75465         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
75466         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
75467         gl_FUNC_FCHOWNAT.
75468         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
75469         gl_FUNC_STRFTIME.
75470         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
75471         Reported by Ralf Wildenhues.
75472
75473 2007-01-24  Bruno Haible  <bruno@clisp.org>
75474
75475         Drop AC_REQUIRE calls that are redundant with the module dependencies.
75476         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
75477         gl_GETADDRINFO.
75478         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
75479         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
75480         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
75481
75482 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
75483
75484         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
75485         Don't use 'exit'; just return from 'main'.
75486         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
75487
75488         * lib/fnmatch_.h: Readjust white space and comments to match
75489         glibc, to avoid spurious diffs.
75490
75491 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
75492
75493         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
75494         2004-12-01 change by Jakub Jelinek, since this code won't compile
75495         if !LIBC.  Problem reported by Bob Proulx.
75496
75497 2007-01-23  Bruno Haible  <bruno@clisp.org>
75498
75499         * lib/striconveh.c: Include c-strcaseeq.h.
75500         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
75501         * modules/striconveh (Depends-on): Add c-strcaseeq.
75502
75503 2007-01-23  Bruno Haible  <bruno@clisp.org>
75504
75505         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
75506
75507         * modules/c-strcaseeq: New file.
75508         * lib/c-strcaseeq.h: New file.
75509
75510         * modules/streq: New file.
75511         * lib/streq.h: New file.
75512
75513 2007-01-23  Bruno Haible  <bruno@clisp.org>
75514
75515         * modules/striconveha-tests: New file.
75516         * tests/test-striconveha.c: New file.
75517
75518         * lib/striconveha.h: Include <stdbool.h>.
75519         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
75520         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
75521         (mem_iconveha_notranslit): Renamed from mem_iconveha.
75522         (mem_iconveha): New function.
75523         (str_iconveha_notranslit): Renamed from str_iconveha.
75524         (str_iconveha): New function.
75525         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
75526         c-strcase.
75527
75528 2007-01-23  Bruno Haible  <bruno@clisp.org>
75529
75530         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
75531         encodings without forgiving before trying any encoding with handler.
75532         (str_iconveha): Try all encodings without forgiving before trying any
75533         encoding with handler.
75534
75535 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
75536
75537         Import the following changes from libc.
75538
75539         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
75540
75541         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
75542
75543         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
75544
75545         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
75546         normal_bracket label.
75547
75548         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
75549
75550         [BZ #361]
75551         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
75552         to normal_bracket after fetching the next character.
75553
75554 2007-01-22  Bruno Haible  <bruno@clisp.org>
75555
75556         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
75557         argument.
75558         * lib/striconveh.c (iconv_carefully_1): New function.
75559         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
75560         argument.
75561         (str_cd_iconveh): Update.
75562         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
75563         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
75564         * tests/test-striconveh.c (MAGIC): New macro.
75565         (new_offsets): New function.
75566         (main): Test call with and without offsets.
75567
75568 2007-01-22  Bruno Haible  <bruno@clisp.org>
75569
75570         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
75571         * modules/sys_select (Makefile.am): Likewise.
75572         * modules/sys_socket (Makefile.am): Likewise.
75573         * modules/sys_time (Makefile.am): Likewise.
75574
75575 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
75576
75577         * modules/gettimeofday (License): Change from GPL to LGPL, since
75578         gettimeofday is a library function.
75579
75580 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75581
75582         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
75583
75584 2007-01-21  Bruno Haible  <bruno@clisp.org>
75585
75586         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
75587
75588 2007-01-21  Bruno Haible  <bruno@clisp.org>
75589
75590         * modules/striconveha: New file.
75591         * lib/striconveha.h: New file.
75592         * lib/striconveha.c: New file.
75593         * MODULES.html.sh (Internationalization functions): Add striconveha.
75594         * lib/striconv.c (str_iconv): Optimize the case of an empty input
75595         string.
75596         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
75597
75598 2007-01-21  Bruno Haible  <bruno@clisp.org>
75599
75600         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
75601         * lib/striconveh.c (str_iconveh): Likewise.
75602
75603 2007-01-21  Bruno Haible  <bruno@clisp.org>
75604
75605         * lib/striconveh.h (mem_iconveh): New declaration.
75606         * lib/striconveh.c (mem_iconveh): New function.
75607         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
75608
75609 2007-01-21  Bruno Haible  <bruno@clisp.org>
75610
75611         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
75612
75613         * lib/striconveh.h (mem_cd_iconveh): Change specification.
75614         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
75615         original result buffer.
75616         (str_cd_iconveh): Update.
75617         * tests/test-striconveh.c (main): Update.
75618
75619         * lib/striconv.h (mem_cd_iconv): Change specification.
75620         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
75621         result buffer.
75622         (str_cd_iconv): Update.
75623         * tests/test-striconv.c (main): Update.
75624
75625 2007-01-21  Bruno Haible  <bruno@clisp.org>
75626
75627         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
75628
75629 2007-01-20  Jim Meyering  <jim@meyering.net>
75630
75631         * lib/userspec.c (parse_with_separator): If a user or group string
75632         starts with "+", skip the corresponding name-to-ID look-up, since
75633         such a look-up must fail: user and group names may not include "+".
75634
75635 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
75636
75637         * lib/poll.c: Include sys/time.h and time.h unconditionally,
75638         since we now assume the sys_time module.
75639         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
75640         check for sys/time.h; no longer needed.
75641         * modules/poll (Depends-on): Depend on sys_time.
75642
75643 2007-01-18  Bruno Haible  <bruno@clisp.org>
75644
75645         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
75646         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
75647
75648         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
75649         gettimeofday.
75650
75651         * tests/test-gettimeofday.c: Include <time.h>.
75652         (dummy): Remove variable.
75653
75654         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
75655         gl_HEADER_SYS_TIME_H.
75656         (gl_HEADER_SYS_TIME_H): New macro.
75657
75658         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
75659         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75660         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
75661         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
75662         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75663         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
75664         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
75665         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75666         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
75667         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
75668         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75669
75670         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
75671         last change; it caused a compilation error when cross-compiling to
75672         Cygwin.
75673
75674 2007-01-18  Jim Meyering  <jim@meyering.net>
75675
75676         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
75677         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
75678         than the race-prone "test -d sys || mkdir sys".
75679         (configure.ac): Use AC_PROG_MKDIR_P.
75680         * modules/sys_select: Likewise.
75681         * modules/sys_socket: Likewise.
75682         * modules/sys_time: Likewise.
75683
75684 2007-01-18  Eric Blake  <ebb9@byu.net>
75685
75686         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
75687         replace gettimeofday.
75688         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
75689         name, to avoid infinite recursion.
75690
75691 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
75692
75693         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
75694         module sys_time.
75695         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
75696         assume timespec.h defines struct timeval.
75697         * lib/settime.c: Likewise.
75698         * lib/utimens.c: Likewise.
75699         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
75700         since we now assume the gettimeofday module.
75701         * lib/tempname.c (__gen_tempname): Likewise.
75702         * lib/gettimeofday.h: Remove.
75703         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
75704         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
75705         Include <time.h>, for 'time()'.
75706         (localtime_buffer_addr): Also use this workaround if
75707         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
75708         to simplify the uses.  All uses changed.
75709         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
75710         that #undef is inside {}, and 'const' follows type name consistently.
75711         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
75712         (gettimeofday): Do not use the maximum possible value for
75713         tv->tv_usec, since that might break usages other than ls.c.
75714         Instead, we'll leave ls.c alone.  This undoes today's patch
75715         by Bruno.  Add a compile-time warning for 1s-clock resolution;
75716         we've never observed the problem but might as well keep the
75717         canary.
75718         * lib/nanosleep.c: Include timespec.h first, for interface check.
75719         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
75720         now assume the sys_time module.
75721         * lib/tempname.c: Likewise.
75722         * lib/timespec.h: Likewise.
75723         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
75724         needed.
75725         * lib/strftime.c: Likewise.
75726         * lib/timespec.h: Likewise.
75727         * lib/posixtm.c: Include posixtm.h first, for interface check.
75728         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
75729         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
75730         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
75731         * lib/sys_time_.h: New file.
75732         * lib/timespec.h (struct timespec): Use long int, not long.
75733         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
75734         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
75735         Remove obsolescent call to AC_HEADER_TIME.
75736         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
75737         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
75738         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
75739         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
75740         Likewise.
75741         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
75742         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
75743         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
75744         into the sys_time module.  Check for gettimeofday just once.
75745         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
75746         for gettimeofday signature to just check the signature.  Merely
75747         compile it, since linking doesn't test signature.  Improve test for
75748         whether gettimeofday.o is actually needed.
75749         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
75750         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
75751         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
75752         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75753         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
75754         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
75755         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
75756         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
75757         than worrying about sys/time.h.
75758         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
75759         Don't bother worrying about TIME_WITH_SYS_TIME.
75760         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
75761         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
75762         * m4/sys_time_h.m4: New file.
75763         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
75764         Don't include sys/time.h.  Return from main rather than exiting.
75765         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
75766         all uses changed.
75767         * modules/gethrxtime (Depends-on): Add sys_time.
75768         * modules/gettime (Depends-on): Likewise.
75769         * modules/gettimeofday (Depends-on): Likewise.
75770         * modules/nanosleep (Depends-on): Likewise.
75771         * modules/settime (Depends-on): Likewise.
75772         * modules/tempname (Depends-on): Likewise.
75773         * modules/utimens (Depends-on): Likewise.
75774         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
75775         (Include): Change back to <sys/time.h>.
75776         (Maintainer): Add self.
75777         * modules/sys_time: New file.
75778         * modules/tempname (Depends-on): Add gettimeofday.
75779         * tests/test-gettimeofday.c: Include <sys/time.h>
75780         rather than gettimeofday.h.
75781
75782 2007-01-17  Bruno Haible  <bruno@clisp.org>
75783
75784         * gnulib-tool (func_get_license): Revert last patch. Instead, let
75785         the license default to GPL.
75786         (func_create_testdir): Don't complain if a module is LGPL and its
75787         tests module depends on GPLed modules.
75788
75789 2007-01-17  Bruno Haible  <bruno@clisp.org>
75790
75791         * lib/gettimeofday.c (gettimeofday): Add code for the case
75792         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
75793         maximum possible value for tv->tv_usec, rather than the minimum one.
75794
75795 2005-10-08  Martin Lambers  <marlam@marlam.de>
75796 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
75797 2007-01-16  Bruno Haible  <bruno@clisp.org>
75798
75799         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
75800         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
75801         gl_FUNC_GETTIMEOFDAY.
75802         (Include): Add gettimeofday.h.
75803         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
75804         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
75805         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
75806         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
75807         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
75808         * lib/gettimeofday.h: New file.
75809         * lib/gettimeofday.c: Include <sys/timeb.h>.
75810         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
75811         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75812         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
75813         fall back on time().
75814
75815         * tests/test-gettimeofday.c: New file.
75816         * modules/gettimeofday-tests: New file.
75817
75818 2007-01-16  Eric Blake  <ebb9@byu.net>
75819
75820         * modules/fnmatch (Depends-on): Depend on wchar.
75821         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
75822         * m4/fnmatch.m4: Likewise.
75823         * modules/mbchar (Makefile.am): Assume <wchar.h>.
75824         * m4/mbchar.m4: Likewise.
75825         * modules/mbswidth (Depends-on): Depend on wchar.
75826         * lib/mbswidth.c: Assume <wchar.h>.
75827         * m4/mbswidth.m4: Likewise.
75828         * modules/quotearg (Depends-on): Depend on wchar.
75829         * lib/quotearg.c: Assume <wchar.h>.
75830         * m4/quotearg.m4: Likewise.
75831         * modules/regex (Depends-on): Depend on wchar.
75832         * lib/regex_internal.h: Assume <wchar.h>.
75833         * m4/regex.m4: Likewise.
75834         * modules/stdint (Depends-on): Depend on wchar.
75835         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
75836         * m4/stdint.m4: Likewise.
75837         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
75838         * modules/strftime (Depends-on): Depend on wchar.
75839         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
75840         * modules/strtol (Depends-on): Depend on wchar.
75841         * lib/strtol.c: Assume <wchar.h>.
75842         * modules/wcwidth (Depends-on): Depend on wchar.
75843         * lib/wcwidth.h: Assume <wchar.h>.
75844         * m4/wcwidth.m4: Likewise.
75845
75846 2007-01-16  Bruno Haible  <bruno@clisp.org>
75847
75848         * modules/csharpexec-script: New, created from...
75849         * modules/csharpexec: ... this.
75850
75851 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
75852
75853         * modules/javaexec-script: New, created from...
75854         * modules/javaexec: ... this.
75855
75856 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75857
75858         * modules/poll (Dependencies): Add sys_select.
75859
75860 2007-01-15  Jim Meyering  <jim@meyering.net>
75861
75862         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
75863         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
75864         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
75865         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
75866
75867 2007-01-15  Bruno Haible  <bruno@clisp.org>
75868
75869         * modules/striconveh: New file.
75870         * lib/striconveh.h: New file.
75871         * lib/striconveh.c: New file.
75872         * MODULES.html.sh (Internationalization functions): Add striconveh.
75873
75874         * modules/striconveh-tests: New file.
75875         * tests/test-striconveh.c: New file.
75876
75877 2007-01-15  Bruno Haible  <bruno@clisp.org>
75878
75879         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
75880         not from GNU libiconv or GNU libc.
75881
75882 2007-01-15  Bruno Haible  <bruno@clisp.org>
75883
75884         * doc/gnulib-intro.texi (Copyright): Explain the different license
75885         terms for module descriptions, autoconf macros, tests, documentation.
75886
75887 2007-01-14  Bruno Haible  <bruno@clisp.org>
75888
75889         * modules/striconv-tests: New file.
75890         * tests/test-striconv.c: New file.
75891
75892 2007-01-14  Bruno Haible  <bruno@clisp.org>
75893
75894         * modules/iconv-tests: New file.
75895         * tests/test-iconv.c: New file.
75896
75897 2007-01-14  Bruno Haible  <bruno@clisp.org>
75898
75899         * gnulib-tool (func_get_license): For test modules, use the license of
75900         the main module.
75901
75902 2007-01-14  Bruno Haible  <bruno@clisp.org>
75903
75904         * modules/iconv (Include): Clarify that <iconv.h> can only be included
75905         if iconv is found to exist.
75906
75907 2007-01-14  Bruno Haible  <bruno@clisp.org>
75908
75909         * modules/c-ctype-tests: New file.
75910         * tests/test-c-ctype.c: New file.
75911
75912 2007-01-14  Bruno Haible  <bruno@clisp.org>
75913
75914         * modules/binary-io-tests: New file.
75915         * tests/test-binary-io.sh: New file.
75916         * tests/test-binary-io.c: New file.
75917
75918 2007-01-14  Bruno Haible  <bruno@clisp.org>
75919
75920         * modules/array-oset-tests: New file.
75921         * tests/test-array_oset.c: New file.
75922
75923 2007-01-14  Bruno Haible  <bruno@clisp.org>
75924
75925         * modules/array-list-tests: New file.
75926         * tests/test-array_list.c: New file.
75927
75928 2007-01-14  Bruno Haible  <bruno@clisp.org>
75929
75930         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
75931         and make.
75932         Reported by Simon Josefsson in
75933         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
75934
75935 2007-01-14  Bruno Haible  <bruno@clisp.org>
75936
75937         * modules/allocsa-tests: New file.
75938         * tests/test-allocsa.c: New file.
75939
75940 2007-01-14  Bruno Haible  <bruno@clisp.org>
75941
75942         * modules/fchdir (Depends-on): Add absolute-header.
75943         * modules/unistd (Depends-on): Likewise.
75944
75945 2006-12-30  Bruno Haible  <bruno@clisp.org>
75946
75947         * modules/fchdir: New file.
75948         * modules/unistd (Files): Add lib/unistd_.h.
75949         (Makefile.am): Generate unistd.h from unistd_.h.
75950         * lib/fchdir.c: New file.
75951         * lib/dirent_.h: New file.
75952         * lib/unistd_.h: New file.
75953         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
75954         * m4/fchdir.m4: New file.
75955         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
75956         (gl_HEADER_UNISTD): Invoke it.
75957         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
75958         function.
75959         * lib/backupfile.c (opendir, closedir): Undefine.
75960         * lib/chown.c (open, close): Undefine.
75961         * lib/clean-temp.c (open, close): Undefine.
75962         * lib/copy-file.c (open, close): Undefine.
75963         * lib/execute.c (open, close): Undefine.
75964         * lib/fsusage.c (open, close): Undefine.
75965         * lib/gc-gnulib.c (open, close): Undefine.
75966         * lib/getcwd.c (opendir, closedir): Undefine.
75967         * lib/glob.c (opendir, closedir): Undefine.
75968         * lib/javacomp.c (open, close): Undefine.
75969         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
75970         * lib/openat-proc.c (open, close): Undefine.
75971         * lib/pagealign_alloc.c (open, close): Undefine.
75972         * lib/pipe.c (open, close): Undefine.
75973         * lib/progreloc.c (open, close): Undefine.
75974         * lib/savedir.c (opendir, closedir): Undefine.
75975         * lib/utime.c (open, close): Undefine.
75976         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
75977
75978 2007-01-10  Bruno Haible  <bruno@clisp.org>
75979
75980         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
75981
75982 2007-01-12  Eric Blake  <ebb9@byu.net>
75983
75984         Provide a robust <wchar.h>.  Further simplifications are now
75985         possible in other modules, but not included here.
75986         * modules/wchar: New module.
75987         * m4/wchar.m4: New file.
75988         * lib/wchar_.h: Likewise.
75989         * modules/mbchar (Depends-on): Depend on wchar, as the first use
75990         of the new module.
75991         * MODULES.html.sh (Extended multibyte and wide character utilities):
75992         New section.
75993
75994 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
75995
75996         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
75997         to a reasonable default for memory allocation.
75998         (xreadlink): Don't allocate a huge buffer, to work around a buggy
75999         file system that reports garbage st_size values for symlinks.
76000         Problem reported by Liyang Hu.
76001
76002 2007-01-11  Simon Josefsson  <simon@josefsson.org>
76003
76004         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
76005         Emacs .#* auto-save files).
76006
76007 2007-01-11  Bruno Haible  <bruno@clisp.org>
76008
76009         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
76010         directory.
76011
76012 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
76013
76014         Use @...@ consistently in lib/wctype_.h.
76015         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
76016         on it being set to 1 or 0.
76017         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
76018         go back to AC_SUBSTing it.
76019         * modules/wctype (Makefile.am): Undo previous change.
76020
76021 2007-01-10  Eric Blake  <ebb9@byu.net>
76022
76023         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
76024         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
76025         * modules/wctype (Makefile.am): Likewise.
76026         Reported by Chris McGuire.
76027
76028 2007-01-10  Jim Meyering  <jim@meyering.net>
76029
76030         fts.c: a small readability/maintainability improvement
76031         * lib/fts.c (fts_read): Make this code slightly more readable and
76032         maintainable by hoisting the "sp->fts_cur = p" assignments to
76033         immediately follow the statements that set P.  Derived from
76034         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
76035
76036 2007-01-10  Eric Blake  <ebb9@byu.net>
76037
76038         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
76039         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
76040         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
76041         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
76042         Reported by Chris McGuire.
76043
76044 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76045
76046         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
76047         in sed script.
76048
76049 2007-01-09  Bruno Haible  <bruno@clisp.org>
76050
76051         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
76052         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
76053         variables.
76054         (func_module): Use them.
76055
76056 2007-01-09  Bruno Haible  <bruno@clisp.org>
76057
76058         * modules/unistr/base: New file.
76059         * lib/unistr.h: New file.
76060
76061         * modules/unistr/u8-to-u16: New file.
76062         * lib/unistr/u8-to-u16.c: New file.
76063
76064         * modules/unistr/u8-to-u32: New file.
76065         * lib/unistr/u8-to-u32.c: New file.
76066
76067         * modules/unistr/u16-to-u8: New file.
76068         * lib/unistr/u16-to-u8.c: New file.
76069
76070         * modules/unistr/u16-to-u32: New file.
76071         * lib/unistr/u16-to-u32.c: New file.
76072
76073         * modules/unistr/u32-to-u8: New file.
76074         * lib/unistr/u32-to-u8.c: New file.
76075
76076         * modules/unistr/u32-to-u16: New file.
76077         * lib/unistr/u32-to-u16.c: New file.
76078
76079         * modules/unistr/u8-check: New file.
76080         * modules/unistr/u16-check: New file.
76081         * modules/unistr/u32-check: New file.
76082         * lib/unistr/u8-check.c: New file.
76083         * lib/unistr/u16-check.c: New file.
76084         * lib/unistr/u32-check.c: New file.
76085
76086         * modules/unistr/u8-chr: New file.
76087         * modules/unistr/u16-chr: New file.
76088         * modules/unistr/u32-chr: New file.
76089         * lib/unistr/u8-chr.c: New file.
76090         * lib/unistr/u16-chr.c: New file.
76091         * lib/unistr/u32-chr.c: New file.
76092
76093         * modules/unistr/u8-cmp: New file.
76094         * modules/unistr/u16-cmp: New file.
76095         * modules/unistr/u32-cmp: New file.
76096         * lib/unistr/u8-cmp.c: New file.
76097         * lib/unistr/u16-cmp.c: New file.
76098         * lib/unistr/u32-cmp.c: New file.
76099
76100         * modules/unistr/u8-cpy: New file.
76101         * modules/unistr/u16-cpy: New file.
76102         * modules/unistr/u32-cpy: New file.
76103         * lib/unistr/u8-cpy.c: New file.
76104         * lib/unistr/u16-cpy.c: New file.
76105         * lib/unistr/u32-cpy.c: New file.
76106         * lib/unistr/u-cpy.h: New file.
76107
76108         * modules/unistr/u8-cpy-alloc: New file.
76109         * modules/unistr/u16-cpy-alloc: New file.
76110         * modules/unistr/u32-cpy-alloc: New file.
76111         * lib/unistr/u8-cpy-alloc.c: New file.
76112         * lib/unistr/u16-cpy-alloc.c: New file.
76113         * lib/unistr/u32-cpy-alloc.c: New file.
76114         * lib/unistr/u-cpy-alloc.h: New file.
76115
76116         * modules/unistr/u8-endswith: New file.
76117         * modules/unistr/u16-endswith: New file.
76118         * modules/unistr/u32-endswith: New file.
76119         * lib/unistr/u8-endswith.c: New file.
76120         * lib/unistr/u16-endswith.c: New file.
76121         * lib/unistr/u32-endswith.c: New file.
76122         * lib/unistr/u-endswith.h: New file.
76123
76124         * modules/unistr/u8-mblen: New file.
76125         * modules/unistr/u16-mblen: New file.
76126         * modules/unistr/u32-mblen: New file.
76127         * lib/unistr/u8-mblen.c: New file.
76128         * lib/unistr/u16-mblen.c: New file.
76129         * lib/unistr/u32-mblen.c: New file.
76130
76131         * modules/unistr/u8-mbtouc: New file.
76132         * modules/unistr/u16-mbtouc: New file.
76133         * modules/unistr/u32-mbtouc: New file.
76134         * lib/unistr/u8-mbtouc.c: New file.
76135         * lib/unistr/u16-mbtouc.c: New file.
76136         * lib/unistr/u32-mbtouc.c: New file.
76137
76138         * modules/unistr/u8-mbtouc-safe: New file.
76139         * modules/unistr/u16-mbtouc-safe: New file.
76140         * modules/unistr/u32-mbtouc-safe: New file.
76141         * lib/unistr/u8-mbtouc-safe.c: New file.
76142         * lib/unistr/u16-mbtouc-safe.c: New file.
76143         * lib/unistr/u32-mbtouc-safe.c: New file.
76144
76145         * modules/unistr/u8-move: New file.
76146         * modules/unistr/u16-move: New file.
76147         * modules/unistr/u32-move: New file.
76148         * lib/unistr/u8-move.c: New file.
76149         * lib/unistr/u16-move.c: New file.
76150         * lib/unistr/u32-move.c: New file.
76151         * lib/unistr/u-move.h: New file.
76152
76153         * modules/unistr/u8-next: New file.
76154         * modules/unistr/u16-next: New file.
76155         * modules/unistr/u32-next: New file.
76156         * lib/unistr/u8-next.c: New file.
76157         * lib/unistr/u16-next.c: New file.
76158         * lib/unistr/u32-next.c: New file.
76159
76160         * modules/unistr/u8-prev: New file.
76161         * modules/unistr/u16-prev: New file.
76162         * modules/unistr/u32-prev: New file.
76163         * lib/unistr/u8-prev.c: New file.
76164         * lib/unistr/u16-prev.c: New file.
76165         * lib/unistr/u32-prev.c: New file.
76166
76167         * modules/unistr/u8-set: New file.
76168         * modules/unistr/u16-set: New file.
76169         * modules/unistr/u32-set: New file.
76170         * lib/unistr/u8-set.c: New file.
76171         * lib/unistr/u16-set.c: New file.
76172         * lib/unistr/u32-set.c: New file.
76173         * lib/unistr/u-set.h: New file.
76174
76175         * modules/unistr/u8-startswith: New file.
76176         * modules/unistr/u16-startswith: New file.
76177         * modules/unistr/u32-startswith: New file.
76178         * lib/unistr/u8-startswith.c: New file.
76179         * lib/unistr/u16-startswith.c: New file.
76180         * lib/unistr/u32-startswith.c: New file.
76181         * lib/unistr/u-startswith.h: New file.
76182
76183         * modules/unistr/u8-stpcpy: New file.
76184         * modules/unistr/u16-stpcpy: New file.
76185         * modules/unistr/u32-stpcpy: New file.
76186         * lib/unistr/u8-stpcpy.c: New file.
76187         * lib/unistr/u16-stpcpy.c: New file.
76188         * lib/unistr/u32-stpcpy.c: New file.
76189         * lib/unistr/u-stpcpy.h: New file.
76190
76191         * modules/unistr/u8-stpncpy: New file.
76192         * modules/unistr/u16-stpncpy: New file.
76193         * modules/unistr/u32-stpncpy: New file.
76194         * lib/unistr/u8-stpncpy.c: New file.
76195         * lib/unistr/u16-stpncpy.c: New file.
76196         * lib/unistr/u32-stpncpy.c: New file.
76197         * lib/unistr/u-stpncpy.h: New file.
76198
76199         * modules/unistr/u8-strcat: New file.
76200         * modules/unistr/u16-strcat: New file.
76201         * modules/unistr/u32-strcat: New file.
76202         * lib/unistr/u8-strcat.c: New file.
76203         * lib/unistr/u16-strcat.c: New file.
76204         * lib/unistr/u32-strcat.c: New file.
76205         * lib/unistr/u-strcat.h: New file.
76206
76207         * modules/unistr/u8-strchr: New file.
76208         * modules/unistr/u16-strchr: New file.
76209         * modules/unistr/u32-strchr: New file.
76210         * lib/unistr/u8-strchr.c: New file.
76211         * lib/unistr/u16-strchr.c: New file.
76212         * lib/unistr/u32-strchr.c: New file.
76213
76214         * modules/unistr/u8-strcmp: New file.
76215         * modules/unistr/u16-strcmp: New file.
76216         * modules/unistr/u32-strcmp: New file.
76217         * lib/unistr/u8-strcmp.c: New file.
76218         * lib/unistr/u16-strcmp.c: New file.
76219         * lib/unistr/u32-strcmp.c: New file.
76220
76221         * modules/unistr/u8-strcpy: New file.
76222         * modules/unistr/u16-strcpy: New file.
76223         * modules/unistr/u32-strcpy: New file.
76224         * lib/unistr/u8-strcpy.c: New file.
76225         * lib/unistr/u16-strcpy.c: New file.
76226         * lib/unistr/u32-strcpy.c: New file.
76227         * lib/unistr/u-strcpy.h: New file.
76228
76229         * modules/unistr/u8-strcspn: New file.
76230         * modules/unistr/u16-strcspn: New file.
76231         * modules/unistr/u32-strcspn: New file.
76232         * lib/unistr/u8-strcspn.c: New file.
76233         * lib/unistr/u16-strcspn.c: New file.
76234         * lib/unistr/u32-strcspn.c: New file.
76235         * lib/unistr/u-strcspn.h: New file.
76236
76237         * modules/unistr/u8-strdup: New file.
76238         * modules/unistr/u16-strdup: New file.
76239         * modules/unistr/u32-strdup: New file.
76240         * lib/unistr/u8-strdup.c: New file.
76241         * lib/unistr/u16-strdup.c: New file.
76242         * lib/unistr/u32-strdup.c: New file.
76243         * lib/unistr/u-strdup.h: New file.
76244
76245         * modules/unistr/u8-strlen: New file.
76246         * modules/unistr/u16-strlen: New file.
76247         * modules/unistr/u32-strlen: New file.
76248         * lib/unistr/u8-strlen.c: New file.
76249         * lib/unistr/u16-strlen.c: New file.
76250         * lib/unistr/u32-strlen.c: New file.
76251         * lib/unistr/u-strlen.h: New file.
76252
76253         * modules/unistr/u8-strmblen: New file.
76254         * modules/unistr/u16-strmblen: New file.
76255         * modules/unistr/u32-strmblen: New file.
76256         * lib/unistr/u8-strmblen.c: New file.
76257         * lib/unistr/u16-strmblen.c: New file.
76258         * lib/unistr/u32-strmblen.c: New file.
76259
76260         * modules/unistr/u8-strmbtouc: New file.
76261         * modules/unistr/u16-strmbtouc: New file.
76262         * modules/unistr/u32-strmbtouc: New file.
76263         * lib/unistr/u8-strmbtouc.c: New file.
76264         * lib/unistr/u16-strmbtouc.c: New file.
76265         * lib/unistr/u32-strmbtouc.c: New file.
76266
76267         * modules/unistr/u8-strncat: New file.
76268         * modules/unistr/u16-strncat: New file.
76269         * modules/unistr/u32-strncat: New file.
76270         * lib/unistr/u8-strncat.c: New file.
76271         * lib/unistr/u16-strncat.c: New file.
76272         * lib/unistr/u32-strncat.c: New file.
76273         * lib/unistr/u-strncat.h: New file.
76274
76275         * modules/unistr/u8-strncmp: New file.
76276         * modules/unistr/u16-strncmp: New file.
76277         * modules/unistr/u32-strncmp: New file.
76278         * lib/unistr/u8-strncmp.c: New file.
76279         * lib/unistr/u16-strncmp.c: New file.
76280         * lib/unistr/u32-strncmp.c: New file.
76281
76282         * modules/unistr/u8-strncpy: New file.
76283         * modules/unistr/u16-strncpy: New file.
76284         * modules/unistr/u32-strncpy: New file.
76285         * lib/unistr/u8-strncpy.c: New file.
76286         * lib/unistr/u16-strncpy.c: New file.
76287         * lib/unistr/u32-strncpy.c: New file.
76288         * lib/unistr/u-strncpy.h: New file.
76289
76290         * modules/unistr/u8-strnlen: New file.
76291         * modules/unistr/u16-strnlen: New file.
76292         * modules/unistr/u32-strnlen: New file.
76293         * lib/unistr/u8-strnlen.c: New file.
76294         * lib/unistr/u16-strnlen.c: New file.
76295         * lib/unistr/u32-strnlen.c: New file.
76296         * lib/unistr/u-strnlen.h: New file.
76297
76298         * modules/unistr/u8-strpbrk: New file.
76299         * modules/unistr/u16-strpbrk: New file.
76300         * modules/unistr/u32-strpbrk: New file.
76301         * lib/unistr/u8-strpbrk.c: New file.
76302         * lib/unistr/u16-strpbrk.c: New file.
76303         * lib/unistr/u32-strpbrk.c: New file.
76304         * lib/unistr/u-strpbrk.h: New file.
76305
76306         * modules/unistr/u8-strrchr: New file.
76307         * modules/unistr/u16-strrchr: New file.
76308         * modules/unistr/u32-strrchr: New file.
76309         * lib/unistr/u8-strrchr.c: New file.
76310         * lib/unistr/u16-strrchr.c: New file.
76311         * lib/unistr/u32-strrchr.c: New file.
76312
76313         * modules/unistr/u8-strspn: New file.
76314         * modules/unistr/u16-strspn: New file.
76315         * modules/unistr/u32-strspn: New file.
76316         * lib/unistr/u8-strspn.c: New file.
76317         * lib/unistr/u16-strspn.c: New file.
76318         * lib/unistr/u32-strspn.c: New file.
76319         * lib/unistr/u-strspn.h: New file.
76320
76321         * modules/unistr/u8-strstr: New file.
76322         * modules/unistr/u16-strstr: New file.
76323         * modules/unistr/u32-strstr: New file.
76324         * lib/unistr/u8-strstr.c: New file.
76325         * lib/unistr/u16-strstr.c: New file.
76326         * lib/unistr/u32-strstr.c: New file.
76327         * lib/unistr/u-strstr.h: New file.
76328
76329         * modules/unistr/u8-strtok: New file.
76330         * modules/unistr/u16-strtok: New file.
76331         * modules/unistr/u32-strtok: New file.
76332         * lib/unistr/u8-strtok.c: New file.
76333         * lib/unistr/u16-strtok.c: New file.
76334         * lib/unistr/u32-strtok.c: New file.
76335         * lib/unistr/u-strtok.h: New file.
76336
76337         * modules/unistr/u8-uctomb: New file.
76338         * modules/unistr/u16-uctomb: New file.
76339         * modules/unistr/u32-uctomb: New file.
76340         * lib/unistr/u8-uctomb.c: New file.
76341         * lib/unistr/u16-uctomb.c: New file.
76342         * lib/unistr/u32-uctomb.c: New file.
76343
76344         * MODULES.html.sh (Unicode string functions): Add the new modules.
76345
76346 2007-01-08  Bruno Haible  <bruno@clisp.org>
76347
76348         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
76349         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
76350         subdirectories.
76351
76352 2007-01-08  Karl Berry  <karl@gnu.org>
76353
76354         * doc/error.texi: mention that main() fns must set program_name
76355         when progname is used.
76356
76357 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
76358
76359         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
76360         WCTYPE_H is empty, for the benefit of builds from non-distclean
76361         directories.  Problem reported by Eric Blake in
76362         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
76363
76364 2007-01-08  Bruno Haible  <bruno@clisp.org>
76365
76366         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
76367         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
76368         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
76369         PROVIDE_CANONICALIZE_FILENAME_MODE.
76370         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
76371
76372 2007-01-08  Bruno Haible  <bruno@clisp.org>
76373
76374         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
76375         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
76376         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
76377         * lib/fts.c: Likewise.
76378         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
76379
76380 2006-12-25  Bruno Haible  <bruno@clisp.org>
76381
76382         * modules/utf8-ucs4-safe: New file.
76383         * lib/utf8-ucs4-safe.h: New file.
76384         * lib/unistr/utf8-ucs4-safe.c: New file.
76385
76386         * modules/utf16-ucs4-safe: New file.
76387         * lib/utf16-ucs4-safe.h: New file.
76388         * lib/unistr/utf16-ucs4-safe.c: New file.
76389
76390         * MODULES.html.sh (Unicode string functions): Add the new modules.
76391
76392 2007-01-08  Bruno Haible  <bruno@clisp.org>
76393
76394         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
76395         (Depends-on): Add unitypes.
76396         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
76397         (u8_mbtouc_aux): Move out to separate file.
76398         (u8_mbtouc): Use ucs4_t, uint8_t types.
76399         * lib/unistr/utf8-ucs4.c: New file.
76400
76401         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
76402         (Depends-on): Add unitypes.
76403         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
76404         (u16_mbtouc_aux): Move out to separate file.
76405         (u16_mbtouc): Use ucs4_t, uint16_t types.
76406         * lib/unistr/utf16-ucs4.c: New file.
76407
76408         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
76409         (Depends-on): Add unitypes.
76410         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
76411         (u8_uctomb_aux): Move out to separate file.
76412         (u8_uctomb): Use ucs4_t, uint8_t types.
76413         * lib/unistr/ucs4-utf8.c: New file.
76414
76415         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
76416         (Depends-on): Add unitypes.
76417         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
76418         (u16_uctomb_aux): Move out to separate file.
76419         (u16_uctomb): Use ucs4_t, uint16_t types.
76420         * lib/unistr/ucs4-utf16.c: New file.
76421
76422 2006-12-25  Bruno Haible  <bruno@clisp.org>
76423
76424         * modules/unitypes: New file.
76425         * lib/unitypes.h: New file.
76426         * MODULES.html.sh (func_all_modules): New section "Unicode string
76427         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
76428         this section. Add unitypes.
76429
76430 2007-01-08  Bruno Haible  <bruno@clisp.org>
76431
76432         Avoid variable names that conflict with those from libtool.
76433         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
76434         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
76435         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
76436         library_names_spec to acl_library_names_spec, hardcode_* to
76437         acl_hardcode_*.
76438         Reported by Ralf Wildenhues.
76439
76440 2007-01-08  Bruno Haible  <bruno@clisp.org>
76441
76442         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
76443         definition.
76444         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
76445         definition.
76446         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
76447         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
76448         definition.
76449         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
76450         definition.
76451         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
76452         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
76453         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
76454         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
76455         definition.
76456         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
76457         definition.
76458         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
76459         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
76460         GC_USE_<algorithm>.
76461         * lib/gc-libgcrypt.c: Likewise.
76462         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
76463         * modules/gc-arctwo (configure.ac): Likewise.
76464         * modules/gc-des (configure.ac): Likewise.
76465         * modules/gc-hmac-md5 (configure.ac): Likewise.
76466         * modules/gc-hmac-sha1 (configure.ac): Likewise.
76467         * modules/gc-md2 (configure.ac): Likewise.
76468         * modules/gc-md4 (configure.ac): Likewise.
76469         * modules/gc-md5 (configure.ac): Likewise.
76470         * modules/gc-random (configure.ac): Likewise.
76471         * modules/gc-rijndael (configure.ac): Likewise.
76472         * modules/gc-sha1 (configure.ac): Likewise.
76473
76474 2007-01-08  Bruno Haible  <bruno@clisp.org>
76475
76476         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
76477         macro definition.
76478         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
76479         definition.
76480         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
76481         definition.
76482         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
76483         * modules/fcntl-safer (configure.ac): Likewise.
76484         * modules/fopen-safer (configure.ac): Likewise.
76485         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
76486         GNULIB_FWRITEERROR macro definition.
76487
76488 2007-01-08  Bruno Haible  <bruno@clisp.org>
76489
76490         * m4/gnulib-common.m4: New file.
76491         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
76492         (func_get_filelist): Add m4/gnulib-common.m4.
76493
76494 2007-01-08  Bruno Haible  <bruno@clisp.org>
76495
76496         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
76497         command.
76498
76499 2007-01-08  Jim Meyering  <jim@meyering.net>
76500
76501         Use a more robust test for a "can't happen" condition.
76502         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
76503         narrowed the st_size value.  Presuming the "can't happen" condition
76504         is true, that narrowing could conceivably convert an invalid st_size
76505         value into a valid one.  Instead, use a change based on Matthew
76506         Woehlke's original patch.
76507
76508         Slight readability improvement: use an assert-like macro
76509         in place of literal "abort ()" uses.
76510         * lib/fts.c (fts_assert): Define.
76511         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
76512         Use this macro instead of a bare 'abort'.
76513
76514 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
76515
76516         Don't worry about using IRIX 5.3's wctype.h broken definitions;
76517         simply work around them.
76518         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
76519         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
76520         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
76521         declaring.
76522         Don't bother to define as macros, since the standard doesn't require it.
76523         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
76524         longer worry about IRIX 5.3.
76525         (HAVE_WCTYPE_CTMP_BUG): Remove.
76526
76527 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
76528
76529         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
76530         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
76531         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
76532         Problems reported by Georg Schwarz for IRIX 5.3.
76533
76534         * gnulib-tool (autoconf_minversion): Take the maximum version number
76535         found, not the minimum.  Problem reported by James Youngman.
76536
76537 2007-01-03  Karl Berry  <karl@gnu.org>
76538
76539         * doc/error.texi: new file, explaining interaction with progname.
76540         * doc/gnulib.texi: include it.  Update copyright.
76541
76542 2007-01-03  Simon Josefsson  <simon@josefsson.org>
76543
76544         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
76545         AC_CANONICAL_HOST, to improve autobuild outputs.
76546
76547 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
76548             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
76549
76550         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
76551         sockets, server sockets, and other file descriptors.  Count errors
76552         to compute the return value.  Reorder the code a bit to be easier
76553         to follow.  Don't set event bits that were not requested (except
76554         POLLERR and POLLHUP).
76555
76556 2007-01-01  Bruno Haible  <bruno@clisp.org>
76557
76558         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
76559
76560 2007-01-03  Jim Meyering  <jim@meyering.net>
76561
76562         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
76563
76564 2007-01-02  Bruno Haible  <bruno@clisp.org>
76565
76566         * modules/settime (Include): Require timespec.h.
76567         * modules/nanosleep (Include): Likewise.
76568
76569 2007-01-01  Bruno Haible  <bruno@clisp.org>
76570
76571         * gnulib-tool (func_emit_copyright_notice): Bump year.
76572         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
76573
76574 2007-01-01  Bruno Haible  <bruno@clisp.org>
76575
76576         Improve support for OpenBSD.
76577         * build-aux/config.rpath (libname_spec): Export.
76578         (library_names_spec): New variable. Export.
76579         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
76580         library_names_spec from the config.rpath output. Locate shared library
76581         through the name pattern in library_names_spec.
76582
76583 2007-01-01  Eric Blake  <ebb9@byu.net>
76584
76585         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
76586
76587 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
76588
76589         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
76590         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
76591         assume the C locale, and avoid an "eval" that could cause trouble.
76592         Problem with SORT reported by Bob Proulx.
76593
76594         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
76595         Define.  Trivial patch from Henning Nielsen Lund, originally
76596         sent to bug-grep@gnu.org today.
76597
76598 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
76599
76600         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
76601         struct stat.  Problem reported by Henning Nielsen Lund.
76602         * lib/acl.c: Include acl.h first, to check interface.  Don't
76603         bother to include sys/types.h and sys/stat.h again.
76604
76605 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
76606
76607         Import the following change from libc; problem reported by
76608         Sven Verdoolaege.
76609
76610         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
76611
76612         [BZ #1373]
76613         * lib/argp.h: Remove __NTH for __argp_usage inline function.
76614
76615 2006-12-28  Jim Meyering  <jim@meyering.net>
76616
76617         * build-aux/announce-gen: Do not assume that the package
76618         builds any of tar.gz, tar.bz2, and .xdelta files.
76619         Suggestion from Simon Josefsson.
76620
76621 2006-12-28  Simon Josefsson  <simon@josefsson.org>
76622
76623         * modules/announce-gen: New file.
76624
76625 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
76626
76627         * lib/mbchar.h: Just include <wctype.h>; the wctype module
76628         handles its gotchas now.
76629         * lib/mbswidth.c: Likewise.
76630         * lib/wcwidth.h: Likewise.
76631         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
76632         and iswcntrl; the wctype module does this stuff now.
76633         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
76634         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
76635         * modules/mbchar (Depends-on): Add wctype.
76636         * modules/mbswidth (Depends-on): Likewise.
76637         * modules/wcwidth (Depends-on): Likewise.
76638
76639 2006-12-27  Eric Blake  <ebb9@byu.net>
76640
76641         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
76642         module uses more than what <wctype.h> is required to provide.
76643
76644 2006-12-26  Eric Blake  <ebb9@byu.net>
76645
76646         * gnulib-tool (sed_extract_prog): Avoid space-tab.
76647
76648 2006-12-26  Eric Blake  <ebb9@byu.net>
76649
76650         * modules/absolute-header: New module.
76651         * modules/fcntl (Depends-on): Depend on it.
76652         * modules/inttypes (Depends-on): Likewise.
76653         * modules/stdint (Depends-on): Likewise.
76654         * modules/sys_stat (Depends-on): Likewise.
76655         * modules/wctype (Depends-on): Likewise.
76656         * MODULES.html.sh (Support for building libraries and
76657         executables): Document it.
76658
76659 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
76660
76661         * gnulib-tool (SED): Remove, undoing previous change.
76662         The problem was that it broke coreutils on Solaris, because
76663         "sed --posix" leaked into a makefile.
76664         (sed): New alias, if 'alias' and GNU sed.
76665
76666 2006-12-24  Jim Meyering  <jim@meyering.net>
76667
76668         Work around an fchownat bug in glibc-2.4:
76669         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
76670         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
76671         in spite of the -P option.
76672         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
76673         New macros.
76674         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
76675         * modules/openat (Files): Add lib/fchownat.c.
76676         * lib/openat.c (fchownat): Don't define here.  Move to...
76677         * lib/fchownat.c: ...this new file.
76678
76679 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
76680
76681         Fix bug reported by Bruno Haible in
76682         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
76683         where quotearg.c didn't compile on Mac OS X 10.2 because it
76684         lacks <wchar.h> and wint_t.
76685         * lib/wctype_.h (__wctype_wint_t): New type.
76686         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
76687         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
76688         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
76689         Arg is now of type __wctype_wint_t, not wint_t.
76690         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
76691         substitute HAVE_WINT_T.
76692         * modules/wctype (Files): Add m4/wint_t.m4.
76693         (wctype.h): Substitute HAVE_WINT_T.
76694
76695 2006-12-23  Bruno Haible  <bruno@clisp.org>
76696
76697         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
76698
76699 2006-12-23  Bruno Haible  <bruno@clisp.org>
76700
76701         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
76702         S_ISLNK.
76703         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
76704         mingw.
76705
76706 2006-12-22  Bruno Haible  <bruno@clisp.org>
76707
76708         * lib/copy-file.c: Include acl.h.
76709         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
76710         Close the file descriptors only after being done with copy_acl.
76711         * modules/copy-file (Depends-on): Add acl.
76712
76713 2006-12-22  Bruno Haible  <bruno@clisp.org>
76714
76715         * gnulib-tool (SED): New variable.
76716         Use $SED instead of sed everywhere.
76717
76718 2006-12-22  Bruno Haible  <bruno@clisp.org>
76719
76720         * modules/no-c++: New file.
76721         * m4/no-c++.m4: New file.
76722         * MODULES.html.sh (Support for building libraries and executables):
76723         Add no-c++.
76724
76725 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
76726
76727         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
76728         Include <limits.h>, and use its INT_MAX to rewrite the
76729         j loop so that it does not overflow 'int'.  Problem reported by
76730         Ralf Wildenhues in
76731         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
76732         Play it safe by shifting left by 1 rather than multiplying by 2,
76733         as GCC is less likely to optimize this away when the value
76734         is signed (when it assumes overflow leads to undefined behavior).
76735         Also, don't assume time_t uses two's complement.
76736
76737 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
76738
76739         * MODULES.html.sh: New module wctype.
76740         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
76741         * lib/fnmatch.c: Don't bother to include <wchar.h> before
76742         <wctype.h>, since the new wctype module should fix this.
76743         * lib/quotearg.c: Include <wctype.h> unconditionally, since
76744         the wctype module should arrange for it.
76745         * lib/regex_internal.h: Likewise.
76746         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
76747         since the wctype module should handle this now.
76748         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
76749         * modules/fnmatch (Depends-on): Add wctype.
76750         * modules/quotearg (Depends-on): Likewise.
76751         * modules/regex (Depends-on): Likewise.
76752
76753 2006-12-19  Bruno Haible  <bruno@clisp.org>
76754
76755         * lib/strdup.h [C++]: Wrap definitions in extern "C".
76756         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
76757
76758 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76759
76760         * modules/savewd (Depends-on): Fix dependency on fcntl.
76761
76762 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
76763
76764         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
76765         conforms to C99, rather than relying on the user's environment
76766         setting of STDINT_H.
76767
76768 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
76769         and Eric Blake  <ebb9@byu.net>
76770
76771         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
76772         This is more consistent with the other defines here.
76773         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
76774         Port to z/OS.  Problem reported by Paul Gilmartin.
76775         Change local vars to use gl_ prefix rather than ac_.
76776         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
76777         with other defines.
76778         * modules/double-slash-root: New module.
76779         * modules/dirname (Files): Remove m4/double-slash-root.m4.
76780         (Depends-on): Add double-slash-root.
76781         * MODULES.html.sh (File system functions): Mention new module.
76782
76783 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
76784
76785         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
76786         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
76787         This is for the benefit of gzip, which doesn't do i18n.
76788
76789 2006-12-12  Jim Meyering  <jim@meyering.net>
76790
76791         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
76792         Reported by Andreas Schwab <schwab@suse.de>.
76793
76794 2006-12-12  Bruno Haible  <bruno@clisp.org>
76795
76796         Merge these changes.
76797         2006-09-05  Bruno Haible  <bruno@clisp.org>
76798         * lib/iconvme.c (iconv_string): No need to save and restore errno when
76799         iconv_alloc succeeded.
76800         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
76801         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
76802         test for " && dest " at the end - dest is always != NULL there. Call
76803         iconv with 4xNULL arguments initially, to reset the state. Call iconv
76804         with 2xNULL arguments, also to flush the state storage. Handle the
76805         IRIX iconv behaviour. Realloc the final result, to throw away unused
76806         memory.
76807
76808 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
76809
76810         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
76811         and fchmodat unconditionally, since glibc 2.4 has them.
76812         Problem reported by Arkadiusz Miskiewicz.
76813
76814 2006-12-10  Bruno Haible  <bruno@clisp.org>
76815
76816         * gnulib-tool (func_import): Show the include files only for those
76817         modules that are copied and specified.
76818         Reported by Karl Berry.
76819
76820 2006-12-08  Jim Meyering  <jim@meyering.net>
76821
76822         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
76823         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
76824
76825         * build-aux/announce-gen: Add two new options, both optional:
76826         --bootstrap-tools=TOOL_LIST
76827               a comma-separated list of tools, e.g.,
76828               autoconf,automake,bison,gnulib
76829         --gnulib-snapshot-date=DATE
76830               if gnulib is in the bootstrap tool list,
76831               then report this as the snapshot date.
76832               If not specified, use the current date/time.
76833               If you specify a date here, be sure it's UTC.
76834
76835 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76836
76837         * tests/test-argp-2.sh: Fix test to match actual output.
76838         (func_compare): Fix sed script to be portable.
76839
76840 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
76841
76842         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
76843         workaround for this case.  It is not autoconfigured now; offhand
76844         it's hard to see how to autoconfigure it.
76845
76846 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
76847
76848         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
76849         a directory that is about to be chowned.  Such a directory's
76850         initial file permissions should permit the owner only and this
76851         should not be changed until after the chown, since the group and
76852         other bits would be incorrect if they granted permission before
76853         the chown.
76854
76855         Fix porting problem for iswctype reported by Georg Schwarz in:
76856         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
76857         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
76858         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
76859         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
76860         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
76861
76862 2006-12-03  Jim Meyering  <jim@meyering.net>
76863
76864         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
76865         p->fts_statp may not yet be defined.
76866         (fts_read): Instead, set it in the caller, once p->fts_statp is
76867         sure to be defined, and corresponds to a top-level directory.
76868         This bug made du -x fail.  Here's the coreutils test case:
76869         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
76870         Reported by Mike Frysinger.
76871
76872 2006-12-01  Jim Meyering  <jim@meyering.net>
76873
76874         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
76875         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
76876         Reported by Simon Josefsson.
76877
76878 2006-11-30  Jim Meyering  <jim@meyering.net>
76879
76880         * m4/warning.m4: Use the all-permissive copyright notice
76881         recommended by RMS (rather than LGPL).
76882         * m4/vararrays.m4: Likewise.
76883         * m4/flexmember.m4: Likewise.
76884
76885 2006-11-29  Bruno Haible  <bruno@clisp.org>
76886
76887         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
76888         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
76889         using +=.
76890         Reported by Simon Josefsson <simon@josefsson.org>.
76891
76892 2006-11-28  James Youngman <jay@gnu.org>
76893
76894         * README: Advise users that they might find the bug-gnulib@gnu.org
76895         and autotools-announce@gnu.org mailing lists useful.
76896
76897 2006-11-28  Bruno Haible  <bruno@clisp.org>
76898
76899         * m4/ptrdiff_max.m4: Remove file.
76900
76901 2006-11-21  Bruno Haible  <bruno@clisp.org>
76902
76903         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
76904         _AC_COMPUTE_INT.
76905         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
76906         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
76907         _AC_COMPUTE_INT.
76908         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
76909         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
76910         _AC_COMPUTE_INT.
76911         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
76912
76913 2006-11-28  Jim Meyering  <jim@meyering.net>
76914
76915         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
76916         warning from "gcc -Wshadow" about shadowing the builtin.
76917
76918 2006-11-27  Bruno Haible  <bruno@clisp.org>
76919
76920         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
76921         _AC_COMPUTE_INT.
76922         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
76923
76924 2006-11-27  Bruno Haible  <bruno@clisp.org>
76925             Paul Eggert  <eggert@cs.ucla.edu>
76926
76927         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
76928
76929 2006-11-26  Bruno Haible  <bruno@clisp.org>
76930
76931         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
76932         noinst_LTLIBRARIES.
76933
76934 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
76935             Bruno Haible  <bruno@clisp.org>
76936
76937         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
76938         if compiling with "gcc -ansi".
76939
76940 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
76941
76942         Fix some incompatibilities with gcc -ansi -pedantic.
76943         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
76944         if compiling pedantically with GCC, unless it's C99 or later.
76945         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
76946         it mishandles gcc -ansi -pedantic as well.
76947         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
76948         if gcc -pedantic.
76949         * lib/regexec.c (check_node_accept_bytes): Don't use auto
76950         initializers for struct if -pedantic, unless it's C99 or later.
76951
76952 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
76953
76954         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
76955         Don't close an fd more than once. Identical atimes indicate
76956         success, not failure.
76957
76958 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
76959
76960         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
76961
76962 2006-11-23  Jim Meyering  <jim@meyering.net>
76963
76964         * build-aux/announce-gen: New file.  From coreutils.
76965
76966 2006-11-22  Jim Meyering  <jim@meyering.net>
76967
76968         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
76969         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
76970         (fts_read): Use a temporary to narrow the overused st_size member
76971         before using it in a switch statement.  Reported by Matthew Woehlke.
76972
76973         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
76974         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
76975
76976 2006-11-20  Bruno Haible  <bruno@clisp.org>
76977
76978         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
76979         changequote instead of pairs of brackets.
76980         Reported by Andreas Schwab <schwab@suse.de>.
76981
76982 2006-11-21  Jim Meyering  <jim@meyering.net>
76983
76984         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
76985         so as to remain compatible with older compilers.
76986         Patch from Michael Deutschmann.
76987
76988 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
76989
76990         * MODULES.html.sh (File system functions): Add openat.
76991
76992         * lib/openat.h (rpl_fstatat): New macro, if
76993         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
76994         (fstatat): Define to rpl_fstatat under the same conditions,
76995         unless COMPILING_FSTATAT.
76996         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
76997         seems to have the bug.
76998         * lib/fstatat.c: New file.
76999         * modules/openat (Files): Add it.
77000
77001 2006-11-20  Bruno Haible  <bruno@clisp.org>
77002
77003         * Makefile: New file.
77004
77005 2006-11-20  Jim Meyering  <jim@meyering.net>
77006
77007         The beginnings of syntax-related checks for gnulib.
77008         * lib/Makefile: New file.
77009         * lib/t-idcache: New script.  Ensure that the two halves of
77010         idcache.c stay in sync.
77011
77012         * lib/idcache.c: Adjust comments in user- and group- portions to
77013         be more accurate, and to be consistent with one another.
77014
77015 2006-11-20  Jim Meyering  <jim@meyering.net>
77016
77017         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
77018         continue using the flexible array member (thus, this module performs
77019         half as many malloc calls), with the addition that...
77020         (getgroup, getuser): Consistently record a non-match via an empty
77021         "name" string, and map an empty string match to a NULL return value.
77022         * modules/idcache (Depends-on): Re-add flexmember.
77023
77024         * lib/idcache.c (getuser): Remove all uses of the register keyword.
77025         (getuidbyname, getgroup, getgidbyname): Likewise.
77026
77027         Use cleaner syntax: NULL rather than 0.
77028         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
77029
77030 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
77031
77032         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
77033         It mishandled the case where the group was missing.
77034         Problem reported by Greg Schafer.
77035         * modules/idcache: Likewise.
77036
77037 2006-11-18  Jim Meyering  <jim@meyering.net>
77038
77039         * check-module (%exempt_header): Add exception for some
77040         conditionally-included headers.
77041
77042         * modules/i-ring (Depends-on): Add verify.
77043         (License): Change to LGPL.
77044
77045 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
77046
77047         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
77048         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
77049         and inttostr.h.  Use snprintf rather than uinttostr, so that
77050         LGPLed code doesn't depend on GPLed.
77051
77052 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
77053
77054         * modules/inline (License): Change from GPL to LGPL.
77055
77056 2006-11-17  Jim Meyering  <jim@meyering.net>
77057
77058         * modules/d-type (License): Switch to LGPL.
77059
77060 2006-11-15  Bruno Haible  <bruno@clisp.org>
77061
77062         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
77063
77064 2006-11-15  Eric Blake  <ebb9@byu.net>
77065
77066         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
77067         the module dependency.
77068
77069 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77070             Bruno Haible  <bruno@clisp.org>
77071
77072         * gnulib-tool (func_create_testdir): Add license consistency check.
77073
77074 2006-11-15  Eric Blake  <ebb9@byu.net>
77075
77076         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
77077         random "(cached)" in configure output.
77078
77079 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77080
77081         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
77082         test for conforming inttypes.h is both announced and cached.
77083
77084         * MODULES.html.sh (seen_modules, seen_files): New variables.
77085         (func_module): Rewrite to use a few less gnulib-tool and sed
77086         invocations.  Avoid a couple of quadratic algorithms for ...
77087         (missed_modules, missed_files): ... these, with ...
77088         (func_append, func_tmpdir): ... these new functions, from
77089         gnulib-tool.  Analogously, install traps for cleanup.
77090
77091         * tests/test-gc.c (main): Remove unused variables.
77092         * tests/test-read-file.c: Include stdlib.h, for 'free'.
77093
77094 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
77095
77096         * modules/inttostr (License): Change to LGPL.
77097
77098 2006-11-14  Eric Blake  <ebb9@byu.net>
77099
77100         * modules/tempname (License): Change to LGPL.
77101
77102 2006-11-14  Eric Blake  <ebb9@byu.net>
77103
77104         * doc/functions.texi (Function Portability): *printf functions on
77105         Cygwin now understand all POSIX size specifiers.
77106
77107 2006-11-14  Bruno Haible  <bruno@clisp.org>
77108
77109         * modules/c-ctype (License): Change to LGPL.
77110
77111 2006-11-12  Bruno Haible  <bruno@clisp.org>
77112
77113         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
77114         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
77115         for GNOME libraries, for which the include files are installed in
77116         subdirectories of $prefix/include.
77117
77118 2006-11-12  Bruno Haible  <bruno@clisp.org>
77119
77120         * m4/lib-link.m4: Require at least autoconf-2.54.
77121         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
77122         name to underscores for the --with option.
77123
77124 2006-11-13  Bruno Haible  <bruno@clisp.org>
77125
77126         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
77127         the tests directory.
77128         Reported by Ralf Wildenhues.
77129
77130 2006-11-13  Bruno Haible  <bruno@clisp.org>
77131
77132         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
77133         (func_emit_initmacro_end): Undo the override here.
77134         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
77135         Works around the famous automake error in coreutils.
77136
77137 2006-11-13  Eric Blake  <ebb9@byu.net>
77138
77139         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
77140         element, not its node.
77141
77142 2006-11-12  Bruno Haible  <bruno@clisp.org>
77143
77144         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
77145         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
77146
77147 2006-11-12  Bruno Haible  <bruno@clisp.org>
77148
77149         * gnulib-tool: New option --local-symlink.
77150         (func_usage): Document it.
77151         (lsymbolic): New variable.
77152         (func_import, func_create_testdir): If --symlink was not specified,
77153         test whether --local-symlink was specified and the file comes from
77154         the local_gnulib_dir.
77155
77156 2006-11-12  Bruno Haible  <bruno@clisp.org>
77157
77158         * gnulib-tool (func_ln): New function.
77159         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
77160
77161 2006-11-12  Bruno Haible  <bruno@clisp.org>
77162
77163         Finish support for source files in subdirectories.
77164         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
77165         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
77166         AUTOMAKE_OPTIONS.
77167         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
77168
77169 2006-11-12  Bruno Haible  <bruno@clisp.org>
77170
77171         * gnulib-tool (func_get_automake_snippet): Synthesize also an
77172         EXTRA_lib_SOURCES augmentation.
77173         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
77174
77175 2006-11-12  Jim Meyering  <jim@meyering.net>
77176
77177         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
77178         file descriptors.  This also averts a failure on systems with
77179         native openat support when a traversed directory lacks "x" access.
77180         * lib/fts_.h: Include "i-ring.h"
77181         (struct FTS) [fts_fd_ring]: New member.
77182         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
77183         (FCHDIR): Add parentheses.
77184         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
77185         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
77186         When descending, rather than simply closing the previous
77187         fts_cwd_fd value, push that file descriptor onto the ring.
77188         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
77189         (fts_open): Initialize the new fd_ring member.
77190         (fts_close): Clear the ring.
77191         (fts_safe_changedir): When possible, use our new fd_ring to skip
77192         the diropen and fstat and dev/ino comparison that would normally
77193         accompany a virtual `chdir ("..")'.
77194
77195         * modules/fts (Depends-on): Add i-ring.
77196         * modules/i-ring: New module.
77197         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
77198         * m4/i-ring.m4: New file.
77199
77200 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77201
77202         * gnulib-tool (func_create_testdir): Fix replacement of
77203         `build-aux' in configure.ac.  Run autotools in gltests
77204         subdirectory.
77205         (func_create_testdir, func_create_megatestdir, test): There is
77206         no need for '--force' in most autotool invocations in a new
77207         tree.  Actually fail the whole test if any of the tools, or the
77208         configure or make stages fail.
77209
77210         Sync from Automake.
77211         * build-aux/gnupload: Revert last change.  Add pointer to upload
77212         instructions of the GNU Maintenance Instructions.
77213         Suggestion by Karl Berry.
77214
77215 2006-11-10  Jim Meyering  <jim@meyering.net>
77216
77217         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
77218
77219 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
77220
77221         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
77222         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
77223         (bind_textdomain_codeset) [! ENABLE_NLS]:
77224         Evaluate all the arguments.  That way, callers get compatible behavior
77225         if the arguments have side effects.  Also, it avoids some GCC
77226         diagnostics in some cases; Joel E. Denny reported problems when Bison
77227         was configured with --enable-gcc-warnigs.
77228
77229 2006-11-10  Jim Meyering  <jim@meyering.net>
77230
77231         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
77232         relevant options in CFLAGS (like -O, -fno-inline) are taken into
77233         account.
77234
77235 2006-11-10  Jim Meyering  <jim@meyering.net>
77236
77237         * modules/inline: New file/module.
77238         * modules/xalloc (Files): Remove m4/inline.m4.
77239         (Depends-on): Add inline, instead.
77240         * modules/oset: Likewise.
77241         * modules/list: Likewise.
77242
77243 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
77244
77245         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
77246         Problem reported by Matthew Woehlke.
77247
77248 2006-11-09  Bruno Haible  <bruno@clisp.org>
77249
77250         * lib/tempname.c (gen_tempname): Remove variant that invokes
77251         __gen_tempname.
77252         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
77253         __gen_tempname.
77254
77255 2006-11-08  Bruno Haible  <bruno@clisp.org>
77256
77257         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
77258         to 'yes' instead of 'cross-compiling'.
77259
77260 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
77261
77262         * lib/quotearg.h (quotearg_free): New decl.
77263         * lib/quotearg.c (quotearg_free): New function.
77264         (slot0, nslots, slotvec0, slotvec):
77265         Now file-scope so that quotearg_free can get at them.
77266
77267 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77268
77269         Sync from Automake.
77270         * build-aux/gnupload: Add missing 'gnu' to example URL.
77271         Report by Karl Berry.
77272
77273 2006-11-08  Bruno Haible  <bruno@clisp.org>
77274
77275         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
77276         Suggested by Paul Eggert.
77277
77278 2006-11-08  Jim Meyering  <jim@meyering.net>
77279
77280         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
77281         It's already included if !_LIBC.
77282         (fts_safe_changedir): Add a comment.
77283
77284 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
77285
77286         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
77287         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
77288         Matthew Woehlke.
77289
77290         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
77291         definitions up, to avoid colliding with change below.
77292         (static_inline) [HAVE_INLINE]: New macro.
77293         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
77294         Provide extern decls when !HAVE_INLINE.  Do not define unless
77295         static_inline is defined, either by us or by xmalloc.c.  Use
77296         static_inline rather than static inline.
77297         (XCALLOC): Optimize sizeof(T) = 1 case.
77298         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
77299
77300 2006-11-07  Bruno Haible  <bruno@clisp.org>
77301
77302         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
77303         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
77304         AC_C_INLINE.
77305         * modules/xalloc (Files): Add m4/inline.m4.
77306
77307 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77308
77309         * README: Fix typo.
77310         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
77311         (Miscellanous Notes): ...from this.
77312
77313 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
77314
77315         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
77316         Mention that offsetof should be used instead of sizeof.
77317         From Bruno Haible.
77318
77319 2006-11-07  Bruno Haible  <bruno@clisp.org>
77320
77321         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
77322
77323 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
77324
77325         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
77326         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
77327         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
77328         (gl_tree_add_before, gl_tree_add_after):
77329         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
77330         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
77331         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
77332         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
77333         (gl_linked_add_after, gl_linked_add_at): Likewise.
77334         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
77335         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
77336         (gl_tree_add_before, gl_tree_add_after): Likewise.
77337         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
77338         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
77339         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
77340
77341 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77342
77343         * lib/gl_oset.h: Use C comment style, not C++ comment style.
77344
77345 2006-11-06  Bruno Haible  <bruno@clisp.org>
77346
77347         * m4/inline.m4: New file.
77348         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
77349         * modules/list (Files): Add m4/inline.m4.
77350         * modules/oset (Files): Likewise.
77351
77352 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
77353
77354         * lib/idcache.c: Include <stddef.h>, for offsetof.
77355         (struct userid.name): Change from char * to a flexible array member.
77356         All uses changed.
77357         * modules/idcache (Depends-on): Add flexmember.
77358
77359         * MODULES.html.sh (Core language properties): New module flexmember.
77360         * modules/flexmember, m4/flexmember.m4: New files.
77361
77362         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
77363         inline functions that are identical with the old xnmalloc_inline,
77364         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
77365         that we can avoid some unnecessary integer multiplications and
77366         divisions in the common case where the element size is known at
77367         compile time.
77368         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
77369         needed.
77370         (xnboundedmalloc): Remove.
77371         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
77372         arguments, for consistency with rest of this header.
77373         (xcharalloc): Rewrite using XNMALLOC.
77374         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
77375         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
77376         versions have been moved to lib/xalloc.h and renamed to be the
77377         non-*_inline versions.
77378         (xmalloc, xrealloc): Implement without reference to the xnmalloc
77379         and xnrealloc functions, since those functions are now inline and
77380         now call us.
77381         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
77382         renaming described above.
77383         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
77384         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
77385         captures the dependency in AC_C_INLINE.
77386
77387         New module canonicalize-lgpl, proposed by Charles Wilson in
77388         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
77389         with a few small changes afterwards.
77390         * MODULES.html.sh (File system functions): New module
77391         canonicalize-lgpl.
77392         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
77393         and canonicalize_file_name.
77394         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
77395         * modules/canonicalize-lgpl: New files.
77396
77397 2006-11-05  Bruno Haible  <bruno@clisp.org>
77398
77399         * gnulib-tool (func_import, func_create_testdir): Create directories
77400         also for files in subdirectories of lib/.
77401
77402 2006-11-05  Bruno Haible  <bruno@clisp.org>
77403
77404         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
77405         ANSI C compliant.
77406
77407 2006-11-03  Bruno Haible  <bruno@clisp.org>
77408
77409         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
77410         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
77411         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
77412         (xnboundedmalloc): New inline function.
77413         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
77414         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
77415         xmalloc.
77416         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
77417         xmalloc.
77418         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
77419         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
77420         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
77421         xmalloc.
77422         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
77423         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
77424         xmalloc.
77425         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
77426         gl_tree_add_after): Use XMALLOC instead of xmalloc.
77427         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
77428         xmalloc.
77429         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
77430         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
77431         gl_tree_add_after): Use XMALLOC instead of xmalloc.
77432         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
77433         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
77434         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
77435         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
77436
77437 2006-11-03  Bruno Haible  <bruno@clisp.org>
77438
77439         * lib/c-ctype.h [C++]: Define functions without name mangling.
77440         * lib/fwriteerror.h [C++]: Likewise.
77441         * lib/gcd.h [C++]: Likewise.
77442         * lib/linebreak.h [C++]: Likewise.
77443
77444 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
77445
77446         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
77447         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
77448         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
77449         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
77450         Check for functions and headers just once.
77451         Check for declaration of canonicalize_file_name.
77452         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
77453
77454 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
77455
77456         * gnulib-tool (func_import): Fix typo in actioncmd.
77457
77458 2006-11-02  Bruno Haible  <bruno@clisp.org>
77459
77460         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
77461         newline sequence in the Makefile.am snippet as a space, like "make"
77462         does.
77463         Reported by Roger Persson <perrog@gmail.com>.
77464
77465 2006-11-01  Bruno Haible  <bruno@clisp.org>
77466
77467         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
77468         already declared in <string.h>.
77469         * lib/strcase.h (strncasecmp): Don't declare it if yes.
77470
77471 2006-11-01  Bruno Haible  <bruno@clisp.org>
77472
77473         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
77474         * lib/strcase.h: Include <string.h>.
77475         (strcasecmp): Define to rpl_strcasecmp here.
77476
77477 2006-11-01  Bruno Haible  <bruno@clisp.org>
77478
77479         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
77480
77481 2006-11-01  Eric Blake  <ebb9@byu.net>
77482
77483         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
77484
77485         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
77486
77487 2006-10-29  Bruno Haible  <bruno@clisp.org>
77488
77489         Make it compile in C++ mode.
77490         * lib/full-write.c (full_rw): Add a cast.
77491
77492 2006-11-01  Bruno Haible  <bruno@clisp.org>
77493
77494         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
77495         be POSIX compliant.
77496         Reported by Roger Persson <perrog@gmail.com>.
77497
77498 2006-11-01  Eric Blake  <ebb9@byu.net>
77499
77500         * lib/getopt_.h: Fix comments.
77501
77502 2006-10-31  Eric Blake  <ebb9@byu.net>
77503
77504         * modules/tmpdir (Depends-on): Add sys_stat.
77505         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
77506         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
77507         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
77508         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
77509         tempname.
77510
77511 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
77512
77513         Avoid some C++ diagnostics reported by Bruno Haible.
77514         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
77515         xmalloc.
77516         (quotearg_alloc): Use xcharalloc rather than xmalloc.
77517         (struct slotvec): Move to top level.
77518         (quotearg_n_options): Rewrite to avoid xmalloc.
77519         * lib/xalloc.h (xcharalloc): New function.
77520         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
77521         [defined __cplusplus]: Add function template that provides result
77522         type propagation.  This part of the change is from Bruno Haible.
77523
77524 2006-10-29  Bruno Haible  <bruno@clisp.org>
77525
77526         Make it compile in C++ mode.
77527         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
77528         * lib/strnlen1.c (strnlen1): Cast memchr result.
77529         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
77530         * lib/clean-temp.c (string_equals, string_hash): Add casts.
77531         (create_temp_dir): Rename local variable 'template'.
77532         (compile_csharp_using_sscli): Add cast.
77533         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
77534         * lib/findprog.c (find_in_path): Likewise.
77535         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
77536         * lib/wait-process.c (register_slave_subprocess): Likewise.
77537
77538 2006-10-22  Bruno Haible  <bruno@clisp.org>
77539
77540         * modules/tsearch: New file.
77541         * lib/tsearch.h: New file.
77542         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
77543         * m4/tsearch.m4: New file.
77544         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
77545
77546 2006-10-29  Eric Blake  <ebb9@byu.net>
77547
77548         * lib/arcfour.c: Assume config.h.
77549         * lib/arctwo.c: Likewise.
77550         * lib/base64.c: Likewise.
77551         * lib/check-version.c: Likewise.
77552         * lib/crc.c: Likewise.
77553         * lib/des.c: Likewise.
77554         * lib/gc-gnulib.c: Likewise.
77555         * lib/gc-libgcrypt.c: Likewise.
77556         * lib/gc-pbkdf2-sha1.c: Likewise.
77557         * lib/getaddrinfo.c: Likewise.
77558         * lib/getdelim.c: Likewise.
77559         * lib/getline.c: Likewise.
77560         * lib/hmac-md5.c: Likewise.
77561         * lib/hmac-sha1.c: Likewise.
77562         * lib/iconvme.c: Likewise.
77563         * lib/md2.c: Likewise.
77564         * lib/md4.c: Likewise.
77565         * lib/memxor.c: Likewise.
77566         * lib/read-file.c: Likewise.
77567         * lib/readline.c: Likewise.
77568         * lib/rijndael-alg-fst.c: Likewise.
77569         * lib/rijndael-api-fst.c: Likewise.
77570         * lib/xgetdomainname.c: Likewise.
77571
77572 2006-10-28  Eric Blake  <ebb9@byu.net>
77573
77574         * lib/xstrndup.c: Assume config.h.
77575
77576 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
77577
77578         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
77579         stat-macros.h is now for our own macros, whereas stat_h is for
77580         macros in the <sys/stat.h> name space.
77581         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
77582         (STAT_MACROS_H): Remove.
77583         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
77584         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
77585         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
77586         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
77587         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
77588         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
77589         Move these macros to ...
77590         * lib/stat_.h: here.  Don't include stat-macros.h.
77591         * lib/canonicalize.c: Don't include stat-macros.h.
77592         * lib/chown.c: Likewise.
77593         * lib/euidaccess.c: Likewise.
77594         * lib/file-type.c: Likewise.
77595         * lib/filemode.c: Likewise.
77596         * lib/glob.c: Likewise.
77597         * lib/isapipe.c: Likewise.
77598         * lib/lchown.c: Likewise.
77599         * lib/lstat.c: Likewise.
77600         * lib/mkdir-p.c: Likewise.
77601         * lib/rmdir.c: Likewise.
77602         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
77603         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
77604         unless mkdir isn't declared, to speed up 'configure'.
77605         Always create sys/stat.h, since it's unlikely any real sys/stat.h
77606         would define all the S_* symbols.
77607         * modules/canonicalize (Depends-on):
77608         Depend on sys_stat, not stat-macros.
77609         * modules/chown: Likewise.
77610         * modules/euidaccess: Likewise.
77611         * modules/filemode: Likewise.
77612         * modules/file-type: Likewise.
77613         * modules/glob: Likewise.
77614         * modules/isapipe: Likewise.
77615         * modules/lchown: Likewise.
77616         * modules/lstat: Likewise.
77617         * modules/mkancesdirs: Likewise.
77618         * modules/rmdir: Likewise.
77619         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
77620         * modules/modechange: Likewise.
77621         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
77622         (configure.ac): Remove gl_STAT_MACROS.
77623         * modules/sys_stat (Depends-on): Remove stat-macros.
77624
77625 2006-10-27  Bruno Haible  <bruno@clisp.org>
77626
77627         * m4/signed.m4: Remove file.
77628         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
77629         invocation.
77630         * modules/vasnprintf (Files): Remove m4/signed.m4.
77631
77632 2006-10-27  Bruno Haible  <bruno@clisp.org>
77633
77634         Update to GNU gettext 0.16.
77635         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
77636         m4/inttypes-h.m4, m4/signed.m4.
77637         * m4/gettext.m4: Update to GNU gettext 0.16.
77638         * m4/intl.m4: New file, from GNU gettext.
77639         * m4/intldir.m4: New file, from GNU gettext.
77640         * config/srclist.txt: Update
77641
77642 2006-10-27  Eric Blake  <ebb9@byu.net>
77643
77644         * MODULES.html.sh: Document tempname.
77645         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
77646         dependencies.
77647         (Files): Move lib/tempname.c...
77648         * modules/tempname: ...to this new module.
77649         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
77650         (gl_PREREQ_TEMPNAME): Move...
77651         * m4/tempname.m4: ...to this new file.
77652         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
77653         * modules/sys_stat (Depends-on): Add stat-macros.
77654         * lib/stat_.h (includes): Pick up stat macros.
77655         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
77656         if stat macros are broken.
77657         * lib/tempname.c (includes): No need to include "stat-macros.h".
77658         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
77659         (direxists, __path_search) [!_LIBC]: Don't compile these in
77660         gnulib; the tmpdir module covers that.
77661         * lib/tempname.h: New file.
77662
77663 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
77664
77665         * COPYING: Explain how gnulib-tool converts licence headers.
77666         Almost all wording by Eric Blake.
77667
77668 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
77669
77670         * lib/mbchar.h (is_basic_table): Make read-only.
77671         * lib/mbchar.c (is_basic_table): Likewise.
77672         Reported by John Darrington.
77673
77674 2006-10-25  Bruno Haible  <bruno@clisp.org>
77675
77676         * lib/progname.h (set_program_name): Undefine before defining.
77677
77678 2006-10-25  Bruno Haible  <bruno@clisp.org>
77679
77680         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
77681         false for non-gcc C++ compilers.
77682         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
77683
77684 2006-10-24  Bruno Haible  <bruno@clisp.org>
77685
77686         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
77687         iconv implementations like Irix iconv.
77688
77689 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
77690
77691         * modules/vararrays: New file.
77692         * m4/vararrays.m4: New file, taken from diffutils.
77693         * MODULES.html.sh: New module vararrays.
77694
77695 2006-10-24  Karl Berry  <karl@gnu.org>
77696
77697         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
77698         Don't call GNU Unix.
77699
77700 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77701
77702         * users.txt: Add Libtool.
77703
77704         Sync from Libtool:
77705
77706         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
77707
77708         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
77709         to gnulib's policy of including config.h unconditionally.
77710
77711 2006-10-24  Bruno Haible  <bruno@clisp.org>
77712
77713         * modules/wcwidth (Files): Add m4/wint_t.m4.
77714         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
77715         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
77716
77717 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
77718
77719         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
77720         to pacify GCC with some -W flags enabled.  Problem reported by
77721         Bruno Haible.
77722
77723 2006-10-24  Jim Meyering  <jim@meyering.net>
77724
77725         * MODULES.html.sh: Remove uinttostr.  It's not a module.
77726         Reported by Karl Berry.
77727
77728 2006-10-23  Bruno Haible  <bruno@clisp.org>
77729
77730         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
77731
77732 2006-10-24  Bruno Haible  <bruno@clisp.org>
77733
77734         * lib/gl_list.h: Use C comment style, not C++ comment style.
77735
77736 2006-10-23  Eric Blake  <ebb9@byu.net>
77737
77738         * lib/getaddrinfo.c (includes): Add missing include.
77739
77740 2006-10-23  Bruno Haible  <bruno@clisp.org>
77741             Paul Eggert  <eggert@cs.ucla.edu>
77742
77743         Ability to rename obstack_free.
77744         * lib/obstack.h (__obstack_free): New macro. Declare instead of
77745         obstack_free.
77746         (obstack_free): Invoke the __obstack_free macro.
77747         * lib/obstack.c (obstack_free): Use __obstack_free macro.
77748
77749 2006-10-23  Bruno Haible  <bruno@clisp.org>
77750             Paul Eggert  <eggert@cs.ucla.edu>
77751
77752         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
77753         __argc, __argv from the declaration. (They are defined as macros on
77754         mingw.)
77755
77756 2006-10-22  Bruno Haible  <bruno@clisp.org>
77757
77758         * doc/gnulib-intro.texi: New file.
77759         * doc/gnulib.texi: Include it.
77760
77761 2006-10-21  Bruno Haible  <bruno@clisp.org>
77762
77763         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
77764         "Introduction", "Miscellanous Notes", "Particular Modules".
77765
77766 2006-10-21  Bruno Haible  <bruno@clisp.org>
77767
77768         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77769         Change mostlyclean-local rule to avoid sh syntax error from bash
77770         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
77771
77772 2006-10-23  Jim Meyering  <jim@meyering.net>
77773
77774         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
77775         in place of snprintf.
77776
77777         * modules/inttostr (Files): Add lib/uinttostr.c.
77778         * lib/uinttostr.c (inttostr): New file/function.
77779         * lib/inttostr.h (uinttostr): Declare.
77780         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
77781         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
77782         Add uinttostr.
77783         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
77784
77785 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
77786
77787         * lib/canonicalize.c (ELOOP): Define if not already defined.
77788         Problem reported by Bruno Haible in
77789         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
77790
77791 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
77792
77793         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
77794         Problem reported by Perry Smith and Ville Laurikari.
77795
77796         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
77797         uses.
77798
77799 2006-10-19  Bruno Haible  <bruno@clisp.org>
77800
77801         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
77802         for mingw.
77803
77804 2006-10-19  Bruno Haible  <bruno@clisp.org>
77805
77806         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
77807         Needed for mingw.
77808
77809 2006-10-19  Bruno Haible  <bruno@clisp.org>
77810
77811         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
77812
77813 2006-10-19  Bruno Haible  <bruno@clisp.org>
77814
77815         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
77816         it.
77817
77818 2006-10-19  Bruno Haible  <bruno@clisp.org>
77819
77820         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
77821         invocation.
77822
77823 2006-10-19  Bruno Haible  <bruno@clisp.org>
77824
77825         * gnulib-tool (func_create_testdir): Don't include ftruncate and
77826         mountlist by default.
77827
77828 2006-10-16  Bruno Haible  <bruno@clisp.org>
77829
77830         * lib/c-strstr.c: Include c-strstr.h.
77831
77832 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
77833
77834         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
77835         in a slash.
77836
77837 2006-10-18  Bruno Haible  <bruno@clisp.org>
77838
77839         * lib/lock.h [C++]: Wrap definitions in extern "C".
77840
77841 2006-10-18  Bruno Haible  <bruno@clisp.org>
77842
77843         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
77844         gl_LIBOBJS list.
77845
77846 2006-10-18  Bruno Haible  <bruno@clisp.org>
77847
77848         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
77849
77850 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
77851
77852         * lib/xstrtol.h: Include gettext.h.
77853         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
77854         Problem reported by Eric Blake.
77855         * modules/xstrtol (Depends-on): Add gettext-h.
77856
77857 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
77858
77859         * lib/strftime.c (advance): New macro.
77860         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
77861         incomplete type, so you can't add 0 to it.  Problem and patch
77862         reported by Eelco Dolstra for dietlibc.
77863
77864 2006-10-18  Jim Meyering  <jim@meyering.net>
77865
77866         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
77867         type for a local, and rename it: s/up/user_proc/.
77868
77869 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
77870
77871         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
77872         READ_UTMP_USER_PROCESS.
77873         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
77874
77875 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
77876
77877         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
77878         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
77879
77880 2006-10-17  Eric Blake  <ebb9@byu.net>
77881
77882         * lib/sigprocmask.c (sigprocmask): Fix typo.
77883
77884         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
77885
77886         * modules/clean-temp (Makefile.am): Don't add to make output...
77887         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
77888         config.h.
77889
77890 2006-10-17  Bruno Haible  <bruno@clisp.org>
77891
77892         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
77893         differently if DEFAULT_TEXT_DOMAIN is set.
77894
77895 2006-10-16  Bruno Haible  <bruno@clisp.org>
77896
77897         * lib/clean-temp.c: Include fwriteerror.h.
77898
77899 2006-10-16  Bruno Haible  <bruno@clisp.org>
77900
77901         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
77902
77903 2006-10-16  Bruno Haible  <bruno@clisp.org>
77904
77905         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
77906         * lib/sigprocmask.h: Include <sys/types.h>.
77907         (sigset_t): Use the system's definition if present.
77908
77909 2006-10-17  Eric Blake  <ebb9@byu.net>
77910
77911         * lib/xvasprintf.c (includes): Assume config.h.
77912         * lib/xasprintf.c (includes): Likewise.
77913
77914 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
77915
77916         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
77917         at least as wide as intmax_t.
77918
77919 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
77920
77921         (Imported from Automake.)
77922         * build-aux/gnupload: Update to version 1.1 of directive file.
77923
77924 2006-10-16  Eric Blake  <ebb9@byu.net>
77925
77926         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
77927         match Automake 1.10a.
77928
77929 2006-10-14  Bruno Haible  <bruno@clisp.org>
77930
77931         * modules/sigprocmask: New file.
77932         * lib/sigprocmask.h: New file.
77933         * lib/sigprocmask.c: New file.
77934         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
77935         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
77936         request sigprocmask.o.
77937         (gl_PREREQ_SIGPROCMASK): New macro.
77938         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
77939         (Depends-on): Add sigprocmask.
77940         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
77941         gt_SIGNALBLOCKING. Test for 'raise' only once.
77942         * lib/fatal-signal.c: Include sigprocmask.h.
77943         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
77944         unblock_fatal_signals): Define always.
77945         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77946         sigprocmask.
77947
77948 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
77949
77950         Sync from Automake.
77951         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
77952         which incorrectly sets the mode of an existing destination
77953         directory.  In some cases the unpatched install-sh could do the
77954         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
77955         system.  We hope this is rare in practice, but it's clearly worth
77956         fixing.  Problem reported by Alex Unleashed in
77957         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
77958         Also, don't bother to check for -m bugs unless we're using -m;
77959         suggested by Stepan Kasal.
77960
77961 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77962
77963         Sync from Automake.
77964         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
77965         `-c' flag, so they appear at the same position as in %FASTDEP%
77966         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
77967         which ignores unknown options only after the first non-option.
77968         Bug report against M4 by Nelson H. F. Beebe.
77969
77970 2006-10-13  Jim Meyering  <jim@meyering.net>
77971
77972         Fix a bug in yesterday's change.
77973         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
77974         p->fts_statp->st_dev would be used uninitialized.
77975         Ensures that we always call fts_stat on the very first entry.
77976         Miklos Szeredi reported that find -xdev stopped working.
77977
77978 2006-10-12  Bruno Haible  <bruno@clisp.org>
77979
77980         * gnulib-tool (func_get_automake_snippet): Append an automatically
77981         computed EXTRA_DIST augmentation.
77982         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
77983         * modules/alloca-opt (Makefile.am): Likewise.
77984         * modules/allocsa (Makefile.am): Likewise.
77985         * modules/arcfour (Makefile.am): Likewise.
77986         * modules/arctwo (Makefile.am): Likewise.
77987         * modules/argmatch (Makefile.am): Likewise.
77988         * modules/argz (Makefile.am): Likewise.
77989         * modules/atexit (Makefile.am): Likewise.
77990         * modules/backupfile (Makefile.am): Likewise.
77991         * modules/byteswap (Makefile.am): Likewise.
77992         * modules/c-strtod (Makefile.am): Likewise.
77993         * modules/c-strtold (Makefile.am): Likewise.
77994         * modules/calloc (Makefile.am): Likewise.
77995         * modules/canon-host (Makefile.am): Likewise.
77996         * modules/canonicalize (Makefile.am): Likewise.
77997         * modules/chdir-long (Makefile.am): Likewise.
77998         * modules/chdir-safer (Makefile.am): Likewise.
77999         * modules/check-version (Makefile.am): Likewise.
78000         * modules/chown (Makefile.am): Likewise.
78001         * modules/cloexec (Makefile.am): Likewise.
78002         * modules/close-stream (Makefile.am): Likewise.
78003         * modules/closeout (Makefile.am): Likewise.
78004         * modules/crc (Makefile.am): Likewise.
78005         * modules/csharpexec (Makefile.am): Likewise.
78006         * modules/cycle-check (Makefile.am): Likewise.
78007         * modules/des (Makefile.am): Likewise.
78008         * modules/dev-ino (Makefile.am): Likewise.
78009         * modules/dirfd (Makefile.am): Likewise.
78010         * modules/dirname (Makefile.am): Likewise.
78011         * modules/dup2 (Makefile.am): Likewise.
78012         * modules/eealloc (Makefile.am): Likewise.
78013         * modules/error (Makefile.am): Likewise.
78014         * modules/euidaccess (Makefile.am): Likewise.
78015         * modules/exclude (Makefile.am): Likewise.
78016         * modules/exitfail (Makefile.am): Likewise.
78017         * modules/fcntl-safer (Makefile.am): Likewise.
78018         * modules/fcntl (Makefile.am): Likewise.
78019         * modules/file-type (Makefile.am): Likewise.
78020         * modules/fileblocks (Makefile.am): Likewise.
78021         * modules/filemode (Makefile.am): Likewise.
78022         * modules/filenamecat (Makefile.am): Likewise.
78023         * modules/fnmatch (Makefile.am): Likewise.
78024         * modules/fopen-safer (Makefile.am): Likewise.
78025         * modules/fpending (Makefile.am): Likewise.
78026         * modules/fprintftime (Makefile.am): Likewise.
78027         * modules/free (Makefile.am): Likewise.
78028         * modules/fsusage (Makefile.am): Likewise.
78029         * modules/ftruncate (Makefile.am): Likewise.
78030         * modules/fts (Makefile.am): Likewise.
78031         * modules/gc-arcfour (Makefile.am): Likewise.
78032         * modules/gc-des (Makefile.am): Likewise.
78033         * modules/gc-hmac-md5 (Makefile.am): Likewise.
78034         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
78035         * modules/gc-md4 (Makefile.am): Likewise.
78036         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
78037         * modules/gc-sha1 (Makefile.am): Likewise.
78038         * modules/gc (Makefile.am): Likewise.
78039         * modules/getaddrinfo (Makefile.am): Likewise.
78040         * modules/getcwd (Makefile.am): Likewise.
78041         * modules/getdelim (Makefile.am): Likewise.
78042         * modules/getdomainname (Makefile.am): Likewise.
78043         * modules/getgroups (Makefile.am): Likewise.
78044         * modules/gethostname (Makefile.am): Likewise.
78045         * modules/gethrxtime (Makefile.am): Likewise.
78046         * modules/getline (Makefile.am): Likewise.
78047         * modules/getloadavg (Makefile.am): Likewise.
78048         * modules/getlogin_r (Makefile.am): Likewise.
78049         * modules/getndelim2 (Makefile.am): Likewise.
78050         * modules/getopt (Makefile.am): Likewise.
78051         * modules/getpagesize (Makefile.am): Likewise.
78052         * modules/getpass-gnu (Makefile.am): Likewise.
78053         * modules/getpass (Makefile.am): Likewise.
78054         * modules/getsubopt (Makefile.am): Likewise.
78055         * modules/gettime (Makefile.am): Likewise.
78056         * modules/gettimeofday (Makefile.am): Likewise.
78057         * modules/getugroups (Makefile.am): Likewise.
78058         * modules/getusershell (Makefile.am): Likewise.
78059         * modules/glob (Makefile.am): Likewise.
78060         * modules/group-member (Makefile.am): Likewise.
78061         * modules/hard-locale (Makefile.am): Likewise.
78062         * modules/hash (Makefile.am): Likewise.
78063         * modules/hmac-md5 (Makefile.am): Likewise.
78064         * modules/hmac-sha1 (Makefile.am): Likewise.
78065         * modules/human (Makefile.am): Likewise.
78066         * modules/idcache (Makefile.am): Likewise.
78067         * modules/imaxabs (Makefile.am): Likewise.
78068         * modules/imaxdiv (Makefile.am): Likewise.
78069         * modules/inet_ntop (Makefile.am): Likewise.
78070         * modules/inet_pton (Makefile.am): Likewise.
78071         * modules/intprops (Makefile.am): Likewise.
78072         * modules/inttostr (Makefile.am): Likewise.
78073         * modules/inttypes (Makefile.am): Likewise.
78074         * modules/isapipe (Makefile.am): Likewise.
78075         * modules/javaversion (Makefile.am): Likewise.
78076         * modules/lchmod (Makefile.am): Likewise.
78077         * modules/lchown (Makefile.am): Likewise.
78078         * modules/localcharset (Makefile.am): Likewise.
78079         * modules/long-options (Makefile.am): Likewise.
78080         * modules/lstat (Makefile.am): Likewise.
78081         * modules/malloc (Makefile.am): Likewise.
78082         * modules/mathl (Makefile.am): Likewise.
78083         * modules/mbchar (Makefile.am): Likewise.
78084         * modules/md2 (Makefile.am): Likewise.
78085         * modules/md4 (Makefile.am): Likewise.
78086         * modules/md5 (Makefile.am): Likewise.
78087         * modules/memcasecmp (Makefile.am): Likewise.
78088         * modules/memchr (Makefile.am): Likewise.
78089         * modules/memcmp (Makefile.am): Likewise.
78090         * modules/memcoll (Makefile.am): Likewise.
78091         * modules/memcpy (Makefile.am): Likewise.
78092         * modules/memmem (Makefile.am): Likewise.
78093         * modules/memmove (Makefile.am): Likewise.
78094         * modules/mempcpy (Makefile.am): Likewise.
78095         * modules/memrchr (Makefile.am): Likewise.
78096         * modules/memset (Makefile.am): Likewise.
78097         * modules/memxor (Makefile.am): Likewise.
78098         * modules/mkancesdirs (Makefile.am): Likewise.
78099         * modules/mkdir-p (Makefile.am): Likewise.
78100         * modules/mkdir (Makefile.am): Likewise.
78101         * modules/mkdtemp (Makefile.am): Likewise.
78102         * modules/mkstemp (Makefile.am): Likewise.
78103         * modules/mktime (Makefile.am): Likewise.
78104         * modules/modechange (Makefile.am): Likewise.
78105         * modules/mountlist (Makefile.am): Likewise.
78106         * modules/nanosleep (Makefile.am): Likewise.
78107         * modules/obstack (Makefile.am): Likewise.
78108         * modules/openat (Makefile.am): Likewise.
78109         * modules/pagealign_alloc (Makefile.am): Likewise.
78110         * modules/pathmax (Makefile.am): Likewise.
78111         * modules/physmem (Makefile.am): Likewise.
78112         * modules/poll (Makefile.am): Likewise.
78113         * modules/posixtm (Makefile.am): Likewise.
78114         * modules/posixver (Makefile.am): Likewise.
78115         * modules/putenv (Makefile.am): Likewise.
78116         * modules/quote (Makefile.am): Likewise.
78117         * modules/quotearg (Makefile.am): Likewise.
78118         * modules/raise (Makefile.am): Likewise.
78119         * modules/read-file (Makefile.am): Likewise.
78120         * modules/readline (Makefile.am): Likewise.
78121         * modules/readlink (Makefile.am): Likewise.
78122         * modules/readtokens (Makefile.am): Likewise.
78123         * modules/readutmp (Makefile.am): Likewise.
78124         * modules/realloc (Makefile.am): Likewise.
78125         * modules/regex (Makefile.am): Likewise.
78126         * modules/rename-dest-slash (Makefile.am): Likewise.
78127         * modules/rename (Makefile.am): Likewise.
78128         * modules/rijndael (Makefile.am): Likewise.
78129         * modules/rmdir (Makefile.am): Likewise.
78130         * modules/rpmatch (Makefile.am): Likewise.
78131         * modules/safe-read (Makefile.am): Likewise.
78132         * modules/safe-write (Makefile.am): Likewise.
78133         * modules/same-inode (Makefile.am): Likewise.
78134         * modules/same (Makefile.am): Likewise.
78135         * modules/save-cwd (Makefile.am): Likewise.
78136         * modules/savedir (Makefile.am): Likewise.
78137         * modules/setenv (Makefile.am): Likewise.
78138         * modules/settime (Makefile.am): Likewise.
78139         * modules/sha1 (Makefile.am): Likewise.
78140         * modules/sig2str (Makefile.am): Likewise.
78141         * modules/snprintf (Makefile.am): Likewise.
78142         * modules/stat-macros (Makefile.am): Likewise.
78143         * modules/stat-time (Makefile.am): Likewise.
78144         * modules/stdbool (Makefile.am): Likewise.
78145         * modules/stdint (Makefile.am): Likewise.
78146         * modules/stdlib-safer (Makefile.am): Likewise.
78147         * modules/stpcpy (Makefile.am): Likewise.
78148         * modules/stpncpy (Makefile.am): Likewise.
78149         * modules/strcase (Makefile.am): Likewise.
78150         * modules/strcasestr (Makefile.am): Likewise.
78151         * modules/strchrnul (Makefile.am): Likewise.
78152         * modules/strcspn (Makefile.am): Likewise.
78153         * modules/strdup (Makefile.am): Likewise.
78154         * modules/strerror (Makefile.am): Likewise.
78155         * modules/strftime (Makefile.am): Likewise.
78156         * modules/strndup (Makefile.am): Likewise.
78157         * modules/strnlen (Makefile.am): Likewise.
78158         * modules/strpbrk (Makefile.am): Likewise.
78159         * modules/strsep (Makefile.am): Likewise.
78160         * modules/strstr (Makefile.am): Likewise.
78161         * modules/strtod (Makefile.am): Likewise.
78162         * modules/strtoimax (Makefile.am): Likewise.
78163         * modules/strtok_r (Makefile.am): Likewise.
78164         * modules/strtol (Makefile.am): Likewise.
78165         * modules/strtoll (Makefile.am): Likewise.
78166         * modules/strtoul (Makefile.am): Likewise.
78167         * modules/strtoull (Makefile.am): Likewise.
78168         * modules/strtoumax (Makefile.am): Likewise.
78169         * modules/strverscmp (Makefile.am): Likewise.
78170         * modules/sys_socket (Makefile.am): Likewise.
78171         * modules/sys_stat (Makefile.am): Likewise.
78172         * modules/sysexits (Makefile.am): Likewise.
78173         * modules/time_r (Makefile.am): Likewise.
78174         * modules/timegm (Makefile.am): Likewise.
78175         * modules/timespec (Makefile.am): Likewise.
78176         * modules/tmpfile-safer (Makefile.am): Likewise.
78177         * modules/trim (Makefile.am): Likewise.
78178         * modules/unistd-safer (Makefile.am): Likewise.
78179         * modules/unlinkdir (Makefile.am): Likewise.
78180         * modules/unlocked-io (Makefile.am): Likewise.
78181         * modules/userspec (Makefile.am): Likewise.
78182         * modules/utime (Makefile.am): Likewise.
78183         * modules/utimecmp (Makefile.am): Likewise.
78184         * modules/utimens (Makefile.am): Likewise.
78185         * modules/vasnprintf (Makefile.am): Likewise.
78186         * modules/vasprintf (Makefile.am): Likewise.
78187         * modules/vsnprintf (Makefile.am): Likewise.
78188         * modules/xalloc (Makefile.am): Likewise.
78189         * modules/xgetcwd (Makefile.am): Likewise.
78190         * modules/xnanosleep (Makefile.am): Likewise.
78191         * modules/xreadlink (Makefile.am): Likewise.
78192         * modules/xstrtod (Makefile.am): Likewise.
78193         * modules/xstrtol (Makefile.am): Likewise.
78194         * modules/xstrtold (Makefile.am): Likewise.
78195         * modules/yesno (Makefile.am): Likewise.
78196         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
78197
78198 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
78199
78200         * modules/error (Makefile.am): Distribute files through
78201         EXTRA_DIST, not lib_SOURCES.
78202
78203 2006-10-12  Eric Blake  <ebb9@byu.net>
78204
78205         * modules/error (Makefile.am): Distribute files in /lib.
78206         * modules/obstack (Makefile.am): Likewise.
78207
78208 2006-10-12  Bruno Haible  <bruno@clisp.org>
78209
78210         * modules/acl (Makefile.am): Distribute all files in lib/ through
78211         EXTRA_DIST.
78212         * modules/arcfour (Makefile.am): Likewise.
78213         * modules/arctwo (Makefile.am): Likewise.
78214         * modules/argmatch (Makefile.am): Likewise.
78215         * modules/argz (Makefile.am): Likewise.
78216         * modules/atexit (Makefile.am): Likewise.
78217         * modules/backupfile (Makefile.am): Likewise.
78218         * modules/c-strtod (Makefile.am): Likewise.
78219         * modules/c-strtold (Makefile.am): Likewise.
78220         * modules/calloc (Makefile.am): Likewise.
78221         * modules/canon-host (Makefile.am): Likewise.
78222         * modules/canonicalize (Makefile.am): Likewise.
78223         * modules/chdir-long (Makefile.am): Likewise.
78224         * modules/chdir-safer (Makefile.am): Likewise.
78225         * modules/check-version (Makefile.am): Likewise.
78226         * modules/chown (Makefile.am): Likewise.
78227         * modules/cloexec (Makefile.am): Likewise.
78228         * modules/close-stream (Makefile.am): Likewise.
78229         * modules/closeout (Makefile.am): Likewise.
78230         * modules/crc (Makefile.am): Likewise.
78231         * modules/cycle-check (Makefile.am): Likewise.
78232         * modules/des (Makefile.am): Likewise.
78233         * modules/dirfd (Makefile.am): Likewise.
78234         * modules/dirname (Makefile.am): Likewise.
78235         * modules/dup2 (Makefile.am): Likewise.
78236         * modules/euidaccess (Makefile.am): Likewise.
78237         * modules/exclude (Makefile.am): Likewise.
78238         * modules/exitfail (Makefile.am): Likewise.
78239         * modules/fcntl-safer (Makefile.am): Likewise.
78240         * modules/file-type (Makefile.am): Likewise.
78241         * modules/fileblocks (Makefile.am): Likewise.
78242         * modules/filemode (Makefile.am): Likewise.
78243         * modules/filenamecat (Makefile.am): Likewise.
78244         * modules/fnmatch (Makefile.am): Likewise.
78245         * modules/fopen-safer (Makefile.am): Likewise.
78246         * modules/fpending (Makefile.am): Likewise.
78247         * modules/fprintftime (Makefile.am): Likewise.
78248         * modules/free (Makefile.am): Likewise.
78249         * modules/fsusage (Makefile.am): Likewise.
78250         * modules/ftruncate (Makefile.am): Likewise.
78251         * modules/fts (Makefile.am): Likewise.
78252         * modules/gc (Makefile.am): Likewise.
78253         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
78254         * modules/getaddrinfo (Makefile.am): Likewise.
78255         * modules/getcwd (Makefile.am): Likewise.
78256         * modules/getdelim (Makefile.am): Likewise.
78257         * modules/getdomainname (Makefile.am): Likewise.
78258         * modules/getgroups (Makefile.am): Likewise.
78259         * modules/gethostname (Makefile.am): Likewise.
78260         * modules/gethrxtime (Makefile.am): Likewise.
78261         * modules/getline (Makefile.am): Likewise.
78262         * modules/getloadavg (Makefile.am): Likewise.
78263         * modules/getlogin_r (Makefile.am): Likewise.
78264         * modules/getopt (Makefile.am): Likewise.
78265         * modules/getpass (Makefile.am): Likewise.
78266         * modules/getpass-gnu (Makefile.am): Likewise.
78267         * modules/getsubopt (Makefile.am): Likewise.
78268         * modules/gettime (Makefile.am): Likewise.
78269         * modules/gettimeofday (Makefile.am): Likewise.
78270         * modules/getugroups (Makefile.am): Likewise.
78271         * modules/getusershell (Makefile.am): Likewise.
78272         * modules/glob (Makefile.am): Likewise.
78273         * modules/group-member (Makefile.am): Likewise.
78274         * modules/hard-locale (Makefile.am): Likewise.
78275         * modules/hash (Makefile.am): Likewise.
78276         * modules/hmac-md5 (Makefile.am): Likewise.
78277         * modules/hmac-sha1 (Makefile.am): Likewise.
78278         * modules/human (Makefile.am): Likewise.
78279         * modules/idcache (Makefile.am): Likewise.
78280         * modules/imaxabs (Makefile.am): Likewise.
78281         * modules/imaxdiv (Makefile.am): Likewise.
78282         * modules/inet_ntop (Makefile.am): Likewise.
78283         * modules/inet_pton (Makefile.am): Likewise.
78284         * modules/inttostr (Makefile.am): Likewise.
78285         * modules/isapipe (Makefile.am): Likewise.
78286         * modules/lchown (Makefile.am): Likewise.
78287         * modules/long-options (Makefile.am): Likewise.
78288         * modules/lstat (Makefile.am): Likewise.
78289         * modules/malloc (Makefile.am): Likewise.
78290         * modules/mathl (Makefile.am): Likewise.
78291         * modules/mbchar (Makefile.am): Likewise.
78292         * modules/md2 (Makefile.am): Likewise.
78293         * modules/md4 (Makefile.am): Likewise.
78294         * modules/md5 (Makefile.am): Likewise.
78295         * modules/memcasecmp (Makefile.am): Likewise.
78296         * modules/memchr (Makefile.am): Likewise.
78297         * modules/memcmp (Makefile.am): Likewise.
78298         * modules/memcoll (Makefile.am): Likewise.
78299         * modules/memcpy (Makefile.am): Likewise.
78300         * modules/memmem (Makefile.am): Likewise.
78301         * modules/memmove (Makefile.am): Likewise.
78302         * modules/mempcpy (Makefile.am): Likewise.
78303         * modules/memrchr (Makefile.am): Likewise.
78304         * modules/memset (Makefile.am): Likewise.
78305         * modules/memxor (Makefile.am): Likewise.
78306         * modules/mkancesdirs (Makefile.am): Likewise.
78307         * modules/mkdir (Makefile.am): Likewise.
78308         * modules/mkdir-p (Makefile.am): Likewise.
78309         * modules/mkdtemp (Makefile.am): Likewise.
78310         * modules/mkstemp (Makefile.am): Likewise.
78311         * modules/mktime (Makefile.am): Likewise.
78312         * modules/modechange (Makefile.am): Likewise.
78313         * modules/mountlist (Makefile.am): Likewise.
78314         * modules/nanosleep (Makefile.am): Likewise.
78315         * modules/openat (Makefile.am): Likewise.
78316         * modules/pagealign_alloc (Makefile.am): Likewise.
78317         * modules/physmem (Makefile.am): Likewise.
78318         * modules/poll (Makefile.am): Likewise.
78319         * modules/posixtm (Makefile.am): Likewise.
78320         * modules/posixver (Makefile.am): Likewise.
78321         * modules/putenv (Makefile.am): Likewise.
78322         * modules/quote (Makefile.am): Likewise.
78323         * modules/quotearg (Makefile.am): Likewise.
78324         * modules/raise (Makefile.am): Likewise.
78325         * modules/read-file (Makefile.am): Likewise.
78326         * modules/readline (Makefile.am): Likewise.
78327         * modules/readlink (Makefile.am): Likewise.
78328         * modules/readtokens (Makefile.am): Likewise.
78329         * modules/readutmp (Makefile.am): Likewise.
78330         * modules/realloc (Makefile.am): Likewise.
78331         * modules/regex (Makefile.am): Likewise.
78332         * modules/rename (Makefile.am): Likewise.
78333         * modules/rename-dest-slash (Makefile.am): Likewise.
78334         * modules/rijndael (Makefile.am): Likewise.
78335         * modules/rmdir (Makefile.am): Likewise.
78336         * modules/rpmatch (Makefile.am): Likewise.
78337         * modules/safe-read (Makefile.am): Likewise.
78338         * modules/safe-write (Makefile.am): Likewise.
78339         * modules/same (Makefile.am): Likewise.
78340         * modules/save-cwd (Makefile.am): Likewise.
78341         * modules/savedir (Makefile.am): Likewise.
78342         * modules/setenv (Makefile.am): Likewise.
78343         * modules/settime (Makefile.am): Likewise.
78344         * modules/sha1 (Makefile.am): Likewise.
78345         * modules/sig2str (Makefile.am): Likewise.
78346         * modules/snprintf (Makefile.am): Likewise.
78347         * modules/stdlib-safer (Makefile.am): Likewise.
78348         * modules/stpcpy (Makefile.am): Likewise.
78349         * modules/stpncpy (Makefile.am): Likewise.
78350         * modules/strcase (Makefile.am): Likewise.
78351         * modules/strcasestr (Makefile.am): Likewise.
78352         * modules/strchrnul (Makefile.am): Likewise.
78353         * modules/strcspn (Makefile.am): Likewise.
78354         * modules/strdup (Makefile.am): Likewise.
78355         * modules/strerror (Makefile.am): Likewise.
78356         * modules/strftime (Makefile.am): Likewise.
78357         * modules/strndup (Makefile.am): Likewise.
78358         * modules/strnlen (Makefile.am): Likewise.
78359         * modules/strpbrk (Makefile.am): Likewise.
78360         * modules/strsep (Makefile.am): Likewise.
78361         * modules/strstr (Makefile.am): Likewise.
78362         * modules/strtod (Makefile.am): Likewise.
78363         * modules/strtoimax (Makefile.am): Likewise.
78364         * modules/strtok_r (Makefile.am): Likewise.
78365         * modules/strtol (Makefile.am): Likewise.
78366         * modules/strtoll (Makefile.am): Likewise.
78367         * modules/strtoul (Makefile.am): Likewise.
78368         * modules/strtoull (Makefile.am): Likewise.
78369         * modules/strtoumax (Makefile.am): Likewise.
78370         * modules/strverscmp (Makefile.am): Likewise.
78371         * modules/time_r (Makefile.am): Likewise.
78372         * modules/timegm (Makefile.am): Likewise.
78373         * modules/tmpfile-safer (Makefile.am): Likewise.
78374         * modules/unistd-safer (Makefile.am): Likewise.
78375         * modules/unlinkdir (Makefile.am): Likewise.
78376         * modules/userspec (Makefile.am): Likewise.
78377         * modules/utime (Makefile.am): Likewise.
78378         * modules/utimecmp (Makefile.am): Likewise.
78379         * modules/utimens (Makefile.am): Likewise.
78380         * modules/vasnprintf (Makefile.am): Likewise.
78381         * modules/vasprintf (Makefile.am): Likewise.
78382         * modules/vsnprintf (Makefile.am): Likewise.
78383         * modules/xalloc (Makefile.am): Likewise.
78384         * modules/xgetcwd (Makefile.am): Likewise.
78385         * modules/xnanosleep (Makefile.am): Likewise.
78386         * modules/xreadlink (Makefile.am): Likewise.
78387         * modules/xstrtod (Makefile.am): Likewise.
78388         * modules/xstrtol (Makefile.am): Likewise.
78389         * modules/xstrtold (Makefile.am): Likewise.
78390         * modules/yesno (Makefile.am): Likewise.
78391
78392 2006-10-12  Jim Meyering  <jim@meyering.net>
78393
78394         * m4/getloadavg.m4: Revert the change below.
78395
78396         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
78397         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
78398         fail with a symlink, which is what coreutils' ./bootstrap now
78399         creates by default.
78400
78401 2006-10-12  Bruno Haible  <bruno@clisp.org>
78402
78403         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
78404         mingw.
78405         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
78406         MSVC and mingw explicitly.
78407
78408 2006-10-11  Simon Josefsson  <jas@extundo.com>
78409             Bruno Haible  <bruno@clisp.org>
78410
78411         Add support for multiple gnulib-tool invocations in the scope of a
78412         single configure.ac file.
78413         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
78414         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
78415         with the same contents as the _LIBADD variable.
78416         (func_emit_initmacro_start, func_emit_initmacro_end,
78417         func_emit_initmacro_done): New functions.
78418         (func_import, func_create_testdir): Invoke them. Allow the identifiers
78419         gl_LIBOBJS and gl_LTLIBOBJS.
78420
78421 2006-10-11  Bruno Haible  <bruno@clisp.org>
78422
78423         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
78424         (func_create_testdir): Don't create po/Makefile.am, don't invoke
78425         autoreconf. Instead, invoke autopoint explicitly but move back the
78426         *.m4 files from gnulib.
78427
78428 2006-10-11  Bruno Haible  <bruno@clisp.org>
78429
78430         * gnulib-tool (func_usage): Make module names after --create-testdir
78431         optional.
78432         (func_create_testdir): If no module was specified, use nearly all
78433         modules.
78434
78435 2006-10-12  Jim Meyering  <jim@meyering.net>
78436
78437         Big performance improvement for fts-based tools that use FTS_NOSTAT.
78438         Avoid spurious inode-mismatch problems on non-POSIX file systems.
78439         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
78440         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
78441         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
78442         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
78443         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
78444         (fts_set_stat_required): New function.
78445         (fts_open): Defer the calls to fts_stat, if possible or requested.
78446         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
78447         into fts_stat itself.
78448         (fts_read): Perform any required (deferred) fts_stat call.
78449         (fts_build): Likewise, for the directory we're about to open and read.
78450         In the readdir loop, carefully decide whether each entry will require
78451         an eventual call to fts_stat, using dirent.d_type info if available.
78452         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
78453         a command line argument into this function.  Update all callers.
78454         Map a return value of FTS_DOT to FTS_D for a command line argument.
78455         * modules/fts (Depends-on): Add d-type.  Alphabetize.
78456         Thanks to Miklos Szeredi for his tenacity and for the initial
78457         bug report about "find" failing on a FUSE-based file system.
78458
78459         * lib/fts.c (fts_open): Use consistent indentation.
78460
78461 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
78462
78463         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
78464         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
78465         reported by Jim Meyering.  All uses of cache variables renamed
78466         to match Autoconf's.
78467         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
78468         the other one.
78469
78470         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
78471         Fix misspelling in diagnostic.
78472
78473 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
78474
78475         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
78476         defined.  Problem reported by Matthew Woehlke.
78477
78478         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
78479         Add support for Tandem NonStop R series.
78480         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
78481         Use new macro.
78482
78483         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
78484         (has_trailing_slash): Omit size arg; all callers changed.
78485         Omit 'inline', since it doesn't help performance and we'd
78486         need to configure it.
78487         Don't count //, ///, etc. as having a trailing slash.
78488         As a side effect, this removes a C99ism reported by Matthew Woehlke.
78489         (rpl_rename_dest_slash): On failure, use rename's errno rather
78490         than (in some cases) an incorrect or junk errno.
78491         Simplify code by removing need to compute length; this does
78492         cause it to make two passes instead of one over the file name,
78493         but it's worth it.
78494
78495         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
78496         change, since Autoconf's version may no longer be appropriate now
78497         that we are using CVS Autoconf's version.  Add support for Tandem.
78498
78499 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
78500             Bruno Haible  <bruno@clisp.org>
78501
78502         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
78503         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
78504         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
78505         gl_AC_TYPE_LONG_LONG.
78506
78507         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
78508         instead of HAVE_LONG_LONG.
78509         * lib/printf-args.c (printf_fetchargs): Likewise.
78510         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
78511         * lib/vasnprintf.c (VASNPRINTF): Likewise.
78512         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
78513         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
78514         gl_AC_TYPE_LONG_LONG.
78515
78516 2006-10-11  Bruno Haible  <bruno@clisp.org>
78517
78518         * m4/longlong.m4: Add comments.
78519         * m4/ulonglong.m4: Likewise.
78520
78521 2006-10-10  Bruno Haible  <bruno@clisp.org>
78522
78523         Make it possible to #define stpcpy, strdup to aliases.
78524         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
78525         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
78526
78527 2006-10-10  Bruno Haible  <bruno@clisp.org>
78528
78529         Make it possible to #define gcd to an alias.
78530         * lib/gcd.c: Include config.h.
78531
78532 2006-10-10  Bruno Haible  <bruno@clisp.org>
78533
78534         Make it possible to #define c_isascii to an alias.
78535         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
78536         defined. Undefine the macros before defining them, to avoid gcc
78537         warnings.
78538         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
78539         define NO_C_CTYPE_MACROS early.
78540
78541 2006-10-10  Bruno Haible  <bruno@clisp.org>
78542
78543         Make it possible to #define set_program_name to an alias.
78544         * lib/progname.c: Don't undefine set_program_name; instead, undefine
78545         ENABLE_RELOCATABLE early.
78546
78547 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
78548
78549         Port to Tandem NSK OSS, which has 64-bit signed int but at most
78550         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
78551         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
78552         More generally, don't assume that 64-bit signed int is available
78553         if unsigned int is, and vice versa.
78554         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
78555         unsigned symbols, not on their signed counterparts.
78556         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
78557         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
78558         (UINT64_C, UINTMAX_C):
78559         Likewise.
78560         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
78561         unsigned counterparts.
78562         (Have_long_long, Unsigned): New macros.
78563         (Int): Renamed from INT.
78564         (strtoimax): Use the new macros.
78565         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
78566         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
78567         * modules/inttypes (inttypes.h): Substitute
78568         HAVE_UNSIGNED_LONG_LONG_INT.
78569         * modules/stdint (stdint.h): Likewise.
78570         (Files): Add m4/ulonglong.m4.
78571
78572 2006-10-10  Bruno Haible  <bruno@clisp.org>
78573
78574         Fix a gcc -Wshadow warning.
78575         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
78576         to 'bucket'.
78577         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
78578         gl_linked_indexof_from_to): Likewise.
78579         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
78580         Likewise.
78581         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
78582         Likewise.
78583         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
78584         Reported by Eric Blake.
78585
78586 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
78587
78588         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
78589         for NetBSD.  Problem reported by Bruno Haible.
78590
78591 2006-10-09  Jim Meyering  <jim@meyering.net>
78592
78593         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
78594         Patch from Bruno Haible.
78595
78596 2006-10-09  Jim Meyering  <jim@meyering.net>
78597
78598         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
78599         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
78600         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
78601
78602 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
78603
78604         Don't include <config.h> twice; this doesn't work in some cases,
78605         e.g., when config.h has "#define intmax_t long long int" and
78606         we include <config.h>, <inttypes.h>, <config.h> in that order.
78607         Problem reported by Matthew Woehlke in:
78608         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
78609         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
78610         * lib/fts-cycle.c: Don't include config.h.
78611         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
78612         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
78613         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
78614         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
78615         inttypes.h.
78616         * lib/xstrtoumax.c: Likewise.
78617         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
78618         __strtol and the like, so that this module is more like its siblings.
78619         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
78620         Remove; no longer needed now that we assume gnulib inttypes.h.
78621
78622 2006-10-08  Bruno Haible  <bruno@clisp.org>
78623
78624         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
78625         option.
78626
78627 2006-10-07  Jim Meyering  <jim@meyering.net>
78628
78629         * modules/inttypes (inttypes.h): Revert what seems to have been
78630         an inadvertent part of today's change: use "|", not "/" in the
78631         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
78632
78633 2006-10-07  Bruno Haible  <bruno@clisp.org>
78634
78635         * modules/sublist: New file.
78636
78637 2006-10-07  Bruno Haible  <bruno@clisp.org>
78638
78639         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
78640         * modules/argz (argz.h): Likewise.
78641         * modules/arpa_inet (arpa/inet.h): Likewise.
78642         * modules/byteswap (byteswap.h): Likewise.
78643         * modules/configmake (configmake.h): Likewise.
78644         * modules/fcntl (fcntl.h): Likewise.
78645         * modules/fnmatch (fnmatch.h): Likewise.
78646         * modules/getopt (getopt.h): Likewise.
78647         * modules/glob (glob.h): Likewise.
78648         * modules/inttypes (inttypes.h): Likewise.
78649         * modules/netinet_in (netinet/in.h): Likewise.
78650         * modules/poll (poll.h): Likewise.
78651         * modules/stdbool (stdbool.h): Likewise.
78652         * modules/stdint (stdint.h): Likewise.
78653         * modules/sys_select (sys/select.h): Likewise.
78654         * modules/sys_socket (sys/socket.h): Likewise.
78655         * modules/sys_stat (sys/stat.h): Likewise.
78656         * modules/sysexits (sysexits.h): Likewise.
78657         * modules/unistd (unistd.h): Likewise.
78658         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78659         Add a "DO NOT EDIT" comment to the generated file.
78660         (func_import): Likewise for gnulib-comp.m4.
78661
78662 2006-10-07  Bruno Haible  <bruno@clisp.org>
78663
78664         * lib/gl_sublist.h: New file.
78665         * lib/gl_sublist.c: New file.
78666
78667 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
78668
78669         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
78670         name (relative to the original working directory) and the file
78671         name component (relative to the temporary working directory).  All
78672         callers changed.
78673         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
78674         * lib/mkdir-p.c (make_dir_parents): Likewise.
78675         * lib/mkdir-p.h (make_dir_parents): Likewise.
78676
78677 2006-10-06  Eric Blake  <ebb9@byu.net>
78678
78679         Define several macros for use by the clean-temp module.
78680         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
78681         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
78682         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
78683
78684         * lib/clean-temp.h (close_stream_temp): New declaration.
78685         * lib/clean-temp.c (includes): Pull in headers according to what
78686         other modules are in use.
78687         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
78688
78689 2006-10-06  Bruno Haible  <bruno@clisp.org>
78690
78691         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
78692         instead of fopen, fwriteerror.
78693
78694 2006-10-06  Bruno Haible  <bruno@clisp.org>
78695
78696         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
78697         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
78698         int.
78699         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
78700         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
78701         Return an error indicator.
78702         Suggested by Eric Blake.
78703
78704 2006-10-06  Bruno Haible  <bruno@clisp.org>
78705
78706         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
78707         Reported by Eric Blake.
78708
78709 2006-10-06  Bruno Haible  <bruno@clisp.org>
78710
78711         * modules/closeout (Description): Mention stderr too.
78712
78713 2006-10-06  Bruno Haible  <bruno@clisp.org>
78714         and Paul Eggert  <eggert@cs.ucla.edu>
78715
78716         * lib/closeout.c (close_stdout): Also close stderr.
78717         * lib/closeout.h: Update comment.
78718
78719 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
78720
78721         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
78722         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
78723         * lib/dirchownmod.c: Include lchown.h.
78724         * lib/lchown.c: Don't include files that lchown.h now includes.
78725         Don't declare chown, since lchown.h now does that.
78726         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
78727         (lchown): Define to rpl_chown if lchown is declared but
78728         does not exist.  Declare using a prototype if lchown is not
78729         declared.  Add a copyright notice.
78730         * lib/mkstemp.h: Include <unistd.h>.
78731         * lib/openat.c: Include lchown.h.
78732
78733         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
78734         we now test for that separately.
78735         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
78736         rather than O_NOFOLLOW, when testing whether it's possible to
78737         avoid a race condition reliably.
78738         * lib/savewd.c (savewd_chdir): Likewise.
78739
78740         Remove macros that are no longer needed now that stdint.h is
78741         reliable.
78742         * lib/fsusage.c (UINTMAX_MAX): Remove.
78743         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
78744         * lib/utimecmp.c (SIZE_MAX): Remove.
78745
78746         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
78747
78748         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
78749         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
78750         O_NOATIME works.
78751
78752 2006-10-05  Bruno Haible  <bruno@clisp.org>
78753
78754         * lib/gl_list.h (gl_sortedlist_search_from_to,
78755         gl_sortedlist_indexof_from_to): New declarations.
78756         (gl_list_implementation): New fields sortedlist_search_from_to,
78757         sortedlist_indexof_from_to.
78758         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
78759         inline functions.
78760         * lib/gl_list.c (gl_sortedlist_search_from_to,
78761         gl_sortedlist_indexof_from_to): New functions.
78762         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
78763         function.
78764         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
78765         (gl_array_sortedlist_search_from_to): New function.
78766         (gl_array_list_implementation): Update.
78767         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
78768         function.
78769         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
78770         (gl_carray_sortedlist_search_from_to): New function.
78771         (gl_carray_list_implementation): Update.
78772         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
78773         gl_linked_sortedlist_indexof_from_to): New functions.
78774         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
78775         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
78776         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
78777         gl_tree_sortedlist_indexof_from_to): New functions.
78778         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
78779         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
78780         Update.
78781         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
78782         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
78783         Update.
78784
78785 2006-10-05  Bruno Haible  <bruno@clisp.org>
78786
78787         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
78788         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
78789         (struct gl_list_implementation): Add fields search_from_to,
78790         indexof_from_to. Remove fields search, indexof.
78791         (gl_list_search): Use the search_from_to method.
78792         (gl_list_search_from, gl_list_search_from_to): New functions.
78793         (gl_list_indexof): Use the indexof_from_to method.
78794         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
78795         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
78796         (gl_list_search_from, gl_list_search_from_to): New functions.
78797         (gl_list_indexof): Use the indexof_from_to method.
78798         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
78799         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
78800         gl_array_indexof. Add start_index, end_index arguments.
78801         (gl_array_search_from_to): Renamed from gl_array_search. Add
78802         start_index, end_index arguments.
78803         (gl_array_remove, gl_array_list_implementation): Update.
78804         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
78805         gl_carray_indexof. Add start_index, end_index arguments.
78806         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
78807         start_index, end_index arguments.
78808         (gl_carray_remove, gl_carray_list_implementation): Update.
78809         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
78810         gl_linked_search. Add start_index, end_index arguments.
78811         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
78812         start_index, end_index arguments.
78813         (gl_linked_remove): Update.
78814         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
78815         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
78816         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
78817         field to 'size_t'.
78818         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
78819         gl_tree_search. Add start_index, end_index arguments.
78820         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
78821         start_index, end_index arguments.
78822         (gl_tree_remove): Update.
78823         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
78824         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
78825         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
78826         function.
78827         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
78828         gl_tree_search. Add start_index, end_index arguments.
78829         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
78830         start_index, end_index arguments.
78831         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
78832         Update.
78833         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
78834
78835 2006-10-05  Bruno Haible  <bruno@clisp.org>
78836
78837         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
78838
78839         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
78840         fwriteerror_temp): New declarations.
78841         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
78842         (descriptors): New variable.
78843         (cleanup): First, close the descriptors.
78844         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
78845         fclose_temp, fwriteerror_temp): New functions.
78846
78847 2006-10-04  Jim Meyering  <jim@meyering.net>
78848
78849         * lib/fts.c (fts_open): Tiny comment change.
78850
78851 2006-10-04  Bruno Haible  <bruno@clisp.org>
78852
78853         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
78854         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
78855         gl_LOCK_BODY.
78856         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
78857         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
78858         gl_LOCK_EARLY_BODY.
78859         (gl_LOCK): Require gl_LOCK_BODY.
78860
78861 2006-10-04  Bruno Haible  <bruno@clisp.org>
78862
78863         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
78864         (gl_oset_search_atleast): New declaration.
78865         (struct gl_oset_implementation): Add field 'search_atleast'.
78866         (gl_oset_search_atleast): New inline function.
78867         * lib/gl_oset.c (gl_oset_search_atleast): New function.
78868         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
78869         (gl_array_oset_implementation): Update.
78870         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
78871         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
78872         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
78873
78874 2006-10-04  Bruno Haible  <bruno@clisp.org>
78875
78876         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
78877
78878 2006-10-03  Bruno Haible  <bruno@clisp.org>
78879
78880         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
78881         from gl_avltreehash_list_implementation.
78882
78883 2006-10-03  Bruno Haible  <bruno@clisp.org>
78884
78885         * lib/gl_oset.c (gl_oset_add): Fix return type.
78886
78887 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
78888
78889         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
78890
78891 2006-10-02  Eric Blake  <ebb9@byu.net>
78892
78893         * modules/strnlen (Depends-on): Add extensions.
78894
78895 2006-10-02  Eric Blake  <ebb9@byu.net>
78896
78897         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
78898         definition in 2.60+.
78899
78900 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
78901
78902         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
78903         checks.
78904
78905 2006-10-02  Bruno Haible  <bruno@clisp.org>
78906
78907         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
78908         to the AUTOMAKE_OPTIONS.
78909         Reported by Jim Meyering.
78910
78911 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
78912
78913         Work around bug in Solaris 10 /proc file system:
78914         /proc/self/fd/NNN/.. isn't the parent directory of
78915         the directory whose file descriptor is NNN.  This needs to
78916         be worked around at run time, not compile time, since a
78917         program might be built on Solaris 8, where things work, and
78918         run on Solaris 10.
78919         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
78920         to use the following interface instead:
78921         (OPENAT_BUFFER_SIZE): New macro.
78922         (openat_proc_name): New function.
78923         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
78924         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
78925         Likewise.
78926         * lib/openat-proc.c: New file.
78927         * modules/openat (Files): Add lib/openat-proc.c.
78928         (Depends-on): Add same-inode, stdbool.
78929         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
78930
78931 2006-09-29  Bruno Haible  <bruno@clisp.org>
78932
78933         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
78934         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
78935         argument. Set stdout_closed before testing for ferror, not after.
78936         (fwriteerror, fwriteerror_no_ebadf): New functions.
78937
78938 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78939
78940         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
78941
78942 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
78943
78944         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
78945         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
78946
78947 2006-09-28  Jim Meyering  <jim@meyering.net>
78948
78949         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
78950         Include <unistd.h>.
78951
78952 2006-09-28  Bruno Haible  <bruno@clisp.org>
78953
78954         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
78955         * modules/linkedhash-list (Depends-on): Likewise.
78956         * modules/rbtreehash-list (Depends-on): Likewise.
78957
78958 2006-09-28  Bruno Haible  <bruno@clisp.org>
78959
78960         * lib/strndup.h: Simplify the redefinition of strndup.
78961         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
78962         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
78963
78964 2006-09-28  Bruno Haible  <bruno@clisp.org>
78965
78966         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
78967         * lib/gl_linkedhash_list.c: Likewise.
78968         * lib/gl_rbtreehash_list.c: Likewise.
78969
78970 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
78971
78972         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
78973         getaddrinfo.
78974
78975         * lib/__fpending.h: Don't include <stdio_ext.h> unless
78976         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
78977         it causes <stdio_ext.h> to cause a compile-time error.
78978         Problem reported by Nelson H. F. Beebe.
78979         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
78980         of HAVE_DECL___PENDING.
78981
78982         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
78983         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
78984         declaration.
78985
78986 2006-09-27  Jim Meyering  <jim@meyering.net>
78987
78988         This file could end up with a definition for a function
78989         named __strndup, rather than rpl_strndup on a system with
78990         incomplete weak_alias support.
78991         * lib/strndup.c (strndup): Rename from __strndup.
78992         Remove #defines that used to map __strndup to strndup.
78993         Don't use K&R prototypes.
78994         Remove LIBC-related code, since this file is not sync'd with glibc.
78995         * lib/strndup.h: Revamp, accordingly.
78996         * m4/strndup.m4: Modernize.
78997
78998 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
78999
79000         * modules/savewd (Depends-on): Add 'raise'.
79001         * lib/savewd.c: Include <signal.h>, for 'raise'.
79002
79003 2006-09-26  Jim Meyering  <jim@meyering.net>
79004
79005         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
79006         when we detect Darwin 8.7.0's acl_get_file bug.
79007         Rearrange to perform the new (below) run-test while $LIBS
79008         contains any acl-related library.  Set USE_ACL at the end.
79009         (gl_ACL_GET_FILE): New function.
79010
79011 2006-09-26  Eric Blake  <ebb9@byu.net>
79012
79013         * lib/verror.c: Include <config.h> unconditionally.
79014
79015 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
79016
79017         * modules/clock-time (Maintainer): Add self.
79018         * modules/getlogin_r (Depends-on): Add extensions.
79019
79020 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79021
79022         * modules/clock-time: New module.
79023         * modules/nanosleep (Depends-on): Add clock-time.
79024         * modules/gethrxtime (Depends-on): Likewise.
79025         * modules/gettime (Depends-on): Likewise.
79026         * modules/settime (Depends-on): Likewise.
79027
79028         * modules/fts-lgpl: Depend on openat.
79029         * modules/mkancesdirs: Depend on savewd.
79030         * modules/mkdir-p: Likewise.
79031
79032 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79033
79034         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
79035
79036         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
79037         `gl_have_arbitrary_file_name_length_limit' to
79038         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
79039         actually works between configure runs.
79040
79041 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79042             Bruno Haible  <bruno@clisp.org>
79043
79044         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
79045
79046 2006-09-25  Jim Meyering  <jim@meyering.net>
79047
79048         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
79049         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
79050
79051 2006-09-25  Eric Blake  <ebb9@byu.net>
79052
79053         * gnulib-tool (func_import, func_create_testdir): Fix typos in
79054         exec's in 2006-09-18 patch when shuffling fds.
79055
79056 2006-09-25  Bruno Haible  <bruno@clisp.org>
79057
79058         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
79059         Reported by Jim Meyering.
79060
79061 2006-09-24  Jim Meyering  <jim@meyering.net>
79062
79063         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
79064         compare a pointer against a literal "0".  That caused failures with
79065         at least HP-UX's hpcc.
79066
79067 2006-09-22  Simon Josefsson  <jas@extundo.com>
79068
79069         * modules/gc-sha1:
79070         * modules/gc-md4:
79071         * modules/gc-hmac-sha1:
79072         * modules/gc-hmac-md5:
79073         * modules/gc-des:
79074         * modules/gc-arcfour: Distribute more files.
79075
79076 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79077
79078         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
79079         (gl_linked_iterator_from_to): Initialize struct completely.
79080         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
79081         (gl_tree_iterator_from_to): Likewise
79082         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
79083         * lib/gl_array_list.c [lint] (gl_array_iterator)
79084         (gl_array_iterator_from_to): Likewise.
79085         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
79086         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
79087         (gl_carray_iterator_from_to): Likewise.
79088
79089         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
79090         * lib/md4.c (md4_process_block): Remove unused variable.
79091         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
79092         parentheses for clarity.
79093
79094 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79095
79096         * modules/bison-i18n (Depends-on): Add gettext.
79097
79098 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79099
79100         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
79101         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
79102         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
79103         also add missing comma that caused broken test.
79104         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
79105         stdlib.h, for `abort'.
79106         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
79107         variables.
79108         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
79109         include unistd.h if present, for `rmdir'.
79110         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
79111         variables.
79112         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
79113         in the process include standard headers for prototypes.
79114         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
79115         gets declared on GNU/Linux.
79116         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
79117         unistd.h, for `rmdir'.
79118         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
79119
79120         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
79121         always true.
79122         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
79123
79124         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
79125
79126 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79127
79128         * gnulib-tool (func_version): Create output all at once.  This
79129         may help avoid triggering unnecessary SIGPIPEs, and at any
79130         rate it doesn't hurt.
79131
79132 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79133             Bruno Haible  <bruno@clisp.org>
79134
79135         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
79136         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
79137         * m4/signed.m4 (bh_C_SIGNED): Likewise.
79138
79139         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
79140         (gl_FUNC_VASPRINTF): Invoke it.
79141
79142 2006-09-22  Bruno Haible  <bruno@clisp.org>
79143
79144         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
79145         getloadavg.c as first argument.
79146
79147 2006-09-22  Bruno Haible  <bruno@clisp.org>
79148
79149         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
79150         at the beginning of the gl_INIT macro.
79151         * modules/getloadavg (configure.ac): Pass $gl_source_base to
79152         gl_GETLOADAVG.
79153
79154 2006-09-22  Bruno Haible  <bruno@clisp.org>
79155
79156         * gnulib-tool (func_create_megatestdir): Don't include the config-h
79157         module.
79158         Suggested by Ralf Wildenhues.
79159
79160 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
79161
79162         Import this patch from libc:
79163
79164         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
79165
79166         * lib/regex_internal.c (re_string_reconstruct): Handle
79167         offset < pstr->valid_raw_len && pstr->offsets_needed case.
79168         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
79169         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
79170         re_string_context_at.
79171
79172         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
79173         now requires it.
79174         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
79175         gl_REGEX now does it for us.
79176         (gl_REGEX): Add test taken from
79177         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
79178
79179         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
79180         Check that large offsets work.  Modernize Autoconf usages.
79181         Prefer "yes" to mean a good thing rather than a bad.
79182         Don't put "#define mkstemp" in config.h, as this might interfere
79183         with standard system headers that "#define mkstemp mkstemp64".
79184
79185         * modules/mkstemp (Depends-on): Add extensions, so that
79186         mkstemp is visible on some platforms.
79187         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
79188         (Include): Change to "mkstemp.h" from <stdlib.h>.
79189         (Files): Add mkstemp.h.
79190
79191         * lib/mkstemp.h: New file, since some standard headers
79192         #define mkstemp.
79193         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
79194         Include "mkstemp.h".
79195         Make the _LIBC code resemble glibc original more,
79196         e.g., use K&R style.
79197         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
79198         (mkstemp): Remove, since mkstemp.h does this for us.
79199         * lib/stdlib--.h: Include mkstemp.h.
79200
79201         Import this patch from libc:
79202
79203         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
79204
79205         * lib/tempname.c (__gen_tempname): Change attempts_min
79206         into a macro.  Use preprocessor to decide how to initialize
79207         attempts [Coverity CID 67].
79208
79209 2006-09-20  Bruno Haible  <bruno@clisp.org>
79210
79211         * lib/mkdtemp.c: Import from libc.
79212         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
79213                 * sysdeps/posix/tempname.c (__gen_tempname): Change
79214                 attempts_min into a macro.  Use preprocessor to decide how to
79215                 initialize attempts [Coverity CID 67].
79216         2001-11-27  Paul Eggert  <eggert@twinsun.com>
79217                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
79218                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
79219
79220 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79221
79222         * gnulib-tool (func_exit): New function, to allow to pass the
79223         exit status portably through the trap.  Use everywhere.
79224         (--help, --version): Signal a write error.
79225         (trap): catch SIGPIPE, for write errors.
79226         Exit at the end of the trap, with the correct exit status.
79227
79228 2006-09-19  Karl Berry  <karl@gnu.org>
79229
79230         * doc/gnulib.texi: note about the license texinfo files.
79231
79232 2006-09-19  Eric Blake  <ebb9@byu.net>
79233
79234         * gnulib-tool: Avoid space-tab.
79235
79236 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
79237
79238         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
79239         that prevented coreutils 6.1 from building.  Problem reported
79240         by Petter Reinholdtsen.
79241
79242 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
79243
79244         * gnulib-tool (avoidlist): Fix typo that broke options like
79245         --avoid=lock that are used by coreutils bootstrap.
79246
79247 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
79248
79249         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
79250         more systematically.
79251
79252 2006-09-18  Jim Meyering  <jim@meyering.net>
79253
79254         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
79255
79256 2006-09-18  Bruno Haible  <bruno@clisp.org>
79257
79258         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
79259
79260 2006-09-18  Bruno Haible  <bruno@clisp.org>
79261
79262         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
79263         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
79264         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
79265         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
79266         * m4/gettext.m4: Require autoconf >= 2.52.
79267         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
79268         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
79269         of gl_cv_header_inttypes_h.
79270
79271 2006-09-18  Bruno Haible  <bruno@clisp.org>
79272
79273         * lib/javaversion.c: Include configmake.h.
79274
79275 2006-09-18  Bruno Haible  <bruno@clisp.org>
79276
79277         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
79278         avoid that the while loops be executed in a subshell.
79279
79280 2006-09-18  Bruno Haible  <bruno@clisp.org>
79281
79282         * MODULES.html.sh (func_module): Break long lines.
79283         Suggested by Bruce Korb <bkorb@gnu.org>.
79284
79285 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79286
79287         Speed up by a factor of 1.12.
79288         * gnulib-tool (nl): New variable.
79289         (func_import): Rewrite include directive extraction to only read each
79290         directive once.
79291
79292 2006-09-17  Bruno Haible  <bruno@clisp.org>
79293
79294         * modules/javaversion (Makefile.am): Remove DEFS setting.
79295         (Depends-on): Add configmake, for PKGDATADIR definition.
79296
79297 2006-09-17  Bruno Haible  <bruno@clisp.org>
79298
79299         * gnulib-tool (func_create_testdir): Rewrite all files at once.
79300
79301 2006-09-17  Bruno Haible  <bruno@clisp.org>
79302
79303         * gnulib-tool (func_append): New function, stolen from libtool.m4.
79304         (func_modules_transitive_closure, func_modules_add_dummy,
79305         func_modules_to_filelist, func_import, func_create_testdir,
79306         func_create_megatestdir, ...): Use it wherever possible.
79307         Suggested by Ralf Wildenhues.
79308
79309 2006-09-16  Karl Berry  <karl@gnu.org>
79310
79311         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
79312         to avoid sectioning errors.
79313         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
79314         [ifinfo]: blank line after @center-ed titles.
79315         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
79316         Spell FSF address consistently with others.
79317         (These changes approved by rms.)
79318
79319 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79320
79321         Speed up by a factor of 1.61.
79322         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
79323         already checked module names again.
79324
79325 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79326
79327         Speed up by a factor of 1.13.
79328         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
79329         for new_files, and the input to func_add_or_update.
79330
79331 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79332
79333         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
79334         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
79335
79336 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
79337
79338         * modules/mkancesdirs (Depends-on): Add fcntl.
79339         * modules/savewd: New file.
79340         * MODULES.html.sh (File system functions): Add savewd.
79341
79342         * modules/configmake (Makefile.am): Add support for the
79343         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
79344
79345 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
79346
79347         * m4/savewd.m4: New file.
79348
79349 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
79350
79351         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
79352         (dirchownmod): New arg FD.  All callers changed.
79353         Use FD rather than opening the directory ourself, as opening is
79354         now the caller's responsibility.
79355         * lib/dirchownmod.h: Likewise.
79356         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
79357         hosts that require <sys/types.h> before <sys/stat.h>.  Include
79358         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
79359         (test_dir): Remove.
79360         (mkancesdirs): Return length of prefix of FILE that has already
79361         been made, or -2 if there is a child doing the work.  Redo
79362         algorithm so that it is O(N) rather than O(N**2).  Optimize away
79363         ".", and treat ".." specially since it might stray back into
79364         already-created areas.  Use a subprocess if necessary.  New arg
79365         WD; all users changed.  MAKE_DIR function should now return 1
79366         if it creates a directory that is not readable.  Return -2 if
79367         a child process is spun off.
79368         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
79369         Adjust signature to match code.
79370         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
79371         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
79372         all users changed.
79373         * lib/savewd.c, lib/savewd.h: New files.
79374
79375 2006-09-15  Jim Meyering  <jim@meyering.net>
79376
79377         * modules/rename-dest-slash: New module.
79378         * MODULES.html.sh (posix_compat): Add it here.
79379
79380         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
79381
79382 2006-09-15  Jim Meyering  <jim@meyering.net>
79383
79384         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
79385         file.
79386
79387         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
79388
79389 2006-09-15  Jim Meyering  <jim@meyering.net>
79390
79391         * lib/rename-dest-slash.c (has_trailing_slash): Use
79392         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
79393         (rpl_rename_dest_slash): Perform the cheaper trailing slash
79394         test before testing whether SRC is a directory.
79395         Suggestions from Bruno Haible.
79396
79397         Avoid a warning about an unused variable.
79398         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
79399         into the #ifdef block where it's used.
79400
79401         * lib/rename-dest-slash.c: New file.
79402
79403 2006-09-14  Bruno Haible  <bruno@clisp.org>
79404
79405         * lib/allocsa.c: Include <config.h> unconditionally.
79406         * lib/asnprintf.c: Likewise.
79407         * lib/asprintf.c: Likewise.
79408         * lib/c-strcasecmp.c: Likewise.
79409         * lib/c-strcasestr.c: Likewise.
79410         * lib/c-strncasecmp.c: Likewise.
79411         * lib/c-strstr.c: Likewise.
79412         * lib/classpath.c: Likewise.
79413         * lib/clean-temp.c: Likewise.
79414         * lib/concatpath.c: Likewise.
79415         * lib/copy-file.c: Likewise.
79416         * lib/csharpcomp.c: Likewise.
79417         * lib/csharpexec.c: Likewise.
79418         * lib/execute.c: Likewise.
79419         * lib/fatal-signal.c: Likewise.
79420         * lib/findprog.c: Likewise.
79421         * lib/fwriteerror.c: Likewise.
79422         * lib/gl_array_list.c: Likewise.
79423         * lib/gl_array_oset.c: Likewise.
79424         * lib/gl_avltree_list.c: Likewise.
79425         * lib/gl_avltree_oset.c: Likewise.
79426         * lib/gl_avltreehash_list.c: Likewise.
79427         * lib/gl_carray_list.c: Likewise.
79428         * lib/gl_linked_list.c: Likewise.
79429         * lib/gl_linkedhash_list.c: Likewise.
79430         * lib/gl_list.c: Likewise.
79431         * lib/gl_oset.c: Likewise.
79432         * lib/gl_rbtree_list.c: Likewise.
79433         * lib/gl_rbtree_oset.c: Likewise.
79434         * lib/gl_rbtreehash_list.c: Likewise.
79435         * lib/imaxabs.c: Likewise.
79436         * lib/imaxdiv.c: Likewise.
79437         * lib/javacomp.c: Likewise.
79438         * lib/javaexec.c: Likewise.
79439         * lib/javaversion.c: Likewise.
79440         * lib/linebreak.c: Likewise.
79441         * lib/localcharset.c: Likewise.
79442         * lib/lock.c: Likewise.
79443         * lib/mbchar.c: Likewise.
79444         * lib/mbswidth.c: Likewise.
79445         * lib/mkdtemp.c: Likewise.
79446         * lib/pipe.c: Likewise.
79447         * lib/printf-args.c: Likewise.
79448         * lib/printf-parse.c: Likewise.
79449         * lib/progname.c: Likewise.
79450         * lib/progreloc.c: Likewise.
79451         * lib/readlink.c: Likewise.
79452         * lib/sh-quote.c: Likewise.
79453         * lib/stpcpy.c: Likewise.
79454         * lib/stpncpy.c: Likewise.
79455         * lib/strcasecmp.c: Likewise.
79456         * lib/strcasestr.c: Likewise.
79457         * lib/strcspn.c: Likewise.
79458         * lib/striconv.c: Likewise.
79459         * lib/strncasecmp.c: Likewise.
79460         * lib/strnlen1.c: Likewise.
79461         * lib/strstr.c: Likewise.
79462         * lib/strtok_r.c: Likewise.
79463         * lib/tls.c: Likewise.
79464         * lib/tmpdir.c: Likewise.
79465         * lib/unicodeio.c: Likewise.
79466         * lib/unsetenv.c: Likewise.
79467         * lib/vasnprintf.c: Likewise.
79468         * lib/vasprintf.c: Likewise.
79469         * lib/wait-process.c: Likewise.
79470         * lib/xallocsa.c: Likewise.
79471         * lib/xsetenv.c: Likewise.
79472         * lib/xstriconv.c: Likewise.
79473
79474 2006-09-13  Simon Josefsson  <jas@extundo.com>
79475
79476         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
79477         that internally, suggested by Ralf Wildenhues
79478         <Ralf.Wildenhues@gmx.de>.
79479
79480 2006-09-13  Simon Josefsson  <jas@extundo.com>
79481
79482         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
79483         @LIBOBJS@.
79484         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79485
79486 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
79487
79488         * lib/_fpending.c: Include <config.h> unconditionally, since we no
79489         longer worry about uses that don't define HAVE_CONFIG_H.
79490         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
79491         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
79492         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
79493         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
79494         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
79495         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
79496         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
79497         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
79498         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
79499         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
79500         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
79501         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
79502         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
79503         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
79504         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
79505         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
79506         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
79507         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
79508         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
79509         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
79510         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
79511         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
79512         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
79513         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
79514         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
79515         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
79516         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
79517         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
79518         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
79519         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
79520         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
79521         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
79522         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
79523         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
79524         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
79525         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
79526         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
79527         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
79528         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
79529         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
79530         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
79531         Likewise.
79532
79533 2006-09-13  Eric Blake  <ebb9@byu.net>
79534
79535         * lib/getopt.c: Fix typo in last commit.
79536
79537 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
79538
79539         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
79540         dgettext.
79541
79542 2006-09-12  Jim Meyering  <jim@meyering.net>
79543
79544         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
79545         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
79546         Reported by Nelson H. F. Beebe.
79547
79548 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
79549
79550         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
79551         program_invocation_name and program_invocation_short_name are
79552         initialized.
79553         * lib/argp-namefrob.h: Move declarations of program_invocation_name
79554         and program_invocation_short_name to argp.h, so they are visible
79555         to user programs.
79556         * lib/argp.h: Likewise
79557
79558 2006-09-10  Bruno Haible  <bruno@clisp.org>
79559
79560         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
79561         m4/inttypes_h.m4, m4/uintmax_t.m4.
79562
79563 2006-09-10  Bruno Haible  <bruno@clisp.org>
79564
79565         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
79566         gl_AC_TYPE_UINTMAX_T.
79567
79568 2006-09-10  Bruno Haible  <bruno@clisp.org>
79569
79570         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
79571
79572 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79573
79574         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
79575         convention.  Text proposed by Bruno Haible.
79576         (struct argp_option): Document the use of N_() wrappers.
79577
79578         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
79579         '\v', and translate the two parts separately, instead of feeding
79580         the whole string to gettext.  This allows to exclude
79581         '\v' from the strings visible to the translator by writing doc
79582         strings as N_("..") "\v" N_("..").
79583
79584 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
79585
79586         * config/srclist.txt: Undo latest change; the bug was fixed.
79587
79588 2006-09-09  Bruno Haible  <bruno@clisp.org>
79589
79590         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
79591         assignments if building a library without libtool.
79592         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
79593         in func_emit_lib_Makefile_am.
79594         (func_import): When building a static library libfoo.a, arrange to
79595         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
79596         (func_create_testdir): Likewise.
79597         * modules/gc (configure.ac, Makefile.am): If building statically,
79598         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
79599         * modules/iconvme (configure.ac, Makefile.am): Likewise.
79600         * modules/striconv (configure.ac, Makefile.am): Likewise.
79601         Based on a suggestion by Ralf Wildenhues.
79602
79603 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79604
79605         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
79606         Check for unistd.h too, since Autoconf doesn't assume POSIX.
79607         Also:
79608
79609         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79610         Add year_2050_test to catch glibc bug 2821
79611         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
79612
79613         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
79614         Prefer #ifdef to #if.
79615
79616         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
79617         Return from 'main' instead of calling 'exit'.
79618
79619 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79620
79621         * lib/mktime.c (guess_time_tm): Fix bug where mktime
79622         returned the maximum time_t value rather than (time_t) -1.
79623         Problem originally reported by William Bardwell
79624         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
79625
79626         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
79627         Moved to here ...
79628         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
79629         ... from here.
79630
79631 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79632
79633         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
79634         2821 is fixed.
79635
79636 2006-09-08  Jim Meyering  <jim@meyering.net>
79637
79638         Don't make generated files read-only.  That would bother too many
79639         people.  However, do retain the ability to work when targets are
79640         read-only: remove the destination and temporary files before writing
79641         them (when generated via sed or echo), or by using the -f option for
79642         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
79643         * modules/alloca-opt, modules/argz, modules/arpa_inet:
79644         * modules/byteswap, modules/configmake, modules/fcntl:
79645         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
79646         * modules/localcharset, modules/netinet_in, modules/poll:
79647         * modules/stdbool, modules/stdint, modules/sys_select:
79648         * modules/sys_socket, modules/sys_stat, modules/sysexits:
79649
79650 2006-09-08  Jim Meyering  <jim@meyering.net>
79651
79652         Avoid new build failure on FreeBSD 6.0.
79653         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
79654         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
79655         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
79656
79657 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79658
79659         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
79660
79661 2006-09-07  Jim Meyering  <jim@meyering.net>
79662
79663         Fix global typo in last change: use chmod u-w, not chmod u-x.
79664         Spotted by Paul Eggert and Bruce Korb.
79665         * modules/alloca-opt, modules/argz, modules/arpa_inet:
79666         * modules/byteswap, modules/configmake, modules/fcntl:
79667         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
79668         * modules/localcharset, modules/netinet_in, modules/poll:
79669         * modules/stdbool, modules/stdint, modules/sys_select:
79670         * modules/sys_socket, modules/sys_stat, modules/sysexits:
79671
79672 2006-09-06  Jim Meyering  <jim@meyering.net>
79673
79674         Make generated files be read-only.
79675         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
79676         Ensure that each generated file is now read-only.
79677         * modules/argz: Likewise.
79678         * modules/arpa_inet: Likewise.
79679         * modules/byteswap: Likewise.
79680         * modules/configmake: Likewise.
79681         * modules/fcntl: Likewise.
79682         * modules/fnmatch: Likewise.
79683         * modules/getopt: Likewise.
79684         * modules/glob: Likewise.
79685         * modules/inttypes: Likewise.
79686         * modules/netinet_in: Likewise.
79687         * modules/poll: Likewise.
79688         * modules/stdbool: Likewise.
79689         * modules/stdint: Likewise.
79690         * modules/sys_select: Likewise.
79691         * modules/sys_socket: Likewise.
79692         * modules/sys_stat: Likewise.
79693         * modules/sysexits: Likewise.
79694         * modules/localcharset: Same as above, but continue using temporary
79695         file named "t-$@" (why different?) rather than the "$@-t" used
79696         everywhere else.
79697
79698         * modules/sysexits (Makefile.am): Replace literal occurrences
79699         of "sysexit.h" more readable, and more consistent, "$@".
79700
79701 2006-09-06  Bruno Haible  <bruno@clisp.org>
79702
79703         * modules/striconv: New file.
79704         * modules/xstriconv: New file.
79705         * MODULES.html.sh (Internationalization functions): Add striconv,
79706         xstriconv.
79707
79708 2006-09-06  Bruno Haible  <bruno@clisp.org>
79709
79710         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
79711         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
79712         not using libtool correctly.
79713
79714 2006-09-06  Bruno Haible  <bruno@clisp.org>
79715
79716         * lib/striconv.h: New file.
79717         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
79718         iconvstring.c.
79719         * lib/xstriconv.h: New file.
79720         * lib/xstriconv.c: New file.
79721
79722 2006-09-06  Bruno Haible  <bruno@clisp.org>
79723
79724         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
79725         lib_..._LDFLAGS.
79726
79727 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79728
79729         * lib/argz_.h: Sync from Libtool.
79730
79731         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
79732                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
79733
79734         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
79735
79736 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
79737
79738         * modules/trim: New file.
79739
79740 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
79741
79742         * lib/trim.h: New file.
79743         * lib/trim.c: New file.
79744
79745 2006-09-05  Bruno Haible  <bruno@clisp.org>
79746
79747         * MODULES.html.sh (String handling): Add trim.
79748
79749 2006-09-04  Karl Berry  <karl@gnu.org>
79750
79751         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
79752         until next release.
79753
79754 2006-09-03  Bruno Haible  <bruno@clisp.org>
79755
79756         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
79757         correctly.
79758
79759 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
79760
79761         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
79762         not gl_GETLOADAVG.  Omit unneeded semicolons.
79763         Problems reported by Ralf Wildenhues in
79764         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
79765         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
79766         at the end, which is the usual gnulib style.
79767
79768         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
79769         of doing all the work ourselves.
79770         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
79771         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
79772
79773 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
79774
79775         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
79776         Problem reported by Ralf Wildenhues in
79777         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
79778
79779         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
79780         HAVE_STRUCT_STATFS_F_FSTYPENAME.
79781
79782 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
79783
79784         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
79785         yesterday's patch by changing test -n to test -z.
79786
79787 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
79788
79789         * modules/getloadavg (Files): Add m4/getloadavg.m4.
79790         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
79791         the former is now obsolescent.
79792
79793         * modules/chdir-long (Depends-on): Add fcntl.
79794
79795 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
79796
79797         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
79798         obsolescent, and programs should use gnulib instead.
79799         * m4/getloadavg.m4: New file, with contents taken from Autoconf
79800         but with prefixes changed.
79801
79802 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
79803
79804         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
79805         or stdbool.h, because they might not exist while configuring.
79806
79807         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
79808         Don't include unistd.h or limits.h; not needed, since chdir-long.h
79809         does that for us.
79810         (O_DIRECTORY): Remove.
79811
79812 2006-08-31  Eric Blake  <ebb9@byu.net>
79813
79814         * gnulib-tool: Don't let emacs change spaces to TAB.
79815
79816 2006-08-31  Bruno Haible  <bruno@clisp.org>
79817
79818         * gnulib-tool: When calling func_import more than once, do it in a
79819         subshell.
79820         Reported by Eric Blake <ebb9@byu.net>.
79821
79822 2006-08-31  Bruno Haible  <bruno@clisp.org>
79823
79824         * gnulib-tool (nl): Remove variable.
79825         (sed_transform_lib_file): Use more robust test for config-h module.
79826         (func_import): Fix typo in 2006-08-25 patch.
79827
79828 2006-08-31  Bruno Haible  <bruno@clisp.org>
79829
79830         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
79831         specified, augment Makefile.am variables instead of assigning them.
79832
79833 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
79834
79835         Work around a bug in both the Linux and SunOS 64-bit kernels:
79836         nanosleep mishandles sleeps for longer than 2**31 seconds.
79837         Problem reported by Frank v Waveren in
79838         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
79839         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
79840         Check for nanosleep bug.
79841         (LIB_NANOSLEEP): Append clock_gettime library if needed.
79842
79843 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
79844
79845         Work around a bug in both the Linux and SunOS 64-bit kernels:
79846         nanosleep mishandles sleeps for longer than 2**31 seconds.
79847         Problem reported by Frank v Waveren in
79848         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
79849         * lib/nanosleep.c (BILLION): New constant.
79850         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
79851         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
79852         implementation.
79853
79854 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
79855
79856         * modules/nanosleep (Depends-on): Add gettime.
79857
79858 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
79859         and Simon Josefsson  <jas@extundo.com>
79860         and Oskar Liljeblad  <oskar@osk.mine.nu>
79861
79862         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
79863         * gnulib-tool (func_import): New license type 'unmodifiable license
79864         text'.
79865         * modules/fdl: Use it.  Longer description.
79866         * module/gpl, module/lgpl: New files.
79867
79868 2006-08-30  Jim Meyering  <jim@meyering.net>
79869
79870         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
79871         shadowing the parameter.
79872
79873 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79874
79875         Sync from Libtool:
79876
79877         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79878
79879         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
79880         sharing with gnulib.  Report by Eric Blake.
79881
79882 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
79883
79884         * modules/isapipe: New file.
79885         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
79886
79887 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
79888
79889         * modules/configmake (Makefile.am): Add a comment, and omit
79890         the CONFIGMAKE_ prefix from generated macro names.  Suggested
79891         by Bruno Haible.
79892
79893 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
79894
79895         * m4/isapipe.m4: New file.
79896
79897 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
79898
79899         * lib/isapipe.c, lib/isapipe.h: New files.
79900
79901 2006-08-29  Jim Meyering  <jim@meyering.net>
79902
79903         * modules/configmake (Makefile.am): Make configmake.h depend on
79904         Makefile.  Otherwise, a stale configmake.h could hang around.
79905
79906 2006-08-29  Eric Blake  <ebb9@byu.net>
79907
79908         * lib/error.c (error_at_line, print_errno_message): Match libc, after
79909         resolution of upstream bug 3044.
79910
79911 2006-08-29  Bruno Haible  <bruno@clisp.org>
79912
79913         * modules/localcharset (Depends-on): Add configmake.
79914         (Makefile.am): Remove setting of LIBDIR through DEFS.
79915
79916 2006-08-29  Bruno Haible  <bruno@clisp.org>
79917
79918         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
79919         defined.
79920
79921 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79922
79923         * modules/fcntl: New file.
79924         * modules/chdir-safer (Depends-on): Add fcntl.
79925         * modules/fts: Likewise.
79926         * modules/mkdir-p: Likewise.
79927
79928         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
79929         This undoes the most recent change, since we're now addressing the
79930         problem in a different way.
79931
79932         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
79933         into output, since the output might be called Makefile.am even
79934         if $makefile_name is something different.
79935         (func_import): Use $makefile_am rather than
79936         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
79937         empty.
79938
79939         * modules/inttypes (Files): Add m4/inttypes-h.m4.
79940
79941 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79942
79943         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
79944         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
79945         recent change to stdint.m4, since we're now addressing the problem in a
79946         different way.
79947
79948 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79949
79950         * m4/fcntl_h.m4: New file.
79951
79952 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79953
79954         * lib/fcntl_.h: New file.
79955         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
79956         the fcntl module.
79957         * lib/dirchownmod.c: Likewise.
79958         * lib/fts.c: Likewise.
79959
79960         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
79961         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
79962         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
79963         just before including <inttypes.h>, to avoid circular inclusion.
79964
79965 2006-08-28  Jim Meyering  <jim@meyering.net>
79966
79967         * doc/visibility.texi: Actually read and correct the grammar of the
79968         sentence affected by yesterday's change.
79969
79970 2006-08-28  Eric Blake  <ebb9@byu.net>
79971
79972         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
79973         needs wrapper.
79974
79975 2006-08-28  Eric Blake  <ebb9@byu.net>
79976
79977         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
79978
79979 2006-08-28  Eric Blake  <ebb9@byu.net>
79980
79981         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
79982
79983 2006-08-28  Bruno Haible  <bruno@clisp.org>
79984
79985         * modules/c-strstr: New file, from GNU gettext.
79986         * MODULES.html.sh (String handling): Add c-strstr.
79987
79988 2006-08-28  Bruno Haible  <bruno@clisp.org>
79989
79990         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
79991         macros.
79992         Reported by Eric Blake.
79993
79994 2006-08-28  Bruno Haible  <bruno@clisp.org>
79995
79996         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
79997         (VASNPRINTF): Return a string of length > INT_MAX without failing.
79998         * lib/vasprintf.c: Include errno.h, limits.h.
79999         (EOVERFLOW): New fallback definition.
80000         (vasprintf): Test here whether the string length is > INT_MAX.
80001         * lib/vsnprintf.c: Include errno.h, limits.h.
80002         (EOVERFLOW): New fallback definition.
80003         (vsnprintf): Fix bug when generated string was too long for the buffer.
80004         Test here whether the string length is > INT_MAX.
80005
80006 2006-08-28  Bruno Haible  <bruno@clisp.org>
80007
80008         * lib/inttypes_.h (SCNX*): Remove definitions.
80009         Reported by Eric Blake.
80010
80011 2006-08-28  Bruno Haible  <bruno@clisp.org>
80012
80013         * lib/c-strstr.h: New file, from GNU gettext.
80014         * lib/c-strstr.c: New file, from GNU gettext.
80015
80016 2006-08-28  Bruno Haible  <bruno@clisp.org>
80017
80018         * gnulib-tool: Reorder some statements.
80019
80020 2006-08-28  Bruno Haible  <bruno@clisp.org>
80021
80022         * gnulib-tool: New option --makefile-name.
80023         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
80024         $makefile_name.
80025         (func_import): Write $makefile_name to the cache file, and read it from
80026         there unless explicitly specified. Use $makefile_name as file name
80027         instead of Makefile.am. Adjust the recommendations accordingly.
80028
80029 2006-08-28  Bruno Haible  <bruno@clisp.org>
80030
80031         * gnulib-tool (func_verify_module): Check against misapplying patch.
80032
80033 2006-08-28  Bruno Haible  <bruno@clisp.org>
80034
80035         * gnulib-tool (func_relativize, func_relconcat): New functions.
80036         Give an error if --local-dir is given with --update.
80037         Remove trailing slashes from $local_gnulib_dir.
80038         (func_import): Store the relativized $local_gnulib_dir in
80039         gnulib-cache.m4, and read it from there if not specified explicitly.
80040
80041 2006-08-28  Bruno Haible  <bruno@clisp.org>
80042
80043         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
80044         is the current directory. Respect also $local_gnulib_dir.
80045
80046 2006-08-28  Bruno Haible  <bruno@clisp.org>
80047             Simon Josefsson  <jas@extundo.com>
80048
80049         BeOS portability.
80050         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
80051
80052 2006-08-27  Jim Meyering  <jim@meyering.net>
80053
80054         * doc/visibility.texi: Remove duplicate word: "pointer".
80055
80056 2006-08-26  Bruno Haible  <bruno@clisp.org>
80057
80058         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
80059         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
80060         (Makefile.am): Create inttypes.h from inttypes_.h.
80061         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
80062
80063         * modules/imaxabs: New file.
80064
80065         * modules/imaxdiv: New file.
80066
80067 2006-08-26  Bruno Haible  <bruno@clisp.org>
80068
80069         * m4/inttypes.m4: New file.
80070         * m4/_inttypes_h.m4: Remove file.
80071         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
80072         PRI_MACROS_BROKEN.
80073         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
80074
80075         * m4/imaxabs.m4: New file.
80076
80077         * m4/imaxdiv.m4: New file.
80078
80079 2006-08-26  Bruno Haible  <bruno@clisp.org>
80080
80081         * lib/inttypes_.h: New file.
80082         * lib/inttypes.h: Remove file.
80083         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
80084
80085         * lib/imaxabs.c: New file.
80086
80087         * lib/imaxdiv.c: New file.
80088
80089 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80090
80091         New config-h module, so that "make" output needn't be cluttered
80092         by -DHAVE_CONFIG_H.
80093         * MODULES.html.sh (Support for building libraries and executables):
80094         Add config-h.
80095         * modules/config-h: New file.
80096         * gnulib-tool (nl, sed_transform_lib_file): New vars.
80097         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
80098         the config-h module is used.
80099
80100         New configmake module, so that "make" output needn't be cluttered
80101         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
80102         * MODULES.html.sh (Support for building libraries and executables):
80103         Add configmake.
80104         * modules/configmake: New file.
80105
80106 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80107
80108         * m4/config-h.m4: New file.
80109
80110 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
80111
80112         * config/srclist.txt: Add elisp-comp.
80113
80114 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
80115
80116         * MODULES.html.sh (Support for building libraries and executables):
80117         Add elisp-comp.
80118         * build-aux/elisp-comp: New file.
80119         * modules/elisp-comp: New file.
80120
80121 2006-08-24  Bruno Haible  <bruno@clisp.org>
80122
80123         * gnulib-tool (func_create_testdir): Use non-default values of
80124         sourcebase and m4base.
80125
80126 2006-08-24  Bruno Haible  <bruno@clisp.org>
80127
80128         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
80129         HTML structure.
80130
80131 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
80132
80133         * modules/openat (Depends-on): Add lchown.
80134
80135 2006-08-23  Bruno Haible  <bruno@clisp.org>
80136
80137         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
80138         of gl_LOCK_EARLY instead of gl_LOCK.
80139
80140 2006-08-23  Bruno Haible  <bruno@clisp.org>
80141
80142         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
80143         on OSF/1 to no.
80144         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
80145
80146 2006-08-23  Bruno Haible  <bruno@clisp.org>
80147
80148         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
80149         as unusable.
80150
80151         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
80152         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
80153         (gl_LOCK): New macro.
80154
80155 2006-08-22  Simon Josefsson  <jas@extundo.com>
80156
80157         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
80158         to md5 module.
80159
80160 2006-08-22  Simon Josefsson  <jas@extundo.com>
80161
80162         * MODULES.html.sh: Add "Support for maintaining and release
80163         projects".
80164
80165         * build-aux/gnupload: New file, from coreutils.
80166
80167 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
80168
80169         Avoid the need for AC_LIBSOURCES in m4 macros.
80170         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
80171         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
80172         * modules/check-version (EXTRA_DIST): Add check-version.h.
80173         * modules/crc (EXTRA_DIST): Add crc.h.
80174         * modules/des (EXTRA_DIST): Add des.h.
80175         * modules/gc (EXTRA_DIST): Add gc.h.
80176         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
80177         * modules/getline (EXTRA_DIST): Add getline.h.
80178         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
80179         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
80180         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
80181         * modules/md2 (EXTRA_DIST): Add md2.h.
80182         * modules/md4 (EXTRA_DIST): Add md4.h.
80183         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
80184         * modules/read-file (EXTRA_DIST): Add read-file.h.
80185         * modules/readline (EXTRA_DIST): Add readline.h.
80186         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
80187         rijndael-api-fst.h.
80188
80189 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
80190
80191         * m4/rijndael.m4 (gl_ARCFOUR):
80192         * m4/arctwo.m4 (gl_ARCTWO):
80193         * m4/check-version.m4 (gl_CHECK_VERSION):
80194         * m4/crc.m4 (gl_CRC):
80195         * m4/des.m4 (gl_DES):
80196         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
80197         * m4/gc.m4 (gl_GC):
80198         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
80199         * m4/getline.m4 (gl_FUNC_GETLINE):
80200         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
80201         * m4/hmac-md5.m4 (gl_HMAC_MD5):
80202         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
80203         * m4/md2.m4 (gl_MD2):
80204         * m4/md4.m4 (gl_MD4):
80205         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
80206         * m4/read-file.m4 (gl_FUNC_READ_FILE):
80207         * m4/readline.m4 (gl_FUNC_READLINE):
80208         * m4/rijndael.m4 (gl_RIJNDAEL):
80209         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
80210         to get the necessary .h files and whatnot.
80211
80212 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
80213
80214         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
80215         gnulib rather than the other way around.
80216         * config/srclistvars.sh (COREUTILS): Remove.
80217
80218 2006-08-22  Jim Meyering  <jim@meyering.net>
80219
80220         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
80221
80222         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
80223
80224 2006-08-22  Eric Blake  <ebb9@byu.net>
80225
80226         * modules/regexprops-generic: New file.
80227         * MODULES.html.sh (Support for building documentation): List it.
80228
80229 2006-08-22  Eric Blake  <ebb9@byu.net>
80230
80231         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
80232         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
80233         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
80234         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
80235
80236 2006-08-22  Bruno Haible  <bruno@clisp.org>
80237
80238         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
80239         and lib_LTLIBRARIES like the other lib_* variables.
80240
80241 2006-08-22  Bruno Haible  <bruno@clisp.org>
80242
80243         * build-aux/x-to-1.in: New file, from GNU gettext.
80244
80245 2006-08-22  Bruno Haible  <bruno@clisp.org>
80246
80247         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
80248         <utmpx.h> exists.
80249
80250 2006-08-22  Bruno Haible  <bruno@clisp.org>
80251
80252         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
80253         <utmpx.h> exists.
80254
80255 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
80256
80257         BeOS portability.
80258         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
80259         exist.
80260         Problem reported by Bruno Haible.
80261
80262 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
80263
80264         Avoid the need for AC_LIBSOURCES in m4 macros.
80265         * modules/acl (EXTRA_DIST): Add acl.h.
80266         * modules/argmatch (Files): Add m4/argmatch.m4.
80267         (configure.ac): Add gl_ARGMATCH.
80268         (EXTRA_DIST): Renamed from lib_SOURCES, for
80269         consistency with the other modules.  Remove argmatch.c.
80270         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
80271         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
80272         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
80273         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
80274         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
80275         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
80276         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
80277         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
80278         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
80279         * modules/closeout (EXTRA_DIST): Add closeout.h.
80280         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
80281         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
80282         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
80283         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
80284         dirname.h; remove basename.c and stripslash.c.
80285         * modules/exclude (EXTRA_DIST): Add exclude.h.
80286         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
80287         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
80288         * modules/file-type (EXTRA_DIST): Add file-type.h.
80289         * modules/filemode (EXTRA_DIST): Add filemode.h.
80290         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
80291         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
80292         * modules/fpending (EXTRA_DIST): Add __fpending.h.
80293         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
80294         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
80295         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
80296         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
80297         * modules/getdate (EXTRA_DIST): Add getdate.c.
80298         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
80299         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
80300         * modules/getpass (EXTRA_DIST): Add getpass.h.
80301         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
80302         * modules/group-member (EXTRA_DIST): Add group-member.h.
80303         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
80304         * modules/hash (EXTRA_DIST): Add hash.h.
80305         * modules/human (EXTRA_DIST): Add human.h.
80306         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
80307         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
80308         * modules/lchown (EXTRA_DIST): Add lchown.h.
80309         * modules/long-options (EXTRA_DIST): Add long-options.h.
80310         * modules/lstat (EXTRA_DIST): Add lstat.h.
80311         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
80312         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
80313         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
80314         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
80315         * modules/memxor (EXTRA_DIST): Add memxor.h.
80316         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
80317         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
80318         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
80319         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
80320         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
80321         * modules/physmem (EXTRA_DIST): Add physmem.h.
80322         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
80323         * modules/posixver (EXTRA_DIST): Add posixver.h.
80324         * modules/quote (EXTRA_DIST): Add quote.h.
80325         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
80326         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
80327         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
80328         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
80329         regex_internal.h regexec.c.
80330         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
80331         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
80332         * modules/same (EXTRA_DIST): Add same.h.
80333         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
80334         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
80335         * modules/savedir (EXTRA_DIST): Add savedir.h.
80336         * modules/sha1 (EXTRA_DIST): Add sha1.h.
80337         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
80338         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
80339         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
80340         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
80341         * modules/strdup (EXTRA_DIST): Add strdup.h.
80342         * modules/strftime (EXTRA_DIST): Add strftime.h.
80343         * modules/strndup (EXTRA_DIST): Add strndup.h.
80344         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
80345         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
80346         * modules/time_r (EXTRA_DIST): Add time_r.h.
80347         * modules/timespec (EXTRA_DIST): Add timespec.h.
80348         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
80349         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
80350         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
80351         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
80352         * modules/userspec (EXTRA_DIST): Add userspec.h.
80353         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
80354         * modules/utimens (EXTRA_DIST): Add utimens.h.
80355         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
80356         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
80357         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
80358         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
80359         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
80360         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
80361         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
80362         * modules/yesno (EXTRA_DIST): Add yesno.h.
80363
80364 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
80365
80366         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
80367
80368         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
80369         * m4/dev-ino.m4, same-inode.m4: Remove.
80370
80371         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
80372         * m4/acl.m4 (AC_FUNC_ACL):
80373         * m4/backupfile.m4 (gl_BACKUPFILE):
80374         * m4/c-strtod.m4 (gl_C99_STRTOLD):
80375         * m4/canon-host.m4 (gl_CANON_HOST):
80376         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
80377         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
80378         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
80379         * m4/cloexec.m4 (gl_CLOEXEC):
80380         * m4/close-stream.m4 (gl_CLOSE_STREAM):
80381         * m4/closeout.m4 (gl_CLOSEOUT):
80382         * m4/dirfd.m4 (gl_FUNC_DIRFD):
80383         * m4/dirname.m4 (gl_DIRNAME):
80384         * m4/exclude.m4 (gl_EXCLUDE):
80385         * m4/exitfail.m4 (gl_EXITFAIL):
80386         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
80387         * m4/file-type.m4 (gl_FILE_TYPE):
80388         * m4/filemode.m4 (gl_FILEMODE):
80389         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
80390         * m4/fpending.m4 (gl_FUNC_FPENDING):
80391         * m4/fprintftime.m4 (gl_FPRINTFTIME):
80392         * m4/fts.m4 (gl_FUNC_FTS):
80393         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
80394         * m4/getdate.m4 (gl_GETDATE):
80395         * m4/gethrxtime.m4 (gl_GETHRXTIME):
80396         * m4/getpagesize.m4 (gl_GETPAGESIZE):
80397         * m4/getpass.m4 (gl_FUNC_GETPASS):
80398         * m4/gettime.m4 (gl_GETTIME):
80399         * m4/getugroups.m4 (gl_GETUGROUPS):
80400         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
80401         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
80402         * m4/hard-locale.m4 (gl_HARD_LOCALE):
80403         * m4/hash.m4 (gl_HASH):
80404         * m4/idcache.m4 (gl_IDCACHE):
80405         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
80406         * m4/lchown.m4 (gl_FUNC_LCHOWN):
80407         * m4/long-options.m4 (gl_LONG_OPTIONS):
80408         * m4/lstat.m4 (gl_FUNC_LSTAT):
80409         * m4/md5.m4 (gl_MD5):
80410         * m4/memcasecmp.m4 (gl_MEMCASECMP):
80411         * m4/memcoll.m4 (gl_MEMCOLL):
80412         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
80413         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
80414         * m4/memxor.m4 (gl_MEMXOR):
80415         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
80416         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
80417         * m4/modechange.m4 (gl_MODECHANGE):
80418         * m4/mountlist.m4 (gl_MOUNTLIST):
80419         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
80420         * m4/openat.m4 (gl_FUNC_OPENAT):
80421         * m4/pathmax.m4 (gl_PATHMAX):
80422         * m4/physmem.m4 (gl_PHYSMEM):
80423         * m4/posixtm.m4 (gl_POSIXTM):
80424         * m4/posixver.m4 (gl_POSIXVER):
80425         * m4/quote.m4 (gl_QUOTE):
80426         * m4/quotearg.m4 (gl_QUOTEARG):
80427         * m4/readtokens.m4 (gl_READTOKENS):
80428         * m4/readutmp.m4 (gl_READUTMP):
80429         * m4/regex.m4 (gl_REGEX):
80430         * m4/safe-read.m4 (gl_SAFE_READ):
80431         * m4/safe-write.m4 (gl_SAFE_WRITE):
80432         * m4/same.m4 (gl_SAME):
80433         * m4/save-cwd.m4 (gl_SAVE_CWD):
80434         * m4/savedir.m4 (gl_SAVEDIR):
80435         * m4/settime.m4 (gl_SETTIME):
80436         * m4/sha1.m4 (gl_SHA1):
80437         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
80438         * m4/stat-macros.m4 (gl_STAT_MACROS):
80439         * m4/stat-time.m4 (gl_STAT_TIME):
80440         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
80441         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
80442         * m4/strdup.m4 (gl_FUNC_STRDUP):
80443         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
80444         * m4/strndup.m4 (gl_FUNC_STRNDUP):
80445         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
80446         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
80447         * m4/time_r.m4 (gl_TIME_R):
80448         * m4/timespec.m4 (gl_TIMESPEC):
80449         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
80450         * m4/unlinkdir.m4 (gl_UNLINKDIR):
80451         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
80452         * m4/userspec.m4 (gl_USERSPEC):
80453         * m4/utimecmp.m4 (gl_UTIMECMP):
80454         * m4/utimens.m4 (gl_UTIMENS):
80455         * m4/xalloc.m4 (gl_XALLOC):
80456         * m4/xgetcwd.m4 (gl_XGETCWD):
80457         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
80458         * m4/xreadlink.m4 (gl_XREADLINK):
80459         * m4/xstrtod.m4 (gl_XSTRTOD):
80460         * m4/yesno.m4 (gl_YESNO):
80461         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
80462         to get the necessary .h files and whatnot.
80463
80464 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
80465             Bruno Haible  <bruno@clisp.org>
80466
80467         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
80468         /bin/sh understanding of '!' conditional negation.
80469
80470 2006-08-21  Jim Meyering  <jim@meyering.net>
80471
80472         * modules/openat (Depends-on): Really alphabetize.
80473
80474         * modules/acl (Depends-on): Add error and quote.
80475
80476         * check-module (find_included_lib_files): Add at-func.c to the
80477         ok-to-include-more-than-once white list.
80478
80479         * modules/openat (Depends-on): Add lstat.  Alphabetize.
80480
80481 2006-08-21  Bruno Haible  <bruno@clisp.org>
80482
80483         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
80484         Emit a pkgdata_DATA variable only if some snippets add contents to it.
80485         Reported by Martin Lambers <marlam@marlam.de>.
80486
80487 2006-08-21  Bruno Haible  <bruno@clisp.org>
80488
80489         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
80490         specify an installation location, don't emit a noinst_LIBRARIES or
80491         noinst_LTLIBRARIES assignment.
80492
80493 2006-08-21  Bruno Haible  <bruno@clisp.org>
80494
80495         BeOS portability.
80496         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
80497         BeOS has mbrtowc() but no <wctype.h>.
80498
80499 2006-08-21  Bruno Haible  <bruno@clisp.org>
80500
80501         BeOS portability.
80502         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
80503         exist.
80504
80505 2006-08-21  Bruno Haible  <bruno@clisp.org>
80506
80507         BeOS portability.
80508         * lib/mbchar.h: Include <wctype.h> only if it exists.
80509
80510 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80511
80512         Remove files that are no longer needed by their respective modules.
80513         * m4/obstack.m4: Remove.
80514         * m4/strerror_r.m4: Remove.
80515         * m4/uint32_t.m4: Remove.
80516         * m4/uintptr_t.m4: Remove.
80517         * m4/ullong_max.m4: Remove.
80518         * m4/xstrtoimax.m4: Remove.
80519         * m4/xstrtoumax.m4: Remove.
80520
80521         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
80522         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
80523         dependencies now capture this.
80524
80525         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
80526         Do not use AC_LIBSOURCES, since gnulib modules now do this.
80527         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
80528         * m4/human.m4 (gl_HUMAN): Likewise.
80529         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
80530         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
80531
80532         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
80533
80534         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
80535         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
80536         stdint.
80537         * m4/human.m4 (gl_HUMAN): Likewise.
80538         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
80539         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
80540         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
80541         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
80542         * m4/xstrtol (gl_XSTRTOL): Likewise.
80543
80544         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
80545         AC_TYPE_LONG_LONG_INT.
80546         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
80547         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
80548         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
80549         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
80550
80551         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
80552         on stdbool.
80553
80554         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
80555         (gl_PREREQ_XSTRTOUL): Remove.
80556
80557         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
80558
80559         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
80560         mode.
80561
80562 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80563
80564         Add and change modules to make it easier for coreutils to use
80565         gnulib-tool.
80566         * modules/backupfile (Files): Remove m4/d-ino.m4.
80567         (Depends-on): Add d-ino.
80568         * modules/cycle-check (Depends-on): Add stdint.
80569         (lib_SOURCES): Add cycle-check.h.
80570         * modules/d-ino: New module.
80571         * modules/d-type: New module.
80572         * modules/error (Files): Remove m4/strerror_r.m4.
80573         * modules/filemode (Files): Add m4/st_dm_mode.m4.
80574         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
80575         m4/inttypes_h.m4, m4/uintmax_t.m4.
80576         (Depends-on): Add stdint.
80577         (lib_SOURCES): Add fsusage.h.
80578         * modules/getcwd (Files): Remove d-ino.m4.
80579         (Depends-on): Add d-ino.
80580         * modules/getndelim2 (Depends-on): Add stdint.
80581         * modules/glob (Files): Remove m4/d-type.m4.
80582         (Depends-on): Add d-type.
80583         * modules/host-os: New module.
80584         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
80585         m4/inttypes_h.m4, m4/uintmax_t.m4.
80586         * Depends-on: Add stdint.
80587         (lib_SOURCES): Add human.h.
80588         * modules/inttostr (Files): Remove m4/intmax_t.m4,
80589         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
80590         m4/uintmax_t.m4, m4/ulonglong.m4.
80591         (Depends-on): Add stdint.
80592         (EXTRA_DIST): Add inttostr.h.
80593         * modules/lchmod: New module.
80594         * modules/link-follow: New module.
80595         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
80596         (Depends-on): Add lchmod.
80597         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
80598         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
80599         (Depends-on): Add stdint.
80600         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
80601         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
80602         (Depends-on): Add stdint.
80603         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
80604         * modules/perl: New module.
80605         * modules/regex (Depends-on): Add stdint.
80606         * modules/rmdir-errno: New module.
80607         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
80608         m4/intmax_t.m4.
80609         (Depends-on): Add stdint.
80610         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
80611         m4/uintmax_t.m4.
80612         (Depends-on): Add stdint.
80613         * modules/unlink-busy: New module.
80614         * modules/utimecmp (Depends-on): Add stdint.
80615         * modules/uptime: New module.
80616         * modules/winsz-ioctl: New module.
80617         * modules/winsz-termios: New module.
80618         * modules/xnanosleep (Depends-on): Add nanosleep.
80619         * modules/ullong_max: Remove.
80620         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
80621         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
80622         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
80623         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
80624         (Depends-on): Add inttypes.
80625         (lib_SOURCES): Add xstrtol.h.
80626         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
80627         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
80628         * MODULES.html.sh: Move 'assert' into the assert section.
80629         Move 'dummy' into the linking section.
80630         Remove ullong_max.
80631         Add section for compatibility checks for POSIX:2001 functions,
80632         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
80633         winsz-ioctl, and winsz-termios into it.
80634         Add lchmod.
80635         Add top-level Misc section and put host-os, perl, and uptime
80636         into it.
80637
80638 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80639
80640         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
80641         now assume the stdint module.  Do not include inttypes.h.
80642         * lib/fsusage.h: Likewise.
80643         * lib/getndelim2.c: Likewise.
80644         * lib/human.h: Likewise.
80645         * lib/inttostr.h: Likewise.
80646         * lib/obstack.c: Likewise.
80647         * lib/regex_internal.h: Likewise.
80648         * lib/tempname.c: Likewise.
80649         * lib/utimecmp.c: Likewise.
80650         * lib/xstrtol.h: Likewise.
80651
80652         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
80653
80654         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
80655         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
80656         * lib/xtime.h: Likewise.
80657
80658 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80659
80660         * modules/openat (Files): Add lib/fchmodat.c.
80661         Fixes problem reported by Jay Youngman.
80662
80663 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80664
80665         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
80666         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
80667
80668 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
80669             Bruno Haible  <bruno@clisp.org>
80670
80671         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
80672         and is a script that invokes bison. Tighten the code. Add comments.
80673
80674 2006-08-18  Jim Meyering  <jim@meyering.net>
80675
80676         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
80677         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
80678         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
80679         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
80680
80681 2006-08-18  Bruno Haible  <bruno@clisp.org>
80682
80683         * modules/bison-i18n: New file.
80684         * MODULES.html.sh (Internationalization functions): Add it.
80685
80686 2006-08-18  Bruno Haible  <bruno@clisp.org>
80687
80688         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
80689         sys/statvfs.h. When getmntinfo was found, check its declaration and
80690         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
80691
80692 2006-08-18  Bruno Haible  <bruno@clisp.org>
80693
80694         * m4/bison-i18n.m4: New file, from bison.
80695
80696 2006-08-18  Bruno Haible  <bruno@clisp.org>
80697
80698         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
80699         (ME_DUMMY): Treat "kernfs" as a dummy.
80700         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
80701
80702 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
80703
80704         Update from coreutils.
80705
80706         2006-08-15  Jim Meyering  <jim@meyering.net>
80707
80708         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
80709
80710         2006-01-17  Jim Meyering  <jim@meyering.net>
80711
80712         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
80713
80714         2006-01-11  Jim Meyering  <jim@meyering.net>
80715
80716         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
80717         Check for the lchmod function.
80718
80719 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
80720
80721         Update from coreutils.
80722
80723         * lib/__fpending.h: Add copyright notice.
80724         * lib/fprintftime.h: Likewise.
80725         * lib/savedir.c: Use (C) in copyright notice.
80726         * lib/savedir.h: Likewise.
80727
80728         2006-08-15  Jim Meyering  <jim@meyering.net>
80729
80730         * lib/at-func.c: New file, with the logic of all emulated at-functions.
80731         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
80732         in support of the EXPECTED_ERRNO macro.
80733         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
80734         definitions.  Instead, define the appropriate symbols and include
80735         "at-func.c".
80736         * lib/mkdirat.c (mkdirat): Likewise.
80737         * lib/fchmodat.c (fchmodat): Likewise.
80738         (ENOSYS): Remove definition.
80739         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
80740         it.  Don't include "unistd--.h" -- it wasn't ever used.
80741
80742         2006-01-17  Jim Meyering  <jim@meyering.net>
80743
80744         Rewrite fts.c not to change the current working directory,
80745         by using openat, fstatat, fdopendir, etc..
80746
80747         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
80748         (HAVE_OPENAT_SUPPORT): Define.
80749         [_LIBC] (fchdir): Don't undef or define; no longer used.
80750         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
80751         Now, this `function' always succeeds, and consumes its file descriptor
80752         parameter -- so callers must not close such FDs.  Update callers.
80753         (diropen_fd, opendirat, cwd_advance_fd): New functions.
80754         (diropen): Add parameter, SP.  Adjust all callers.
80755         Implement using diropen_fd, rather than open.
80756         (fts_open): Initialize new member, fts_cwd_fd.
80757         Remove fts_rft-setting code.
80758         (fts_close): Close fts_cwd_fd, if necessary.
80759         (__opendir2): Define in terms of opendir or opendirat,
80760         depending on whether the FST_NOCHDIR flag is set.
80761         (fts_build): Since fts_safe_changedir consumes its FD, and since
80762         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
80763         and close the dup'd file descriptor upon failure.
80764         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
80765         (fts_safe_changedir): Tweak semantics to reflect that this function
80766         now calls cwd_advance_fd and hence consumes its FD argument.
80767         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
80768         [struct FTS] (fts_rft): Remove now-unused member.
80769         [struct FTS] (fts_cycle.state): Improve comment.
80770
80771         * lib/openat.c (openat_needs_fchdir): New function.
80772         * lib/openat.h (openat_needs_fchdir): Declare it.
80773
80774 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
80775
80776         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
80777         Problem and fix reported by Pádraig Brady in
80778         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
80779
80780 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
80781
80782         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
80783
80784 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
80785
80786         * lib/memcoll.c (memcoll): Optimize for the common case where the
80787         arguments are bytewise equal.
80788
80789 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
80790
80791         * doc/regexprops-generic.texi: Add a copyright notice.
80792
80793 2006-08-15  Bruno Haible  <bruno@clisp.org>
80794
80795         * modules/tmpdir (License): Change to LGPL.
80796
80797 2006-08-15  Bruno Haible  <bruno@clisp.org>
80798
80799         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
80800         module.
80801
80802 2006-08-14  Simon Josefsson  <jas@extundo.com>
80803
80804         * config/srclist.txt: Add gnupload.
80805
80806 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
80807
80808         Change copyright notice from LGPL 2 to GPL 2, since that's the
80809         standard form used in the gnulib repository.
80810         * tests/test-lock.c: Likewise.
80811         * tests/test-stdint.c: Likewise.
80812         * tests/test-tls.c: Likewise.
80813
80814         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
80815         prelude-manager.  User shorter URLs for GNU projects, without '?'.
80816         Add copyright notice.
80817
80818         * check-module: Add copyright notice.  Output a copyright
80819         notice if "--version" is specified.
80820         * modules/COPYING: New file.
80821         * tests/test-getaddrinfo.c: Add copyright notice.
80822         * tests/test-verify.c: Likewise.
80823
80824 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
80825
80826         Change copyright notice from LGPL 2 to GPL 2, since that's the
80827         standard form used in the gnulib repository.
80828         * lib/lock.c: LGPL -> GPL.
80829         * lib/lock.h: Likewise.
80830         * lib/strnlen1.c: Likewise.
80831         * lib/strnlen1.h: Likewise.
80832         * lib/tls.c: Likewise.
80833         * lib/tls.h: Likewise.
80834         * lib/tmpdir.c: Likewise.
80835
80836         * lib/TODO: Remove; this belongs only in coreutils.
80837
80838 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
80839
80840         Add copyright notices to long-enough files that lack them, since
80841         otherwise the files aren't clearly free.  Use the same notice that
80842         getdate.texi already uses.
80843         * doc/alloca-opt.texi: Add copyright notice.
80844         * doc/alloca.texi: Likewise.
80845         * doc/ctime.texi: Likewise.
80846         * doc/functions.texi: Likewise.
80847         * doc/gcd.texi: Likewise.
80848         * doc/gnulib-tool.texi: Likewise.
80849         * doc/inet_ntoa.texi: Likewise.
80850         * doc/visibility.texi: Likewise.
80851
80852         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
80853         * doc/quote.texi: Add copyright notice.
80854
80855         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
80856         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
80857         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
80858         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
80859         is now obsolete, and give a pointer to the Sun list.
80860         Add copyright notice.
80861
80862 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
80863
80864         * config/srclistvars.sh: Add copyright notice.
80865
80866 2006-08-14  Eric Blake  <ebb9@byu.net>
80867
80868         Import the following change from libc:
80869
80870         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
80871
80872         Upstream bug 2997.
80873         * lib/misc/error.c: Add space between program name and message if file
80874         name is missing.
80875
80876 2006-08-12  Karl Berry  <karl@gnu.org>
80877
80878         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
80879         remove, these originate in gnulib now.
80880
80881 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80882
80883         * doc/Makefile (standards.info standards.html standards.dvi):
80884         Also depend on make-stds.texi.
80885
80886 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
80887
80888         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
80889         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
80890
80891         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
80892         in wchar_t.  Problem reported by Eric Blake.
80893
80894         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
80895         LEN is smaller than SIZE.  Suggested by Bruno Haible.
80896         Also, help the compiler to keep LEN in a register.
80897
80898 2006-08-11  Eric Blake  <ebb9@byu.net>
80899
80900         * users.txt: Sort.  Add tar.
80901
80902 2006-08-11  Bruno Haible  <bruno@clisp.org>
80903
80904         * users.txt: New file.
80905
80906 2006-08-11  Bruno Haible  <bruno@clisp.org>
80907
80908         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
80909         before <wchar.h>. Needed for OSF/1 and BSD/OS.
80910
80911 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
80912
80913         * modules/snprintf (Depends-on): Remove minmax.
80914         (Maintainer): Add self and Bruno.
80915
80916 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
80917
80918         * lib/.cppi-disable: Add snprintf.h, socket_.h.
80919         * lib/snprintf.c: Include <errno.h> and <limits.h>.
80920         (EOVERFLOW): Define if the system does not.
80921         Do not include "minmax.h"; it wasn't used.
80922         (snprintf): Don't assume size_t promotes to an unsigned type.
80923         Fix bug when generated string was too long for the buffer: the
80924         buffer's contents are supposed to be the initial prefix of the
80925         output.  Don't assume vasnprintf returns EOVERFLOW if the size
80926         exceeds INT_MAX; do the check ourselves.
80927
80928         Import the following changes from libc:
80929
80930         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
80931
80932         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
80933         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
80934         set wc to the byte which couldn't be converted.
80935         (re_string_reconstruct): Don't clear valid_raw_len before calling
80936         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
80937         tip_context using re_string_context_at.
80938
80939         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
80940
80941         * lib/posix/regex.h: g++ still cannot handled [restrict].
80942
80943         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
80944
80945         * lib/posix/regex.h: Remove special handling for VMS.
80946
80947 2006-08-10  Jim Meyering  <jim@meyering.net>
80948
80949         * modules/same-inode: New module.
80950         * modules/dev-ino: New module.
80951         * modules/cycle-check: Depend on these modules, rather than simply
80952         including their .h files.
80953         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
80954         required via m4/cycle-check.m4.
80955         * modules/same: Depend on new same-inode module, rather than
80956         including same-inode.h.
80957         * modules/chdir-safer: New file.
80958
80959         * modules/chown (Depends-on): Add stat-macros.
80960
80961 2006-08-10  Jim Meyering  <jim@meyering.net>
80962
80963         * m4/cycle-check.m4: New file.
80964         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
80965         * m4/dev-ino.m4, m4/same-inode.m4: New files.
80966
80967 2006-08-10  Eric Blake  <ebb9@byu.net>
80968
80969         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
80970         in from original proposal.
80971
80972 2006-08-10  Eric Blake  <ebb9@byu.net>
80973         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
80974
80975         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
80976         namespace.
80977
80978 2006-08-10  Bruno Haible  <bruno@clisp.org>
80979
80980         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
80981         as well.
80982
80983 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80984
80985         Sync from coreutils.
80986
80987         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
80988
80989         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
80990         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
80991
80992 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80993
80994         * modules/restrict: Remove; no longer needed now that we assume
80995         Autoconf 2.59 or later.
80996         * MODULES.html.sh: Remove 'restrict'.
80997         * modules/argp (Depends-on): Remove 'restrict'.
80998         * modules/base64 (Depends-on): Likewise.
80999         * modules/gc (Depends-on): Likewise.
81000         * modules/getaddrinfo (Depends-on): Likewise.
81001         * modules/glob (Depends-on): Likewise.
81002         * modules/inet_ntop (Depends-on): Likewise.
81003         * modules/inet_pton (Depends-on): Likewise.
81004         * modules/memxor (Depends-on): Likewise.
81005         * modules/regex (Depends-on): Likewise.
81006         * modules/strtok_r (Depends-on): Likewise.
81007         * modules/time_r (Depends-on): Likewise.
81008
81009 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
81010
81011         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
81012         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
81013         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
81014         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
81015         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
81016         * m4/memxor.m4 (gl_MEMXOR): Likewise.
81017         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
81018         gl_C_RESTRICT replaced by AC_C_RESTRICT.
81019
81020         Merge from coreutils.
81021         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
81022         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
81023         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
81024         * m4/time_r.m4 (gl_TIME_R): Likewise.
81025
81026 2006-08-09  Karl Berry  <karl@gnu.org>
81027
81028         * config/srclist.txt: no more gettext-tools, per Bruno.
81029
81030 2006-08-08  Eric Blake  <ebb9@byu.net>
81031
81032         * modules/verror: New module.
81033         * MODULES.html.sh: Document it.
81034
81035 2006-08-08  Eric Blake  <ebb9@byu.net>
81036
81037         * lib/verror.h, lib/verror.c: New files.
81038
81039 2006-08-08  Eric Blake  <ebb9@byu.net>
81040
81041         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
81042         verror_at_line output complies with GNU Coding Standards even when
81043         file is NULL.
81044
81045 2006-08-07  Bruno Haible  <bruno@clisp.org>
81046
81047         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
81048         versions of AIX.
81049         Reported by Ralf Wildenhues.
81050
81051 2006-08-07  Bruno Haible  <bruno@clisp.org>
81052
81053         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
81054         in an AC_DEFUN. Needed so that the autoconf snippets can use
81055         AC_REQUIRE.
81056
81057 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81058
81059         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
81060         Initialize pkgdata_DATA.
81061         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
81062         overriding it.
81063
81064 2006-08-06  Eric Blake  <ebb9@byu.net>
81065
81066         * lib/error.h: Fold in some upstream changes from glibc.
81067         * lib/error.c: Likewise.
81068
81069 2006-08-04  Bruno Haible  <bruno@clisp.org>
81070
81071         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
81072         Make the mostlyclean-local rule depend on mostlyclean-generic.
81073         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
81074
81075 2006-07-31  Bruno Haible  <bruno@clisp.org>
81076
81077         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
81078         <stdlib.h>, <string.h>.
81079
81080 2006-07-30  Bruno Haible  <bruno@clisp.org>
81081
81082         * modules/readlink (License): Change to LGPL.
81083
81084 2006-07-30  Bruno Haible  <bruno@clisp.org>
81085
81086         * modules/javaversion (Makefile.am): Distribute javaversion.java and
81087         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
81088         set PKGDATADIR to point to it.
81089
81090 2006-07-30  Bruno Haible  <bruno@clisp.org>
81091
81092         * modules/csharpexec (configure.ac): Comment out macro invocation.
81093         * modules/javaexec (configure.ac): Likewise.
81094         * modules/javacomp-script (configure.ac): Likewise.
81095
81096         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
81097
81098 2006-07-30  Bruno Haible  <bruno@clisp.org>
81099
81100         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
81101         linked-list.
81102
81103 2006-07-30  Bruno Haible  <bruno@clisp.org>
81104
81105         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
81106
81107 2006-07-30  Bruno Haible  <bruno@clisp.org>
81108
81109         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
81110         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
81111         get removed.
81112
81113 2006-07-29  Bruno Haible  <bruno@clisp.org>
81114
81115         Make it possible for gnulib-tool to work with locally modified or
81116         augmented gnulib repositories.
81117         * gnulib-tool (func_usage): Document --local-dir option.
81118         (local_gnulib_dir): New variable.
81119         Handle --local-dir option.
81120         (func_lookup_file): New function.
81121         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
81122         (func_get_description, func_get_filelist, func_get_description,
81123         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
81124         func_get_automake_snippet, func_get_include_directive,
81125         func_get_license, func_get_maintainer): Use func_lookup_file.
81126         (func_import, func_create_testdir): Use func_lookup_file.
81127
81128 2006-07-29  Bruno Haible  <bruno@clisp.org>
81129
81130         * modules/setenv (Depends-on): Add unistd.
81131
81132 2006-07-29  Bruno Haible  <bruno@clisp.org>
81133
81134         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
81135
81136 2006-07-29  Bruno Haible  <bruno@clisp.org>
81137
81138         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
81139
81140 2006-07-29  Bruno Haible  <bruno@clisp.org>
81141
81142         * gnulib-tool (import, update): If there is no Makefile.am, look at
81143         aclocal.m4, instead of bailing out.
81144
81145 2006-07-29  Bruno Haible  <bruno@clisp.org>
81146
81147         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
81148         Categorize the options by when they are useful.
81149
81150 2006-07-29  Bruno Haible  <bruno@clisp.org>
81151
81152         * gnulib-tool (func_usage): Document option --no-libtool.
81153         Handle option --no-libtool.
81154         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
81155         for changed semantics of $libtool variable.
81156         (func_import): Likewise. If libtool is not used, show this through
81157         an option --no-libtool.
81158         (func_create_testdir): Update.
81159
81160 2006-07-29  Bruno Haible  <bruno@clisp.org>
81161
81162         * gnulib-tool (func_import): Extend error message about missing
81163         --doc-base.
81164
81165 2006-07-29  Bruno Haible  <bruno@clisp.org>
81166
81167         * gnulib-tool (func_import): Don't create the $docbase directory if
81168         there is no file to store there.
81169
81170 2006-07-29  Bruno Haible  <bruno@clisp.org>
81171
81172         * gnulib-tool (autoconf_minversion): If a --dir option is given and
81173         relevant, look for configure.ac there, not in the current directory.
81174         Also use a simple search for AC_PREREQ, not "autoconf --trace".
81175
81176 2006-07-29  Bruno Haible  <bruno@clisp.org>
81177
81178         * gnulib-tool (SORT): New variable.
81179         (func_usage): Undocument --assume-autoconf option.
81180         Remove --assume-autoconf option handling.
81181         (autoconf_minversion): Determine from the contents of configure.ac.
81182         (func_import): Remove autoconf_minversion handling.
81183         Suggested by Eric Blake.
81184
81185 2006-07-29  Bruno Haible  <bruno@clisp.org>
81186
81187         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
81188
81189 2006-07-29  Bruno Haible  <bruno@clisp.org>
81190
81191         * config/srclist.txt (*setenv.[ch]): Remove rules.
81192
81193 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81194
81195         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
81196
81197 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81198
81199         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
81200         arpa/inet.h.
81201
81202 2006-07-28  Simon Josefsson  <jas@extundo.com>
81203
81204         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
81205         * modules/inet_pton (Depends-on): Likewise.
81206
81207 2006-07-28  Simon Josefsson  <jas@extundo.com>
81208
81209         * m4/netinet_in_h.m4: New file.
81210
81211 2006-07-28  Simon Josefsson  <jas@extundo.com>
81212
81213         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
81214         #include's.
81215
81216 2006-07-28  Simon Josefsson  <jas@extundo.com>
81217
81218         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
81219         #include's.
81220
81221 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
81222
81223         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
81224         setgid on directories only if they set these bits.
81225         * lib/modechange.h: Remove obsolete comment about masks.
81226
81227 2006-07-28  Eric Blake  <ebb9@byu.net>
81228
81229         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
81230         macro expansion.
81231
81232 2006-07-28  Bruno Haible  <bruno@clisp.org>
81233
81234         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
81235
81236 2006-07-28  Bruno Haible  <bruno@clisp.org>
81237
81238         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
81239
81240 2006-07-28  Bruno Haible  <bruno@clisp.org>
81241
81242         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
81243         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
81244         Define fallbacks.
81245         Avoids link error on FreeBSD 4.x.
81246         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
81247
81248         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
81249         encoding.
81250         * lib/mbswidth.c (iswcntrl): Likewise.
81251
81252 2006-07-27  Bruno Haible  <bruno@clisp.org>
81253
81254         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
81255         test.
81256
81257 2006-07-27  Bruno Haible  <bruno@clisp.org>
81258
81259         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
81260         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
81261         defined.
81262
81263 2006-07-26  Eric Blake  <ebb9@byu.net>
81264
81265         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
81266
81267 2006-07-26  Eric Blake  <ebb9@byu.net>
81268
81269         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
81270         like mingw that lack mkstemp.
81271         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
81272         avoid compilation warning on mingw.
81273
81274 2006-07-26  Bruno Haible  <bruno@clisp.org>
81275
81276         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
81277         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
81278         INT_FAST*_MIN, INTPTR_MIN.
81279
81280 2006-07-25  Bruno Haible  <bruno@clisp.org>
81281
81282         * modules/version-etc (Depends-on): Add stdarg.
81283
81284 2006-07-25  Bruno Haible  <bruno@clisp.org>
81285
81286         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
81287         complex commands.
81288
81289 2006-07-25  Bruno Haible  <bruno@clisp.org>
81290
81291         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
81292         defined in <stdarg.h> or config.h.
81293
81294 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
81295
81296         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
81297         (gl_STDIO_SAFER): Remove.
81298
81299 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
81300
81301         * MODULES.html.sh (File stream based Input/Output):
81302         Add fopen-safer, tmpfile-safer; remove stdio-safer.
81303         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
81304         * modules/fopen-safer, modules/tmpfile-safer: New files.
81305         * modules/stdio-safer: Remove.
81306
81307 2006-07-24  Bruno Haible  <bruno@clisp.org>
81308
81309         * modules/tmpdir: New file.
81310         * MODULES.html.sh (File system functions): Add it.
81311
81312 2006-07-24  Bruno Haible  <bruno@clisp.org>
81313
81314         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
81315         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
81316
81317 2006-07-24  Bruno Haible  <bruno@clisp.org>
81318
81319         * modules/clean-temp: New file.
81320
81321 2006-07-24  Bruno Haible  <bruno@clisp.org>
81322
81323         * m4/tmpdir.m4: New file, from GNU gettext.
81324
81325 2006-07-24  Bruno Haible  <bruno@clisp.org>
81326
81327         * lib/tmpdir.h: New file, from GNU gettext.
81328         * lib/tmpdir.c: New file, from GNU gettext.
81329
81330 2006-07-24  Bruno Haible  <bruno@clisp.org>
81331
81332         * lib/clean-temp.h: New file, from GNU gettext.
81333         * lib/clean-temp.c: New file, from GNU gettext.
81334
81335 2006-07-23  Eric Blake  <ebb9@byu.net>
81336
81337         * modules/stdio-safer (Files): Add tmpfile-safer.c.
81338         (Depends-on): Add binary-io.
81339
81340 2006-07-23  Eric Blake  <ebb9@byu.net>
81341
81342         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
81343
81344 2006-07-23  Eric Blake  <ebb9@byu.net>
81345
81346         * lib/tmpfile-safer.c: New file.
81347         * lib/stdio-safer.h (fopen_safer): Add prototype.
81348         * lib/stdio--.h (tmpfile): Make safer.
81349
81350 2006-07-23  Bruno Haible  <bruno@clisp.org>
81351
81352         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
81353         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
81354         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
81355         gl_linked_remove_at): Use it.
81356
81357 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81358         and Simon Josefsson <jas@extundo.com>
81359
81360         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
81361
81362         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
81363
81364 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
81365
81366         * modules/close-stream: New file.
81367         * modules/closeout (Description): Make it clear that it exits
81368         with a diagnostic on error.
81369         (Depends-on): Add close-stream.  Remove fpending, stdbool.
81370         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
81371
81372 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
81373
81374         * m4/close-stream.m4: New file.
81375
81376 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
81377
81378         * lib/close-stream.c, lib/close-stream.h: New files.
81379
81380 2006-07-22  Bruno Haible  <bruno@clisp.org>
81381
81382         Merge from GNU gettext 0.15.
81383
81384         2006-05-01  Bruno Haible  <bruno@clisp.org>
81385
81386                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
81387
81388         2006-07-22  Bruno Haible  <bruno@clisp.org>
81389
81390                 * modules/javaversion: New file.
81391                 * MODULES.html.sh (Java): Add javaversion.
81392
81393         2006-03-12  Bruno Haible  <bruno@clisp.org>
81394
81395                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
81396
81397         2005-12-04  Bruno Haible  <bruno@clisp.org>
81398
81399                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
81400                 (untested).
81401
81402         2006-06-21  Bruno Haible  <bruno@clisp.org>
81403
81404                 Avoid warnings from recent versions of mcs.
81405                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
81406                 -o, -L, -r any more. Use options documented since mcs-1.0
81407                 instead. Similarly for -g.
81408
81409         2005-12-04  Bruno Haible  <bruno@clisp.org>
81410
81411                 * build-aux/csharpcomp.sh.in: Suffix for resources is
81412                 .resources, not .resource.
81413
81414         2005-07-09  Bruno Haible  <bruno@clisp.org>
81415
81416                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
81417                 add a .dll suffix.
81418                 Reported by Mark Junker <mjscod@gmx.de>.
81419
81420         2006-07-22  Bruno Haible  <bruno@clisp.org>
81421
81422                 * modules/gettext: Upgrade to gettext-0.15.
81423                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
81424                 m4/visibility.m4.
81425                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
81426
81427 2006-07-22  Bruno Haible  <bruno@clisp.org>
81428
81429         Merge from GNU gettext 0.15.
81430
81431         2006-03-25  Bruno Haible  <bruno@clisp.org>
81432
81433                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
81434
81435         2006-07-21  Bruno Haible  <bruno@clisp.org>
81436
81437                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
81438                 "1.1".
81439
81440         2006-05-09  Bruno Haible  <bruno@clisp.org>
81441
81442                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
81443                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
81444                 for the conftestver execution.
81445
81446         2006-05-01  Bruno Haible  <bruno@clisp.org>
81447
81448                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
81449                 optional target-version argument. Verify that the compiler
81450                 groks source of the specified source-version, or add -source
81451                 option as necessary. Verify that the compiler produces
81452                 bytecode in the specified target-version, or add -target and
81453                 -source options as necessary. Make the result of the test
81454                 available as variable CONF_JAVAC. Also log error output in
81455                 config.log.
81456
81457         2006-03-11  Bruno Haible  <bruno@clisp.org>
81458
81459                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
81460
81461         2006-05-09  Bruno Haible  <bruno@clisp.org>
81462
81463                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
81464                 CLASSPATH_SEPARATOR to a semicolon.
81465
81466         2006-03-12  Bruno Haible  <bruno@clisp.org>
81467
81468                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
81469                 available as variable CONF_JAVA, for subsequent autoconf
81470                 tests. Also log error output in config.log.
81471
81472         2006-07-19  Bruno Haible  <bruno@clisp.org>
81473
81474                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
81475                 that getline works on glibc2 systems. Needed to avoid trouble
81476                 in relocatable.c.
81477                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
81478
81479         2005-12-04  Bruno Haible  <bruno@clisp.org>
81480
81481                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
81482                 launcher (untested).
81483
81484         2005-12-04  Bruno Haible  <bruno@clisp.org>
81485
81486                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
81487
81488         2006-07-22  Bruno Haible  <bruno@clisp.org>
81489
81490                 * gettext.m4: Update from GNU gettext-0.15.
81491                 * nls.m4: Likewise.
81492                 * po.m4: Likewise.
81493                 * inttypes-pri.m4: Likewise.
81494                 * inttypes-h.m4: Renamed from inttypes.m4.
81495                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
81496
81497 2006-07-22  Bruno Haible  <bruno@clisp.org>
81498
81499         Merge from GNU gettext 0.15.
81500
81501         2005-07-05  Bruno Haible  <bruno@clisp.org>
81502
81503                 * printf-args.c (printf_fetchargs): Work around broken
81504                 definition of wint_t on mingw.
81505
81506         2005-02-12  Bruno Haible  <bruno@clisp.org>
81507
81508                 * xallocsa.h: Add extern "C" for C++.
81509
81510         2006-05-17  Bruno Haible  <bruno@clisp.org>
81511
81512                 Cygwin portability.
81513                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
81514
81515         2006-04-30  Bruno Haible  <bruno@clisp.org>
81516
81517                 * progreloc.c: Include <mach-o/dyld.h> if available.
81518                 (find_executable): Use _NSGetExecutablePath when possible.
81519
81520         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
81521
81522                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
81523                 function.
81524
81525         2005-12-29  Bruno Haible  <bruno@clisp.org>
81526
81527                 * progreloc.c (set_program_name_and_installdir): Fix
81528                 compilation error.
81529
81530         2005-12-04  Bruno Haible  <bruno@clisp.org>
81531
81532                 Cygwin portability.
81533                 * progreloc.c: Include <windows.h> also on Cygwin.
81534                 (find_executable): Add support for Cygwin.
81535                 (set_program_name_and_installdir): Handle also platforms with
81536                 nonempty EXEEXT.
81537
81538         2006-07-11  Bruno Haible  <bruno@clisp.org>
81539
81540                 * javacomp.c: Fix a comment.
81541                 Reported by Jim Meyering.
81542
81543         2006-04-30  Bruno Haible  <bruno@clisp.org>
81544
81545                 * javacomp.h (compile_java_class): Add source_version,
81546                 target_version arguments.
81547                 * javacomp.c: Rewritten to choose only a compiler that
81548                 respects the specified source_version and target_version.
81549
81550         2006-06-27  Bruno Haible  <bruno@clisp.org>
81551
81552                 Assume correct S_ISDIR macro.
81553                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
81554
81555         2006-07-22  Bruno Haible  <bruno@clisp.org>
81556
81557                 * javaversion.h: New file, from GNU gettext.
81558                 * javaversion.c: New file, from GNU gettext.
81559                 * javaversion.java: New file, from GNU gettext.
81560                 * javaversion.class: New file, from GNU gettext.
81561
81562         2006-05-17  Bruno Haible  <bruno@clisp.org>
81563
81564                 Cygwin portability.
81565                 * javaexec.c (execute_java_class): Test for jview program
81566                 also on Cygwin.
81567
81568         2006-04-09  Bruno Haible  <bruno@clisp.org>
81569
81570                 * fatal-signal.c: Don't include string.h.
81571                 (at_fatal_signal): Use a copying loop instead of memcpy.
81572
81573         2005-12-04  Bruno Haible  <bruno@clisp.org>
81574
81575                 * csharpexec.c: Add support for 'clix' launcher (untested).
81576                 (execute_csharp_using_sscli): New function.
81577                 (execute_csharp_program): Call it.
81578
81579         2006-06-21  Bruno Haible  <bruno@clisp.org>
81580
81581                 Avoid warnings from recent versions of mcs.
81582                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
81583                 -o, -L, -r any more. Use options documented since mcs-1.0
81584                 instead. Similarly for -g.
81585
81586         2005-07-09  Bruno Haible  <bruno@clisp.org>
81587
81588                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
81589                 add a .dll suffix.
81590                 Reported by Mark Junker <mjscod@gmx.de>.
81591
81592         2006-06-17  Bruno Haible  <bruno@clisp.org>
81593
81594                 * config.charset: Update for NetBSD 3.0.
81595
81596         2006-05-17  Bruno Haible  <bruno@clisp.org>
81597
81598                 Cygwin portability.
81599                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
81600
81601         2006-05-16  Bruno Haible  <bruno@clisp.org>
81602
81603                 * localcharset.c [CYGWIN]: Include <windows.h>.
81604                 (get_charset_aliases): For Cygwin, return the same CPxxx
81605                 aliases list as under WIN32.
81606                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
81607                 the environment variables. Fall back to GetACP().
81608
81609         2006-04-05  Bruno Haible  <bruno@clisp.org>
81610
81611                 * config.charset: Update Juan Manuel Guerrero's address.
81612
81613         2005-02-12  Bruno Haible  <bruno@clisp.org>
81614
81615                 * allocsa.h: Add extern "C" for C++.
81616
81617         2005-02-10  Bruno Haible  <bruno@clisp.org>
81618
81619                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
81620                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
81621
81622         2006-07-22  Bruno Haible  <bruno@clisp.org>
81623
81624                 * gettext.h: Update to GNU gettext-0.15.
81625
81626 2006-07-22  Bruno Haible  <bruno@clisp.org>
81627
81628         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
81629         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
81630         lib-prefix.m4, longdouble.m4, ssize_t.m4.
81631
81632 2006-07-21  Eric Blake  <ebb9@byu.net>
81633
81634         * modules/stdlib-safer: New file.
81635         * MODULES.html.sh (File stream based Input/Output): Add
81636         stdlib-safer.
81637
81638 2006-07-21  Eric Blake  <ebb9@byu.net>
81639
81640         * lib/stdlib-safer.h: New file from coreutils, required by
81641         stdlib--.h.
81642
81643 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
81644
81645         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
81646
81647 2006-07-20  Bruno Haible  <bruno@clisp.org>
81648
81649         * gnulib-tool: Recognize new option --assume-autoconf.
81650         (autoconf_minversion): New variable.
81651         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
81652
81653 2006-07-20  Bruno Haible  <bruno@clisp.org>
81654
81655         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
81656
81657 2006-07-19  Derek R. Price  <derek@ximbiot.com>
81658
81659         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
81660         Reindent and repaginate.
81661
81662 2006-07-19  Derek Price  <derek@ximbiot.com>
81663
81664         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
81665         Correct grammar.
81666
81667 2006-07-17  Bruno Haible  <bruno@clisp.org>
81668
81669         * modules/list: New file.
81670         * modules/array-list: New file.
81671         * modules/carray-list, modules/carray-list-tests: New files.
81672         * modules/linked-list, modules/linked-list-tests: New files.
81673         * modules/avltree-list, modules/avltree-list-tests: New files.
81674         * modules/rbtree-list, modules/rbtree-list-tests: New files.
81675         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
81676         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
81677         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
81678         * modules/oset: New file.
81679         * modules/array-oset: New file.
81680         * modules/avltree-oset, modules/avltree-oset-tests: New files.
81681         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
81682         * tests/test-carray_list.c: New file.
81683         * tests/test-linked_list.c: New file.
81684         * tests/test-avltree_list.c: New file.
81685         * tests/test-rbtree_list.c: New file.
81686         * tests/test-linkedhash_list.c: New file.
81687         * tests/test-avltreehash_list.c: New file.
81688         * tests/test-rbtreehash_list.c: New file.
81689         * tests/test-avltree_oset.c: New file.
81690         * tests/test-rbtree_oset.c: New file.
81691         * MODULES.html.sh (Container data structures): New section.
81692
81693 2006-07-17  Bruno Haible  <bruno@clisp.org>
81694
81695         * m4/gl_list.m4: New file.
81696
81697 2006-07-17  Bruno Haible  <bruno@clisp.org>
81698
81699         * lib/gl_list.h: New file.
81700         * lib/gl_list.c: New file.
81701         * lib/gl_array_list.h: New file.
81702         * lib/gl_array_list.c: New file.
81703         * lib/gl_carray_list.h: New file.
81704         * lib/gl_carray_list.c: New file.
81705         * lib/gl_linked_list.h: New file.
81706         * lib/gl_linked_list.c: New file.
81707         * lib/gl_anylinked_list1.h: New file.
81708         * lib/gl_anylinked_list2.h: New file.
81709         * lib/gl_avltree_list.h: New file.
81710         * lib/gl_avltree_list.c: New file.
81711         * lib/gl_anyavltree_list1.h: New file.
81712         * lib/gl_anyavltree_list2.h: New file.
81713         * lib/gl_rbtree_list.h: New file.
81714         * lib/gl_rbtree_list.c: New file.
81715         * lib/gl_anyrbtree_list1.h: New file.
81716         * lib/gl_anyrbtree_list2.h: New file.
81717         * lib/gl_anytree_list1.h: New file.
81718         * lib/gl_anytree_list2.h: New file.
81719         * lib/gl_linkedhash_list.h: New file.
81720         * lib/gl_linkedhash_list.c: New file.
81721         * lib/gl_anyhash_list1.h: New file.
81722         * lib/gl_anyhash_list2.h: New file.
81723         * lib/gl_avltreehash_list.h: New file.
81724         * lib/gl_avltreehash_list.c: New file.
81725         * lib/gl_rbtreehash_list.h: New file.
81726         * lib/gl_rbtreehash_list.c: New file.
81727         * lib/gl_anytreehash_list1.h: New file.
81728         * lib/gl_anytreehash_list2.h: New file.
81729
81730         * lib/gl_oset.h: New file.
81731         * lib/gl_oset.c: New file.
81732         * lib/gl_array_oset.h: New file.
81733         * lib/gl_array_oset.c: New file.
81734         * lib/gl_avltree_oset.h: New file.
81735         * lib/gl_avltree_oset.c: New file.
81736         * lib/gl_rbtree_oset.h: New file.
81737         * lib/gl_rbtree_oset.c: New file.
81738         * lib/gl_anytree_oset.h: New file.
81739
81740 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
81741
81742         * m4/mkancesdirs.m4: New file.
81743         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
81744         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
81745         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
81746         it.
81747
81748 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
81749
81750         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
81751         * lib/mkancesdirs.h: New files.
81752         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
81753         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
81754         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
81755         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
81756         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
81757         callers changed.  Revamp internals significantly, by not
81758         attempting to create directories that are temporarily more
81759         permissive than the final results.  Do not attempt to use
81760         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
81761         This removes some race conditions, fixes some bugs, and simplifies
81762         things.  Use new dirchownmod function to do owner and mode changes.
81763         * lib/mkdir-p.h: Likewise.
81764         * lib/modechange.c (octal_to_mode): New function.
81765         (struct mode_change): New member mentioned.
81766         (make_node_op_equals): New arg mentioned.  All callers changed.
81767         (mode_compile): Keep track of which mode bits the user has explicitly
81768         mentioned.
81769         (mode_adjust): New arg DIR, so that we implement the X op correctly.
81770         New arg PMODE_BITS, to keep track of which mode bits the user
81771         mentioned; it treats S_ISUID and S_ISGID speciall.
81772         All callers changed.
81773         * lib/modechange.h: Likewise.
81774
81775 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
81776
81777         * MODULES.html.sh: Add mkancestors.
81778         * modules/mkancesdirs: New module.
81779         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
81780         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
81781         The chdir-safer and afs files are now orphans; I'll remove them
81782         unless someone speaks up.
81783         Add lib/dirchownmod.c, lib/dirchownmod.h.
81784         (Depends-on): Remove alloca, chown, save-cwd, dirname.
81785         Add lchown, mkancesdirs.
81786         (Maintainer): Add self.
81787
81788 2006-07-15  Karl Berry  <karl@gnu.org>
81789
81790         * gnulib-tool: help message wording/arrangement.
81791
81792 2006-07-14  Simon Josefsson  <jas@extundo.com>
81793
81794         * doc/gnulib.texi (Libtool and Windows): New section.
81795
81796 2006-07-12  Simon Josefsson  <jas@extundo.com>
81797
81798         * modules/gendocs (License): Fix license, approved by Karl.
81799
81800 2006-07-12  Eric Blake  <ebb9@byu.net>
81801
81802         * MODULES.html.sh: Add gendocs.
81803
81804 2006-07-11  Eric Blake  <ebb9@byu.net>
81805
81806         * modules/fdl: New module, to install doc/fdl.texi.
81807         * MODULES.html.sh: Add new section for documentation modules.
81808         * gnulib-tool: Avoid space-tab.
81809         (--doc-base): New option, to manage files from doc.
81810
81811 2006-07-11  Eric Blake  <ebb9@byu.net>
81812
81813         * m4/absolute-header.m4: Fix comments to match recent change.
81814
81815 2006-07-11  Eric Blake  <ebb9@byu.net>
81816
81817         * gnulib-tool: List --doc-base before --tests-base.
81818
81819 2006-07-11  Derek R. Price  <derek@ximbiot.com>
81820
81821         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
81822
81823 2006-07-11  Bruno Haible  <bruno@clisp.org>
81824
81825         * README: Mention where to put documentation.
81826
81827 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81828
81829         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
81830
81831 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
81832
81833         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
81834         to stdint.m4.
81835
81836 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
81837
81838         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
81839         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
81840         "no/such/file/stdint.h" when there is no such file, so that
81841         the resulting C code can be parsed by dodgy compilers.
81842         Problems reported by Bob Proulx.
81843
81844 2006-07-10  Derek R. Price  <derek@ximbiot.com>
81845
81846         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
81847         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
81848         macros into the GNU _D_EXACT_NAMLEN.
81849         * lib/savedir.c:  Likewise.
81850         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
81851
81852 2006-07-10  Derek R. Price  <derek@ximbiot.com>
81853         and Paul Eggert  <eggert@cs.ucla.edu>
81854
81855         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
81856         * m4/savedir.m4:
81857         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
81858         macros into the GNU _D_EXACT_NAMLEN.
81859
81860 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81861
81862         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
81863         around the absolute name, to work around a problem with the HP-UX
81864         11.23 native C compiler, reported by Bob Proulx.
81865
81866 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81867
81868         * doc/maintain.texi, make-stds.texi: Sync from
81869         <http://savannah.gnu.org/projects/gnustandards>.
81870
81871 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81872
81873         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
81874
81875 2006-07-09  Jim Meyering  <jim@meyering.net>
81876
81877         * m4/glob.m4: Remove a doubled word in a comment.
81878
81879 2006-07-09  Jim Meyering  <jim@meyering.net>
81880
81881         * lib/argp-pv.c: Remove a doubled word in a comment.
81882         * lib/check-version.c (check_version): Likewise.
81883         * lib/javacomp.c (compile_java_class): Likewise.
81884
81885 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
81886
81887         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
81888         for the benefit of people using Autoconf 2.60.  If you want to
81889         support older Autoconf versions you can copy m4/onceonly_2_57.m4
81890         (or m4/onceonly.m4, if pre-2.57) manually.
81891
81892 2006-07-08  Jim Meyering  <jim@meyering.net>
81893
81894         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
81895         comment.
81896         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
81897         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
81898         comment.
81899
81900 2006-07-08  Jim Meyering  <jim@meyering.net>
81901
81902         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
81903
81904 2006-07-07  Simon Josefsson  <jas@extundo.com>
81905
81906         * tests/test-crc.c: Change expected crc value, the test vector
81907         were probably computed using the old broken crc.c?
81908
81909 2006-07-06  Simon Josefsson  <jas@extundo.com>
81910
81911         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
81912         now the canonical place for the M4 file).
81913
81914         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
81915         from the sys_socket dependency now.
81916
81917         * modules/inet_pton (Files): Ditto.
81918
81919         * modules/inet_ntop (Files): Ditto.
81920
81921 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
81922
81923         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
81924         not gl_PREREQ_GETUSERSHELL.
81925
81926 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81927
81928         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
81929         with only one argument, for Autoconf 2.60.
81930         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
81931         expand to nothing, so add a shell command to avoid syntax error.
81932         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
81933
81934 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81935
81936         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
81937
81938 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81939
81940         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
81941         no longer needed.  Check for isblank decl.
81942         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
81943         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
81944         of existence.
81945
81946 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81947
81948         * lib/getloadavg.c: Use __VMS, not VMS.
81949         * lib/getopt.c: Likewise.
81950         * lib/getpagesize.h: Likewise.
81951         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
81952         and probably does not work.
81953
81954 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81955
81956         * lib/.cppi-disable: Add wcwidth.
81957         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
81958         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
81959         (ISGRAPH): Remove.  All uses changed to isgraph.
81960         (FOLD) [!defined _LIBC]: Remove special case.
81961         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
81962         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
81963         HAVE_ISBLANK.
81964         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
81965         case.
81966
81967 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
81968
81969         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
81970         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
81971         brackets.  Other minor changes to suppress some compiler
81972         warnings.
81973
81974 2006-07-06  Derek R. Price  <derek@ximbiot.com>
81975         and Paul Eggert  <eggert@cs.ucla.edu>
81976
81977         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
81978         of invoking obsolescent AC_HEADER_DIRENT macro.
81979         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
81980         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
81981         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
81982         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
81983         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
81984         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
81985         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
81986         * m4/readdir.m4: Remove; no longer needed.
81987
81988 2006-07-06  Derek R. Price  <derek@ximbiot.com>
81989         and Paul Eggert  <eggert@cs.ucla.edu>
81990
81991         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
81992         Don't worry about this obsolete case any more.
81993         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
81994         directories.
81995         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
81996         worry about this obsolete case any more.
81997         * lib/fts.c: Likewise.
81998         * lib/getcwd.c: Likewise.
81999         * lib/glob.h: Likewise.
82000         * lib/savedir.c: Likewise.
82001
82002 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
82003
82004         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
82005         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
82006         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
82007         needed.
82008         All uses removed.
82009         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
82010         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
82011         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
82012         needed.
82013         * m4/getdate.m4 (gl_GETDATE): Likewise.
82014         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
82015         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
82016         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
82017         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
82018         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
82019         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
82020         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
82021         needed.
82022
82023 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
82024
82025         * lib/memcasecmp.c: Include <limits.h>.
82026         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
82027         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
82028         Don't assume isdigit succeeds only on '0' through '9'.
82029
82030 2006-07-05  Eric Blake  <ebb9@byu.net>
82031
82032         * modules/getaddrinfo (Depends-on): Add snprintf.
82033
82034 2006-07-05  Eric Blake  <ebb9@byu.net>
82035
82036         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
82037         to avoid 'header present but could not be compiled' on cygwin.
82038
82039 2006-07-05  Eric Blake  <ebb9@byu.net>
82040
82041         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
82042         missing from netdb.h.
82043         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
82044
82045 2006-07-05  Derek R. Price  <derek@ximbiot.com>
82046
82047         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
82048         no longer needed.
82049         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
82050         * m4/getdate.m4 (gl_GETDATE): Likewise.
82051         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
82052         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
82053         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
82054         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
82055         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
82056
82057 2006-07-05  Derek R. Price  <derek@ximbiot.com>
82058
82059         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
82060         All uses of is_space replaced by isspace.
82061         * lib/exit.h: Don't talk about STDC_HEADERS.
82062         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
82063         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
82064         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
82065         replaced by isprint etc.
82066         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
82067         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
82068         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
82069         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
82070         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
82071         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
82072
82073 2006-07-05  Bruno Haible  <bruno@clisp.org>
82074
82075         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
82076         the function exists, before testing against AIX.
82077         Reported by Martin Lambers <marlam@marlam.de>.
82078
82079 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
82080
82081         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
82082         From Mark D. Baushke.
82083
82084 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
82085
82086         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
82087         to the absolute name, not just one, to bypass Sun C 5.8's
82088         "warning: #include of /usr/include/... may be non-portable".
82089
82090 2006-07-04  Eric Blake  <ebb9@byu.net>
82091
82092         * modules/dirname-tests: New test module.
82093         * tests/test-dirname.c: New file, replacing dirname.c
82094         TEST_DIRNAME section that was recently deleted.
82095
82096 2006-07-04  Bruno Haible  <bruno@clisp.org>
82097
82098         Assume ANSI C header files and <ctype.h> functions.
82099         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
82100         (mbsnwidth): Use isprint, iscntrl instead.
82101
82102 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82103
82104         Merge from coreutils.
82105         * MODULES.html.sh: Add xstrtold.
82106         * modules/xstrtold: New file.
82107         * modules/cycle-check (Files): Add lib/same-inode.h.
82108         * modules/dirname (Files): Add m4/double-slash-root.m4.
82109         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
82110         * modules/mkdir-p (Files): Add lib/same-inode.h.
82111         * modules/same (Files): Add lib/same-inode.h.
82112
82113 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82114
82115         * m4/absolute-header.m4: Renamed from full-header-path.m4.
82116         This is to keep the terminology clean; POSIX talks about
82117         "absolute pathnames", not "full pathnames", but the GNU
82118         Coding Standards say to use "path" for something else;
82119         so use "absolute" to keep both sides happy.
82120         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
82121         Set gl_absolute_header, not gl_full_header_path.
82122         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
82123         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
82124         All uses changed.
82125
82126         Merge from coreutils.
82127
82128         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
82129
82130         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
82131         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
82132         want to require the building of c-strtod.o.
82133         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
82134         needs -lm directly.
82135         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
82136
82137         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
82138
82139         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
82140         --as-needed option if available.  Problem reported by Albert Chin in
82141         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
82142         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
82143         cc merely issues a bunch of annoying warnings for --as-needed
82144         (this problem was reported by Bob Proulx).  Also, try linking with
82145         -lm to detect a bug in binutils 2.16 (this problem was reported
82146         by Ralf Wildenhues).
82147
82148         2006-06-18  Jim Meyering  <jim@meyering.net>
82149
82150         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
82151         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
82152         macro.
82153         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
82154         also check for glibc-2.4's abort-inducing bug.
82155
82156         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
82157         Low-probability clean-up should be to use rmdir to get rid of
82158         the just-created directory, not unlink.
82159
82160         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
82161         configure fail, and request a bug report to inform us about it.
82162         Add a comment that, barring reports to the contrary, in 2007 we'll
82163         assume ftruncate is universally available.
82164
82165         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
82166
82167         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
82168
82169         2006-03-12  Jim Meyering  <jim@meyering.net>
82170
82171         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
82172         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
82173         * m4/same.m4 (gl_SAME): Likewise.
82174         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
82175
82176         2006-03-11  Eric Blake  <ebb9@byu.net>
82177
82178         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
82179         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
82180         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
82181         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
82182
82183 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82184
82185         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
82186         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
82187         reported by Mark D. Baushke, one in
82188         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
82189
82190         Merge from coreutils.
82191
82192         * lib/.cppi-disable: Add stdint_.h.
82193         * lib/.cvsignore: Add stdint.h.
82194
82195         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
82196
82197         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
82198         both double and long double versions.
82199         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
82200         * lib/xstrtold.c: New file.
82201         * lib/xstrtod.h (xstrtold): New decl.
82202
82203         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
82204
82205         * lib/filemode.c (setst): Remove.
82206         (strmode): Rewrite to avoid setst.  This makes the code shorter,
82207         (arguably) clearer, and the generated code is a bit smaller on my
82208         Debian GNU/Linux stable x86 host.
82209
82210         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
82211
82212         * lib/filemode.c: Include "filemode.h" first, to test the interface.
82213         Assume that filemode.h includes sys/types.h and sys/stat.h.
82214         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
82215         (ftypelet): Reorder to put common cases first, for efficiency.
82216         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
82217         to do 'M'.
82218         (strmode): Renamed from mode_string, and now stores 12 bytes instead
82219         of 10, for compatibility with FreeBSD.  All callers changed.
82220         (filemodestring): Now stores 12 bytes instead of 10, and sets file
82221         types that can't be deduced solely from st_mode.  First arg is now a
82222         const pointer.
82223         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
82224         (strmode): Renamed from mode_string.
82225         (filemodestring): New decl.
82226         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
82227         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
82228         needed.
82229         (S_ISPORT, S_ISWHT): New macros, if not already defined.
82230
82231         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
82232
82233         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
82234         fsusage.h now does that.  Include fsusage.h first, to test interface.
82235         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
82236         at most one method (the old code could have generated decls that
82237         didn't conform to C89, not that this was ever exercised).
82238         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
82239
82240         2006-03-19  Jim Meyering  <jim@meyering.net>
82241
82242         Work even in a chroot where d_ino values for entries in "/"
82243         don't match the stat.st_ino values for the same names.
82244         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
82245         number, iterate through all entries again, using lstat instead.
82246         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
82247         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
82248
82249         * lib/getcwd.c (__getcwd): Clarify a comment.
82250         Use memcpy in place of a call to strcpy.
82251
82252         2006-03-12  Jim Meyering  <jim@meyering.net>
82253
82254         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
82255         matches that of the current directory (which we're about to chdir ".."
82256         out of), then save the dev-ino of the parent, instead.
82257
82258         * lib/same-inode.h (SAME_INODE): New file/macro.
82259         * lib/chdir-safer.c (SAME_INODE): Remove definition.
82260         Include "same-inode.h", instead.
82261         * lib/same.c: Likewise.
82262         * lib/cycle-check.h: Include "same-inode.h".
82263         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
82264         * lib/cycle-check.c (SAME_INODE): Remove definition.
82265         * lib/root-dev-ino.h: Include "same-inode.h".
82266
82267         2006-03-11  Eric Blake  <ebb9@byu.net>
82268
82269         * lib/same.c (same_name): s/base_name/last_component/
82270         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
82271         * lib/filenamecat.c (file_name_concat): Likewise.
82272
82273         2006-03-11  Eric Blake  <ebb9@byu.net>,
82274                     Paul Eggert  <eggert@cs.ucla.edu>
82275
82276         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
82277         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
82278         drive prefix.
82279         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
82280         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
82281         (last_component): New method.
82282         * lib/dirname.c (dir_len): Determine when drive letters need a
82283         subsequent slash.  Preserve // when it is special.
82284         (dir_name): Don't append dot when drive letter is absolute.
82285         [TEST_DIRNAME]: Move into a full-blown gnulib test.
82286         * lib/basename.c (base_name): New semantics - malloc the result.
82287         Preserve // when it is special.  Preserve relative files that look
82288         like drive letters.
82289         (base_len): Preserve // when it is special.
82290         (last_component): New method, similar to old base_name semantics.
82291         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
82292         base_name.  Strip redundant slashes from ///.
82293
82294 2006-07-03  Jim Meyering  <jim@meyering.net>
82295
82296         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
82297         macro is used before the first cycle_check call.
82298
82299 2006-07-03  Eric Blake  <ebb9@byu.net>
82300
82301         * modules/dirname (Depends-on): Add xstrndup.
82302
82303 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
82304
82305         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
82306         test cases, so that config.log is a bit easier to follow.
82307
82308 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
82309
82310         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
82311         both are 64 bits, since this seems to be the tradition, and this
82312         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
82313         we ever run into a host that prefers long long to long in this
82314         case, we'll need another configure-time test.  Problem reported by
82315         Jim Meyering.
82316
82317 2006-07-02  Eric Blake  <ebb9@byu.net>
82318
82319         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
82320
82321 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
82322
82323         * modules/inttypes (Depends-on): No longer depends on stdint.
82324         * modules/stdint (Description): Say more about assumptions.
82325         Say that the fast types might differ.  Say macros are used.
82326         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
82327         (Makefile.am): Revise list of substituted symbols to match
82328         new stdint.m4.
82329         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
82330         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
82331         * tests/test-stdint.c (verify_same_types)
82332         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
82333         the code conforms to C99/C89.
82334         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
82335         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
82336
82337 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
82338
82339         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
82340         but fix a bug, by requiring at least 64 bits.
82341         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
82342         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
82343         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
82344         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
82345
82346         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
82347         changes.  Make 2.59 a prerequisite.  Check and substitute for
82348         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
82349         inttypes.h.  Do not use special include files; just use the
82350         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
82351         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
82352         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
82353         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
82354         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
82355         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
82356         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
82357         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
82358         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
82359         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
82360         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
82361         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
82362         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
82363         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
82364         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
82365         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
82366         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
82367         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
82368         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
82369         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
82370         WINT_MAX.  Check for C99 conformance more strictly, by detecting
82371         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
82372         not check for things that C99 does not require, e.g., int8_t.  If
82373         a test isn't needed unless <stdint.h> isn't working, and is
82374         unlikely to be needed for any other reason, then don't do it
82375         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
82376         size_t, since we assume C89 freestanding at least.  Do not check
82377         for sig_atomic_t, wchar_t, or wint_t, since the code now does
82378         the right thing even if the types are not defined.  Instead use:
82379         (gl_STDINT_TYPE_PROPERTIES): New macro.
82380         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
82381         testing whether <sys/types.h> clashes, as Autoconf does this for
82382         us now.  All uses removed.
82383         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
82384         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
82385         (gl_CHECK_TYPE_SAME):
82386         Remove; no longer needed.
82387         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
82388         exists, since we'll return 0 anyway in that case.
82389         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
82390
82391 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
82392
82393         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
82394         possible collision with system files.
82395         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
82396         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
82397         WCHAR_MIN and WCHAR_MAX in this case.
82398         (<stddef.h>): Do not include; no longer needed.
82399         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
82400         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
82401         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
82402         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
82403         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
82404         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
82405         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
82406         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
82407         !defined(__c99))]: Include in this case too, since it's harmless
82408         now.
82409         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
82410         dangerous to do so.
82411         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
82412         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
82413         (_STDINT_MIN, _STDINT_MAX): New macros.
82414         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
82415         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
82416         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
82417         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
82418         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
82419         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
82420         macros, not typedefs; this simplifies things quite a bit.
82421         Use long int for all types narrower than int64_t.
82422         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
82423         Define in terms of long long int or int64_t or long int,
82424         not int64_t or int32_t.  This saves some compile-time testing.
82425         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
82426         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
82427         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
82428         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
82429         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
82430         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
82431         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
82432         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
82433         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
82434         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
82435         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
82436         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
82437         undef any previous version and define our own version, for
82438         simplicity and consistency with the new macros for types.
82439         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
82440         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
82441         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
82442         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
82443         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
82444         @WINT_T_SUFFIX@ to keep things simple here.
82445         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
82446         Simplify by assuming typical 8/16/32/64 host, since we're
82447         already doing that elsewhere anyway.
82448         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
82449         and assume long long int is 64 bits if available.  This
82450         speeds up 'configure'.
82451
82452 2006-07-01  Eric Blake  <ebb9@byu.net>
82453
82454         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
82455         Reported by Andreas Buening.
82456
82457 2006-07-01  Eric Blake  <ebb9@byu.net>
82458
82459         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
82460
82461 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
82462
82463         * lib/getaddrinfo.c: fixed typo
82464
82465 2006-06-29  Jim Meyering  <jim@meyering.net>
82466
82467         * modules/strftime (Maintainer): Add my name, since with the
82468         FPRINTFTIME changes strftime.c has forked from glibc.
82469
82470 2006-06-29  Eric Blake  <ebb9@byu.net>
82471
82472         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
82473
82474 2006-06-29  Eric Blake  <ebb9@byu.net>
82475
82476         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
82477
82478 2006-06-29  Eric Blake  <ebb9@byu.net>
82479
82480         * lib/stat_.h: New file.
82481
82482 2006-06-29  Eric Blake  <ebb9@byu.net>
82483
82484         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
82485         unused static function.
82486
82487 2006-06-29  Eric Blake  <ebb9@byu.net>
82488
82489         * doc/functions.texi (Function Portability): Document missing lstat
82490         on mingw.
82491
82492 2006-06-29  Eric Blake  <ebb9@byu.net>
82493
82494         * MODULES.html.sh: Add sys_stat.
82495         * modules/sys_stat: New module.
82496         * modules/mkstemp (Depends-on): Add sys_stat.
82497
82498 2006-06-29  Derek R. Price  <derek@ximbiot.com>
82499
82500         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
82501
82502 2006-06-29  Derek R. Price  <derek@ximbiot.com>
82503
82504         * m4/c-bs-a.m4: Removed.
82505
82506 2006-06-29  Derek R. Price  <derek@ximbiot.com>
82507
82508         * lib/strftime.c: Assume strftime() exists.
82509
82510 2006-06-29  Derek Price  <derek@ximbiot.com>
82511
82512         * modules/c-bs-a: Removed - \a is C89.
82513         * MODULES.html.sh: Remove c-bs-a.
82514
82515 2006-06-29  Bruno Haible  <bruno@clisp.org>
82516
82517         * modules/wcwidth (License): Change to LGPL.
82518
82519 2006-06-28  Simon Josefsson  <jas@extundo.com>
82520
82521         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
82522         on _WIN32.
82523
82524         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
82525         getnameinfo.
82526
82527 2006-06-28  Simon Josefsson  <jas@extundo.com>
82528
82529         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
82530
82531 2006-06-28  Simon Josefsson  <jas@extundo.com>
82532
82533         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
82534         functions there.  It will succeed on Windows XP, but on Windows
82535         2000 and (presumably) earlier, it will fail, and use the internal
82536         re-implementation.
82537         (use_win32_p): New function.
82538         (getaddrinfo): Use strtoul on servname, to support numeric ports.
82539         Support AI_NUMERICSERV to disable getservbyname.
82540         (getnameinfo): New function, only supports
82541         NI_NUMERICHOST|NI_NUMERICSERV for now.
82542
82543         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
82544         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
82545         getnameinfo.
82546
82547 2006-06-28  Eric Blake  <ebb9@byu.net>
82548
82549         * modules/wcwidth: New file.
82550         * modules/mbchar (Depends-on): Add wcwidth.
82551         * modules/mbswidth (Depends-on): Add wcwidth.
82552         * MODULES.html.sh: Add wcwidth.
82553
82554 2006-06-28  Eric Blake  <ebb9@byu.net>
82555
82556         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
82557         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
82558
82559 2006-06-28  Eric Blake  <ebb9@byu.net>
82560
82561         * lib/xvasprintf.h: Fix comments.
82562
82563 2006-06-28  Eric Blake  <ebb9@byu.net>
82564
82565         * lib/mbchar.h (wcwidth): Include wcwidth.h.
82566         * lib/mbswidth.c (wcwidth): Move from here...
82567         * lib/wcwidth.h: ...to this new file.
82568
82569 2006-06-28  Derek R. Price  <derek@ximbiot.com>
82570
82571         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
82572
82573         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
82574         it's obsolete.
82575         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
82576
82577 2006-06-28  Derek R. Price  <derek@ximbiot.com>
82578
82579         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
82580         Autoconf 2.60 says this stuff was obsolete.
82581
82582 2006-06-28  Bruno Haible  <bruno@clisp.org>
82583
82584         * modules/wcwidth (Files): Add m4/wchar_t.m4.
82585
82586 2006-06-28  Bruno Haible  <bruno@clisp.org>
82587
82588         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
82589         gt_TYPE_WCHAR_T.
82590
82591 2006-06-28  Bruno Haible  <bruno@clisp.org>
82592
82593         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
82594         declaration for wcwidth.
82595         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
82596
82597 2006-06-28  Bruno Haible  <bruno@clisp.org>
82598
82599         * lib/mkdtemp.c [MINGW]: Include <io.h>.
82600         (mkdir): Define using _mkdir.
82601
82602 2006-06-28  Bruno Haible  <bruno@clisp.org>
82603
82604         * lib/getaddrinfo.h: Fix POSIX URL.
82605         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
82606         _WIN32.
82607         (use_win32_p): Make static.
82608         (getaddrinfo): Reject service name if it is empty or does not consist
82609         solely of decimal digits, or if its value is > 65535.
82610         (getnameinfo): Remove useless casts.
82611
82612 2006-06-27  Simon Josefsson  <jas@extundo.com>
82613
82614         * modules/sys_select: New file, suggested by Bruno Haible, Paul
82615         Eggert and Martin Lambers.
82616
82617 2006-06-27  Simon Josefsson  <jas@extundo.com>
82618
82619         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
82620         Eggert and Martin Lambers.
82621
82622 2006-06-27  Bruno Haible  <bruno@clisp.org>
82623
82624         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
82625         result to 0, not to empty.
82626         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
82627
82628 2006-06-27  Bruno Haible  <bruno@clisp.org>
82629
82630         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
82631
82632 2006-06-26  Simon Josefsson  <jas@extundo.com>
82633
82634         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
82635         present.
82636
82637 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
82638
82639         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
82640         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
82641         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
82642
82643 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
82644
82645         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
82646
82647 2006-06-26  Bruno Haible  <bruno@clisp.org>
82648
82649         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
82650
82651 2006-06-26  Bruno Haible  <bruno@clisp.org>
82652
82653         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
82654
82655 2006-06-26  Bruno Haible  <bruno@clisp.org>
82656
82657         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
82658         SGI C compiler in pre-C99 mode.
82659         Suggested by Mark D. Baushke and Larry Jones.
82660
82661 2006-06-26  Bruno Haible  <bruno@clisp.org>
82662
82663         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
82664         WCHAR_MAX.
82665         Reported by Mark D. Baushke and Larry Jones.
82666
82667 2006-06-26  Bruno Haible  <bruno@clisp.org>
82668
82669         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
82670         in pre-C99 mode.
82671         Suggested by Mark D. Baushke and Larry Jones.
82672
82673 2006-06-23  Simon Josefsson  <jas@extundo.com>
82674             Bruno Haible  <bruno@clisp.org>
82675
82676         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
82677         Emit mostlyclean-local rule.
82678         (func_emit_tests_Makefile_am): Likewise.
82679         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
82680
82681 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
82682
82683         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
82684
82685 2006-06-23  Bruno Haible  <bruno@clisp.org>
82686
82687         * tests/test-stdint.c: Update to match ISO C 99 Technical
82688         Corrigendum 1.
82689
82690 2006-06-23  Bruno Haible  <bruno@clisp.org>
82691
82692         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
82693
82694 2006-06-23  Bruno Haible  <bruno@clisp.org>
82695
82696         * lib/stdint_.h: Treat IRIX like OpenBSD.
82697
82698 2006-06-23  Bruno Haible  <bruno@clisp.org>
82699
82700         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
82701         ISO C 99 Technical Corrigendum 1.
82702
82703 2006-06-22  Simon Josefsson  <jas@extundo.com>
82704
82705         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
82706         MinGW.
82707
82708 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82709
82710         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
82711         needed.  Some compiler complained about some of them.  Problem reported
82712         by Larry Jones in
82713         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
82714
82715 2006-06-21  Simon Josefsson  <jas@extundo.com>
82716
82717         * tests/test-getaddrinfo.c: New file.
82718
82719         * modules/getaddrinfo-tests: New file.
82720
82721         * MODULES.html.sh: Add inet_pton.
82722
82723         * modules/inet_pton: New file.
82724
82725 2006-06-21  Simon Josefsson  <jas@extundo.com>
82726
82727         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
82728         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
82729         of using the (limited) gnulib implementation on Windows XP.
82730
82731         * m4/inet_pton.m4: New file.
82732
82733 2006-06-21  Simon Josefsson  <jas@extundo.com>
82734
82735         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
82736         variable.
82737
82738         * lib/socket_.h: Don't define WINVER.
82739
82740         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
82741         slightly modified to work in gnulib.
82742
82743 2006-06-21  Simon Josefsson  <jas@extundo.com>
82744
82745         * doc/gnulib.texi (Windows sockets): Add.
82746
82747 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
82748
82749         * lib/read-file.c (fread_file): Start with buffer allocation of
82750         0 bytes rather than 1 byte; this simplifies the code.
82751         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
82752         code to free buffer and save/restore errno.
82753         (internal_read_file): Remove unused local.
82754
82755 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
82756
82757         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
82758         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
82759         Problem reported by Denis Excoffier in
82760         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
82761
82762 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82763
82764         * modules/sys_socket, modules/socklen: Include sys/types since
82765         FreeBSD 4.x's sys/socket.h needs it.
82766
82767 2006-06-19  Simon Josefsson  <jas@extundo.com>
82768
82769         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
82770
82771 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
82772
82773         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
82774
82775 2006-06-19  Bruno Haible  <bruno@clisp.org>
82776
82777         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
82778         and FULL_PATH_INTTYPES_H in angle brackets.
82779         Reported by Mark D. Baushke <mdb@gnu.org>.
82780
82781 2006-06-17  Eric Blake  <ebb9@byu.net>
82782
82783         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
82784         errno.
82785
82786 2006-06-17  Bruno Haible  <bruno@clisp.org>
82787
82788         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
82789         <sys/inttypes.h>.
82790
82791 2006-06-17  Bruno Haible  <bruno@clisp.org>
82792
82793         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
82794         whether errno is declared. Assume <errno.h> declares errno.
82795
82796 2006-06-17  Bruno Haible  <bruno@clisp.org>
82797
82798         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
82799
82800 2006-06-17  Bruno Haible  <bruno@clisp.org>
82801
82802         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
82803         problem on Solaris 2.5.1.
82804
82805 2006-06-16  Eric Blake  <ebb9@byu.net>
82806
82807         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
82808         * lib/unicodeio.c [!defined errno]: Likewise.
82809         * lib/strtol.c [!defined errno]: Likewise.
82810         * lib/strtod.c [!defined errno]: Likewise.
82811
82812 2006-06-15  Eric Blake  <ebb9@byu.net>
82813
82814         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
82815
82816 2006-06-15  Eric Blake  <ebb9@byu.net>
82817
82818         * config/srclist.txt (ssize_t.m4): Lose sync.
82819
82820 2006-06-15  Bruno Haible  <bruno@clisp.org>
82821
82822         * modules/stdint (Files): Include m4/full-header-path.m4,
82823         m4/size_max.m4, m4/wchar_t.m4.
82824         (Makefile.am): Many more substitutions.
82825         * modules/stdint-tests: New file.
82826         * tests/test-stdint.c: New file.
82827
82828 2006-06-15  Bruno Haible  <bruno@clisp.org>
82829
82830         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
82831         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
82832         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
82833         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
82834         gl_CHECK_TYPE_SAME): New macros.
82835
82836 2006-06-15  Bruno Haible  <bruno@clisp.org>
82837
82838         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
82839
82840 2006-06-15  Bruno Haible  <bruno@clisp.org>
82841
82842         * lib/stdint_.h: Rewritten to be fully auto-configured.
82843         Fixes bug on HP-UX/IA64.
82844
82845 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
82846
82847         * lib/getdate.y (__attribute__): Don't define if already defined.
82848         Problem reported by Larry Jones.
82849         * lib/utimens.c (__attribute__): Likewise.
82850
82851 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
82852
82853         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
82854         reported by Andreas Schwab.
82855
82856 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82857             Bruno Haible  <bruno@clisp.org>
82858
82859         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
82860         check for the declaration of strnlen and a run test that exposes the
82861         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
82862         rpl_strndup.
82863
82864 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82865             Bruno Haible  <bruno@clisp.org>
82866
82867         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
82868
82869 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82870
82871         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
82872         compile test, for Tru64 4.0D.
82873
82874 2006-05-28  Karl Berry  <karl@gnu.org>
82875
82876         * config/srclist.txt (printf-args.c): lose sync.
82877
82878 2006-05-26  Martin Lambers  <marlam@marlam.de>
82879
82880         * lib/getpass.c: Updates the test for the native W32 API, and adds
82881         missing includes, thus fixing compilation warnings.
82882
82883 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
82884
82885         * lib/exclude.c (exclude_fnmatch): New function.
82886         (excluded_file_name): Call exclude_fnmatch.
82887         * lib/exclude.h (excluded_file_name): New prototype
82888
82889 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
82890
82891         * lib/tempname.c (small_open, large_open): New macros.
82892         (__open, __open64) [!_LIBC]: Remove.
82893         (__gen_tempname): Use small_open and large_open instead of __open
82894         and __open64.  This fixes a portability bug on HP-UX 11.11i
82895         reported by Simon Wing-Tang in
82896         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
82897
82898 2006-05-24  Bruno Haible  <bruno@clisp.org>
82899
82900         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
82901         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
82902         Reported by Thorsten Maerz <torte@netztorte.de> via
82903         Aaron Stone <aaron@serendipity.cx>.
82904
82905 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
82906
82907         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
82908         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
82909         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
82910         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
82911         not really conditional on the cache.
82912         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
82913
82914 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
82915
82916         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
82917         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
82918         (my_usleep): Don't mishandle maximum value.
82919
82920 2006-05-19  Jim Meyering  <jim@meyering.net>
82921
82922         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
82923
82924 2006-05-17  Bruno Haible  <bruno@clisp.org>
82925
82926         Cygwin portability.
82927         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
82928
82929 2006-05-17  Bruno Haible  <bruno@clisp.org>
82930
82931         * lib/stdint_.h: Fix recognition of Cygwin.
82932
82933 2006-05-15  Bruno Haible  <bruno@clisp.org>
82934
82935         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
82936         on libtool patch by Ralf Wildenhues.
82937
82938 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82939
82940         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
82941         test for C99 conformance; (bool) 0.5 is an integer constant
82942         expression, but (bool) -0.5 is not.  Problem reported by Fedor
82943         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
82944
82945 2006-05-11  Simon Josefsson  <jas@extundo.com>
82946
82947         * m4/xvasprintf.m4: Fix obvious typo.
82948
82949 2006-05-11  Jim Meyering  <jim@meyering.net>
82950
82951         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
82952         James Lemley.
82953
82954 2006-05-10  Simon Josefsson  <jas@extundo.com>
82955
82956         * lib/md4.c: Typo fix, update copyright years.
82957         (K1, K2): Don't use L because it turn computations into 64-bit on
82958         64-bit platforms.
82959
82960 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
82961
82962         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
82963         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
82964         unwanted sign propagation, e.g., on hosts with 64-bit int.
82965         There still are some problems with reeelly weird theoretical hosts
82966         (e.g., 33-bit int) but it's not worth worrying about now.
82967         * lib/sha1.c (rol): Likewise.
82968         (K1, K2, K3, K4): Remove unnecessary L suffix.
82969
82970 2006-05-10  Bruno Haible  <bruno@clisp.org>
82971
82972         * lib/des.c: Cast to avoid warnings.
82973
82974 2006-05-09  Bruno Haible  <bruno@clisp.org>
82975
82976         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
82977         (Depends-on): Depend also on xsize, stdarg.
82978         (configure.ac): Add gl_XVASPRINTF.
82979
82980 2006-05-09  Bruno Haible  <bruno@clisp.org>
82981
82982         * m4/xvasprintf.m4: New file.
82983
82984 2006-05-09  Bruno Haible  <bruno@clisp.org>
82985
82986         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
82987         (EOVERFLOW): Define fallback value.
82988         (xstrcat): New function.
82989         (xvasprintf): Recognize the special case of a string concatenation.
82990
82991 2006-05-08  Eric Blake  <ebb9@byu.net>
82992
82993         * gnulib-tool (func_version): Base copyright year on CVS date.
82994         (func_emit_copyright_notice): New function.
82995         (func_emit_lib_Makefile_am): Use it.
82996         (func_emit_tests_Makefile_am): Likewise.
82997         (func_import): Likewise.
82998
82999 2006-05-08  Bruno Haible  <bruno@clisp.org>
83000
83001         * modules/stdarg: New file.
83002         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
83003
83004 2006-05-08  Bruno Haible  <bruno@clisp.org>
83005
83006         * m4/stdarg.m4: New file, from GNU gettext.
83007
83008 2006-05-08  Bruno Haible  <bruno@clisp.org>
83009
83010         * config/srclist.txt (build-aux/config.rpath): different from latest
83011         release.
83012
83013 2006-05-08  Bruno Haible  <bruno@clisp.org>
83014
83015         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
83016
83017 2006-05-05  Jim Meyering  <jim@meyering.net>
83018
83019         * m4/warning.m4: New file, derived from bison's file by the same name.
83020
83021 2006-05-03  Bruno Haible  <bruno@clisp.org>
83022
83023         * lib/stdint_.h: Shorter URL.
83024         * lib/inttypes.h: Likewise.
83025
83026 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
83027
83028         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
83029
83030 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
83031
83032         * lib/verify.h: Document the internals better.  Most of this change
83033         was written by Bruno Haible.
83034
83035 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
83036
83037         * doc/verify.texi: New file, partly based on a proposal by
83038         Bruno Haible.
83039
83040 2006-05-02  Bruno Haible  <bruno@clisp.org>
83041
83042         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
83043         test from here...
83044         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
83045
83046 2006-04-29  Bruno Haible  <bruno@clisp.org>
83047
83048         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
83049         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
83050
83051 2006-04-29  Bruno Haible  <bruno@clisp.org>
83052
83053         * gnulib-tool: Make --update option actually work.
83054
83055 2006-04-29  Bruno Haible  <bruno@clisp.org>
83056
83057         * doc/gcd.texi: New file.
83058         * doc/gnulib.texi: Include it.
83059
83060 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
83061
83062         * lib/getdate.y (get_date): When adding relative date, start with the
83063         initial time, not with the result of the first mktime call.
83064
83065 2006-04-25  Bruno Haible  <bruno@clisp.org>
83066
83067         * gnulib-tool (func_import): Output the include directives in three
83068         blocks, sorted separately.
83069         Reported by Ben Pfaff <blp@cs.stanford.edu>.
83070
83071 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
83072
83073         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
83074         to define main with arguments, for C++.  Reported by Eric Blake.
83075         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
83076         Prefer 'int main ()' to 'int main (void)', for C++.
83077         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
83078         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
83079         for 'main', for C99 and C++.
83080
83081 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
83082
83083         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
83084         Don't assume that exit status -1 is valid.
83085         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
83086         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
83087         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
83088         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
83089         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
83090         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
83091         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
83092         functions can be used without declaring them, or that you can
83093         exit with status -1.
83094         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
83095
83096 2006-04-24  Karl Berry  <karl@gnu.org>
83097
83098         * config/srclist.txt (longdouble.m4): sync lost.
83099
83100 2006-04-24  Eric Blake  <ebb9@byu.net>
83101
83102         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
83103
83104 2006-04-24  Bruno Haible  <bruno@clisp.org>
83105
83106         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
83107         poll() implementation in AIX.
83108         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83109
83110 2006-04-24  Bruno Haible  <bruno@clisp.org>
83111
83112         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
83113         assigned exactly once.
83114
83115 2006-04-23  Claudio Fontana  <claudio@gnu.org>
83116             Bruno Haible  <bruno@clisp.org>
83117
83118         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
83119         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
83120         for AM_CPPFLAGS.
83121
83122 2006-04-23  Bruno Haible  <bruno@clisp.org>
83123
83124         * modules/copy-file: Depend on unistd.
83125         * modules/execute: Likewise.
83126         * modules/fatal-signal: Likewise.
83127         * modules/findprog: Likewise.
83128         * modules/mkdtemp : Likewise.
83129         * modules/pipe: Likewise.
83130         * modules/wait-process: Likewise.
83131
83132 2006-04-23  Bruno Haible  <bruno@clisp.org>
83133
83134         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
83135         condition was already detected.
83136         Reported by Ben Pfaff <blp@cs.stanford.edu>.
83137
83138 2006-04-23  Bruno Haible  <bruno@clisp.org>
83139
83140         * lib/copy-file.c: Include <unistd.h> unconditionally.
83141         * lib/execute.c: Likewise.
83142         * lib/fatal-signal.c: Likewise.
83143         * lib/findprog.c: Likewise.
83144         * lib/mkdtemp.c: Likewise.
83145         * lib/pipe.h: Likewise.
83146         * lib/pipe.c: Likewise.
83147         * lib/wait-process.h: Likewise.
83148
83149 2006-04-23  Bruno Haible  <bruno@clisp.org>
83150
83151         * gnulib-tool (func_usage): Fix --import description. Document
83152         --update.
83153         (func_import): Create temporary file in a temporary directory, if
83154         --dry-run is specified. Silence errors from 'grep' when there are no
83155         m4 files in $m4dir.
83156         (func_create_testdir): Silence errors from 'grep' when there are no
83157         m4 files in $m4dir.
83158         Reported by Karl Berry <karl@freefriends.org>.
83159
83160 2006-04-20  Bruno Haible  <bruno@clisp.org>
83161
83162         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
83163         one argument, so that the code will be portable to Autoconf 2.60.
83164         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
83165         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
83166         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
83167
83168 2006-04-19  Derek Price  <derek@ximbiot.com>
83169             Eric Blake  <ebb9@byu.net>
83170
83171         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
83172         rather than "/full/path.h".  Update comment to match.  Shorten &
83173         generalize m4_translit call via AS_TR_CPP.
83174
83175 2006-04-19  Derek Price  <derek@ximbiot.com>
83176             Eric Blake  <ebb9@byu.net>
83177
83178         * lib/inttypes.h: Correct grammar in comment.
83179
83180 2006-04-18  Derek Price  <derek@ximbiot.com>
83181             Paul Eggert  <eggert@cs.ucla.edu>
83182
83183         * modules/inttypes: New file.
83184         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
83185
83186 2006-04-18  Derek Price  <derek@ximbiot.com>
83187             Paul Eggert  <eggert@cs.ucla.edu>
83188
83189         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
83190         New files.
83191
83192 2006-04-18  Derek Price  <derek@ximbiot.com>
83193             Paul Eggert  <eggert@cs.ucla.edu>
83194
83195         * lib/inttypes.h: New file.
83196         * lib/strtoimax.c: Assume <inttypes.h>.
83197
83198 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
83199
83200         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
83201         isn't mounted.  Problem reported by Kir Kolyshkin.
83202
83203 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
83204
83205         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
83206         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
83207         Derek R. Price.
83208         * lib/regex.h (RE_DUP_MAX): Update comment to match current
83209         implementation.
83210
83211 2006-04-12  Eric Blake  <ebb9@byu.net>
83212
83213         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
83214         is now done automatically by the corresponding Autoconf macro.
83215
83216 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
83217
83218         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
83219         time_r.h.
83220
83221 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
83222
83223         Merge regex changes from libc, removing some of our
83224         POSIX-conformance changes that were rejected and redoing them in a
83225         less-intrusive way.
83226
83227         * lib/regcomp.c (re_compile_internal, init_dfa):
83228         Length arg is now size_t, not Idx.  All uses changed.
83229         (peek_token): Forward decl now says internal_function.
83230         (__re_error_msgid, __re_error_msgid_idx):
83231         Now static rather than extern with attribute_hidden.
83232         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
83233         For some reason libc prefers K&R style defns for external functions.
83234         (regerror) [!defined _LIBC]: Likewise.
83235         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
83236         (seek_collating_symbol_entry, lookup_collation_sequence_value):
83237         (build_range_exp, build_collating_symbol):
83238         Use K&R-style defn.
83239         (re_compile_fastmap): Use '\0' to memset, not 0.
83240         (utf8_sb_map): Make the calculations more obvious.
83241         (init_dfa, parse_bracket_exp, build_charclass_op):
83242         Call calloc and cast result, as glibc does.
83243         (init_word_char, fetch_token, peek_token, peek_token_bracket):
83244         (build_range_exp, build_collating_symbol):
83245         Now internal functions.
83246
83247         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
83248
83249         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
83250         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
83251         Don't depend on VMS; depend on __VMS instead, for POSIX
83252         namespace cleanness.
83253         (regoff_t): Define to ssize_t, not long int.
83254
83255         Remove the REG_ macros named below.  Instead, make the old names
83256         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
83257         __USE_GNU_REGEX.
83258         (REG_BACKSLASH_ESCAPE_IN_LISTS):
83259         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
83260         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
83261         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
83262         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
83263         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
83264         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
83265         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
83266         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
83267         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
83268         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
83269         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
83270         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
83271         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
83272         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
83273         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
83274         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
83275         (REG_NREGS):
83276         Remove.  All uses replaced by the old RE_* names.
83277         (RE_BACKSLASH_ESCAPE_IN_LISTS):
83278         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
83279         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
83280         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
83281         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
83282         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
83283         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
83284         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
83285         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
83286         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
83287         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
83288         Don't bother having these macros be independent of each others'
83289         values, since they no longer exist in the POSIX name space.
83290
83291         Rename the following member names back to their old names,
83292         unless !__USE_GNU_REGEX.  All uses changed back.
83293         (buffer): Renamed from re_buffer.
83294         (allocated): Renamed from re_allocated.
83295         (used): Renamed from re_used.
83296         (syntax): Renamed from re_syntax.
83297         (fastmap): Renamed from re_fastmap.
83298         (translate): Renamed from re_translate.
83299         (can_be_null): Renamed from re_can_be_null.
83300         (regs_allocated): Renamed from re_regs_allocated.
83301         (fastmap_accurate): Renamed from re_fastmap_accurate.
83302         (no_sub): Renamed from re_no_sub.
83303         (not_bol): Renamed from re_not_bol.
83304         (not_eol): Renamed from re_not_eol.
83305         (newline_anchor): Renamed from re_newline_anchor.
83306         (num_regs): Renamed from rm_num_regs.
83307         (start): Renamed from rm_start.
83308         (end): Renamed from rm_end.
83309
83310         (free_state): Move up a bit.
83311
83312         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
83313         #define to be empty.
83314         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
83315         when that is what is intended.
83316         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
83317         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
83318         (MAX): New macro.
83319         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
83320         All uses changed back to re_malloc, etc.  It's now the caller's
83321         responsibility to check for overflow; all callers changed.
83322         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
83323         (re_x2nrealloc): Remove.
83324         (free_state): Remove decl.
83325
83326         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
83327         (re_set_registers, re_exec):
83328         Use K&R-style defn.
83329
83330         2006-01-31  Roland McGrath  <roland@redhat.com>
83331
83332         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
83333         Reported by Mike Frysinger <vapier@gentoo.org>.
83334
83335         2006-01-15  Andreas Jaeger  <aj@suse.de>
83336
83337         [BZ #1950]
83338         * lib/regex_internal.c (re_string_reconstruct): Adjust for
83339         build_wcs_upper_buffer change.
83340         (build_wcs_upper_buffer): Change return type.
83341
83342         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
83343
83344         * lib/regex_internal.h: Include <stdint.h> if available.
83345
83346         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
83347
83348         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
83349
83350         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
83351
83352         * lib/regcomp.c: Adjust for changed secondary hash function.
83353
83354         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
83355
83356         * lib/regex.h: Pretty printing.
83357         Clean up namespace a bit.
83358
83359         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
83360
83361         * lib/regexec.c (update_cur_sifted_state, check_arrival,
83362         check_arrival_add_next_nodes): Avoid using uninitialized variable.
83363
83364         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
83365                     Ulrich Drepper  <drepper@redhat.com>
83366
83367         [BZ #1302]
83368         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
83369         changed.
83370         (bitset_word_t): Renamed from bitset_word.  All uses changed.
83371
83372         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
83373
83374         [BZ #281]
83375         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
83376         * lib/regcomp.c: Remove unnecessary uses of
83377         unsigned RE_TRANSLATE_TYPE.
83378         * lib/regex_internal.h: Likewise.
83379         * lib/regex_internal.c: Likewise.
83380         * lib/regexec.c: Likewise.
83381         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
83382
83383         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
83384
83385         * lib/regexec.c (find_recover_state): Remove unnecessary
83386         initialization.
83387         (transit_state_bkref): Make DFA a const pointer.
83388         (get_subexp): Likewise.
83389         (check_arrival): Likewise.
83390         (update_cur_sifted_state): Likewise.
83391         (re_search_internal): Likewise.
83392         (prune_impossible_nodes): Likewise.
83393         (acquire_init_state_context): Likewise.
83394         (proceed_next_node): Likewise.
83395         (set_regs): Likewise.
83396         (free_fail_stack_return): Likewise.
83397         (check_arrival_expand_ecl): Mark DFA parameter as const.
83398         (check_arrival_expand_ecl_sub): Likewise.
83399         (check_subexp_limits): Likewise.
83400         (sub_epsilon_src_nodes):  Likewise.
83401         (add_epsilon_src_nodes):  Likewise.
83402         (merge_state_array): Likewise.
83403         (update_regs): Likewise.
83404         (build_trtable): Likewise.
83405         (sift_states_backward): Mark MCTX parameter as const.
83406         (build_sifted_states): Likewise.
83407         (update_cur_sifted_state): Likewise.
83408         (sift_states_mkref): Likewise.
83409         (check_arrival_expand_ecl): Mark eclosure as const.
83410         (check_dst_limits_calc_pos_1): Likewise.
83411         * lib/regex_internal.h (re_match_context_t): Make dfa a const
83412         pointer.
83413
83414         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
83415
83416         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
83417         (transit_state_sb): Likewise.
83418         (transit_state_mb): Likewise.
83419         (sift_states_iter_mb): Likewise.
83420         (check_arrival_add_next_nodes): Likewise.
83421         (check_node_accept_bytes): Change first parameter to pointer-to-const.
83422         [_LIBC] (re_search_2_stub): Use mempcpy.
83423
83424         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
83425         mbrtowc for very simple UTF-8 case.
83426
83427         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
83428         a pointer-to-const.
83429         (re_acquire_state_context): Likewise.
83430         * lib/regex_internal.h: Adjust prototypes.
83431
83432         * lib/regex.c: Prevent using C++ compilers.
83433
83434         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
83435         (re_acquire_state_context): Likewise.
83436
83437 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
83438
83439         * modules/regex (Depends-on): Add ssize_t.
83440
83441 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
83442
83443         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
83444         translation table.
83445
83446 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
83447
83448         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
83449
83450 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
83451             Bruno Haible  <bruno@clisp.org>
83452
83453         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
83454         <sys/types.h> and <inttypes.h>.
83455
83456 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83457
83458         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
83459         `__error_t_defined', so argp.h will not typedef the former.
83460
83461 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
83462
83463         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
83464         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
83465         glibc names.  Even if glibc is changed to conform to POSIX, the
83466         traditional names will be available anyway, since regex depends on
83467         the extensions module.  Also, fix a longstanding typo in the
83468         implementation of Spencer ERE test #75 from grep 2.3.  Problems
83469         reported by Emanuele Giaquinta.  Also, change sense of cached
83470         variable, so that the message makes sense.
83471
83472 2006-03-24  Simon Josefsson  <jas@extundo.com>
83473
83474         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
83475         including some doc fixes.
83476         (base64_encode_alloc): Fix +1 bug on allocation failures.
83477
83478 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83479
83480         * lib/base64.c (base64_encode): Do not read past end of array with
83481         unsanitized input on systems with CHAR_BIT > 8.
83482
83483 2006-03-24  Eric Blake  <ebb9@byu.net>
83484
83485         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
83486
83487 2006-03-22  Karl Berry  <karl@gnu.org>
83488
83489         * config/srclist.txt (*setenv.[ch]): get from coreutils.
83490         * config/srclistvars.sh (COREUTILS): new var.
83491
83492 2006-03-17  Jim Meyering  <jim@meyering.net>
83493
83494         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
83495         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
83496
83497 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
83498
83499         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
83500         no longer needs it.  Instead, check that regoff_t is as least
83501         as wide as ptrdiff_t.
83502
83503         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
83504         so that our regex.h stays compatible with the installed regex.
83505         This is helpful for installers who configure --without-included-regex.
83506         Problem reported by Emanuele Giaquinta.
83507
83508 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
83509
83510         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
83511         Typedef to long int, not to off_, as POSIX will likely change
83512         in that direction.
83513
83514 2006-03-15  Eric Blake  <ebb9@byu.net>
83515
83516         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
83517
83518 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
83519
83520         * lib/argp-help.c (validate_uparams): Fix typo
83521         * lib/argp-parse.c (argp_default_options): Consistently begin help
83522         messages with a lowercase letter.
83523
83524 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
83525
83526         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
83527         overrun buffers and shouldn't be used (much as gets shouldn't be
83528         used).
83529         * lib/time_r.c (asctime_r, ctime_r): Likewise.
83530
83531 2006-03-08  Simon Josefsson  <jas@extundo.com>
83532
83533         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
83534         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83535
83536 2006-03-08  Simon Josefsson  <jas@extundo.com>
83537
83538         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
83539         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83540
83541 2006-03-08  Simon Josefsson  <jas@extundo.com>
83542
83543         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
83544         signal that configure disabled the device.
83545
83546 2006-03-08  Simon Josefsson  <jas@extundo.com>
83547
83548         * build-aux/maint.mk: Fix refresh-po, to handle no translated
83549         languages.
83550
83551 2006-03-07  Simon Josefsson  <jas@extundo.com>
83552
83553         * modules/getopt (Depends-on): Add unistd.
83554
83555         * modules/unistd: New file.
83556
83557 2006-03-07  Simon Josefsson  <jas@extundo.com>
83558
83559         * modules/gc-random: New file.
83560
83561 2006-03-07  Simon Josefsson  <jas@extundo.com>
83562
83563         * m4/unistd_h.m4: New file.
83564
83565 2006-03-07  Simon Josefsson  <jas@extundo.com>
83566
83567         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
83568         test to be side-effect free by storing the result in the cache
83569         variable gl_cv_lib_readline, and moving the assignment of
83570         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
83571         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83572
83573 2006-03-07  Simon Josefsson  <jas@extundo.com>
83574
83575         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
83576         error on missing devices (the functions will return an error).
83577
83578         * m4/gc.m4: Move random stuff to gc-random.m4
83579
83580 2006-03-07  Simon Josefsson  <jas@extundo.com>
83581
83582         * lib/unistd_.h: New file.
83583
83584 2006-03-07  Simon Josefsson  <jas@extundo.com>
83585
83586         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
83587
83588 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
83589
83590         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
83591         Problem reported by Juan Manuel Guerrero.
83592
83593 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
83594
83595         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
83596         the unistd module.
83597         * lib/getlogin_r.c: Likewise.
83598         * lib/getlogin_r.h: Likewise.
83599         * lib/glob.c: Likewise.
83600         * lib/pagealign_alloc.c: Likewise.
83601         * lib/unistd_.h: Remove; no longer needed.
83602
83603 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
83604
83605         * MODULES.html.sh (Support for systems lacking POSIX:2001):
83606         Add unistd.
83607         * modules/c-stack (Depends-on): Add unistd.
83608         * modules/getlogin_r: Likewise.
83609         * modules/glob: Likewise.
83610         * modules/pagealign_alloc: Likewise.
83611         * modules/unistd (Files): Remove lib/unistd_.h.
83612         (EXTRA_DIST): Remove.
83613         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
83614         need unistd_.h.
83615         (MOSTLYCLEANFILES): Remove unistd.h-t.
83616
83617 2006-03-03  Simon Josefsson  <jas@extundo.com>
83618
83619         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
83620
83621 2006-03-03  Simon Josefsson  <jas@extundo.com>
83622
83623         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
83624         libidn and bison.
83625
83626 2006-03-03  Simon Josefsson  <jas@extundo.com>
83627
83628         * build-aux/maint.mk: Add indent target.
83629
83630 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
83631
83632         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
83633         our replacement poll.h in any case, to avoid a differing
83634         declaration from a system header.  Seen on AIX.
83635
83636 2006-03-01  Simon Josefsson  <jas@extundo.com>
83637
83638         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
83639         <kasal@ucw.cz>.
83640
83641 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83642
83643         * modules/gettime (Depends-on): Add extensions module.
83644         * modules/nanosleep (Depends-on): Likewise.
83645         * modules/settime (Depends-on): Likewise.
83646
83647 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83648
83649         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
83650         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
83651         pedantically.
83652         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
83653         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
83654
83655         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
83656         not "==".  Reported by Ralf Wildenhues.
83657
83658 2006-03-01  Karl Berry  <karl@gnu.org>
83659
83660         * doc/Copyright/request-*: new files, synced from gnuorg.
83661
83662 2006-03-01  Karl Berry  <karl@gnu.org>
83663
83664         * config/srclist.txt (Copyright/*): new entries.
83665
83666 2006-02-28  Simon Josefsson  <jas@extundo.com>
83667
83668         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
83669
83670 2006-02-27  Simon Josefsson  <jas@extundo.com>
83671
83672         * lib/base64.h: Indent #define's.  From Jim Meyering
83673         <jim@meyering.net>.
83674
83675 2006-02-27  Jim Meyering  <jim@meyering.net>
83676
83677         Revert the change of 2006-02-24, so these files can continue
83678         to be sync'd from gettext.
83679         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
83680         of `config.h'.
83681
83682 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
83683
83684         * modules/intprops: New file.
83685         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
83686         Add intprops.
83687         * modules/getloadavg (Files): Remove lib/intprops.h.
83688         (Depends-on): Add intprops.
83689         * modules/human: Likewise.
83690         * modules/inttostr: Likewise.
83691         * modules/openat: Likewise.
83692         * modules/sig2str: Likewise.
83693         * modules/userspec: Likewise.
83694         * modules/utimecmp: Likewise.
83695         * modules/xnanosleep: Likewise.
83696         * modules/xstrtol: Likewise.
83697
83698 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
83699
83700         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
83701         * modules/lock-tests (TESTS): Use $(EXEEXT).
83702         * modules/tls-tests: Likewise.
83703         * modules/argp-tests: Likewise.
83704         (check_PROGRAMS): New var, replacing...
83705         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
83706
83707 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83708
83709         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
83710         `config.h'.
83711
83712 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
83713
83714         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
83715
83716 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83717
83718         Sync from coreutils.
83719         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
83720         gl_CHDIR_SAFER.
83721
83722 2006-02-22  Jim Meyering  <jim@meyering.net>
83723
83724         Sync from coreutils.
83725         * m4/chdir-safer.m4: New file.
83726
83727 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
83728
83729         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
83730         AT_FDCWD exceeds INT_MAX.
83731         * lib/openat.h (AT_FDCWD): Likewise.
83732
83733 2006-02-17  Eric Blake  <address@hidden>
83734
83735         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
83736
83737 2006-02-16  Simon Josefsson  <jas@extundo.com>
83738
83739         * modules/getaddrinfo (Depends-on): Add sys_socket.
83740
83741 2006-02-15  Simon Josefsson  <jas@extundo.com>
83742
83743         * build-aux/maint.mk: Add dsyntax-check rule.
83744
83745 2006-02-15  Eric Blake  <ebb9@byu.net>
83746
83747         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
83748         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
83749         'present but cannot compile' warnings on cygwin.
83750         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
83751         use ws2tcpip.h if sys/socket.h works.
83752         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
83753         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
83754
83755 2006-02-14  Simon Josefsson  <jas@extundo.com>
83756
83757         * modules/maintainer-makefile (Files): Rename.
83758
83759         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
83760         and (the local) Makefile.cfg to maint-cfg.mk.
83761
83762         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
83763         to the latter.
83764
83765         * modules/maintainer-makefile: New module.
83766
83767         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
83768         severaly stripped to make it possible to build it up from scratch
83769         with reliable tests.
83770
83771         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
83772         fixes to permit overriding the default actions when configure and
83773         makefile are not available.
83774
83775 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
83776
83777         Sync from coreutils.
83778         * modules/lstat (Depends-on): Don't depend on xalloc.
83779         (License): Change from GPL to LGPL, since this is now simply a
83780         replacement for a libc function.
83781
83782 2006-02-14  Jim Meyering  <jim@meyering.net>
83783
83784         Sync from coreutils.
83785
83786         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
83787         failure on deficient systems, and simplify gnulib lgpl dependencies.
83788         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
83789         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
83790
83791         * lib/xalloc-die.c: Remove unused definition of N_.
83792
83793 2006-02-14  Jim Meyering  <jim@meyering.net>
83794
83795         Sync from coreutils.
83796         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
83797         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
83798         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
83799         double-quote uses of that variable, to accommodate the rare case in
83800         which getmntent is available in none of the libraries checked.  This
83801         happens at least on FreeBSD 5.0.
83802
83803 2006-02-13  Simon Josefsson  <jas@extundo.com>
83804
83805         * gnulib-tool (Usage): Fix --import, from
83806         karl@freefriends.org (Karl Berry).
83807
83808 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
83809
83810         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
83811
83812 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
83813
83814         * lib/argp-namefrob.h: Restore changes accidentally lost during the
83815         "autoupdate" on 2005-12-12.
83816
83817 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
83818
83819         * modules/closeout (Depends-on): Remove atexit.
83820
83821 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
83822
83823         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
83824         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
83825
83826 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
83827
83828         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
83829         __EXTENSIONS__ if this causes compilation to fail.  Problem
83830         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
83831         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
83832
83833 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
83834
83835         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
83836         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
83837         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
83838         All uses changed.
83839
83840 2006-01-26  Simon Josefsson  <jas@extundo.com>
83841
83842         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
83843         prototype is visible on mingw32.
83844
83845         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
83846         for mingw32.
83847
83848         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
83849         mingw32).
83850
83851 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
83852
83853         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
83854         attempt to open for write; this always fails, at least on POSIX
83855         hosts.  This reinstates the 2006-01-09 change, which was
83856         inadvertently removed.
83857
83858 2006-01-26  Bruno Haible  <bruno@clisp.org>
83859
83860         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
83861         Reported by Paul Eggert.
83862
83863 2006-01-26  Bruno Haible  <bruno@clisp.org>
83864             Paul Eggert  <eggert@cs.ucla.edu>
83865
83866         * lib/stdbool_.h (_Bool)
83867         [(! (defined __cplusplus || defined __BEOS__)
83868           && !defined __GNUC__
83869           && !(defined __HP_cc || defined __xlc__
83870                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
83871                || defined __sgi))]:
83872         #define to signed char in these cases too; this simplifies
83873         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
83874         etc., separately) and makes it more conservative.
83875
83876 2006-01-25  Simon Josefsson  <jas@extundo.com>
83877
83878         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
83879         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
83880         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
83881
83882 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
83883
83884         * lib/argp-namefrob.h: Bugfix. Remove stray #
83885
83886 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
83887
83888         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
83889         so that we test the test.
83890         Check for yet another HP-UX cc bug involving *bool |= bool.
83891
83892 2006-01-25  Karl Berry  <karl@gnu.org>
83893
83894         * config/srclist.txt (vasnprintf.c): sync lost.
83895
83896 2006-01-25  Jim Meyering  <jim@meyering.net>
83897
83898         Sync from the stable (b5) branch of coreutils:
83899
83900         * lib/fts.c (fts_children): Don't let close() clobber errno from
83901         failed fchdir().
83902
83903         * lib/fts.c (fts_stat): When following a symlink-to-directory,
83904         don't necessarily interpret stat-fails+lstat-succeeds as indicating
83905         a dangling symlink.  That can also happen at least for ELOOP.
83906         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
83907         FYI, this bug predates the inclusion of fts.c in coreutils.
83908
83909         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
83910         in their own block, so pre-c99 compilers don't object.
83911
83912         Avoid the double-free (first in fts_read, second in fts_close) that
83913         would occur when an `active' directory is made inaccessible (e.g.,
83914         via chmod a-x) during a traversal.
83915         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
83916         before returning.  Reproduce this failure by
83917         mkdir -p a/b; cd a; chmod a-x . b
83918         Reported by Stavros Passas.
83919
83920 2006-01-25  Jim Meyering  <jim@meyering.net>
83921
83922         * lib/fileblocks.c: Remove more useless parentheses.
83923         * lib/readutmp.h: Likewise.
83924
83925 2006-01-25  Bruno Haible  <bruno@clisp.org>
83926
83927         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
83928         warnings.
83929         Reported by Paul Eggert.
83930
83931 2006-01-25  Bruno Haible  <bruno@clisp.org>
83932
83933         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
83934         rid of a trap command. For Solaris sh.
83935         Reported by Mark D. Baushke <mdb@gnu.org>.
83936
83937 2006-01-24  Simon Josefsson  <jas@extundo.com>
83938
83939         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
83940         Bruno.
83941
83942 2006-01-24  Karl Berry  <karl@gnu.org>
83943
83944         * config/srclist.txt (argp-namefrob.h): sync lost.
83945
83946 2006-01-24  Jim Meyering  <jim@meyering.net>
83947
83948         * modules/openat (Files): Add lib/intprops.h.
83949         From Mark D. Baushke.
83950
83951 2006-01-24  Jim Meyering  <jim@meyering.net>
83952
83953         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
83954         Reported by Mark D. Baushke.
83955
83956 2006-01-24  Jim Meyering  <jim@meyering.net>
83957
83958         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
83959
83960 2006-01-24  Bruno Haible  <bruno@clisp.org>
83961
83962         * modules/strnlen (Maintainer): Change from glibc to all.
83963
83964 2006-01-24  Bruno Haible  <bruno@clisp.org>
83965
83966         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
83967         Patch by Paul Eggert.
83968
83969 2006-01-24  Bruno Haible  <bruno@clisp.org>
83970
83971         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
83972         already has it.
83973         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
83974         2005-11-26.
83975
83976         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
83977         'signed char' to avoid problems with the built-in _Bool type.
83978         Reported by Paul Eggert on 2005-11-26.
83979
83980 2006-01-24  Bruno Haible  <bruno@clisp.org>
83981
83982         * gnulib-tool (func_import): Avoid constructing complicated sed
83983         expressions inside backquote.
83984         Report and solution by Mark D. Baushke <mdb@gnu.org>.
83985
83986 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
83987
83988         These changes imported from libc.
83989         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
83990         test and two separate function calls.
83991         * lib/strndup.c (__strndup): Add libc_hidden_def.
83992
83993 2006-01-23  Simon Josefsson  <jas@extundo.com>
83994
83995         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
83996         Remove the test_*_SOURCES variable: automake infers it by default.
83997         * modules/tls-tests: Likewise.
83998
83999 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
84000
84001         Work around porting bugs reported by Dieter in
84002         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
84003         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
84004         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
84005         Include "getopt.h" first, to check interface.
84006         (getenv): Declare only if defined HAVE_DECL_GETENV &&
84007         !HAVE_DECL_GETENV.
84008         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
84009         (__strndup): Revert to K&R-style function dfns, the glibc style.
84010         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
84011         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
84012         Include strnlen.h first, to get prototype properly.
84013         (strnlen): Renamed from __strnlen.
84014         Remove weak alias.
84015
84016 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
84017
84018         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
84019
84020 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
84021
84022         * config/srclist.txt: Adjust to reflect glibc reorganization.
84023         This affects only comments.
84024
84025 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
84026
84027          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
84028          Reported by Bruce Korb <bkorb@gnu.org>.
84029
84030 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
84031
84032         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
84033         to pacify gcc -Wswitch-default.
84034
84035 2006-01-22  Bruno Haible  <bruno@clisp.org>
84036
84037         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
84038         temporary buffer for sprintf, take into account the precision also
84039         for 'd', 'i', 'u', 'o', 'x', 'X'.
84040
84041 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
84042
84043         * modules/argp-tests: New module
84044         * tests/test-argp.c: New file
84045         * tests/test-argp-2.sh: New file
84046
84047 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
84048
84049         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
84050         (__argp_base_name): Removed
84051         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
84052         typo.
84053         (__argp_base_name): Provide macro definition or extern declaration
84054         depending on the configuration
84055
84056 2006-01-20  Simon Josefsson  <jas@extundo.com>
84057
84058         * modules/inet_ntop (Depends-on): Depend on sys_socket.
84059
84060 2006-01-20  Simon Josefsson  <jas@extundo.com>
84061
84062         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
84063
84064 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84065
84066         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
84067         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
84068         Suggested by Bruno Haible.
84069
84070 2006-01-20  Karl Berry  <karl@gnu.org>
84071
84072         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
84073         until changes propagate, I guess.
84074
84075 2006-01-19  Simon Josefsson  <jas@extundo.com>
84076
84077         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
84078
84079 2006-01-19  Simon Josefsson  <jas@extundo.com>
84080
84081         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
84082
84083 2006-01-19  Simon Josefsson  <jas@extundo.com>
84084
84085         * gnulib-tool: Set check_PROGRAMS.
84086
84087         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
84088         modules/des-tests, modules/gc-arcfour-tests,
84089         modules/gc-arctwo-tests, modules/gc-des-tests,
84090         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
84091         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
84092         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
84093         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
84094         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
84095         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
84096         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
84097         test_*_SOURCES.
84098
84099 2006-01-18  Simon Josefsson  <jas@extundo.com>
84100
84101         * modules/socklen (Depends-on): Depend on sys_socket.
84102
84103 2006-01-18  Simon Josefsson  <jas@extundo.com>
84104
84105         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
84106         modules/des-tests, modules/gc-arcfour-tests,
84107         modules/gc-arctwo-tests, modules/gc-des-tests,
84108         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
84109         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
84110         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
84111         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
84112         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
84113         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
84114         $(EXEEXT) to automake TESTS variable, for mingw32.
84115
84116 2006-01-17  Simon Josefsson  <jas@extundo.com>
84117
84118         * modules/socklen (Include): Need sys/socket.h.
84119
84120 2006-01-17  Bruno Haible  <bruno@clisp.org>
84121
84122         * modules/ssize_t (Include): Add <sys/types.h>.
84123
84124 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
84125
84126         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
84127         it's not portable and it doesn't work with cross-compiles.
84128         Problem reported by Bruno Haible.  Fix missing-$ typo in
84129         'test "gl_cv_ignore_unused_libraries" ...' that prevented
84130         -zignore from being used with Sun's C compiler.
84131
84132 2006-01-12  Simon Josefsson  <jas@extundo.com>
84133
84134         * lib/base64.c: Fix warning, reported by Bruno Haible
84135         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
84136
84137 2006-01-12  Bruno Haible  <bruno@clisp.org>
84138
84139         * modules/ldd: New file.
84140         * build-aux/ldd.sh.in: New file.
84141         * MODULES.html.sh (Support for building libraries and executables): Add
84142         ldd.
84143
84144 2006-01-12  Bruno Haible  <bruno@clisp.org>
84145
84146         * m4/ldd.m4: New file.
84147
84148 2006-01-12  Bruno Haible  <bruno@clisp.org>
84149
84150         * gnulib-tool (func_import, func_create_testdir): Don't go into an
84151         endless loop while replacing $auxdir with build-aux.
84152
84153 2006-01-11  Simon Josefsson  <jas@extundo.com>
84154
84155         * lib/stdint_.h (SIZE_MAX): Add missing (.
84156
84157 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
84158
84159         Sync from coreutils.
84160         * lib/md5.c: Fix commentary typos.
84161         (alignof, UNALIGNED_P): No need for a GCC-specific version.
84162         * lib/md5.h (__attribute__): Remove; unused.
84163         * lib/sha1.c: Fix commentary to match md5 better.
84164         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
84165         so that we don't need to worry about alignment.  All uses changed.
84166         This merges the 2005-10-28 md5 change into sha1.
84167
84168 2006-01-11  Jim Meyering  <jim@meyering.net>
84169
84170         Sync from coreutils.
84171         * lib/md5.c (OP): Fix spacing.
84172
84173 2006-01-11  Bruno Haible  <bruno@clisp.org>
84174
84175         Ensure automatic ordering between gl_LOCK and gl_ARGP.
84176         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
84177         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
84178
84179 2006-01-11  Bruno Haible  <bruno@clisp.org>
84180
84181         Ensure automatic ordering between gl_LOCK and gl_ARGP.
84182         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
84183         the "early" section as well.
84184
84185 2006-01-11  Bruno Haible  <bruno@clisp.org>
84186
84187         Avoid "ar: no archive members specified" error on MacOS X.
84188         * gnulib-tool (func_modules_add_dummy): New function.
84189         (func_import, func_create_testdir): Invoke it.
84190
84191 2006-01-11  Bruno Haible  <bruno@clisp.org>
84192
84193         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
84194         with $auxdir in AC_CONFIG_FILES statements.
84195
84196 2006-01-11  Bruno Haible  <bruno@clisp.org>
84197
84198         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
84199         Initialize also noinst_HEADERS to empty.
84200
84201 2006-01-11  Bruno Haible  <bruno@clisp.org>
84202
84203         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
84204         variables.
84205         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
84206         autoreconf.
84207
84208 2006-01-11  Bruno Haible  <bruno@clisp.org>
84209
84210         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
84211         overridable by the user.
84212         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
84213
84214 2006-01-10  Simon Josefsson  <jas@extundo.com>
84215
84216         * modules/sys_socket: New file.
84217
84218 2006-01-10  Simon Josefsson  <jas@extundo.com>
84219
84220         * m4/sys_socket_h.m4: New file.
84221
84222 2006-01-10  Simon Josefsson  <jas@extundo.com>
84223
84224         * lib/socket_.h: New file.
84225
84226 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
84227
84228         * modules/readutmp (Maintainer): Add myself.
84229
84230 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
84231
84232         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
84233         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
84234         People who are still concerned with buggy memcmp implementations
84235         can invoke gl_FUNC_MEMCMP themselves.
84236
84237 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
84238
84239         * lib/regex_internal.h (BITSET_WORD_BITS):
84240         Work around a bug in 64-bit PGC (before version 6.1-2), where the
84241         preprocessor mishandles large unsigned values as if they were signed.
84242         Problem reported by Claudio Fontana in
84243         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
84244
84245 2006-01-10  Jim Meyering  <jim@meyering.net>
84246
84247         Avoid the double-free (first in fts_read, second in fts_close) that
84248         would occur when an `active' directory is made inaccessible (e.g.,
84249         via chmod a-x) during a traversal.
84250         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
84251         before returning.  Reproduce this failure by
84252         mkdir -p a/b; cd a; chmod a-x . b
84253         Reported by Stavros Passas.
84254
84255         Sync from coreutils.
84256         * lib/sha1.c: Tweak grammar in a comment.
84257
84258 2006-01-10  Jim Meyering  <jim@meyering.net>
84259
84260         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
84261         Patch by Joerg Sonnenberger.
84262
84263 2006-01-10  Bruno Haible  <bruno@clisp.org>
84264
84265         * modules/readutmp: Depend on module free.
84266         * modules/strtok_r: Depend on module restrict.
84267
84268 2006-01-10  Bruno Haible  <bruno@clisp.org>
84269
84270         * modules/gettext (configure.ac): Add an invocation of
84271         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
84272
84273 2006-01-10  Bruno Haible  <bruno@clisp.org>
84274
84275         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
84276         Reported by Werner Lemberg <wl@gnu.org>.
84277
84278 2006-01-10  Bruno Haible  <bruno@clisp.org>
84279
84280         * lib/localcharset.c: Update from GNU gettext.
84281
84282 2006-01-10  Bruno Haible  <bruno@clisp.org>
84283
84284         * lib/argp.h (__const): Remove macro. Use const instead.
84285         * lib/argp-fmtstream.h (__const): Likewise.
84286         * lib/glob_.h (__const): Remove macro.
84287         * lib/glob-libc.h: Use const instead of __const.
84288
84289 2006-01-10  Bruno Haible  <bruno@clisp.org>
84290
84291         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
84292         variable.
84293         Needed to avoid an automake error regarding the 'gettext' module.
84294
84295 2006-01-09  Simon Josefsson  <jas@extundo.com>
84296
84297         * modules/inet_ntop (Depends-on): Add restrict.
84298
84299 2006-01-09  Simon Josefsson  <jas@extundo.com>
84300
84301         * modules/gc-rijndael-tests (License): Put under LGPL.
84302
84303         * modules/gc-des-tests (License): Likewise.
84304
84305         * modules/gc-arcfour-tests (License): Likewise.
84306
84307         * modules/gc-arctwo-tests (License): Likewise.
84308
84309         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
84310
84311         * modules/gc-hmac-sha1-tests (Files): Likewise.
84312
84313         * modules/gc-hmac-md5-tests (License): Likewise.
84314
84315         * modules/gc-sha1-tests (License): Likewise.
84316
84317         * modules/gc-md5-tests (License): Likewise.
84318
84319         * modules/gc-md4-tests (License): Likewise.
84320
84321         * modules/gc-md2-tests (License): Likewise.
84322
84323         * modules/gc-tests (License): Likewise.
84324
84325         * modules/des-tests (License): Likewise.
84326
84327         * modules/md4-tests (License): Likewise.
84328
84329         * modules/md2-tests (License): Likewise.
84330
84331 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
84332
84333         Sync from coreutils:
84334
84335         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
84336         * modules/lib-ignore: New file.
84337         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
84338         chdir-safer.m4, lchmod.m4.
84339         * modules/openat: Add mkdirat.c, openat-priv.h.
84340
84341 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
84342
84343         Sync from coreutils.
84344         * m4/lib-ignore.m4: New file.
84345         * m4/lchmod.m4: New file.
84346
84347 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
84348
84349         Sync from coreutils.
84350         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
84351         for write access: POSIX says that must fail.
84352         * lib/fts.c (diropen): Likewise.
84353         * lib/save-cwd.c (save_cwd): Likewise.
84354         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
84355         well, for minor improvements on hosts that lack O_DIRECTORY.
84356         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
84357         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
84358         Fall back on chown if open failed with EACCES.
84359
84360         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
84361         Report an error at compile-time if only a 1-second nominal clock
84362         resolution is found.
84363
84364         * lib/lchmod.h: New file.
84365         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
84366         (make_dir_parents): Use lchown rather than chown, and
84367         lchmod rather than chmod.
84368
84369         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
84370         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
84371         "proc" reported by n0dalus.
84372
84373         * lib/mountlist.c: Include <limits.h>.
84374         (dev_from_mount_options)
84375         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
84376         New function.  It no longer assumes "dev=" has the System V meaning
84377         on Linux (since it doesn't).  It also parses "dev=" more carefully.
84378         (read_file_system_list)
84379         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
84380         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
84381         dev= in that case.
84382
84383         * lib/posixtm.h (PDS_PRE_2000): New macro.
84384         * lib/posixtm.c (year): Arg is now syntax_bits rather than
84385         allow_century.  All usages changed.  Reject dates outside the range
84386         1969-1999 if PDS_PRE_2000 is used.
84387
84388 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
84389
84390         Sync from coreutils.
84391         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
84392         (Time of day items): Mention the possibility of leap seconds.
84393         Problem reported by Dr. David Alan Gilbert.
84394
84395 2006-01-09  Jim Meyering  <jim@meyering.net>
84396
84397         Sync from coreutils.
84398
84399         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
84400
84401         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
84402
84403         * lib/modechange.c (mode_compile): Reject an invalid mode string
84404         that starts with an octal digit.  From Andreas Gruenbacher.
84405
84406         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
84407         and dup to open_safer and dup_safer, respectively.
84408         (openat_permissive): Fix typo in comment.
84409
84410         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
84411         "gettext.h"; either no longer needed or are guaranteed by openat.h.
84412         (_): Remove; no longer needed.
84413         (openat): Renamed from rpl_openat; no need for rpl_openat
84414         since openat.h renames openat for us.
84415         Replace most of the body with a call to openat_permissive,
84416         to avoid duplicate code.
84417         Port to (probably hypothetical) environments were mode_t is
84418         wider than int.
84419         (openat_permissive): Require mode arg, so that we can check
84420         types better.  Put it just after flags.  Change cwd failure
84421         indicator from pointer-to-bool to pointer-to-errno-value.
84422         All callers changed.
84423         Invoke openat_save_fail and/or openat_restore_fail if
84424         cwd_errno is null, so that openat can call us.
84425         (openat_permissive, fdopendir, fstatat, unlinkat):
84426         Simplify errno handling to avoid some duplicate code,
84427         as it's OK to set errno on success.
84428         * lib/openat.h: Revamp code so that function macros depend on
84429         __OPENAT_PREFIX only, not also on AT_FDCWD.
84430         (openat_ro): Remove.  Caller changed to use openat_permissive.
84431         (openat_permissive): Now a macro, if not a function.
84432         (openat_restore_fail, openat_save_fail): Now always functions,
84433         since mkdirat needs them even if __OPENAT_PREFIX is defined.
84434
84435         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
84436         and openat.c.
84437         * lib/mkdirat.c: Include openat-priv.h.
84438         Remove definitions of macros defined therein.
84439         * lib/openat.c: Likewise.
84440
84441         * lib/mkdirat.c (mkdirat): New file and function.
84442         * lib/openat.h (mkdirat): Declare.
84443
84444         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
84445
84446         * lib/openat.h (openat_permissive): Declare.
84447         (openat_ro): Define.
84448
84449         * lib/openat.c (EXPECTED_ERRNO): New macro.
84450         (openat_permissive): New function -- used in remove.c rewrite.
84451         (all functions): Set errno just before returning, only if there
84452         was an actual failure.
84453         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
84454
84455         Emulate openat-family functions using Linux's procfs, if possible.
84456         Idea and some code based on Ulrich Drepper's glibc changes.
84457
84458         * lib/openat.c: (BUILD_PROC_NAME): New macro.
84459         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
84460         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
84461         before falling back on save_cwd and restore_cwd.
84462         (fdopendir, fstatat, unlinkat): Likewise.
84463
84464         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
84465         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
84466
84467         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
84468         as second argument to va_arg.  Otherwise, some versions of gcc
84469         warn that `if this code is reached, the program will abort'.
84470
84471 2006-01-09  Jim Meyering  <jim@meyering.net>
84472
84473         Sync from coreutils.
84474         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
84475         Require openat-priv.h.
84476
84477 2006-01-09  Bruno Haible  <bruno@clisp.org>
84478
84479         * modules/strnlen (Include): Use strnlen.h.
84480
84481 2006-01-09  Bruno Haible  <bruno@clisp.org>
84482
84483         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
84484
84485 2006-01-09  Bruno Haible  <bruno@clisp.org>
84486
84487         * lib/sysexit_.h (EX_OK): New macro.
84488         Suggested by Martin Lambers <marlam@marlam.de>.
84489
84490 2006-01-09  Bruno Haible  <bruno@clisp.org>
84491
84492         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
84493         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
84494
84495 2006-01-09  Bruno Haible  <bruno@clisp.org>
84496
84497         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
84498         numbers.
84499
84500 2006-01-09  Bruno Haible  <bruno@clisp.org>
84501
84502         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
84503         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
84504         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
84505         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
84506
84507 2006-01-09  Bruno Haible  <bruno@clisp.org>
84508
84509         * build-aux/javacomp.sh.in: New file, moved from lib/.
84510         * modules/javacomp-script (Files): Update.
84511         (configure.ac): Add AC_CONFIG_FILES invocation.
84512         (EXTRA_DIST): Remove variable.
84513
84514         * build-aux/javaexec.sh.in: New file, moved from lib/.
84515         * modules/javaexec (Files): Update.
84516         (configure.ac): Add AC_CONFIG_FILES invocation.
84517         (EXTRA_DIST): Remove javaexec.sh.in.
84518
84519         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
84520         * modules/csharpcomp-script (Files): Update.
84521         (configure.ac): Add AC_CONFIG_FILES invocation.
84522         (EXTRA_DIST): Remove variable.
84523
84524         * build-aux/csharpexec.sh.in: New file, moved from lib/.
84525         * modules/csharpexec (Files): Update.
84526         (configure.ac): Add AC_CONFIG_FILES invocation.
84527         (EXTRA_DIST): Remove csharpexec.sh.in.
84528
84529 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
84530
84531         Sync from coreutils.
84532
84533         Add POSIX ACL support
84534         * lib/acl.h (copy_acl, set_acl): Add declarations.
84535         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
84536         systems other than Linux.
84537         (chmod_or_fchmod): New function: use fchmod when possible,
84538         and chmod otherwise.
84539         (file_has_acl): Add a POSIX ACL implementation, with a
84540         Linux-specific subcase.
84541         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
84542         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
84543         acls are unsupported.
84544         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
84545         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
84546         are unsupported.
84547
84548 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
84549
84550         Sync from coreutils.
84551         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
84552
84553 2006-01-07  Bruno Haible  <bruno@clisp.org>
84554
84555         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
84556         gl_EARLY.
84557
84558 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
84559
84560         * lib/strftime.c (tzname): Don't declare if it is already #defined.
84561         Problem reported for Mingw by Mark Junker.
84562
84563 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
84564
84565         * README: Gnulib normally doesn't generate a tarball.
84566
84567 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
84568
84569         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
84570         long int, not int, for nanosecond counts, so that people who are
84571         used to POSIX struct timespec won't be surprised.  Reported by Jim
84572         Meyering.
84573
84574 2005-12-28  Bruno Haible  <bruno@clisp.org>
84575
84576         * build-aux/config.rpath: Update from GNU gettext.
84577
84578 2005-12-16  Jim Meyering  <jim@meyering.net>
84579
84580         * modules/fprintftime: New module.
84581         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
84582
84583 2005-12-16  Jim Meyering  <jim@meyering.net>
84584
84585         * m4/fprintftime.m4: New file.
84586
84587 2005-12-16  Jim Meyering  <jim@meyering.net>
84588
84589         * lib/fprintftime.c, lib/fprintftime.h: New files.
84590
84591 2005-12-15  Simon Josefsson  <jas@extundo.com>
84592
84593         * modules/socklen (configure.ac): Fix M4 macro name, to align with
84594         new m4/socklen.m4.
84595
84596 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
84597
84598         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
84599         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
84600
84601 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
84602
84603         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
84604         * lib/argp-help.c (fill_in_uparams): Check if the constructed
84605         struct uparams is valid. Fall back to the default values if it is
84606         not.
84607
84608 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
84609
84610         * modules/argp (Files): Add argp-pin.c
84611         (Depends-on): dirname
84612         (lib_SOURCES): Add argp-pin.c
84613
84614 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
84615
84616         * m4/argp.m4:  Check if program_invocation_name and
84617         program_invocation_short_name are declared and define appropriate
84618         macros if they are not.
84619
84620 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
84621
84622         * lib/argp-help.c (__argp_base_name): New function
84623         (__argp_short_program_name): Rewrite using __argp_base_name
84624         * lib/argp-namefrob.h: Define program_invocation_name and
84625         program_invocation_short_name if requested
84626         (__argp_base_name): Add prototype
84627         * lib/argp-parse.c (argp_def): Use gettext wrappers
84628         (argp_default_parser): Use __argp_base_name
84629         * lib/argp-pin.c: New file. Defines program_invocation_name and
84630         program_invocation_short_name on systems that lack them.
84631
84632 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
84633
84634         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
84635         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
84636         porting problem reported by Georg Schwarz in
84637         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
84638
84639 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
84640
84641         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
84642         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
84643         porting problem reported by Georg Schwarz in
84644         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
84645
84646 2005-12-05  Bruno Haible  <bruno@clisp.org>
84647
84648         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
84649         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
84650         Reported by Mark Junker <mjscod@gmx.de>.
84651
84652 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
84653
84654         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
84655         Use implementation from Albert Chin, with some
84656         comments/corrections by Stepan Kasal and myself.
84657
84658 2005-12-02  Bruno Haible  <bruno@clisp.org>
84659
84660         * gnulib-tool (func_import): Accept GPLed build tool modules when
84661         --lgpl is given.
84662         * modules/csharpcomp-script: New file.
84663         * modules/csharpcomp: Depend on it.
84664         * modules/javacomp-script: New file.
84665         * modules/javacomp: Depend on it.
84666         Suggested by Simon Josefsson.
84667
84668 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
84669
84670         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
84671         statement, to work around an HP-UX 10.20 compiler bug reported by
84672         Peter O'Gorman.
84673
84674 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
84675
84676         * modules/savedir (Depends-on): Add openat.
84677
84678 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
84679
84680         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
84681         (uintmax_t) [defined uintmax_t]: Do not declare.
84682         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
84683         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
84684         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
84685         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
84686         sake of portability to weird hosts that C allows (though we don't
84687         know of any practical examples).
84688
84689         * lib/savedir.h (fdsavedir): New decl.
84690         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
84691         contains most of the former guts of savedir.
84692         (savedir): Use savedirstream.
84693         Include "openat.h".
84694
84695 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
84696
84697         * modules/obstack (Files): Add m4/ulonglong.m4.
84698         Problem reported by Davide Angelocola.
84699
84700 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
84701
84702         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
84703         coreutils no longer futzes with rounding modes.
84704
84705 2005-11-14  Jim Meyering  <jim@meyering.net>
84706
84707         * lib/mkstemp-safer.c: Include <config.h>, required for possible
84708         replacement of mkstemp.
84709
84710 2005-11-10  Simon Josefsson  <jas@extundo.com>
84711
84712         * lib/readline.c: Remove EOL.
84713
84714 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84715
84716         * modules/gethrxtime (Depends-on): Add gettime.
84717
84718 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84719
84720         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
84721         or gettimeofday; no longer needed.
84722
84723 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84724
84725         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
84726         time business.
84727         (gethrxtime) [! (HAVE_NANOUPTIME
84728         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
84729         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
84730         our own approximation.
84731
84732 2005-11-08  Eric Blake  <ebb9@byu.net>
84733
84734         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
84735
84736 2005-11-08  Eric Blake  <ebb9@byu.net>
84737
84738         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
84739
84740 2005-11-04  Bruno Haible  <bruno@clisp.org>
84741
84742         * gnulib-tool: Implement --update mode.
84743
84744 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
84745
84746         Fix porting problem reported by Theodoros V. Kalamatianos.
84747         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
84748         Don't assume that futimes failing means we must fail.
84749
84750 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
84751
84752         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
84753         variables to suggest the intended function of the PATH_MAX check.
84754
84755 2005-10-30  Kean Johnston  <jkj@sco.com>
84756
84757         Trivial changes to support SCO systems.
84758         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
84759         as PATH_MAX.
84760         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
84761         where __ptr is null when no I/O is pending.
84762
84763 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84764
84765         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
84766         leave errno alone.  Problem reported by Dmitry V. Levin.
84767
84768 2005-10-28  Simon Josefsson  <jas@extundo.com>
84769
84770         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
84771         Test more.
84772
84773         * tests/test-gc-md2.c, tests/test-md2.c: New files.
84774
84775         * modules/md2, modules/md2-tests: New files.
84776
84777 2005-10-28  Simon Josefsson  <jas@extundo.com>
84778
84779         * m4/inet_ntop.m4: More tests.
84780
84781         * m4/gc-md2.m4, md2.m4: New file.
84782
84783 2005-10-28  Simon Josefsson  <jas@extundo.com>
84784
84785         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
84786         "restrict" keywords, as per POSIX.  Protect the function
84787         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
84788         Don't use K&R prototypes.  Check the sprintf return values.
84789         Re-define EAFNOSUPPORT if not present.  Indent.
84790
84791         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
84792         suggested by Bruno Haible <bruno@clisp.org>.
84793
84794         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
84795
84796         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
84797
84798         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
84799         libgcrypt).
84800
84801         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
84802
84803         * lib/md2.h, lib/md2.c: New files.
84804
84805 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
84806
84807         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
84808         errno alone.  Problem reported by Frederic Jolliton.
84809
84810 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
84811
84812         * modules/verify (License): Change from GPL to LGPL.  This is a
84813         tiny module and there are apparently near-equivalents that are
84814         under the BSD license.
84815
84816 2005-10-24  Simon Josefsson  <jas@extundo.com>
84817
84818         * modules/sha1: Relicense to LGPL.
84819
84820 2005-10-24  Simon Josefsson  <jas@extundo.com>
84821
84822         * lib/md4.h: Shrink buffer size, now that we changed the type.
84823
84824 2005-10-23  Simon Josefsson  <jas@extundo.com>
84825
84826         * gnulib-tool (func_import): Fix --tests-base.
84827
84828 2005-10-22  Simon Josefsson  <jas@extundo.com>
84829
84830         * modules/arcfour (Depends-on): Need stdint.
84831
84832 2005-10-22  Simon Josefsson  <jas@extundo.com>
84833
84834         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
84835         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
84836
84837 2005-10-22  Simon Josefsson  <jas@extundo.com>
84838
84839         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
84840         suggested by Bruno Haible <bruno@clisp.org>.
84841
84842 2005-10-22  Simon Josefsson  <jas@extundo.com>
84843
84844         * lib/crc.h: Include stddef.h, for size_t.
84845
84846 2005-10-22  Simon Josefsson  <jas@extundo.com>
84847
84848         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
84849         arcfour_context struct (simplify test vector testing in GNU
84850         Shishi).
84851
84852 2005-10-21  Simon Josefsson  <jas@extundo.com>
84853
84854         * modules/des, modules/des-tests: New files.
84855
84856         * modules/gc-des, modules/gc-des-tests: New files.
84857
84858         * tests/test-des.c, tests/test-gc-des.c: New file.
84859
84860 2005-10-21  Simon Josefsson  <jas@extundo.com>
84861
84862         * modules/arctwo, modules/arctwo-tests: New files.
84863
84864         * tests/test-arctwo.c: New file.
84865
84866         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
84867
84868         * tests/test-gc-arctwo.c: New file.
84869
84870 2005-10-21  Simon Josefsson  <jas@extundo.com>
84871
84872         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
84873         Bruno Haible <bruno@clisp.org>.
84874
84875         * m4/gc-des.m4: New file.
84876
84877 2005-10-21  Simon Josefsson  <jas@extundo.com>
84878
84879         * m4/arctwo.m4: New file.
84880
84881         * m4/gc-arctwo.m4: New file.
84882
84883 2005-10-21  Simon Josefsson  <jas@extundo.com>
84884
84885         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
84886         block.
84887
84888 2005-10-21  Simon Josefsson  <jas@extundo.com>
84889
84890         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
84891         <bruno@clisp.org>.
84892
84893         * lib/hmac-sha1.c (hmac_sha1): Likewise.
84894
84895         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
84896         Bruno Haible <bruno@clisp.org>.
84897
84898         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
84899         <bruno@clisp.org>.
84900
84901 2005-10-21  Simon Josefsson  <jas@extundo.com>
84902
84903         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
84904
84905 2005-10-21  Simon Josefsson  <jas@extundo.com>
84906
84907         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
84908
84909 2005-10-21  Simon Josefsson  <jas@extundo.com>
84910
84911         * lib/des.h, lib/des.c: New files.
84912
84913         * lib/gc-gnulib.c: Support DES.c
84914
84915 2005-10-21  Simon Josefsson  <jas@extundo.com>
84916
84917         * lib/arctwo.h, lib/arctwo.c: New files.
84918
84919         * lib/gc-gnulib.c: Support ARCTWO.
84920
84921 2005-10-21  Simon Josefsson  <jas@extundo.com>
84922
84923         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
84924         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
84925
84926 2005-10-21  Simon Josefsson  <jas@extundo.com>
84927
84928         * gnulib-tool (func_import, func_create_testdir): Define automake
84929         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
84930         Makefile.am snippet),
84931         suggested by Bruno Haible <bruno@clisp.org>.
84932
84933         * modules/gc (Makefile.am): Use it.
84934
84935 2005-10-21  Bruno Haible  <bruno@clisp.org>
84936
84937         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
84938         patch.
84939
84940 2005-10-19  Simon Josefsson  <jas@extundo.com>
84941
84942         * tests/test-gc-rijndael.c: New file.
84943
84944         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
84945
84946 2005-10-19  Simon Josefsson  <jas@extundo.com>
84947
84948         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
84949         interface too.
84950
84951 2005-10-19  Simon Josefsson  <jas@extundo.com>
84952
84953         * tests/test-gc-arcfour.c: New file.
84954
84955         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
84956
84957 2005-10-19  Simon Josefsson  <jas@extundo.com>
84958
84959         * modules/gc-md4, modules/gc-md4-tests: New file.
84960
84961         * tests/test-gc-md4.c: New file.
84962
84963 2005-10-19  Simon Josefsson  <jas@extundo.com>
84964
84965         * m4/gc-md4.m4: New file.
84966
84967 2005-10-19  Simon Josefsson  <jas@extundo.com>
84968
84969         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
84970         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
84971         <kasal@ucw.cz>.
84972
84973 2005-10-19  Simon Josefsson  <jas@extundo.com>
84974
84975         * m4/gc-arcfour.m4: New file.
84976
84977         * m4/gc-rijndael.m4: New file.
84978
84979 2005-10-19  Simon Josefsson  <jas@extundo.com>
84980
84981         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
84982
84983 2005-10-19  Simon Josefsson  <jas@extundo.com>
84984
84985         * lib/gc-gnulib.c: Support ARCFOUR.
84986
84987 2005-10-19  Simon Josefsson  <jas@extundo.com>
84988
84989         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
84990         support.
84991
84992         * lib/gc.h: Add ECB enum type.
84993
84994         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
84995
84996 2005-10-18  Simon Josefsson  <jas@extundo.com>
84997
84998         * tests/test-md5.c: New file.
84999
85000         * modules/md5-tests: New file.
85001
85002 2005-10-18  Simon Josefsson  <jas@extundo.com>
85003
85004         * tests/test-md4.c: New file.
85005
85006         * modules/md4, modules/md4-tests: New files.
85007
85008 2005-10-18  Simon Josefsson  <jas@extundo.com>
85009
85010         * m4/md4.m4: New file.
85011
85012 2005-10-18  Simon Josefsson  <jas@extundo.com>
85013
85014         * lib/md4.h, lib/md4.c: New files, based on md5.?.
85015
85016 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
85017
85018         * gnulib-tool (func_create_testdir): Omit the second check whether
85019         BUILT_SOURCES in nonempty.
85020
85021 2005-10-17  Simon Josefsson  <jas@extundo.com>
85022
85023         * tests/test-rijndael.c: New file.
85024
85025 2005-10-17  Simon Josefsson  <jas@extundo.com>
85026
85027         * modules/sha1: Depend on stdint instead of md5.
85028
85029         * modules/md5: Depend on stdint, remove uint32_t.
85030
85031 2005-10-17  Simon Josefsson  <jas@extundo.com>
85032
85033         * modules/gc-sha1-tests: New file.
85034
85035         * tests/test-gc-sha1.c: New file.
85036
85037 2005-10-17  Simon Josefsson  <jas@extundo.com>
85038
85039         * m4/md5.m4: Remove call to uint32_t.m4.
85040
85041 2005-10-17  Simon Josefsson  <jas@extundo.com>
85042
85043         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
85044
85045         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
85046         md5.h.
85047
85048         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
85049
85050         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
85051
85052 2005-10-17  Simon Josefsson  <jas@extundo.com>
85053
85054         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
85055
85056 2005-10-17  Simon Josefsson  <jas@extundo.com>
85057
85058         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
85059
85060 2005-10-17  Simon Josefsson  <jas@extundo.com>
85061
85062         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
85063
85064         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
85065
85066 2005-10-17  Bruno Haible  <bruno@clisp.org>
85067
85068         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
85069         that it can also be used in a test.
85070
85071 2005-10-16  Bruno Haible  <bruno@clisp.org>
85072
85073         * gnulib-tool (func_emit_tests_Makefile_am): Also define
85074         TESTS_ENVIRONMENT, so that individual tests can augment it.
85075
85076         * gnulib-tool (func_create_testdir): Use an intermediate target for
85077         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
85078         macros, like $(ALLOCA_H), which cannot be passed through the command
85079         line.
85080
85081 2005-10-15  Simon Josefsson  <jas@extundo.com>
85082
85083         * modules/rijndael-tests: New file.
85084
85085         * modules/rijndael: New file.
85086
85087 2005-10-15  Simon Josefsson  <jas@extundo.com>
85088
85089         * m4/rijndael.m4: New file.
85090
85091 2005-10-15  Simon Josefsson  <jas@extundo.com>
85092
85093         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
85094
85095         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
85096
85097 2005-10-14  Simon Josefsson  <jas@extundo.com>
85098
85099         * tests/test-arcfour.c: New file.
85100
85101         * modules/arcfour, modules/arcfour-tests: New files.
85102
85103 2005-10-14  Simon Josefsson  <jas@extundo.com>
85104
85105         * m4/arcfour.m4: New file.
85106
85107 2005-10-14  Simon Josefsson  <jas@extundo.com>
85108
85109         * lib/arcfour.h, lib/arcfour.c: New files.
85110
85111 2005-10-14  Roland McGrath  <roland@redhat.com>
85112
85113         Import from libc.  [BZ #1331]
85114         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
85115         macro argument.
85116         Reported by Matej Vela <vela@debian.org>.
85117
85118 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
85119
85120         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
85121         include <wchar.h>; no longer needed.
85122
85123 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
85124
85125         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
85126
85127 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
85128         and  Ulrich Drepper  <drepper@redhat.com>
85129
85130         Import from libc.
85131         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
85132         instead of inline stream orientation test and two separate
85133         function calls.  Pay no attention to USE_IN_LIBIO.
85134
85135 2005-10-13  Simon Josefsson  <jas@extundo.com>
85136
85137         * modules/gc-hmac-md5-tests: New file.
85138
85139         * tests/test-gc-hmac-sha1.c: New file.
85140
85141         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
85142
85143         * modules/gc-hmac-md5-tests: New file.
85144
85145         * tests/test-gc-md5.c: New file.
85146
85147         * modules/gc-md5-tests: New file.
85148
85149 2005-10-13  Simon Josefsson  <jas@extundo.com>
85150
85151         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
85152         Move memory allocation outside of loop.
85153
85154 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
85155
85156         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
85157         intermediate directory is in a read-only file system.  Problem
85158         reported by Eric Blake.
85159
85160 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
85161
85162         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
85163
85164 2005-10-12  Simon Josefsson  <jas@extundo.com>
85165
85166         * tests/test-hmac-sha1.c: New file.
85167
85168         * modules/hmac-sha1-tests: New file.
85169
85170         * modules/hmac-sha1: New file.
85171
85172 2005-10-12  Simon Josefsson  <jas@extundo.com>
85173
85174         * modules/gc-sha1: New file.
85175
85176 2005-10-12  Simon Josefsson  <jas@extundo.com>
85177
85178         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
85179
85180         * tests/test-gc-pbkdf2-sha1.c: New file.
85181
85182 2005-10-12  Simon Josefsson  <jas@extundo.com>
85183
85184         * modules/gc-md5, modules/gc-hmac-md5: New files.
85185
85186         * modules/gc (Files): Remove md5, memxor and hmac files.
85187
85188 2005-10-12  Simon Josefsson  <jas@extundo.com>
85189
85190         * m4/gc-pbkdf2-sha1.m4: New file.
85191
85192         * m4/gc-hmac-sha1.m4: New file.
85193
85194         * m4/gc-sha1: New file.
85195
85196         * m4/hmac-sha1.m4: New file.
85197
85198 2005-10-12  Simon Josefsson  <jas@extundo.com>
85199
85200         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
85201
85202         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
85203
85204 2005-10-12  Simon Josefsson  <jas@extundo.com>
85205
85206         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
85207         suggested by Bruno Haible <bruno@clisp.org>.
85208
85209 2005-10-12  Simon Josefsson  <jas@extundo.com>
85210
85211         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
85212
85213 2005-10-12  Simon Josefsson  <jas@extundo.com>
85214
85215         * lib/gc-pbkdf2-sha1.c: New file.
85216
85217         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
85218
85219 2005-10-12  Simon Josefsson  <jas@extundo.com>
85220
85221         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
85222
85223         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
85224
85225 2005-10-12  Simon Josefsson  <jas@extundo.com>
85226
85227         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
85228         GC_USE_HMAC_MD5, respectively.
85229
85230         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
85231         (gc_md5): Fix typo.
85232
85233         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
85234
85235         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
85236
85237         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
85238
85239 2005-10-12  Bruno Haible  <bruno@clisp.org>
85240
85241         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
85242         Reported by Stepan Kasal <kasal@ucw.cz>.
85243
85244 2005-10-11  Simon Josefsson  <jas@extundo.com>
85245
85246         * tests/test-crc.c: New file.
85247
85248         * modules/crc, modules/crc-tests: New files.
85249
85250 2005-10-11  Simon Josefsson  <jas@extundo.com>
85251
85252         * m4/crc.m4: New file.
85253
85254 2005-10-11  Simon Josefsson  <jas@extundo.com>
85255
85256         * lib/gc.h: Add gc_hash and gc_hash_buffer.
85257
85258         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
85259
85260         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
85261
85262 2005-10-11  Simon Josefsson  <jas@extundo.com>
85263
85264         * lib/crc.h, lib/crc.c: New files.
85265
85266         * lib/gc.h (gc_hash_buffer): Add doc.
85267
85268 2005-10-11  Bruno Haible  <bruno@clisp.org>
85269
85270         * modules/c-strcasestr: New file.
85271         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
85272
85273 2005-10-11  Bruno Haible  <bruno@clisp.org>
85274
85275         * modules/c-strcase: New file.
85276         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
85277
85278 2005-10-11  Bruno Haible  <bruno@clisp.org>
85279
85280         * lib/strcasecmp.c: Include limits.h.
85281         (strcasecmp): Avoid integer overflow on exotic platforms.
85282         * lib/strncasecmp.c: Include limits.h.
85283         (strncasecmp): Avoid integer overflow on exotic platforms.
85284         Reported by Paul Eggert.
85285
85286 2005-10-11  Bruno Haible  <bruno@clisp.org>
85287
85288         * lib/c-strcasestr.h: New file, from GNU gettext.
85289         * lib/c-strcasestr.c: New file, from GNU gettext.
85290
85291 2005-10-11  Bruno Haible  <bruno@clisp.org>
85292
85293         * lib/c-strcase.h: New file, from GNU gettext.
85294         * lib/c-strcasecmp.c: New file, from GNU gettext.
85295         * lib/c-strncasecmp.c: New file, from GNU gettext.
85296
85297 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
85298
85299         * modules/mempcpy (License): GPL -> LGPL.
85300         * modules/strchrnul (License): Likewise.
85301         * modules/sysexits (License): Likewise.
85302
85303 2005-10-08  Simon Josefsson  <jas@extundo.com>
85304
85305         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
85306
85307 2005-10-07  Simon Josefsson  <jas@extundo.com>
85308
85309         * m4/memxor.m4: Remove gl_C_RESTRICT call.
85310
85311 2005-10-06  Simon Josefsson  <jas@extundo.com>
85312
85313         * tests/test-hmac-md5.c: New file.
85314
85315         * modules/hmac-md5-tests: New file.
85316
85317         * modules/hmac-md5: New file.
85318
85319 2005-10-06  Simon Josefsson  <jas@extundo.com>
85320
85321         * m4/hmac-md5.m4: New file.
85322
85323         * m4/memxor.m4: Require gl_C_RESTRICT.
85324
85325 2005-10-06  Simon Josefsson  <jas@extundo.com>
85326
85327         * lib/memxor.c (memxor): Avoid casts and warnings.
85328
85329 2005-10-06  Simon Josefsson  <jas@extundo.com>
85330
85331         * lib/hmac-md5.c: New file.
85332
85333         * lib/hmac.h: New file.
85334
85335 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
85336
85337         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
85338         promotes to int, not unsigned int, to catch the AIX 5.3
85339         compiler bug.
85340
85341 2005-10-05  Simon Josefsson  <jas@extundo.com>
85342
85343         * modules/memxor: New file.
85344
85345         * modules/iconv (Files): Move config.rpath to havelib, it is used
85346         there.
85347
85348         * modules/havelib (Files): Add config.rpath.
85349
85350 2005-10-05  Simon Josefsson  <jas@extundo.com>
85351
85352         * m4/memxor.m4: New file.
85353
85354 2005-10-05  Simon Josefsson  <jas@extundo.com>
85355
85356         * lib/memxor.c (memxor): Fix compiler error.
85357
85358         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
85359         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
85360
85361         * lib/memxor.h, lib/memxor.c: New files.
85362
85363         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
85364         we assume all systems have it, suggested by Jim Meyering
85365         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
85366         any systems lack sys/socket.h; mingw32 is known to lack it, but we
85367         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
85368         same reasons.
85369
85370 2005-10-05  Simon Josefsson  <jas@extundo.com>
85371
85372         * config/srclist.txt: Add glibc bug 1423 for md5.h.
85373
85374 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
85375
85376         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
85377         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
85378         needed, since the source code now assumes these .h files.
85379
85380 2005-10-05  Derek Price  <derek@ximbiot.com>
85381
85382         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
85383
85384 2005-10-05  Bruno Haible  <bruno@clisp.org>
85385
85386         * modules/stdint (License): Change to LGPL.
85387
85388 2005-10-04  Simon Josefsson  <jas@extundo.com>
85389
85390         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
85391         D. Baushke" <mdb@gnu.org>.
85392
85393 2005-10-04  Bruno Haible  <bruno@clisp.org>
85394
85395         * lib/verify.h (verify_true): Provide alternative definition for C++.
85396
85397 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
85398
85399         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
85400         (SSIZE_MAX): New macro, if not already defined.
85401         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
85402         than 2 GiB.
85403
85404 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
85405
85406         Sync from coreutils.
85407         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
85408         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
85409         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
85410         ULLONG_MAX doesn't work with 2.7.2.1.
85411
85412 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
85413
85414         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
85415         From Ben Pfaff.
85416
85417         * modules/exclude (Depends-on): Depend on verify.
85418         * modules/strtoimax (Depends-on): Likewise.
85419         * modules/utimecmp (Depends-on): Likewise.
85420
85421 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
85422
85423         * lib/exclude.c: Include verify.h.
85424         (verify): Remove.  All callers changed to use verify.h's version.
85425         * lib/strtoimax.c: Likewise.
85426         * lib/utimecmp.c: Likewis.e
85427
85428         Sync from coreutils.
85429         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
85430         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
85431         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
85432         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
85433         bother returning ENOSYS if settimeofday or stime fails; just let
85434         them return whatever errno they want to return.
85435         * lib/utimens.c: Include unistd.h, for dup2.
85436         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
85437         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
85438
85439 2005-10-02  Jim Meyering  <jim@meyering.net>
85440
85441         Sync from coreutils.
85442         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
85443         from glibc-2.2.5 that fails for read-only files.
85444
85445 2005-10-02  Jim Meyering  <jim@meyering.net>
85446
85447         Sync from coreutils.
85448         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
85449         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
85450         `#if HAVE_CONFIG_H'.
85451         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
85452         Remove AT_FDCWD test.
85453         Do not consume the fd unless successful.
85454         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
85455         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
85456         block, so that we don't even try to compile it if settimeofday is
85457         available.  This works around a compilation failure on OSF1 V5.1,
85458         due to stime requiring a `long int*' while tv_sec is `int'.
85459
85460 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
85461
85462         Sync from coreutils.
85463         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
85464         against `yes', rather than just testing for nonempty.
85465
85466 2005-10-01  Simon Josefsson  <jas@extundo.com>
85467
85468         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
85469         and Darwin.
85470
85471         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
85472         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
85473         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
85474         freeaddrinfo and gai_strerror are declared by the POSIX headers.
85475         Check if struct addrinfo is declared.
85476
85477 2005-10-01  Simon Josefsson  <jas@extundo.com>
85478
85479         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
85480         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
85481         AI_* and EAI_* definitions.  Protect function declarations.
85482
85483 2005-10-01  Jim Meyering  <jim@meyering.net>
85484
85485         Sync from coreutils.
85486
85487         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
85488         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
85489         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
85490         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
85491         in the inet and nsl libraries.  Required on Solaris 5.7.
85492
85493 2005-10-01  Jim Meyering  <jim@meyering.net>
85494
85495         Sync from coreutils.
85496         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
85497         in the inet and nsl libraries.  Required on Solaris 5.7.
85498
85499 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
85500
85501         * lib/getdelim.c (getdelim): Remove unused variables.
85502
85503 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
85504
85505         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
85506         so that the code works even with ancient cpp.  Portability problem
85507         with GCC 2.7.2.1 reported by Thomas M.Ott.
85508
85509 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
85510
85511         * modules/regex (Depends-on): Add strcase.
85512
85513         * modules/gethostname (Licence): Change from GPL to LGPL, since
85514         gethostname.c is a trivial implementation of a standard library
85515         function.
85516         * modules/poll (License): Change from GPL to LGPL, since it's
85517         derived from LGPL code.
85518
85519 2005-09-27  Jim Meyering  <jim@meyering.net>
85520
85521         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
85522         HAVE_CONFIG_H.
85523
85524         * lib/intprops.h (signed_type_or_expr__): Define.
85525         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
85526         for unsigned types.
85527
85528 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
85529
85530         * lib/verify.h (verify_expr): Remove, replacing with:
85531         (verify_true): New macro that returns true instead of void.
85532         (verify_type__): Remove.
85533         (verify): Use verify_true rather than verify_type__.
85534
85535 2005-09-26  Bruno Haible  <bruno@clisp.org>
85536
85537         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
85538         is necessary.
85539         (lib_SOURCES): Remove mbchar.c.
85540         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
85541         (Files): Add m4/mbrtowc.m4.
85542         * modules/mbiter: Likewise.
85543         * modules/mbuiter: Likewise.
85544
85545 2005-09-26  Bruno Haible  <bruno@clisp.org>
85546
85547         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
85548         compile mbchar.c if they are not both present.
85549         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
85550         * m4/mbiter.m4 (gl_MBITER): Likewise.
85551         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
85552         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
85553         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
85554
85555 2005-09-25  Jim Meyering  <jim@meyering.net>
85556
85557         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
85558         also uses socklen_t.
85559
85560 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
85561
85562         * lib/utimens.c (ENOSYS): Define if not already defined.
85563         (futimens): Support having a null PATH if the file descriptor
85564         is nonnegative.
85565
85566         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
85567         Remove.
85568         (__attribute): Define to empty unless GCC 3.1 or later.
85569         This works around a core dump on OpenBSD 3.4, which has GCC
85570         2.95.3, which dumps core when given __attribute__(()).  It also
85571         simplifies other tests, since we really don't want to bother with
85572         worrying about which ancient version of GCC supported what.
85573         Original problem reported by Yoann Vandoorselaere, with part of
85574         the fix suggested by Derek Price.
85575
85576 2005-09-24  Jim Meyering  <jim@meyering.net>
85577
85578         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
85579         so we can once again use a positive bitfield width of 1 -- now we
85580         don't have to explain why we were using a bitfield width of 2.
85581
85582 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
85583
85584         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
85585         and similarly for the other external symbols.  Problem reported
85586         by James Gallager.
85587
85588         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
85589         bug reported by Jim Meyering.
85590
85591         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
85592         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
85593         not needed, since socklen is a prerequisite module.
85594
85595 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
85596
85597         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
85598         Problem reported by Eric Blake.
85599         (getaddrinfo): Initialize se so that it's not garbage.
85600         Redo internal storage allocation so that it doesn't make unportable
85601         assumptions about alignment.
85602         Fix a memory leak.
85603
85604         * lib/utimens.c (futimens): Use futimesat if available.
85605         Prefer it to futimes since it doesn't have the futimes bug.
85606
85607         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
85608         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
85609         Instead, declare a function that returns a pointer to an array,
85610         and use verify_type__ to declare the size of the array.
85611         Problem and germ of a solution reported by Bruno Haible.
85612         (verify_type__): Use 2, not 1, for bitfield size, to avoid
85613         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
85614
85615 2005-09-23  Jim Meyering  <jim@meyering.net>
85616
85617         Sync from coreutils.
85618         Correct build failure (socklen_t not defined) on at least
85619         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
85620         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
85621
85622 2005-09-23  Jim Meyering  <jim@meyering.net>
85623
85624         * modules/getaddrinfo (Depends-on): Add socklen.
85625
85626 2005-09-23  Bruno Haible  <bruno@clisp.org>
85627
85628         * tests/test-verify.c: New file.
85629
85630 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
85631
85632         Sync from coreutils.
85633
85634         * modules/argmatch (Depends-on): Add verify.
85635         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
85636         unistd-safer.
85637         * modules/save-cwd (Depends-on): Likewise.
85638
85639         * modules/openat (Files): Add lib/openat-die.c.
85640         (Depends-on): Remove error, exitfail.
85641         Add dirname.
85642
85643         * modules/verify: New file.
85644         * MODULES.html.sh (Diagnostics <assert.h>): New section,
85645         with "verify" module.
85646
85647 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
85648
85649         Sync from coreutils.
85650
85651         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
85652         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
85653         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
85654         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
85655         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
85656         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
85657         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
85658         Don't bother checking for string.h, stdlib.h, unistd.h.
85659         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
85660         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
85661         module's job.
85662         * m4/jm-macros.m4 (gl_MACROS): Likewise.
85663         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
85664
85665         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
85666         (gl_GETDATE): Use it.
85667
85668         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
85669
85670 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
85671
85672         Sync from coreutils.
85673
85674         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
85675         stat-time.h.
85676         * lib/argmatch.h: Include verify.h
85677         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
85678         (ARGMATCH_ASSERT): Remove; unused.
85679         * lib/canonicalize.c: Assume STDC_HEADERS.
85680         * lib/exclude.c: Include "strcase.h".
85681         * lib/regex_internal.h [!defined _LIBC]: Likewise.
85682         * lib/getusershell.c: Include stdio--.h rather than stdio.h
85683         and stdio-safer.h.
85684         (getusershell): Call fopen, not fopen_safer.
85685         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
85686         Do not include unistd-safer.h.
85687         (save_cwd): Don't call fd_safer; no longer needed
85688         now that we include fcntl--.h.
85689
85690         * lib/getdate.y (relative_time): New type.
85691         (RELATIVE_TIME_0): New constant.
85692         (parser_control): Use relative_time instead of doing it ourselves.
85693         (%union): Add new relative_time rel member.
85694         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
85695         Now typeless.
85696         (relunit, relunit_snumber): Now of type rel.
85697         (zone, rel, relunit, get_date): Adjust to above changes.
85698
85699         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
85700         Do not include unistd-safer.h.
85701         (getloadavg): Don't call fd_safer; no longer needed
85702         now that we include fcntl--.h.
85703
85704         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
85705         (make_dir_parents): Treat ENOSYS like EEXIST.
85706
85707         Improve quality of diagnostics on restore_cwd failure.
85708         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
85709         (make_dir_parents): Last arg is now int * (for errno), not bool *.
85710         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
85711         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
85712         each time through the loop.  Do not diagnose restore_cwd failure;
85713         that is the caller's job (and perhaps the caller does not care).
85714
85715         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
85716         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
85717         If the file already exists but is not a directory, don't bother
85718         to try to make its parents.
85719         Close potential file descriptor leak if we can't chdir("/") (!).
85720         Don't always return true if chdir($PWD) fails; return true only
85721         if the requested action was done successfully (except for the
85722         chdir($PWD)).
85723         Don't log final directory unless we actually made it.
85724         Refactor to avoid duplicate code to fix up permissions.
85725         Don't attempt to fix up parent permissions if chdir($PWD) fails.
85726
85727         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
85728         to make it a bit faster and (I hope) clearer.
85729         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
85730         Fix bug in formats like %2N.
85731
85732         * lib/verify.h: New file.
85733
85734 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
85735
85736         Sync from coreutils.
85737         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
85738
85739 2005-09-22  Jim Meyering  <jim@meyering.net>
85740
85741         Sync from coreutils.
85742
85743         * m4/lstat.m4 (gl_FUNC_LSTAT):
85744         Use AC_LIBSOURCES to require lstat.c and lstat.h.
85745         Remove obsolete comment.
85746         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
85747         * m4/xstrtod.m4: Likewise.
85748
85749         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
85750
85751 2005-09-22  Jim Meyering  <jim@meyering.net>
85752
85753         Sync from coreutils.
85754
85755         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
85756
85757         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
85758         the .tm_year member, since otherwise gcc-4.0 would now warn about
85759         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
85760
85761         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
85762         order to avoid an unsuppressible warning from gcc on 64-bit systems.
85763
85764         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
85765         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
85766         when run in a time zone for which daylight savings time is in effect
85767         for the starting date.
85768
85769         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
85770         stop us from restricting permissions of just-created absolute-named
85771         directories.
85772         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
85773         to restore initial working directory.
85774         * lib/mkdir-p.c (make_dir_parents): New parameter:
85775         different_working_dir, to tell caller if/when we change the working
85776         directory and are unable to return to the initial one.
85777         * lib/mkdir-p.h (make_dir_parents): Update prototype.
85778         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
85779         `return false'.  This fixes a bug introduced on 2004-07-30.
85780
85781         * lib/openat.c (fdopendir): Be sure to close the supplied
85782         file descriptor before returning.  This makes our replacement
85783         implementation a little closer to Solaris's, where fdopendir
85784         ties the file descriptor to the returned DIR* pointer.
85785         * lib/openat.c (unlinkat): New function.
85786         * lib/openat.h (unlinkat): Add prototype.
85787         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
85788         (openat_restore_fail): Rename from openat_restore_die.
85789         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
85790
85791         Provide an alternative to exiting immediately upon save_cwd or
85792         restore_cwd failure.  Now, an application can arrange e.g.,
85793         to perform a longjump in that case.
85794         * lib/openat.c: Include dirname.h.
85795         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
85796         (rpl_openat, fdopendir, fstatat): Call openat_save_die
85797         and openat_restore_die rather than calling error directly.
85798         Don't include "error.h" or "exitfail.h"; they're no longer needed.
85799
85800         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
85801         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
85802         define.
85803
85804         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
85805         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
85806                             int utc, int nanoseconds);
85807         Background:
85808         date should not have to allocate a megabyte of virtual memory to
85809         handle a format argument like +%1048575T.  When implemented with
85810         strftime, it must allocate such a buffer, use strftime to fill it
85811         in, print it, then free it.
85812         With fprintftime, it simply prints everything and exits.
85813         With no need for memory allocation, that's one fewer way to fail.
85814         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
85815         optional field width, not before, so we accept %9:z, not %:9z.
85816         (my_strftime): Be sure to use L_('x') for literals.
85817
85818         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
85819         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
85820         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
85821         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
85822         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
85823         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
85824         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
85825         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
85826         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
85827         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
85828         * lib/xgethostname.c, lib/xreadlink.c:
85829         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
85830
85831         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
85832         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
85833         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
85834         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
85835         and don't include <sys/file.h>).
85836
85837 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
85838
85839         Sync from coreutils.
85840
85841         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
85842         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
85843         [!LDAV_DONE]: Avoid unused variable warning.
85844
85845 2005-09-21  Bruno Haible  <bruno@clisp.org>
85846
85847         * lib/unicodeio.h (unicode_to_mb): New declaration.
85848
85849 2005-09-20  Derek Price  <derek@ximbiot.com>
85850
85851         * lib/getaddrinfo.c: Don't include <netdb.h> included from
85852         getaddrinfo.h.
85853
85854 2005-09-20  Bruno Haible  <bruno@clisp.org>
85855
85856         * gnulib-tool: Remove trailing slashes from the values specified for
85857         --source-base, --m4-base, --tests-base, --aux-dir.
85858         Suggested by Simon Josefsson <jas@extundo.com>.
85859
85860 2005-09-20  Bruno Haible  <bruno@clisp.org>
85861
85862         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
85863         func_modules_to_filelist, func_import, func_create_testdir): Make all
85864         sorting results locale-independent, so that gnulib-cache.m4 doesn't
85865         change when gnulib-tool is invoked in a different locale.
85866
85867 2005-09-19  Simon Josefsson  <jas@extundo.com>
85868
85869         * m4/socklen.m4: Fix typo.
85870
85871 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85872
85873         Use a consistent style for including <config.h>.
85874         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
85875         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
85876         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
85877         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
85878         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
85879         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
85880         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
85881         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
85882         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
85883         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
85884         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
85885         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
85886         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
85887         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
85888         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
85889         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
85890         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
85891         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
85892         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
85893         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
85894         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
85895         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
85896         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
85897         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
85898         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
85899         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
85900         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
85901         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
85902         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
85903         lib/xstrtoumax.c, lib/yesno.c:
85904         Standardize inclusion of config.h.
85905         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
85906         lib/inttostr.h:  Removed inclusion of config.h from header files.
85907         * lib/inttostr.c:  Adjusted in-tree users.
85908         * lib/timespec.h: Remove superfluous warning to include config.h.
85909         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
85910         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
85911         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
85912         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
85913         config.h with HAVE_CONFIG_H.
85914
85915 2005-09-19  Jim Meyering  <jim@meyering.net>
85916
85917         * modules/pathmax (License): Change to LGPL.
85918
85919 2005-09-19  Derek Price  <derek@ximbiot.com>
85920
85921         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
85922
85923 2005-09-19  Bruno Haible  <bruno@clisp.org>
85924
85925         * gnulib-tool (import): Provide default for --tests-base.
85926
85927 2005-09-19  Bruno Haible  <bruno@clisp.org>
85928
85929         * doc/quote.texi: New file, extracted from gnulib.texi.
85930         * doc/ctime.texi: New file, extracted from gnulib.texi.
85931         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
85932         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
85933         * doc/gnulib.texi: Include them.
85934
85935 2005-09-18  Bruno Haible  <bruno@clisp.org>
85936
85937         Portability fix.
85938         * gnulib-tool (func_readlink): New function.
85939         (func_ln_if_changed): Use it.
85940
85941 2005-09-18  Bruno Haible  <bruno@clisp.org>
85942
85943         * gnulib-tool: Support --with-tests also with --import.
85944         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
85945         (func_import): Use variables $testsbase and $inctests. Emit a
85946         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
85947         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
85948         SUBDIRS += $testsdir.
85949         (func_create_testdir): Update.
85950
85951 2005-09-18  Bruno Haible  <bruno@clisp.org>
85952
85953         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
85954         instead of $dry_run.
85955         (func_cp_if_changed, func_mv_if_changed): Remove functions.
85956         (func_ln_if_changed): Don't handle dry-run here.
85957         (func_import): In dry-run mode, detect more precisely which actions
85958         would be performed, and don't use "...ing" verbs.
85959
85960 2005-09-18  Bruno Haible  <bruno@clisp.org>
85961
85962         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
85963         (func_import): Use join on two temporary files instead of three nested
85964         loops, in order to determine which files are new or old.
85965
85966 2005-09-18  Bruno Haible  <bruno@clisp.org>
85967
85968         * gnulib-tool (func_import): Comment out code that spits out the
85969         new files with --dry-run.
85970
85971 2005-09-18  Bruno Haible  <bruno@clisp.org>
85972
85973         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
85974
85975 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
85976
85977         * lib/stat-time.h: New file.
85978         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
85979         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
85980         in a different way.
85981         (timespec_cmp): New function.
85982         * lib/utimecmp.c: Include stat-time.h.
85983         (SYSCALL_RESOLUTION): Depend on whether various struct stat
85984         members exist, not on the obsolescent ST_MTIM_NSEC.
85985         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
85986
85987 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
85988
85989         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
85990
85991 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
85992
85993         * MODULES.html.sh (File system functions): Add stat-time.
85994         * modules/stat-time: New file.
85995         * modules/timespec (Files): Remove m4/st_mtim.m4; this
85996         is now done in a different way, by the stat-time module.
85997         * modules/utimecmp (Depends-on): Add stat-time.
85998
85999 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
86000
86001         * m4/st_mtim.m4: Remove.  Superseded by...
86002         * m4/stat-time.m4: New file.
86003         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
86004         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
86005
86006 2005-09-15  Derek Price  <derek@ximbiot.com>
86007
86008         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
86009
86010 2005-09-15  Derek Price  <derek@ximbiot.com>
86011
86012         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
86013         * lib/regex_internal.c: Ditto, using this...
86014         (__GNUC_PREREQ): ...new macro.
86015         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
86016         using...
86017         (__GNUC_PREREQ): ...this new macro.
86018
86019         * lib/strstr.h: Include string.h. Define strstr as a macro here.
86020
86021 2005-09-15  Derek Price  <derek@ximbiot.com>
86022             Paul Eggert  <eggert@cs.ucla.edu>
86023
86024         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
86025         changes, consolidating in...
86026         * lib/regex_internal.h: ...this file.
86027
86028 2005-09-13  Jim Meyering  <jim@meyering.net>
86029
86030         * lib/canon-host.c: Filter through gnu indent and reword comments
86031         slightly.
86032         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
86033
86034 2005-09-13  Derek Price  <derek@ximbiot.com>
86035
86036         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
86037         failure.
86038         Reported by Jim Meyering  <jim@meyering.net>.
86039
86040 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
86041
86042         * lib/base64.c: Typo.
86043         (base64_encode): Put b64str in initialized data section.
86044
86045 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
86046
86047         Merge glibc and coreutils changes into gnulib, plus a few
86048         extra fixes.
86049         * lib/md5.c: Use #error rather than a string.
86050         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
86051         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
86052         (__attribute__): Define to empty for non recent-GCC.
86053         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
86054         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
86055         Renamed from their non-__ counterparts, with new macros replacing
86056         them if not _LIBC.  Add __THROW attribute.
86057         (rol): Remove.
86058         (struct md5_ctx): Align buffer if using GCC.
86059         * lib/sha1.h (struct sha1_ctx): Likewise.
86060         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
86061         The old name was backwards.
86062         (NOTSWAP): Remove; not used.
86063         (rol): New macro, moved here from md5.h.
86064         (sha1_process_block): Remove a FIXME that doesn't make sense.
86065
86066 2005-09-12  Derek Price  <derek@ximbiot.com>
86067
86068         Return usable errors from canon-host.
86069         * lib/canon-host.h: New file.
86070         * lib/canon-host.c (canon_host): Wrap...
86071         (canon_host_r): ...this new function, which now relies exclusively on
86072         getaddrinfo.
86073         (ch_strerror): New function.
86074         (last_cherror): New global.
86075         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
86076         interface.
86077         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
86078         void *.
86079         (freeaddrinfo): Free ai->ai_canonname when set.
86080
86081 2005-09-12  Derek Price  <derek@ximbiot.com>
86082
86083         Make canon-host require getaddrinfo.
86084         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
86085         AC_LIBSOURCE canon-host.h.  Call...
86086         (gl_PREREQ_CANON_HOST): ...this new function, which requires
86087         gl_GETADDRINFO.
86088         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
86089
86090 2005-09-12  Derek Price  <derek@ximbiot.com>
86091
86092         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
86093         LGPL.
86094         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
86095
86096 2005-09-12  Derek Price  <derek@ximbiot.com>
86097
86098         * lib/gai_strerror.c: Include config.h when available.  Include
86099         getaddrinfo.h before other headers to test interface.
86100         Reported by Larry Jones <lawrence.jones@ugs.com>.
86101
86102 2005-09-12  Derek Price  <derek@ximbiot.com>
86103             Paul Eggert  <eggert@cs.ucla.edu>
86104
86105         * modules/glob (Files): Add glob-libc.h.
86106
86107 2005-09-12  Derek Price  <derek@ximbiot.com>
86108             Paul Eggert  <eggert@cs.ucla.edu>
86109
86110         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
86111         glob_.h, glob-libc.h.
86112         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
86113
86114 2005-09-12  Derek Price  <derek@ximbiot.com>
86115             Paul Eggert  <eggert@cs.ucla.edu>
86116
86117         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
86118         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
86119         protecting things that should be done only in gnulib contexts.
86120         * lib/glob_.h: New file, containing only the glob things needed for
86121         gnulib.
86122         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
86123         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
86124         (glob, globfree, glob_pattern_p): Now defined simply in terms of
86125         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
86126         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
86127         and to respect the namespace rules better.
86128
86129 2005-09-08  Simon Josefsson  <jas@extundo.com>
86130
86131         * modules/socklen: New file.
86132
86133 2005-09-08  Simon Josefsson  <jas@extundo.com>
86134
86135         * m4/socklen.m4: New file.
86136
86137 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
86138
86139         * modules/utimens (Files): Add m4/utimbuf.m4, since
86140         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
86141         Reported by Sergey Poznyakoff.
86142
86143 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
86144
86145         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
86146         definitions, since that's the preferred style in glibc.
86147         Fix a minor spacing issue, and update copyright notice to match
86148         glibc's.
86149
86150 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
86151
86152         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
86153
86154 2005-09-06  Simon Josefsson  <jas@extundo.com>
86155
86156         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
86157         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
86158
86159 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
86160
86161         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
86162         warning.
86163
86164 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
86165
86166         * config/srclist.txt: Add glibc bug 1302.
86167
86168 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
86169
86170         Change bitset word type from unsigned int to unsigned long int,
86171         as this has better performance on typical 64-bit hosts.
86172         Port bitset code to hosts with unusual word sizes.
86173         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
86174         (build_collating_symbol):
86175         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
86176         argument is a bitset.  This is merely a style issue, but it makes
86177         it clearer that an entire array is expected.
86178         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
86179         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
86180         Port to the case where bitset_word is not the same as unsigned int.
86181         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
86182         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
86183         Likewise.
86184         * lib/regexec.c (check_dst_limits_calc_pos_1,
86185         check_subexp_matching_top):
86186         (build_trtable, group_nodes_into_DFAstates):
86187         Likewise.
86188         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
86189         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
86190         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
86191         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
86192         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
86193         * lib/regcomp.c (optimize_subexps, lower_subexp):
86194         Work even if bitset_word has holes in its bitwise representation.
86195         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
86196         * lib/regexec.c (check_dst_limits_calc_pos_1,
86197         check_subexp_matching_top):
86198         Likewise.
86199         * lib/regex_internal.c (re_string_reconstruct):
86200         Don't assume UCHAR_MAX == 255.
86201         * lib/regex_internal.h (bitset_set_all): Likewise.
86202         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
86203         All uses changed.
86204         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
86205         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
86206         All uses changed.
86207         (BITSET_WORD_MAX): New macro.
86208         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
86209         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
86210         (bitset_empty, bitset_copy):
86211         Prefer sizeof (bitset) to multiplying it out ourselves.
86212         (bitset_not_merge): Remove; unused.
86213         (bitset_contain): Return bool, not unsigned int with one bit on.
86214         All callers changed.
86215         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
86216         alignment than re_node_set; do this by defining a new internal
86217         type struct dests_alloc and using it to allocate memory.
86218
86219 2005-09-05  Bruno Haible  <bruno@clisp.org>
86220
86221         * gnulib-tool (func_import): Fix comparison in handling of symbolic
86222         links.
86223
86224 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
86225
86226         * modules/size_max (Makefile.am): Add size_max.h
86227
86228 2005-09-04  Derek Price  <derek@ximbiot.com>
86229
86230         * gnulib-tool (func_import): Fix reversed $symbolic logic.
86231
86232 2005-09-03  Simon Josefsson  <jas@extundo.com>
86233
86234         * gnulib-tool: Fix typo.
86235
86236 2005-09-03  Simon Josefsson  <jas@extundo.com>
86237
86238         * config/srclist.txt: Add glibc bug 1293.
86239
86240 2005-09-03  Derek Price  <derek@ximbiot.com>
86241
86242         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
86243         From Larry Jones <lawrence.jones@ugs.com>.
86244
86245 2005-09-02  Simon Josefsson  <jas@extundo.com>
86246
86247         * modules/socklen: New file.
86248
86249 2005-09-02  Simon Josefsson  <jas@extundo.com>
86250
86251         * modules/havelib: New module.
86252
86253         * modules/gettext, modules/iconv, modules/lock, modules/readline:
86254         Use havelib.
86255
86256 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
86257
86258         Check for arithmetic overflow when calculating sizes, to prevent
86259         some buffer-overflow issues.  These patches are conservative, in the
86260         sense that when I couldn't determine whether an overflow was possible,
86261         I inserted a run-time check.
86262         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
86263         macros.
86264         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
86265         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
86266         (re_xnrealloc, re_x2nrealloc): New inline functions.
86267         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
86268         parse_bracket_exp):
86269         (build_equiv_class, build_charclass): Check for arithmetic overflow
86270         in size expression calculations.
86271         * lib/regex_internal.c (re_string_realloc_buffers):
86272         (build_wcs_upper_buffer, re_node_set_add_intersect):
86273         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
86274         (re_dfa_add_node, register_state): Likewise.
86275         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
86276         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
86277         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
86278         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
86279
86280 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
86281
86282         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
86283         m4/ulonglong.m4.  Problem reported by Martin Lambers.
86284
86285 2005-09-02  Bruno Haible  <bruno@clisp.org>
86286
86287         Support for lib vs. lib64 distinction on biarch platforms.
86288         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
86289         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
86290         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
86291
86292 2005-09-02  Bruno Haible  <bruno@clisp.org>
86293
86294         * gnulib-tool (import): In the other first-use case, provide defaults
86295         as well.
86296
86297 2005-09-02  Bruno Haible  <bruno@clisp.org>
86298
86299         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
86300         patches not yet found in the latest gettext release.
86301
86302 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
86303
86304         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
86305         to avoid a collision with bits/local_lim.h in glibc.
86306         All uses changed.  Problem reported by Dmitry V. Levin in
86307         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
86308
86309         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
86310         bugs in int versus size_t comparisons.
86311         (re_string_context_at): Fix bug where the code assumed that
86312         Idx is signed.
86313
86314         Use bool where appropriate.
86315         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
86316         All callers changed.
86317         (calc_eclosure_iter): Likewise, for ROOT arg.
86318         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
86319         (build_charclass_op): Likewise, for NON_MATCH arg.
86320         * lib/regex_internal.c (re_string_allocate, re_string_construct):
86321         (re_string_construct_common): Likewise, for ICASE arg.
86322         * lib/regexec.c (re_search_2_stub, re_search_stub):
86323         Likewise, for RET_LEN arg.
86324         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
86325         (set_regs): Likewise, for FL_BACKTRACK arg.
86326         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
86327         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
86328         (calc_eclosure_iter, parse_bracket_exp):
86329         Use bool for internal variables that are booleans.
86330         * lib/regexec.c (re_search_internal, check_matching,
86331         proceed_next_node):
86332         (set_regs, build_sifted_states, sift_states_bkref):
86333         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
86334         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
86335         (find_collation_sequence_value):
86336         Likewise.
86337         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
86338         (re_node_set_compare):
86339         Return bool, not int. All callers changed.
86340         * lib/regexec.c (check_halt_node_context, check_dst_limits):
86341         (build_trtable, check_node_accept): Likewise.
86342         * lib/regex_internal.h: Include stdbool.h.
86343
86344         Fix bugs uncovered when converting to bool.
86345         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
86346         failure instead of charging ahead blindly.
86347         * lib/regex_internal.c (register_state): Likewise.
86348         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
86349         for freeing internal storage.
86350         (group_nodes_into_DFA_states): Use unsigned int, not int, for
86351         bitset pieces used as boolean, to avoid undefined behavior
86352         on hosts that do int overflow checking.
86353
86354 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
86355
86356         * config/srclist.txt: Add glibc bugs 1285-1287.
86357
86358 2005-09-01  Jim Meyering  <jim@meyering.net>
86359
86360         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
86361         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
86362         Require gl_STAT_MACROS, too.
86363
86364 2005-09-01  Bruno Haible  <bruno@clisp.org>
86365
86366         * gnulib-tool (import): In the first-use case, provide defaults.
86367
86368 2005-09-01  Bruno Haible  <bruno@clisp.org>
86369
86370         * gnulib-tool (func_import): Remove the .tmp files.
86371
86372 2005-09-01  Bruno Haible  <bruno@clisp.org>
86373
86374         * gnulib-tool (func_import): Fix handling of symbolic links.
86375
86376 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
86377
86378         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
86379         old glibc regex code mishandles strings longer than 2**31 bytes.
86380         This patch fixes this when the regex code is used in gnulib
86381         (i.e., outside glibc).
86382
86383         This patch should not affect the use of the regex code inside
86384         glibc.  No doubt this problem also needs to be handled for glibc
86385         as well, but the result will be an incompatible change to the
86386         glibc ABI, and the old ABI will have to be supported too.  That
86387         can be the the subject for another patch.
86388
86389         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
86390         governing whether the rest of this patch is active.  By default,
86391         the macro is disabled and the patch has no effect.
86392         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
86393         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
86394         (struct re_pattern_buffer, re_search, re_search_2, re_match):
86395         (re_match_2, re_set_registers): Use the new types.
86396         * lib/regex_internal.h (Idx, re_hashval_t): New types.
86397         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
86398         New macros.
86399         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
86400         (re_string_context_at, bin_tree_t, re_dfastate_t):
86401         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
86402         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
86403         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
86404         (re_string_char_size_at, re_string_wchar_at):
86405         (re_string_elem_size_at):
86406         Use the new types and macros to port to 64-bit hosts.
86407         Use unsigned types for internal values, so that the code
86408         mostly works even for arrays larger than SSIZE_MAX.
86409         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
86410         (search_duplicated_node, calc_eclosure_iter, fetch_number):
86411         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
86412         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
86413         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
86414         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
86415         (calc_inveclosure, parse_dup_op, build_range_exp):
86416         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
86417         (fetch_number, create_token_tree, mark_opt_subexp):
86418         Likewise.
86419         * lib/regex_internal.c (re_string_construct_common,
86420         create_ci_newstate):
86421         (create_cd_newstate, re_string_allocate, re_string_construct):
86422         (re_string_realloc_buffers, build_wcs_upper_buffer):
86423         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
86424         (re_string_reconstruct, re_string_peek_byte_case):
86425         (re_string_fetch_byte_case, re_string_context_at):
86426         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
86427         (re_node_set_init_copy, re_node_set_add_intersect):
86428         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
86429         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
86430         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
86431         (re_acquire_state, re_acquire_state_context, register_state):
86432         Likewise.
86433         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
86434         search_cur_bkref_entry):
86435         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
86436         (re_search_internal, re_search_2_stub, re_search_stub)
86437         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
86438         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
86439         (update_cur_sifted_state, check_dst_limits):
86440         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
86441         (check_subexp_limits, sift_states_bkref, merge_state_array):
86442         (check_subexp_matching_top, get_subexp, get_subexp_sub):
86443         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
86444         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
86445         (expand_bkref_cache, check_node_accept_bytes):
86446         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
86447         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
86448         (acquire_init_state_context, check_halt_node_context):
86449         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
86450         (sift_states_backward, clean_state_log_if_needed):
86451         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
86452         (find_recover_state, transit_state_sb, transit_state_mb):
86453         (transit_state_bkref, build_trtable, match_ctx_clean):
86454         Likewise.
86455         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
86456         to work around an assumption that REG_MISSING is negative.
86457
86458         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
86459         (seek_collating_symbol_entry) [defined _LIBC]:
86460         (lookup_collation_sequence_value) [defined _LIBC]:
86461         (build_range_exp, build_collating_symbol) [defined _LIBC]:
86462         Use prototypes rather than old-style function definitions.
86463         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
86464         (transit_state_sb) [0]:
86465         (find_collation_sequence_value) [defined _LIBC]: Likewise.
86466
86467         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
86468         rm_eo.
86469
86470         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
86471         (optimize_subexps, lower_subexp):
86472         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
86473         since the signed shift might overflow.  Use 1u<<31 instead.
86474         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
86475         Likewise.
86476         * lib/regexec.c (check_dst_limits_calc_pos_1,
86477         check_subexp_matching_top): Likewise.
86478
86479         * lib/regcomp.c (optimize_subexps, lower_subexp):
86480         Use CHAR_BIT rather than 8, for clarity.
86481         * lib/regexec.c (check_dst_limits_calc_pos_1):
86482         (check_subexp_matching_top): Likewise.
86483         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
86484         have to worry about portability issues when shifting it left.
86485         Remove no-longer-needed test for table_size > 0.
86486         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
86487         in a word, as the resulting behavior is undefined.
86488         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
86489         in one case, a <= should have been an <, and in another case the
86490         whole test was missing.
86491         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
86492         the standard name CHAR_BIT.
86493         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
86494         this is not true on one's complement and signed-magnitude hosts.
86495
86496         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
86497         next_last_offset.
86498         (struct re_dfa_t): Remove unused member states_alloc.
86499         * lib/regcomp.c (init_dfa): Don't initialize unused members.
86500
86501 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
86502
86503         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
86504         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
86505         and large-file glibc and in 32-bit large-file Solaris.
86506
86507 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
86508
86509         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
86510         lengths fit in regoff_t; this isn't true if regoff_t is the same
86511         width as size_t.
86512         * lib/regex.c (re_search_internal): 5th arg is LAST_START
86513         (= START + RANGE) instead of RANGE.  This avoids overflow
86514         problems when regoff_t is the same width as size_t.
86515         All callers changed.
86516         (re_search_2_stub): Check for overflow when adding the
86517         sizes of the two strings.
86518         (re_search_stub): Check for overflow when adding START
86519         to RANGE; if it occurs, substitute the extreme value.
86520
86521 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
86522
86523         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
86524
86525 2005-08-31  Jim Meyering  <jim@meyering.net>
86526
86527         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
86528         a pointer-to-const.
86529         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
86530         (register_state): Likewise.
86531         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
86532         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
86533         (group_nodes_into_DFAstates): Likewise.
86534
86535 2005-08-31  Jim Meyering  <jim@meyering.net>
86536
86537         * check-module: Add a FIXME comment.
86538
86539 2005-08-31  Eric Blake  <ebb9@byu.net>
86540
86541         * modules/unistd-safer (Files): Add unistd--.h.
86542         * modules/stdio-safer (Files): Add stdio--.h.
86543
86544 2005-08-31  Derek Price  <derek@ximbiot.com>
86545
86546         * lib/getdelim.c (getdelim): Return EOF on EOF.
86547         Reported by Larry Jones <lawrence.jones@ugs.com>.
86548
86549 2005-08-31  Bruno Haible  <bruno@clisp.org>
86550
86551         Avoid unnecessary diffs in the generated lib/Makefile.am.
86552         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
86553         the generated files.
86554         (func_import): Don't set cmd.
86555
86556 2005-08-31  Bruno Haible  <bruno@clisp.org>
86557
86558         * lib/strstr.c: Include <stddef.h>, for NULL.
86559         * lib/strcasestr.c: Likewise.
86560         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
86561
86562 2005-08-31  Bruno Haible  <bruno@clisp.org>
86563
86564         * gnulib-tool: New option --macro-prefix.
86565         (func_import): Use macro_prefix.
86566         (import): Handle option --macro-prefix.
86567
86568 2005-08-31  Bruno Haible  <bruno@clisp.org>
86569
86570         * gnulib-tool (import): Rename most ac_* variables to cached_*.
86571         Also use new variables cached_lgpl, cached_libtool.
86572
86573 2005-08-31  Bruno Haible  <bruno@clisp.org>
86574
86575         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
86576         always instantiating them.
86577
86578 2005-08-31  Bruno Haible  <bruno@clisp.org>
86579
86580         * gnulib-tool (func_import): Read the previous cached settings
86581         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
86582         earlier added by gnulib but are now dropped. Warn when a gnulib file
86583         overwrites a non-gnulib file.
86584
86585 2005-08-31  Bruno Haible  <bruno@clisp.org>
86586
86587         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
86588         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
86589         projects that don't keep autogenerated files in CVS. Put into
86590         actioncmd only the specified modules, not the transitive closure.
86591
86592 2005-08-31  Bruno Haible  <bruno@clisp.org>
86593
86594         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
86595         Create directories that shall be filled.
86596         (import): Don't look for gl_* macros in configure.ac. Recurse across
86597         all directories containing a gnulib-cache.m4 files, if meaningful.
86598
86599 2005-08-31  Bruno Haible  <bruno@clisp.org>
86600
86601         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
86602         (import): Set seen_libtool when we see gl_LIBTOOL.
86603
86604 2005-08-31  Bruno Haible  <bruno@clisp.org>
86605
86606         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
86607         declaration macro definitions from generated gnulib.m4.
86608
86609 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
86610
86611         * lib/iconvme.h: Add prototype for iconv_alloc.
86612
86613 2005-08-29  Simon Josefsson  <jas@extundo.com>
86614
86615         * lib/iconvme.c: Fix errno.
86616
86617 2005-08-29  Bruno Haible  <bruno@clisp.org>
86618
86619         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
86620         that it works when the directory contains spaces.
86621
86622 2005-08-29  Bruno Haible  <bruno@clisp.org>
86623
86624         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
86625
86626 2005-08-29  Bruno Haible  <bruno@clisp.org>
86627
86628         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
86629         Emit more advice.
86630
86631 2005-08-29  Bruno Haible  <bruno@clisp.org>
86632         and Stepan Kasal  <kasal@ucw.cz>
86633
86634         * check-module: If more parameters are given, check each of them
86635         separately; add more exceptions, as noted by Jim Meyering.
86636         (check_module): New procedure.
86637         (%exempt_header): Now contains all exceptions.
86638
86639 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
86640
86641         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
86642
86643 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
86644
86645         * lib/iconvme.c: Split iconv_string into iconv_alloc.
86646
86647 2005-08-28  Bruno Haible  <bruno@clisp.org>
86648
86649         * m4/gnulib-tool.m4: New file.
86650
86651 2005-08-27  Jim Meyering  <jim@meyering.net>
86652
86653         * modules/unistd-safer (Files): Add pipe-safer.c.
86654         * modules/fcntl-safer (Files): Add creat-safer.c.
86655
86656 2005-08-27  Jim Meyering  <jim@meyering.net>
86657
86658         * m4/stdlib-safer.m4: New file.  From coreutils.
86659         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
86660         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
86661         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
86662         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
86663         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
86664
86665 2005-08-27  Jim Meyering  <jim@meyering.net>
86666
86667         * lib/fopen-safer.c: Merge minor changes from coreutils.
86668         * lib/dup-safer.c: Likewise.
86669         * lib/fd-safer.c: Likewise.
86670
86671         Merge from coreutils.
86672         * lib/stdio--.h: New file.
86673         * lib/stdlib--.h: New file.
86674         * lib/mkstemp-safer.c: New file.
86675
86676         GNU tar needs these.
86677         * lib/pipe-safer.c: New file.
86678         * lib/creat-safer.c: New file.
86679         * lib/fcntl--.h (creat): Define to creat_safer.
86680         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
86681         * lib/unistd--.h (pipe): Define to pipe_safer.
86682         * lib/unistd-safer.h: Declare pipe_safer.
86683
86684 2005-08-26  Simon Josefsson  <jas@extundo.com>
86685
86686         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
86687         Haible <bruno@clisp.org>.
86688
86689 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
86690
86691         * lib/regex_internal.h: Remove all references to
86692         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
86693         or better.
86694         (bitset_not, bitset_merge, bitset_not_merge):
86695         (bitset_mask, re_string_allocate, re_string_construct):
86696         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
86697         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
86698         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
86699         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
86700         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
86701         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
86702         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
86703         (re_acquire_state_context):
86704         Remove unnecessary forward decls.
86705         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
86706         Put __attribute at function definition,
86707         now that the function decl has been removed.
86708         * lib/regex_internal.c (re_string_peek_byte_case):
86709         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
86710         Likewise.
86711
86712 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
86713
86714         * m4/regex.m4: Add AC_PREREQ(2.50).
86715         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
86716
86717 2005-08-25  Simon Josefsson  <jas@extundo.com>
86718
86719         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
86720         __fsetlocking.
86721
86722 2005-08-25  Simon Josefsson  <jas@extundo.com>
86723
86724         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
86725         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
86726         GLIBC specific code.
86727
86728 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
86729
86730         Make regex safe for g++.  This fixes one real bug (an "err"
86731         that should have been "*err").  g++ problem reported by
86732         Sam Steingold.
86733         * lib/regex_internal.h (re_calloc): New macro, consistent with
86734         re_malloc etc.  All callers of calloc changed to use re_calloc.
86735         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
86736         not int.  All callers changed.
86737         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
86738         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
86739         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
86740         (find_recover_state): Change "err" to "*err"; this fixes what
86741         appears to be a real bug.
86742         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
86743         versus int.
86744
86745 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
86746
86747         * modules/regex (Depends-on): Add malloc, since the code
86748         assumes that !malloc(0) means failure.
86749
86750 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
86751
86752         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
86753
86754         alloca modernization/simplification for regex.
86755         * lib/regex.c: Remove portability cruft for alloca.  This no longer
86756         needs to be at the start of the file, and can be moved into
86757         regex_internal.h and simplified.
86758         * lib/regex_internal.h: Include <alloca.h>.
86759         (__libc_use_alloca) [!defined _LIBC]: New macro.
86760         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
86761         now works outside glibc.
86762
86763 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
86764
86765         * config/srclist.txt: Add glibc bugs 1241, 1245.
86766
86767 2005-08-25  Jim Meyering  <jim@meyering.net>
86768
86769         * lib/open-safer.c: Include <config.h>.
86770         Otherwise, we'd lose LARGEFILE support in any file using
86771         e.g. "fcntl--.h"
86772
86773 2005-08-25  Bruno Haible  <bruno@clisp.org>
86774
86775         * m4/minmax.m4: Require autoconf 2.52.
86776         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
86777         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
86778         alternatives of translit over the alphabet.
86779         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
86780
86781 2005-08-24  Simon Josefsson  <jas@extundo.com>
86782
86783         * tests/test-getpass.c: New file.
86784
86785 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
86786
86787         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
86788         for GNU regex features.
86789
86790 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
86791
86792         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
86793         * lib/regex.h (regerror): Likewise.
86794
86795         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
86796         requires this.  (The code never needed it.)
86797
86798         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
86799         All uses of recently-renamed identifiers changed to use the new,
86800         POSIX-compliant names.  The code will build and run just fine
86801         without these changes, but it's better to eat our own dog food
86802         and use the standard-conforming names.
86803
86804         * lib/regex.h: Fix a multitude of POSIX name space violations.
86805         These changes have an effect only for programs that define
86806         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
86807         do not change anything for programs compiled in the normal way.
86808         Also, there is no effect on the ABI.
86809
86810         (_REGEX_SOURCE): New macro.
86811         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
86812         defined and _GNU_SOURCE is not; this fixes a name space violation.
86813
86814         Rename the following macros to obey POSIX requirements.
86815         The old names are still visible as macros if _REGEX_SOURCE is defined.
86816         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
86817         RE_BACKSLASH_ESCAPE_IN_LISTS.
86818         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
86819         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
86820         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
86821         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
86822         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
86823         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
86824         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
86825         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
86826         (REG_INTERVALS): renamed from RE_INTERVALS.
86827         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
86828         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
86829         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
86830         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
86831         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
86832         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
86833         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
86834         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
86835         RE_UNMATCHED_RIGHT_PAREN_ORD.
86836         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
86837         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
86838         (REG_DEBUG): renamed from RE_DEBUG.
86839         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
86840         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
86841         unusual, since we can't clash with the POSIX REG_ICASE.
86842         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
86843         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
86844         (REG_NO_SUB): renamed from RE_NO_SUB.
86845         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
86846         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
86847         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
86848         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
86849         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
86850         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
86851         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
86852         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
86853         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
86854         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
86855         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
86856         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
86857         RE_SYNTAX_POSIX_MINIMAL_BASIC.
86858         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
86859         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
86860         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
86861         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
86862         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
86863         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
86864         (REG_FIXED): Renamed from REGS_FIXED.
86865         (REG_NREGS): Renamed from RE_NREGS.
86866
86867         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
86868         of other REG_* macros, since POSIX says the user is allowed to
86869         #undef these macros selectively.
86870
86871         (reg_errcode_t): Update comment stating what other tables need
86872         to be consistent.
86873
86874         Rename the following enum values to obey POSIX requirements.
86875         The old names are still visible as macros.
86876         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
86877         is not defined, since GNU is supposed to be a superset of POSIX as
86878         much as possible, and since we want reg_errcode_t to be a signed
86879         type for implementation consistency.
86880         (_REG_NOERROR): Renamed from REG_NOERROR.
86881         (_REG_NOMATCH): Renamed from REG_NOMATCH.
86882         (_REG_BADPAT): Renamed from REG_BADPAT.
86883         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
86884         (_REG_ECTYPE): Renamed from REG_ECTYPE.
86885         (_REG_EESCAPE): Renamed from REG_EESCAPE.
86886         (_REG_ESUBREG): Renamed from REG_ESUBREG.
86887         (_REG_EBRACK): Renamed from REG_EBRACK.
86888         (_REG_EPAREN): Renamed from REG_EPAREN.
86889         (_REG_EBRACE): Renamed from REG_EBRACE.
86890         (_REG_BADBR): Renamed from REG_BADBR.
86891         (_REG_ERANGE): Renamed from REG_ERANGE.
86892         (_REG_ESPACE): Renamed from REG_ESPACE.
86893         (_REG_BADRPT): Renamed from REG_BADRPT.
86894         (_REG_EEND): Renamed from REG_EEND.
86895         (_REG_ESIZE): Renamed from REG_ESIZE.
86896         (_REG_ERPAREN): Renamed from REG_ERPAREN.
86897         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
86898         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
86899         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
86900         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
86901
86902         (_REG_RE_NAME, _REG_RM_NAME): New macros.
86903         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
86904         changed.  But support the old name if the new one is not defined
86905         and if _REGEX_SOURCE.
86906
86907         Change the following member names in struct re_pattern_buffer.
86908         The old names are still supported if !_REGEX_SOURCE.
86909         The new names are always supported, regardless of _REGEX_SOURCE.
86910         (re_buffer): Renamed from buffer.
86911         (re_allocated): Renamed from allocated.
86912         (re_used): Renamed from used.
86913         (re_syntax): Renamed from syntax.
86914         (re_fastmap): Renamed from fastmap.
86915         (re_translate): Renamed from translate.
86916         (re_can_be_null): Renamed from can_be_null.
86917         (re_regs_allocated): Renamed from regs_allocated.
86918         (re_fastmap_accurate): Renamed from fastmap_accurate.
86919         (re_no_sub): Renamed from no_sub.
86920         (re_not_bol): Renamed from not_bol.
86921         (re_not_eol): Renamed from not_eol.
86922         (re_newline_anchor): Renamed from newline_anchor.
86923
86924         Change the following member names in struct re_registers.
86925         The old names are still supported if !_REGEX_SOURCE.
86926         The new names are always supported, regardless of _REGEX_SOURCE.
86927         (rm_num_regs): Renamed from num_regs.
86928         (rm_start): Renamed from start.
86929         (rm_end): Renamed from end.
86930
86931         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
86932         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
86933         Prepend __ to parameter names.
86934
86935         Undo yesterday's changes.
86936
86937 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
86938
86939         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
86940         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
86941         lib/regex.c.
86942
86943 2005-08-24  Jim Meyering  <jim@meyering.net>
86944
86945         Sync from coreutils.
86946         * m4/fcntl-safer.m4: New file.
86947
86948         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
86949         and object files for this module.
86950
86951 2005-08-24  Jim Meyering  <jim@meyering.net>
86952
86953         Sync from coreutils.
86954         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
86955
86956 2005-08-24  Jim Meyering  <jim@meyering.net>
86957
86958         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
86959         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
86960
86961 2005-08-24  Jim Meyering  <jim@meyering.net>
86962
86963         * modules/fcntl-safer: New module.
86964         * modules/fts (Depends-on): Add fcntl-safer.
86965         * MODULES.html.sh (File descriptor based Input/Output):
86966         Add fcntl-safer.
86967
86968 2005-08-24  Bruno Haible  <bruno@clisp.org>
86969
86970         Support for unit test modules.
86971         * modules/README: Mention tests modules.
86972         * modules/TEMPLATE-TESTS: New file.
86973         * gnulib-tool: New options --extract-tests-module, --with-tests and
86974         --tests-base (unused for the moment).
86975         (testsbase, inctests): New variables.
86976         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
86977         (func_verify_module): Exclude TEMPLATE-TESTS.
86978         (func_verify_nontests_module, func_verify_tests_module): New functions.
86979         (func_get_dependencies): Add implicit dependency for tests modules.
86980         (func_get_tests_module): New function.
86981         (func_modules_transitive_closure): When --with-tests was specified,
86982         include the unit tests as well, unless explicitly avoided.
86983         (func_emit_lib_Makefile_am): Ignore the tests modules here.
86984         (func_emit_tests_Makefile_am): New function.
86985         (func_create_testdir): When --with-tests was specified, emit a
86986         tests/ directory.
86987         * MODULES.html.sh (Future developments): Update.
86988
86989 2005-08-24  Bruno Haible  <bruno@clisp.org>
86990
86991         * modules/tls-tests: New file.
86992         * tests/test-tls.c: New file, from GNU gettext.
86993
86994 2005-08-24  Bruno Haible  <bruno@clisp.org>
86995
86996         * modules/lock-tests: New file.
86997         * tests/test-lock.c: New file, from GNU gettext.
86998
86999 2005-08-24  Bruno Haible  <bruno@clisp.org>
87000
87001         * lib/lock.h: Add multiple inclusion guard.
87002         * lib/tls.h: Add multiple inclusion guard.
87003
87004 2005-08-24  Bruno Haible  <bruno@clisp.org>
87005
87006         * gnulib-tool: Add support for the --aux-dir option to
87007         --create-testdir, --create-megatestdir, --test, --megatest.
87008         (func_create_testdir, func_create_megatestdir): Optionally emit a
87009         AC_CONFIG_AUX_DIR directive.
87010         (create-testdir, create-megatestdir, test, megatest): Provide a
87011         default value for $auxdir.
87012
87013 2005-08-24  Bruno Haible  <bruno@clisp.org>
87014
87015         * gnulib-tool (import): Use compound statement instead of subshell
87016         where possible.
87017
87018 2005-08-24  Bruno Haible  <bruno@clisp.org>
87019
87020         * gnulib-tool (import): Change --aux-dir default to "build-aux".
87021
87022 2005-08-24  Bruno Haible  <bruno@clisp.org>
87023
87024         * gnulib-tool (func_version): Update.
87025
87026 2005-08-24  Bruno Haible  <bruno@clisp.org>
87027
87028         * gnulib-tool (func_import, func_create_testdir,
87029         func_create_megatestdir): Quote all autoconf macro arguments.
87030
87031 2005-08-24  Bruno Haible  <bruno@clisp.org>
87032
87033         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
87034         option --force, because --force causes the aclocal.m4 of each
87035         subdirectory to be newer than the corresponding config.h.in.
87036
87037 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
87038
87039         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
87040         All contents moved to gl_REGEX.
87041         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
87042         assume that it does.
87043
87044 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
87045
87046         * lib/regex.h (REG_NOSYS)
87047         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
87048         Define, since POSIX requires it as of 2001.
87049         (_REG_ENOSYS)
87050         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
87051         New private symbol, used to keep the enum signed in all cases.
87052         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
87053         Youngman in
87054         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
87055
87056         * lib/regex_internal.c (re_string_skip_chars, register_state):
87057         (calc_state_hash):
87058         Remove forward decls; no longer needed now that we use prototypes.
87059         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
87060         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
87061         (clean_state_log_if_needed): Likewise.
87062
87063 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
87064
87065         * config/srclist.txt: Add glibc bugs 1231-1233.
87066
87067 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
87068
87069         Fix problems reported by Sam Steingold in
87070         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
87071         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
87072         assumed that reg_errcode_t is a signed type, which is not
87073         necessarily true if _XOPEN_SOURCE is not defined.
87074         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
87075         since some compilers warn about it otherwise.
87076
87077 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
87078
87079         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
87080         (init_word_char, create_initial_state, duplicate_node_closure):
87081         (fetch_token, peek_token_bracket, build_range_exp):
87082         (build_collating_symbol): Remove forward decls; no longer needed
87083         now that we use prototypes.
87084
87085         * lib/regcomp.c:
87086         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
87087         (re_compile_fastmap_iter, regcomp, regerror, regfree):
87088         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
87089         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
87090         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
87091         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
87092         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
87093         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
87094         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
87095         (build_range_exp, build_collating_symbol, parse_bracket_exp):
87096         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
87097         (build_charclass, build_charclass_op, fetch_number, create_tree):
87098         (create_token_tree, mark_opt_subexp, duplicate_tree):
87099         Use prototypes rather than old-style definitions.
87100
87101         * lib/regex_internal.c:
87102         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
87103         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
87104         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
87105         (re_string_reconstruct, re_string_peek_byte_case):
87106         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
87107         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
87108         (re_node_set_init_copy, re_node_set_add_intersect):
87109         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
87110         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
87111         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
87112         (re_acquire_state, re_acquire_state_context, register_state):
87113         (create_ci_newstate, create_cd_newstate, free_state):
87114         Likewise.
87115         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
87116         re_search_2):
87117         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
87118         (re_search_internal, prune_impossible_nodes):
87119         (acquire_init_state_context, check_matching, static):
87120         (check_halt_node_context, check_halt_state_context, proceed_next_node):
87121         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
87122         (update_regs, sift_states_backward, build_sifted_states):
87123         (clean_state_log_if_needed, merge_state_array):
87124         (update_cur_sifted_state, add_epsilon_src_nodes):
87125         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
87126         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
87127         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
87128         (find_recover_state, check_subexp_matching_top, transit_state_mb):
87129         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
87130         (check_arrival, check_arrival_add_next_nodes):
87131         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
87132         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
87133         (check_node_accept_bytes, check_node_accept, extend_buffers):
87134         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
87135         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
87136         (sift_ctx_init):
87137         Likewise.
87138
87139         * lib/regex_internal.h:
87140         (re_string_allocate, re_string_construct, re_string_reconstruct):
87141         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
87142         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
87143         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
87144         (re_string_context_at, re_string_peek_byte_case):
87145         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
87146         is defined, since we now use prototypes always.
87147
87148         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
87149         C89 or better.  All uses removed.
87150
87151 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
87152
87153         * config/srclist.txt: Add glibc bugs 1220-1227.
87154
87155 2005-08-20  Jim Meyering  <jim@meyering.net>
87156
87157         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
87158         of unused local, dfa.
87159
87160 2005-08-20  Bruno Haible  <bruno@clisp.org>
87161
87162         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
87163
87164 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
87165
87166         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
87167         (re_node_set_insert_last, re_dfa_add_node):
87168         Rename local variables to avoid GCC shadowing warnings.
87169
87170 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
87171
87172         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
87173         [defined lint]: Suppress bogus uninitialized-variable warnings.
87174
87175         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
87176         and let the caller return REG_ESPACE if out of space.  This
87177         removes an uninitialied-variable warning with GCC 4.0.1, and also
87178         avoids taking the address of a local variable.  All callers
87179         changed.
87180
87181 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
87182
87183         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
87184         $LIBCSRC/posix/regexec.c.
87185         Add glibc bug 1217 for regcomp.c.
87186
87187 2005-08-19  Jim Meyering  <jim@meyering.net>
87188
87189         * lib/regexec.c (proceed_next_node): Redo local variables to
87190         avoid GCC shadowing warnings.
87191
87192 2005-08-18  Bruno Haible  <bruno@clisp.org>
87193
87194         * lib/strstr.c (strstr): Fix return value in multibyte case.
87195         * lib/strcasestr.c (strcasestr): Likewise.
87196
87197 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
87198
87199         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
87200
87201 2005-08-17  Jim Meyering  <jim@meyering.net>
87202
87203         Make the %s format (seconds since the epoch) work for a negative
87204         number and when used with a zero-padded field width, e.g. %015s.
87205
87206         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
87207         label so that it precedes the code to set `digits'.  Otherwise,
87208         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
87209         print `00-22'.  Now, it prints `-0022', as it should.
87210
87211 2005-08-17  Bruno Haible  <bruno@clisp.org>
87212
87213         * modules/strstr (Files): Add m4/mbrtowc.m4.
87214         (Depends-on): Add mbuiter.
87215
87216 2005-08-17  Bruno Haible  <bruno@clisp.org>
87217
87218         * modules/strcasestr: New file.
87219         * MODULES.html.sh (String handling, based on ANSI C 89): Add
87220         strcasestr.
87221
87222 2005-08-17  Bruno Haible  <bruno@clisp.org>
87223
87224         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
87225
87226 2005-08-17  Bruno Haible  <bruno@clisp.org>
87227
87228         * modules/mbuiter: New file.
87229         * MODULES.html.sh (Extended multibyte and wide character utilities):
87230         Add mbuiter.
87231
87232 2005-08-17  Bruno Haible  <bruno@clisp.org>
87233
87234         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
87235         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
87236
87237 2005-08-17  Bruno Haible  <bruno@clisp.org>
87238
87239         * m4/strcasestr.m4: New file.
87240
87241 2005-08-17  Bruno Haible  <bruno@clisp.org>
87242
87243         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
87244         * lib/strstr.c: Completely rewritten, with multibyte locale support.
87245
87246 2005-08-17  Bruno Haible  <bruno@clisp.org>
87247
87248         * lib/strcasestr.h: New file.
87249         * lib/strcasestr.c: New file.
87250
87251 2005-08-17  Bruno Haible  <bruno@clisp.org>
87252
87253         * lib/strcasecmp.c: Use mbuiter.h.
87254
87255 2005-08-17  Bruno Haible  <bruno@clisp.org>
87256
87257         * lib/mbuiter.h: New file.
87258
87259 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
87260
87261         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
87262         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
87263         and gl_GETOPT are both invoked via different paths (as happens
87264         with GNU tar CVS because it uses both argp and getopt), the former
87265         wins.
87266
87267 2005-08-16  Bruno Haible  <bruno@clisp.org>
87268
87269         * modules/tls: New file.
87270         * MODULES.html.sh (Multithreading): Add tls.
87271
87272 2005-08-16  Bruno Haible  <bruno@clisp.org>
87273
87274         * modules/strnlen1: New file.
87275         * MODULES.html.sh (String handling): Add strnlen1.
87276
87277 2005-08-16  Bruno Haible  <bruno@clisp.org>
87278
87279         * modules/strcase (Files): Add m4/mbrtowc.m4.
87280         (Depends-on): Add strnlen1, mbchar.
87281
87282 2005-08-16  Bruno Haible  <bruno@clisp.org>
87283
87284         * modules/mbiter: New file.
87285         * MODULES.html.sh (Extended multibyte and wide character utilities):
87286         Add mbiter.
87287
87288 2005-08-16  Bruno Haible  <bruno@clisp.org>
87289
87290         * modules/mbfile: New file.
87291         * MODULES.html.sh (Extended multibyte and wide character utilities):
87292         Add mbfile.
87293
87294 2005-08-16  Bruno Haible  <bruno@clisp.org>
87295
87296         * modules/mbchar: New file.
87297         * MODULES.html.sh (Extended multibyte and wide character utilities):
87298         New section.
87299
87300 2005-08-16  Bruno Haible  <bruno@clisp.org>
87301
87302         * m4/tls.m4: New file, from GNU gettext.
87303
87304 2005-08-16  Bruno Haible  <bruno@clisp.org>
87305
87306         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
87307         always.
87308         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
87309
87310 2005-08-16  Bruno Haible  <bruno@clisp.org>
87311
87312         * m4/mbiter.m4: New file.
87313
87314 2005-08-16  Bruno Haible  <bruno@clisp.org>
87315
87316         * m4/mbfile.m4: New file.
87317
87318 2005-08-16  Bruno Haible  <bruno@clisp.org>
87319
87320         * m4/mbchar.m4: New file.
87321
87322 2005-08-16  Bruno Haible  <bruno@clisp.org>
87323
87324         * lib/tls.h: New file, from GNU gettext.
87325         * lib/tls.c: New file, from GNU gettext.
87326
87327 2005-08-16  Bruno Haible  <bruno@clisp.org>
87328
87329         * lib/strnlen1.h: New file.
87330         * lib/strnlen1.c: New file.
87331
87332 2005-08-16  Bruno Haible  <bruno@clisp.org>
87333
87334         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
87335         (mbi_init): Update.
87336         (mbi_avail, mbi_advance): Let the iteration end before the terminating
87337         NUL byte, not after it.
87338
87339 2005-08-16  Bruno Haible  <bruno@clisp.org>
87340
87341         * lib/strcase.h (strcasecmp): Add note in comments.
87342         * lib/strncasecmp.c: Use code from strcasecmp.c.
87343         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
87344         (strcasecmp): Work correctly in multibyte locales.
87345
87346 2005-08-16  Bruno Haible  <bruno@clisp.org>
87347
87348         * lib/mbiter.h: New file.
87349
87350 2005-08-16  Bruno Haible  <bruno@clisp.org>
87351
87352         * lib/mbfile.h: New file.
87353
87354 2005-08-16  Bruno Haible  <bruno@clisp.org>
87355
87356         * lib/mbchar.h: New file.
87357         * lib/mbchar.c: New file.
87358
87359 2005-08-16  Bruno Haible  <bruno@clisp.org>
87360
87361         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
87362         the valid ones. Makes the comparison operations transitive:
87363         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
87364         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
87365
87366 2005-08-15  Simon Josefsson  <jas@extundo.com>
87367
87368         * modules/ssize_t (License): Change to 'unlimited'.
87369
87370         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
87371
87372 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
87373
87374         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
87375         Add comments for each pending glibc patch.
87376
87377 2005-08-15  Bruno Haible  <bruno@clisp.org>
87378
87379         * lib/regex.h (__restrict_arr): Don't define to __restrict if
87380         __cplusplus is defined.
87381
87382 2005-08-14  Jim Meyering  <jim@meyering.net>
87383
87384         Sync from coreutils.
87385
87386         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
87387         Use the hash-table-based cycle-detection code not just when
87388         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
87389         Reported by James Youngman in
87390         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
87391         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
87392         FTS_TIGHT_CYCLE_CHECK.
87393         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
87394         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
87395         once again.
87396         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
87397         * lib/fts.c (fd_safer): Remove decl.
87398         Include fcntl--.h rather than unistd-safer.h
87399         (fts_safe_changedir): Don't call fd_safer; no longer needed
87400         now that we include fcntl--.h.
87401
87402 2005-08-12  Simon Josefsson  <jas@extundo.com>
87403
87404         * modules/getndelim2: Use ssize_t module.
87405         * modules/getnline: Likewise.
87406         * modules/safe-read: Likewise.
87407         * modules/xreadlink: Likewise.
87408
87409         * modules/ssize_t: New file.
87410
87411 2005-08-12  Simon Josefsson  <jas@extundo.com>
87412
87413         * m4/readline.m4: Look for termcap, curses or ncurses if required.
87414
87415 2005-08-12  Simon Josefsson  <jas@extundo.com>
87416
87417         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87418         ssize_t.
87419
87420 2005-08-12  Simon Josefsson  <jas@extundo.com>
87421
87422         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
87423         readline, getdelim and check_version.
87424         (Support for systems lacking ISO C 99: Sizes of integer types):
87425         Add size_max.
87426
87427 2005-08-12  Bruno Haible  <bruno@clisp.org>
87428
87429         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
87430
87431 2005-08-11  Simon Josefsson  <jas@extundo.com>
87432
87433         * modules/readline: New file.
87434
87435         * modules/strnlen (Files): Add strnlen.h.
87436
87437 2005-08-11  Simon Josefsson  <jas@extundo.com>
87438
87439         * m4/readline.m4: New file.
87440
87441 2005-08-11  Simon Josefsson  <jas@extundo.com>
87442
87443         * lib/readline.h, readline.c: New file.
87444
87445 2005-08-11  Simon Josefsson  <jas@extundo.com>
87446
87447         * doc/gnulib.texi (Initial import, Finishing touches): Mention
87448         gl_AVOID.
87449
87450 2005-08-11  Bruno Haible  <bruno@clisp.org>
87451
87452         * lib/strnlen.h (strnlen): Change parameter name to match comment.
87453
87454 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
87455
87456         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
87457
87458 2005-08-10  Simon Josefsson  <jas@extundo.com>
87459
87460         * tests/test-iconvme.c: New file.
87461
87462 2005-08-10  Simon Josefsson  <jas@extundo.com>
87463
87464         * m4/strnlen.m4: New file.
87465
87466         * m4/strndup.m4: Don't check for strnlen declaration, done in
87467         strnlen.m4.
87468
87469 2005-08-10  Simon Josefsson  <jas@extundo.com>
87470
87471         * lib/strndup.c: Use strnlen.h.
87472
87473         * lib/strnlen.h: New file.
87474
87475 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
87476
87477         * README: Typos.
87478
87479 2005-08-02  Simon Josefsson  <jas@extundo.com>
87480
87481         * modules/readline: New file.
87482
87483 2005-08-02  Simon Josefsson  <jas@extundo.com>
87484
87485         * modules/getdelim: New file.
87486
87487         * modules/getline: Rewrite, don't use getndelim2.
87488
87489 2005-08-02  Simon Josefsson  <jas@extundo.com>
87490
87491         * m4/getline.m4: Separate out getdelim stuff into separate module.
87492
87493         * m4/getdelim.m4: New file.
87494
87495 2005-08-02  Simon Josefsson  <jas@extundo.com>
87496
87497         * lib/getline.h, getline.c: Rewrite.
87498
87499         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
87500
87501 2005-07-31  Bruno Haible  <bruno@clisp.org>
87502
87503         * lib/lock.h (gl_lock_initializer): New macro.
87504         (gl_lock_define_initialized): Use it.
87505         (gl_rwlock_initializer): New macro.
87506         (gl_rwlock_define_initialized): Use it.
87507         (gl_recursive_lock_initializer): New macro.
87508         (gl_recursive_lock_define_initialized): Use it.
87509
87510 2005-07-30  Karl Berry  <karl@gnu.org>
87511
87512         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
87513         Report from Ben Pfaff, regarding getopt.
87514
87515 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
87516
87517         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
87518         normal way.
87519         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
87520         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
87521         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
87522         (gl_GETOPT): Use the new macros.  Most of the implementation
87523         is moved to the new macros.  This is for programs like Emacs
87524         that don't want all the functionality of gl_GETOPT.
87525
87526 2005-07-26  Bruno Haible  <bruno@clisp.org>
87527
87528         * m4/lock.m4: Update from GNU gettext.
87529
87530 2005-07-26  Bruno Haible  <bruno@clisp.org>
87531
87532         * lib/lock.h: Update from GNU gettext.
87533         * lib/lock.c: Update from GNU gettext.
87534
87535 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
87536
87537         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
87538         obsolescent AC_TRY_RUN.  Include the default includes files, for
87539         'exit'.
87540
87541 2005-07-24  Bruno Haible  <bruno@clisp.org>
87542
87543         * modules/visibility: New file.
87544         * MODULES.html.sh (Misc): Add visibility.
87545
87546 2005-07-24  Bruno Haible  <bruno@clisp.org>
87547
87548         * m4/visibility.m4: New file.
87549
87550 2005-07-24  Bruno Haible  <bruno@clisp.org>
87551
87552         * doc/visibility.texi: New file.
87553
87554 2005-07-22  Bruno Haible  <bruno@clisp.org>
87555
87556         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
87557         $(ALLOCA_H), redundant through BUILT_SOURCES.
87558         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
87559         redundant through BUILT_SOURCES.
87560         * modules/byteswap (Makefile.am): Remove explicit dependency on
87561         $(BYTESWAP_H), redundant through BUILT_SOURCES.
87562         * modules/fnmatch (Makefile.am): Remove explicit dependency on
87563         $(FNMATCH_H), redundant through BUILT_SOURCES.
87564         * modules/getopt (Makefile.am): Remove explicit dependency on
87565         $(GETOPT_H), redundant through BUILT_SOURCES.
87566         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
87567         redundant through BUILT_SOURCES.
87568         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
87569         redundant through BUILT_SOURCES.
87570         * modules/stdbool (Makefile.am): Remove explicit dependency on
87571         $(STDBOOL_H), redundant through BUILT_SOURCES.
87572         * modules/stdint (Makefile.am): Remove explicit dependency on
87573         $(STDINT_H), redundant through BUILT_SOURCES.
87574         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
87575         Remove explicit dependency on $(SYSEXITS_H).
87576         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
87577
87578 2005-07-18  Simon Josefsson  <jas@extundo.com>
87579
87580         * lib/check-version.c (check_version): Accept identical versions too.
87581
87582 2005-07-18  Bruno Haible  <bruno@clisp.org>
87583
87584         * modules/lock: New file.
87585         * MODULES.html.sh (Multithreading): New section.
87586
87587 2005-07-18  Bruno Haible  <bruno@clisp.org>
87588
87589         * m4/lock.m4: New file, from GNU gettext.
87590
87591 2005-07-18  Bruno Haible  <bruno@clisp.org>
87592
87593         * lib/lock.h: New file, from GNU gettext.
87594         * lib/lock.c: New file, from GNU gettext.
87595
87596 2005-07-18  Bruno Haible  <bruno@clisp.org>
87597
87598         * lib/lock.h (gl_once_t): New type.
87599         (gl_once_define, gl_once): New macros.
87600         * lib/lock.c (fresh_once): New variable.
87601         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
87602         functions.
87603
87604 2005-07-16  Simon Josefsson  <jas@extundo.com>
87605
87606         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
87607         workaround, suggested by Bruno.
87608
87609 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
87610
87611         * modules/xalloc (Depends-on): Add xalloc-die.
87612         * modules/xvasprintf (Depends-on): Add xalloc-die.
87613
87614 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
87615
87616         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
87617         with a minor change.
87618
87619 2005-07-15  Bruno Haible  <bruno@clisp.org>
87620
87621         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
87622         When using lib/poll.c, define poll as rpl_poll.
87623
87624 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
87625
87626         * modules/argp (Depends-on): Remove unlocked-io.
87627
87628 2005-07-14  Derek Price  <derek@ximbiot.com>
87629
87630         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
87631         for glob symlink bug.
87632
87633 2005-07-14  Bruno Haible  <bruno@clisp.org>
87634
87635         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
87636         Instead, test for *_unlocked function declarations directly.
87637
87638 2005-07-11  Simon Josefsson  <jas@extundo.com>
87639
87640         * modules/size_max: New file.
87641
87642         * modules/xsize: Depend on size_max module for size_max.m4.
87643
87644 2005-07-11  Simon Josefsson  <jas@extundo.com>
87645
87646         * lib/size_max.h: New file.
87647
87648 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
87649
87650         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
87651         copyright symbol and the year.
87652         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
87653         (version_etc_va): Use parameterized copyright notice.
87654         Reword to conform to the current GNU coding standards.
87655
87656 2005-07-11  Karl Berry  <karl@gnu.org>
87657
87658         * doc/gnulib.texi (Quoting): new node.
87659         (Initial import): more info, from Patrice.
87660
87661 2005-07-11  Bruno Haible  <bruno@clisp.org>
87662
87663         * gnulib-tool (func_usage): Document option --avoid.
87664         (Command line options): Handle --avoid.
87665         (func_acceptable): New function.
87666         (func_modules_transitive_closure): Use it.
87667
87668 2005-07-11  Bruno Haible  <bruno@clisp.org>
87669
87670         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
87671         Reported by Jim Meyering.
87672
87673 2005-07-10  Bruno Haible  <bruno@clisp.org>
87674
87675         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
87676         Needed when size_t is smaller than 'unsigned int'.
87677         Reported by Paul Eggert.
87678
87679 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
87680
87681         * modules/argp (Depends-on): Add unlocked-io
87682
87683 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
87684
87685         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
87686         block of defines.
87687
87688 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
87689
87690         * config/srclist.txt: Comment out regcomp.c, since we have a porting
87691         fix now.
87692
87693 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
87694         and Paul Eggert  <eggert@cs.ucla.edu>
87695
87696         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
87697         in wint_t, not wchar_t.  Remove now-unnecessary cast.
87698
87699 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
87700
87701         * modules/regex (Files): Add lib/regex_internal.c,
87702         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
87703         (Depends-on): Add extensions.
87704         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
87705
87706 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
87707
87708         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
87709         pathconf.
87710         * m4/same.m4 (gl_SAME): Likewise.
87711         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
87712
87713         * m4/regex.m4: Adjust to new libc regex implementation.
87714         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
87715         all the .c and .h parts of (the new) regex.
87716         Quote the m4 stuff better.
87717         Check for RE_ICASE bug of old gnulib.
87718         Check for REG_STARTEND of recent libc.
87719         Rename local variables from jm_* to gl_*.
87720         Quote operand of "test -f".
87721         Say "recent enough" version of libc, not "version 2".
87722         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
87723         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
87724         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
87725         Remove check for btowc, isascii.
87726         Require AM_LANGINFO_CODESET.
87727
87728 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
87729
87730         * lib/regex.c, regex.h: Sync from libc.
87731         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
87732         * lib/regexec.c:
87733         New files, synced from libc, except that regex_internal.h
87734         currently has a small porting fix.
87735
87736 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
87737
87738         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
87739         regex_internal.c, regexec.c.
87740         Add regex_internal.h too, but as a comment, since the libc version
87741         is currently broken in gnulib mode.
87742
87743 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
87744
87745         Support programs like Emacs that use gnulib but not gettext.
87746         * MODULES.html.sh (Internationalization functions): Add gettext-h.
87747         * modules/gettext-h: New file.
87748         * modules/gettext (Files): Remove lib/gettext.h.
87749         (Depends-on): Add gettext-h.
87750         (Makefile.am): Remove lib_SOURCES.
87751         * modules/argmatch, modules/c-stack, modules/closeout:
87752         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
87753         * modules/execute, modules/file-type, modules/getaddrinfo:
87754         * modules/getopt, modules/human, modules/javacomp:
87755         * modules/javaexec, modules/mkdir-p, modules/obstack:
87756         * modules/openat, modules/pagealign_alloc, modules/pipe:
87757         * modules/quotearg, modules/regex, modules/rpmatch:
87758         * modules/unicodeio, modules/userspec, modules/version-etc:
87759         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
87760         * modules/xsetenv:
87761         Depend on gettext-h, not gettext.
87762
87763 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
87764
87765         * gnulib-tool (func_import): Add support for 'public domain' license.
87766         * modules/alloca, modules/atexit, modules/memmove:
87767         Now public domain, not GPL.
87768         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
87769         * modules/realloc, modules/strerror, modules/strtod:
87770         Now LGPL, not GPL.
87771
87772 2005-07-05  Bruno Haible  <bruno@clisp.org>
87773
87774         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
87775         autoconf CVS. Needed for mingw.
87776
87777 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
87778
87779         Remove the dependency of the strftime module on the tzset module.
87780         * modules/strftime (Depends-on): Remove dependency on tzset.
87781
87782 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
87783
87784         Remove the dependency of the strftime module on the tzset module.
87785         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
87786         gl_FUNC_TZSET_CLOBBER.
87787
87788 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
87789
87790         Remove the dependency of the strftime module on the tzset module.
87791         * lib/strftime.c (my_strftime)
87792         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
87793         Copy the input structure, to work around some of the bug with
87794         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
87795         Solaris releases, you should also use the tzset module, but we won't
87796         require it as a dependency any more since we don't want LGPLed code
87797         to depend on GPLed code.
87798
87799 2005-07-02  Jim Meyering  <jim@meyering.net>
87800
87801         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
87802         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
87803         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
87804         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
87805
87806 2005-07-02  Jim Meyering  <jim@meyering.net>
87807
87808         * lib/backupfile.c (backup_args): Change a `0' to NULL.
87809
87810 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
87811
87812         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
87813         declares only 'struct timespec;' (!).
87814
87815 2005-07-01  Jim Meyering  <jim@meyering.net>
87816
87817         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
87818         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
87819         * lib/save-cwd.c, tempname.c:
87820         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
87821         and don't include <sys/file.h>).
87822
87823 2005-06-29  Jim Meyering  <jim@meyering.net>
87824
87825         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
87826         type name.  Use the variable name instead.
87827         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
87828         Likewise.
87829
87830 2005-06-28  Simon Josefsson  <jas@extundo.com>
87831
87832         * modules/check-version (Files): Add check-version.m4.
87833
87834 2005-06-28  Simon Josefsson  <jas@extundo.com>
87835
87836         * m4/check-version.m4: New file, suggested by Jim Meyering
87837         <jim@meyering.net>.
87838
87839 2005-06-28  Simon Josefsson  <jas@extundo.com>
87840
87841         * lib/check-version.h, lib/check-version.c: New files.
87842
87843 2005-06-28  Simon Josefsson  <jas@extundo.com>
87844
87845         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
87846         collision with global variable.  Better indentation.  Don't
87847         increment buffer pointer beyond buffer end.  Based on comments
87848         from Paul Eggert <eggert@cs.ucla.edu>.
87849
87850         * lib/base64.h: Indent.
87851
87852 2005-06-28  Simon Josefsson  <jas@extundo.com>
87853
87854         * doc/gnulib.texi (Library version handling): New section.
87855
87856 2005-06-28  Jim Meyering  <jim@meyering.net>
87857
87858         * check-module (find_included_lib_files): Hard-code another
87859         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
87860         but modules/fts-lgpl (correctly) does not list those files.
87861
87862         * modules/canonicalize (Files): Add lib/pathmax.h.
87863
87864 2005-06-25  Simon Josefsson  <jas@extundo.com>
87865
87866         * modules/check-version: New file.
87867
87868 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
87869
87870         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
87871         initializer of struct addrinfo, as an indication that we don't
87872         care how many members the structure has.
87873
87874 2005-06-24  Derek Price  <derek@ximbiot.com>
87875         and Bruno Haible  <bruno@clisp.org>
87876
87877         Remove stat module & update lstat.
87878         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
87879         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
87880         * m4/stat.m4: Remove this file.
87881
87882 2005-06-24  Derek Price  <derek@ximbiot.com>
87883         and Bruno Haible  <bruno@clisp.org>
87884
87885         Remove stat module & update lstat.
87886         * lib/stat.c: Remove this file...
87887         (slash_aware_lstat): ...moving this content and its support...
87888         * lib/lstat.c (rpl_lstat): ...into here.
87889         * lib/lstat.h: New file.
87890
87891 2005-06-24  Derek Price  <derek@ximbiot.com>
87892         and Bruno Haible  <bruno@clisp.org>
87893
87894         Remove stat module & update lstat.
87895         * config/srclist.txt (libc sources): Remove stat.
87896
87897 2005-06-24  Derek Price  <derek@ximbiot.com>
87898         and Bruno Haible  <bruno@clisp.org>
87899
87900         Remove stat module & update lstat.
87901         * MODULES.html.sh (stat): Remove.
87902         * MODULES.html: Regenerated.
87903         * modules/lstat (Description): Correct function name.
87904         (Files): Add "lstat.h".
87905         (Depends-on): Remove stat, add xalloc, stat-macros.
87906         * modules/stat: Remove this file.
87907         (Include): Add "lstat.h", remove <sys/stat.h>.
87908
87909 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
87910
87911         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
87912         (ranged_convert): Don't save conversion in a temporary struct.
87913         This causes a warning with GCC 4.0.0, and anyway in the typical
87914         case it's not worth the extra 100 bytes or so of code.
87915         (ranged_convert, __mktime_internal): When calling a function via a
87916         pointer P, use P () rather than (*P) (), as we now assume C89 or
87917         better.
87918
87919 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
87920
87921         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
87922         "who -r" failed to give output.  Problem reported by Tim Waugh.
87923
87924         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
87925         (xcalloc): Use it to avoid needless tests.
87926         Problem reported by Jim Meyering.
87927
87928 2005-06-20  Derek Price  <derek@ximbiot.com>
87929
87930         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
87931         unnecessary for Autoconfs > 2.59c.
87932
87933 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87934
87935         * lib/argp.h (__option_is_short): Check upper limit of
87936         __key. Isprint() requires its argument to have the value
87937         of an unsigned char or EOF.
87938
87939 2005-06-16  Jim Meyering  <jim@meyering.net>
87940
87941         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
87942         when either N or S is zero.
87943
87944 2005-06-16  Derek Price  <derek@ximbiot.com>
87945
87946         * m4/bison.m4: Declare YACC & YFLAGS precious.
87947
87948 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
87949
87950         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
87951         multibyte string or pattern, fall back on unibyte matching.
87952         Problem reported by James Youngman.
87953
87954 2005-06-08  Bruno Haible  <bruno@clisp.org>
87955
87956         * modules/csharpcomp: New file.
87957         * MODULES.html.sh (C#): Add csharpcomp.
87958
87959 2005-06-08  Bruno Haible  <bruno@clisp.org>
87960
87961         * m4/csharpcomp.m4: New file, from GNU gettext.
87962
87963 2005-06-08  Bruno Haible  <bruno@clisp.org>
87964
87965         * lib/csharpcomp.h: New file, from GNU gettext.
87966         * lib/csharpcomp.c: New file, from GNU gettext.
87967         * lib/csharpcomp.sh.in: New file, from GNU gettext.
87968
87969 2005-06-08  Bruno Haible  <bruno@clisp.org>
87970
87971         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
87972         warning on mingw.
87973
87974 2005-06-07  Derek Price  <derek@ximbiot.com>
87975
87976         Sync from CVS.
87977         * lib/glob_.h: Indent nested #ifdef.
87978
87979 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
87980
87981         Sync from coreutils.
87982         Use "file name" when talking about file names, instead of "filename"
87983         or "path", as per the GNU coding standards.
87984         * lib/mkdir-p.c: Renamed from makepath.c.
87985         (make_dir_parents): Renamed from make_path.  All callers changed.
87986         * lib/mkdir-p.h: Likewise.  All includers changed.
87987         * lib/filenamecat.c: Renamed from path-concat.c.
87988         (file_name_concat): Renamed from path_concat.  All callers changed.
87989         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
87990         * lib/filenamecat.h: Likewise.  All includers changed.
87991         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
87992         in comments or local variable names.
87993         * lib/basename.c: Likewise.
87994         * lib/canonicalize.c, canonicalize.h: Likewise.
87995         * lib/dirname.c, dirname.h: Likewise.
87996         * lib/euidaccess.c: Likewise.
87997         * lib/exclude.c: Likewise
87998         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
87999         * lib/fsusage.c, fsuage.h: Likewise.
88000         * lib/fts.c, fts_.h: Likewise.
88001         * lib/getcwd.c: Likewise.
88002         * lib/getloadavg.c: Likewise.
88003         * lib/mkstemp.c: Likewise.
88004         * lib/mountlist.c, mountlist.h: Likewise.
88005         * lib/openat.c, openat.h: Likewise.
88006         * lib/readlink-stub.c: Likewise.
88007         * lib/readutmp.c, readutmp.h: Likewise.
88008         * lib/rename.c: Likewise.
88009         * lib/rmdir.c: Likewise.
88010         * lib/same.c: Likewise.
88011         * lib/savedir.c: Likewise.
88012         * lib/stripslash.c: Likewise.
88013         * lib/tempname.c: Likewise.
88014         * lib/xreadlink.c: Likewise.
88015         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
88016         All uses changed.
88017         * lib/exclude.h: Likewise.
88018
88019         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
88020         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
88021         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
88022         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
88023         * lib/pathmax.h: Include <limits.h> unconditionally, since other
88024         files have been getting away with it for years (MORE/BSD 4.3
88025         is extinct now).
88026         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
88027         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
88028
88029         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
88030         Define to 256, not 255, as per modern POSIX.
88031
88032 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
88033
88034         Sync from coreutils.
88035         Use "file name" when talking about file names, instead of "filename"
88036         or "path", as per the GNU coding standards.
88037         * MODULES.html.sh: mkdir-p renamed from makepath.
88038         filenamecat renamed from path-concat.
88039         * modules/filenamecat: Renamed from modules/path-concat.
88040         (Files): filenamecat.h and filenamecat.c renamed from
88041         path-concat.h and path-concat.c.
88042         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
88043         (Include): filenamecat.h, not path-concat.h.
88044         * modules/mkdir-p: Renamed from modules/makepath.
88045         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
88046         makepath.c.
88047         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
88048         (Include): mkdir-p.h, not makepath.h.
88049
88050 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
88051
88052         Sync from coreutils.
88053         * m4/mkdir-p.m4: Renamed from makepath.m4.
88054         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
88055         Rename files from makepath.c to mkdir-p.c, and from
88056         makepath.h to mkdir-p.h.
88057         * m4/filenamecat.m4: Renamed from path-concat.m4.
88058         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
88059         Rename files from path-concat.c to filenamecat.c,
88060         and from path-concat.h to filenamecat.h.
88061         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
88062         "file name" in local variables or comments.
88063         * m4/rename.m4: Likewise.
88064
88065 2005-06-01  Bruno Haible  <bruno@clisp.org>
88066
88067         * modules/csharpexec: New file.
88068         * MODULES.html.sh (C#): New section.
88069
88070 2005-06-01  Bruno Haible  <bruno@clisp.org>
88071
88072         * m4/csharp.m4: New file, from GNU gettext.
88073         * m4/csharpexec.m4: New file, from GNU gettext.
88074
88075 2005-06-01  Bruno Haible  <bruno@clisp.org>
88076
88077         * lib/csharpexec.h: New file, from GNU gettext.
88078         * lib/csharpexec.c: New file, from GNU gettext.
88079         * lib/csharpexec.sh.in: New file, from GNU gettext.
88080
88081 2005-05-31  Derek Price  <derek@ximbiot.com>
88082             Paul Eggert  <eggert@cs.ucla.edu>
88083
88084         Sync from cvs.
88085         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
88086
88087 2005-05-31  Derek Price  <derek@ximbiot.com>
88088             Paul Eggert  <eggert@cs.ucla.edu>
88089
88090         Sync from cvs.
88091         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
88092
88093 2005-05-29  Derek Price  <derek@ximbiot.com>
88094
88095         * config/srclist.txt (glob_.h, glob.c): Add these files.
88096
88097 2005-05-29  Derek Price  <derek@ximbiot.com>
88098
88099         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
88100         * modules/glob: New file.
88101         * modules/getlogin_r: Add link to POSIX spec in description.
88102
88103 2005-05-29  Derek Price  <derek@ximbiot.com>
88104             Paul Eggert  <eggert@cs.ucla.edu>
88105
88106         * m4/glob.m4: New file.
88107
88108 2005-05-29  Derek Price  <derek@ximbiot.com>
88109             Paul Eggert  <eggert@cs.ucla.edu>
88110
88111         * lib/glob_.h, lib/glob.c: New files.
88112
88113 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
88114
88115         * modules/fts (Files): Remove m4/inttypes-pri.m4.
88116         * modules/fts-lgpl (Depends-on): Remove gettext.
88117
88118 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
88119
88120         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
88121         and don't require gt_INTTYPES_PRI.
88122
88123 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
88124
88125         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
88126
88127         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
88128         the configuration hassle isn't worth it.
88129         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
88130         (LONGEST_MODIFIER, PRIuMAX): Remove.
88131
88132 2005-05-27  Bruno Haible  <bruno@clisp.org>
88133
88134         * lib/getlogin_r.h: Remove second include of <stddef.h>.
88135
88136 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
88137
88138         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
88139         _POSIX_PTHREAD_SEMANTICS for Solaris.
88140
88141 2005-05-25  Derek Price  <derek@ximbiot.com>
88142
88143         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
88144
88145 2005-05-25  Derek Price  <derek@ximbiot.com>
88146             Paul Eggert  <eggert@cs.ucla.edu>
88147
88148         * modules/getlogin_r, m4/getlogin_r.m4: New files.
88149         * lib/getlogin_r.c, getlogin_r.h: New files.
88150
88151 2005-05-25  Bruno Haible  <bruno@clisp.org>
88152             Derek Price  <derek@ximbiot.com>
88153
88154         * lib/getlogin_r.h: Simplify API documentation.
88155
88156 2005-05-23  Derek Price  <derek@ximbiot.com>
88157
88158         * modules/minmax (Files): Add m4/minmax.m4.
88159         (configure.ac): Add gl_MINMAX.
88160
88161 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
88162
88163         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
88164         so that unistd-safer.h (GPL'ed code) need not be included.
88165
88166 2005-05-22  Bruno Haible  <bruno@clisp.org>
88167
88168         * m4/minmax.m4: New file.
88169         Based on a patch by Derek Price <derek@ximbiot.com>.
88170
88171 2005-05-22  Bruno Haible  <bruno@clisp.org>
88172
88173         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
88174         (INT64_MIN): Fix definition.
88175         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
88176
88177         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
88178         NEED_SIGNED_INT_TYPES.
88179
88180         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
88181         HAVE_SYSTEM_INTTYPES.
88182
88183 2005-05-22  Bruno Haible  <bruno@clisp.org>
88184
88185         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
88186         Also include <sys/param.h> if it defines MIN, MAX.
88187         Based on a patch by Derek Price <derek@ximbiot.com>.
88188
88189 2005-05-21  Jim Meyering  <jim@meyering.net>
88190
88191         * modules/fts (Files): Add m4/inttypes-pri.m4.
88192         (Depends-on): Add lstat and remove gettext.  Alphabetize.
88193
88194 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
88195
88196         New fts module.
88197         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
88198         (setup_dir, free_dir): New functions.
88199         (enter_dir, leave_dir): Define trivial
88200         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
88201         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
88202         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
88203         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
88204         Move to fts-cycle.c.
88205         (fts_open): Use setup_dir.
88206         (fts_close): Use free_dir.
88207         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
88208         This adds a label and some gotos, but the alternatives were messier.
88209         Check for memory allocation failure when entering a dir.
88210         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
88211         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
88212         (FTS): New member fts_cycle, that is a union that contains the
88213         old active_dir_ht and cycle_state.  All uses changed to mention
88214         fts_cycle.ht and fts_cycle.state.
88215         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
88216         fts.c, with the following changes:
88217         (setup_dir, free_dir): New functions.
88218         (enter_dir): Now returns bool.  Return true if successful, false
88219         if memory exhausted.  All callers changed.
88220         Do not bother partly cleaning up on
88221         memory allocation failure; that is free_dir's job.
88222         However, free ad if hash_insert fails, to avoid memory leak.
88223         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
88224         fts->fts_options to see which union member to use.
88225
88226 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
88227
88228         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
88229         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
88230
88231 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
88232
88233         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
88234
88235 2005-05-20  Jim Meyering  <jim@meyering.net>
88236
88237         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
88238         Now a macro, to pacify GCC.
88239
88240 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
88241
88242         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
88243         of -1.
88244
88245 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
88246
88247         * lib/chown.c (rpl_chown): Return -1 on failure.
88248
88249 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
88250
88251         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
88252         Don't check for stddef.h.
88253         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
88254         don't use its results.
88255         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
88256         since we include them unconditionally.  Don't require
88257         AM_STDBOOL_H, since stdbool is a prerequisite.
88258         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
88259         since we assume C89 or better.
88260         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
88261         as we don't use their results.
88262         Don't check for fchdir, memmove, memset, strrchr, as we use
88263         them unconditionally.
88264         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
88265         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
88266
88267 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
88268
88269         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
88270         Include <stddef.h> unconditionally, since we assume C89 now.
88271         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
88272         * lib/fts.c: Include fts_.h first, to check interface.
88273         Do not include intprops.h; no longer needed.
88274         Include cycle-check.h and hash.h, since fts_.h no longer does.
88275         Remove unnecessary casts of closedir to void.
88276         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
88277         decide whether to decrement nlinks.
88278         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
88279         (FTS): Use struct hash_table * instead of Hash_table, so that
88280         we no longer need to include hash.h here.
88281
88282 2005-05-18  Jim Meyering  <jim@meyering.net>
88283
88284         * modules/dirfd (License): Change to LGPL.  Most of the code
88285         is already in the public domain.
88286
88287 2005-05-18  Jim Meyering  <jim@meyering.net>
88288
88289         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
88290         Reported by Yoann Vandoorselaere.
88291
88292 2005-05-17  Jim Meyering  <jim@meyering.net>
88293
88294         * m4/fts.m4: New file, from coreutils.
88295
88296 2005-05-17  Jim Meyering  <jim@meyering.net>
88297
88298         * lib/fts.c, lib/fts_.h: New files, from coreutils.
88299
88300 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
88301
88302         Sync from coreutils.
88303         * m4/unlinkdir.m4: New file.
88304
88305 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
88306
88307         Sync from coreutils.
88308         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
88309         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
88310         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
88311         White space changes only.
88312         * lib/makepath.c (make_path): Port to hosts where leading "//" is
88313         special.
88314         * lib/yesno.c: Include getline.h, not ctype.h.
88315         (yesno): Don't remove leading white space; POSIX doesn't allow it.
88316         Use getline to remove arbitrary restriction on response length.
88317
88318 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
88319
88320         * config/srclist-update: Spell out "Street" in FSF postal
88321         mail address; this is the style the FSF seems to prefer.
88322
88323         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
88324         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
88325         this updates FSF postal mail address.
88326
88327         Sync from coreutils.
88328         * modules/unlinkdir: New file.
88329         * modules/yesno (Depends-on): Add getline.
88330         * MODULES.html.sh (File system functions): Add unlinkdir.
88331
88332 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
88333
88334         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
88335         lib/strsep.h:
88336         Change the initial comment to refer to GPL, not LGPL.
88337         gnulib-tool will change it to LGPL as needed.
88338
88339         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
88340         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
88341         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
88342         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
88343         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
88344         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
88345         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
88346         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
88347         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
88348         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
88349         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
88350         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
88351         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
88352         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
88353         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
88354         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
88355         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
88356         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
88357         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
88358         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
88359         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
88360         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
88361         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
88362         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
88363         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
88364         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
88365         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
88366         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
88367         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
88368         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
88369         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
88370         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
88371         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
88372         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
88373         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
88374         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
88375         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
88376         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
88377         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
88378         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
88379         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
88380         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
88381         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
88382         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
88383         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
88384         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
88385         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
88386         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
88387         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
88388         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
88389         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
88390         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
88391         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
88392         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
88393         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
88394         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
88395         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
88396         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
88397         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
88398         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
88399         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
88400         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
88401         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
88402         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
88403         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
88404         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
88405         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
88406         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
88407         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
88408         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
88409         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
88410         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
88411         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
88412         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
88413         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
88414         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
88415         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
88416         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
88417         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
88418         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
88419         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
88420         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
88421         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
88422         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
88423         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
88424         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
88425         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
88426         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
88427         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
88428         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
88429         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
88430         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
88431         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
88432         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
88433         lib/yesno.c, lib/yesno.h:
88434         Update FSF postal mail address.
88435
88436 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
88437
88438         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
88439         tests/test-memmem.c, tests/test-stpncpy.c:
88440         Update FSF postal mail address.
88441
88442 2005-05-13  Bruno Haible  <bruno@clisp.org>
88443
88444         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
88445         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
88446         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
88447         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
88448         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
88449         Add support for 64-bit integers in the MSVC compiler.
88450
88451 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88452
88453         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
88454
88455 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
88456
88457         * gnulib-tool (func_import): Sort and uniquify recommended includes.
88458
88459 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
88460
88461         * doc/getdate.texi (General date syntax): Don't say that date
88462         date --iso-8601=ns generates acceptable dates; it doesn't yet.
88463         Problem reported by Nic Ferrier.
88464
88465 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88466
88467         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
88468         specified in ai_socktype. Fix invalid ai_protocol
88469         check. ai_protocol is usually set to 0 or depending on
88470         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
88471         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
88472         ai_socktype / ai_protocol in the returned addrinfo structure.
88473
88474 2005-05-10  Simon Josefsson  <jas@extundo.com>
88475
88476         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
88477         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
88478
88479 2005-05-10  Karl Berry  <karl@gnu.org>
88480
88481         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
88482         (from http://www.gnu.org/licenses).
88483         * doc/COPYING.LIB: also rename to COPYING.LESSER.
88484         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
88485         fdl.texi suffices.
88486
88487 2005-05-10  Karl Berry  <karl@gnu.org>
88488
88489         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
88490         (COPYING.DOC): remove.
88491
88492         * config/srclist-update: new FSF address.
88493
88494 2005-05-10  Derek Price  <derek@ximbiot.com>
88495
88496         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
88497         possible.
88498
88499 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88500             Bruno Haible  <bruno@clisp.org>
88501
88502         * modules/inet_ntop: New file.
88503         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
88504         inet_ntop.
88505
88506 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88507             Bruno Haible  <bruno@clisp.org>
88508
88509         * m4/inet_ntop.m4: New file.
88510
88511 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88512             Bruno Haible  <bruno@clisp.org>
88513
88514         * lib/inet_ntop.h: New file.
88515         * lib/inet_ntop.c: New file, from glibc with modifications.
88516
88517 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
88518
88519         * modules/time_r (License): Change to LGPL.
88520         * modules/extensions (License): Change to LGPL.  Actually,
88521         the license is more permissive than that, but currently gnulib-tool
88522         doesn't know how to handle more-permissive licenses.
88523
88524         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
88525         Problem reported by Dave Love.
88526
88527 2005-05-08  Jim Meyering  <jim@meyering.net>
88528
88529         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
88530         blank.
88531
88532 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
88533
88534         * modules/argmatch (Depends-on): Add stdbool.
88535         * modules/backupfile (Depends-on): Likewise.
88536         * modules/chdir-long (Depends-on): Likewise.
88537         * modules/closeout (Depends-on): Likewise.
88538         * modules/cycle-check (Depends-on): Likewise.
88539         * modules/dirname (Depends-on): Likewise.
88540         * modules/fnmatch (Depends-on): Likewise.
88541         * modules/fsusage (Depends-on): Likewise.
88542         * modules/fwriteerror (Depends-on): Likewise.
88543         * modules/getcwd (Depends-on): Likewise.
88544         * modules/getloadavg (Depends-on): Likewise.
88545         * modules/hard-locale (Depends-on): Likewise.
88546         * modules/makepath (Depends-on): Likewise.
88547         * modules/mountlist (Depends-on): Likewise.
88548         * modules/nanosleep (Depends-on): Likewise.
88549         * modules/posixtm (Depends-on): Likewise.
88550         * modules/quotearg (Depends-on): Likewise.
88551         * modules/readtokens (Depends-on): Likewise.
88552         * modules/readtokens0 (Depends-on): Likewise.
88553         * modules/readutmp (Depends-on): Likewise.
88554         * modules/save-cwd (Depends-on): Likewise.
88555         * modules/strftime (Depends-on): Likewise.
88556         * modules/userspec (Depends-on): Likewise.
88557         * modules/utimecmp (Depends-on): Likewise.
88558         * modules/xgetcwd (Depends-on): Likewise.
88559         * modules/xnanosleep (Depends-on): Likewise.
88560         * modules/xstrtod (Depends-on): Likewise.
88561         * modules/yesno (Depends-on): Likewise.
88562
88563 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
88564
88565         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
88566         needless checks.
88567
88568 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
88569
88570         Merge from coreutils.  Among other things,
88571         add bulletproofing for cases where stdin, stdout, or stderr are closed.
88572         * lib/fd-safer.c: New file.
88573         * lib/fcntl-safer.h, open-safer.c: Remove.
88574         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
88575         * lib/dup-safer.c: Include unistd-safer.h first.
88576         Don't include errno.h.
88577         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
88578         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
88579         * lib/file-type.c: Rely on file-type.h change.
88580         * lib/getloadavg.c: Include unistd-safer.h.
88581         (getloadavg): Use safer open.
88582         * lib/getusershell.c: Include "stdio-safer.h".
88583         (getusershell): Use safer fopen.
88584         * lib/long-options.c (long_options): Use NULL rather than 0.
88585         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
88586         'free'.
88587         * lib/modechange.c: Likewise.
88588         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
88589         (MODE_DONE): New constant.
88590         (struct mode_change): Remove 'next' member.
88591         (make_node_op_equals): New function; like the old one of the
88592         same name, except it allocates an array.
88593         (mode_compile, mode_create_from_ref): Use it.
88594         (mode_compile): Allocate result as an array, not a linked list.
88595         Parse octal string ourself, so that we catch mistakes like "+0".
88596         (mode_adjust): Arg is an array, not a linked list.
88597         * lib/modechange.c: Include stat-macros.h, xalloc.h.
88598         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
88599         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
88600         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
88601         Remove.  This is now stat-macros.h's job.
88602         (talloc): Remove.  All callers replaced by xalloc, so that
88603         our invokers don't have to worry about reporting memory failures.
88604         (make_node_op_equals): Remove.
88605         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
88606         New constants.
88607         (struct mode_change): Moved here from modechange.h.
88608         (mode_append_entry): Remove.
88609         (mode_compile): Remove MASKED_OPS arg, since it encouraged
88610         apps to have incorrect behavior.  Use simpler algorithm for head
88611         and tail.  Don't futz with umask; that's now the job of mode_adjust.
88612         Detect more invalid usages rather than having somewhat-random behavior.
88613         Don't insert an "a=" action, as that leads to incorrect behavior.
88614         (mode_compile, mode_create_from_ref): Return NULL on error instead
88615         of an enum, since now there's only one way to have an error.  All
88616         callers changed.
88617         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
88618         at the correct time.  Simplify calculation of "+u" and its ilk.
88619         Don't mishandle "+X".
88620         (mode_free): Remove "register" and localize decls.
88621         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
88622         (struct mode_change): Move to modechange.c; callers don't
88623         need to see this stuff.
88624         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
88625         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
88626         (mode_change, mode_adjust): Reflect the new signatures noted above.
88627         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
88628         that might redefine system include files.
88629         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
88630         (my_usleep): Use NULL rather than (void *) 0.
88631         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
88632         Use siginterrupt to specify that system calls should be interrupted.
88633         (rpl_nanosleep): Move initialization of suspended closer to call of
88634         my_usleep.
88635         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
88636         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
88637         (desirable_utmp_entry): New function.
88638         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
88639         using x2nrealloc, to simplify logic.
88640         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
88641         size calculation.  Do not assume utmp file is a regular file.
88642         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
88643         (READ_UTMP_CHECK_PIDS): New constant.
88644         * lib/save-cwd.c: Include unistd-safer.h.
88645         (save_cwd): Use fd_safer.
88646         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
88647         [!_LIBC] Include "stat-macros.h" instead.
88648         * lib/unistd-safer.h (fd_safer): New decl.
88649
88650 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
88651
88652         * modules/getloadavg (Depends-on): Add unistd-safer.
88653         * modules/getusershell (Depends-on): Add stdio-safer.
88654         * modules/lstat (Depends-on): Remove xalloc.
88655         * modules/mkstemp (Depends-on): Add stat-macros.
88656         * modules/modechange (Depends-on): Remove xstrtol.
88657         Add stat-macros, xalloc.
88658         * modules/save-cwd (Depends-on): Add unistd-safer.
88659         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
88660         * modules/unistd-safer (Files): Add lib/fd-safer.c
88661         (Makefile.am): Remove lib_SOURCES.
88662
88663         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
88664         Remove fcntl-safer; unistd-safer supersedes it.
88665
88666 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
88667
88668         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
88669         AC_HEADER_STAT.
88670         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
88671         (gl_PREREQ_CHOWN): Remove.
88672         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
88673         it.  Don't require AC_HEADER_STAT.
88674         (gl_PREREQ_LSTAT): Remove.
88675         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
88676         Don't require AC_HEADER_STAT.
88677         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
88678         (gl_PREREQ_RMDIR): Remove.
88679         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
88680         mention stat-macros.h or AC_HEADER_STAT, since we'll make
88681         the stat-macros module a prerequisite.
88682         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
88683         * m4/filemode.m4 (gl_FILEMODE): Likewise.
88684         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
88685         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
88686         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
88687         variable names.
88688         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
88689         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
88690         variable prefixes.
88691         * m4/fcntl-safer.m4: Remove.
88692         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
88693         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
88694         Invoke gl_PREREQ_FD_SAFER.
88695         (gl_PREREQ_FD_SAFER): New macro.
88696         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
88697         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
88698         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
88699         Remove duplicate call to AC_LIBOBJ(readutmp).
88700         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
88701
88702         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
88703         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
88704
88705 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
88706
88707         * MODULES.html.sh (Misc): Add byteswap.
88708
88709 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
88710
88711         * modules/getcwd (Depends-on): Add extensions.
88712         * modules/openat (Depends-on): Likewise.
88713
88714 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
88715
88716         * modules/byteswap: New file.
88717
88718 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
88719
88720         * m4/byteswap.m4: New file.
88721
88722 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
88723
88724         * lib/byteswap_.h: New file.
88725
88726 2005-04-25  Karl Berry  <karl@gnu.org>
88727
88728         * m4/gettext.m4: Update from GNU gettext 0.14.4.
88729
88730 2005-04-25  Albert Chin  <china@thewrittenword.com>
88731
88732         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
88733         Toolkit C bug.
88734
88735 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
88736
88737         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
88738         (func_ln_if_changed): Remove forcibly for no error message
88739         in case file does not exist.
88740
88741 2005-04-19  Simon Josefsson  <jas@extundo.com>
88742
88743         * gnulib-tool (Options): Make --symlink mean --symbolic.
88744
88745 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
88746
88747         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
88748
88749 2005-04-16  Simon Josefsson  <jas@extundo.com>
88750
88751         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
88752
88753 2005-04-15  Simon Josefsson  <jas@extundo.com>
88754
88755         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
88756
88757 2005-04-15  Simon Josefsson  <jas@extundo.com>
88758
88759         * gnulib-tool: Rename --symlink to --symbolic.
88760
88761 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
88762
88763         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
88764         symbolic links to files instead of copying/moving.  Add --aux-dir,
88765         specifying directory relative --dir where auxiliary build tools
88766         are placed.
88767
88768 2005-04-14  Bruno Haible  <bruno@clisp.org>
88769
88770         * modules/allocsa (License): Change to LGPL.
88771         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
88772
88773 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
88774
88775         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
88776         that "UTC +1 second" continues to work.  Problem reported
88777         by Dmitry V. Levin.
88778         (relunit_snumber): New rule.
88779         (relunit): Use it.
88780
88781 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
88782
88783         * lib/getdate.y (universal_time_zone_table): New constant.
88784         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
88785         universal_time_zone_table.
88786         (lookup_zone): Prefer universal_time_zone_table to
88787         local_time_zone_table, so that "GMT" time stamps are allowed in
88788         London during the summer.  Problem reported by Ian Abbott.
88789
88790 2005-04-12  Jim Meyering  <jim@meyering.net>
88791
88792         * lib/human.c (humblock): Set *options even when returning due to
88793         xstrtoumax conversion failure.  Thanks to a used-uninitialized
88794         warning from gcc-4.
88795
88796 2005-04-09  Jim Meyering  <jim@meyering.net>
88797
88798         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
88799         -Wuninitialized: initialize tm0.tm_year.
88800
88801 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
88802
88803         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
88804         count, since there's no maximum.  All uses changed.
88805         Add member dsts_seen.
88806         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
88807         not being INT_MAX.
88808         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
88809         Use pc_rels_seen to decide whether a date is absolute.
88810
88811         * lib/getdate.y (number): Don't overwrite year.
88812         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
88813         check.
88814
88815 2005-04-02  Simon Josefsson  <jas@extundo.com>
88816
88817         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
88818         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
88819
88820 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
88821
88822         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
88823         where no absolute path name can be longer than PATH_MAX.
88824
88825 2005-03-27  Jim Meyering  <jim@meyering.net>
88826
88827         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
88828
88829 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
88830
88831         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
88832         "one's complement" -> "ones' complement" in comment, as per Knuth.
88833         "value of type" -> "type or expression" in comment.
88834         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
88835
88836 2005-03-26  Jim Meyering  <jim@meyering.net>
88837
88838         Comment nits.
88839         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
88840         Correct typos: s/or/of/.
88841
88842 2005-03-26  Jim Meyering  <jim@meyering.net>
88843
88844         * modules/check-include-files: Move to ../ and rename to...
88845         * check-module: ...this.
88846
88847 2005-03-25  Jim Meyering  <jim@meyering.net>
88848
88849         * modules/xvasprintf (Files): Add xalloc.h.
88850
88851 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
88852
88853         * modules/gettext (Files): config/config.rpath ->
88854         build-aux/config.rpath
88855         * modules/iconv (Files): Likewise.
88856         Problem reported by Oskar Liljeblad.
88857
88858 2005-03-23  Jim Meyering  <jim@meyering.net>
88859
88860         * modules/check-include-files: New script to check for
88861         missing dependencies, multiple includes, etc.
88862
88863         * modules/c-strtold (Depends-on): Add xalloc.
88864         * modules/c-strtod (Depends-on): Add xalloc.
88865         * modules/hash (Depends-on): Add xalloc.
88866         (Files): Remove lib/xalloc.h.
88867
88868         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
88869         * modules/userspec (Files): Add lib/inttostr.h.
88870
88871 2005-03-23  Jim Meyering  <jim@meyering.net>
88872
88873         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
88874
88875 2005-03-22  Jim Meyering  <jim@meyering.net>
88876
88877         * modules/stat-macros: New module.
88878         * modules/canonicalize, modules/euidaccess, modules/file-type,
88879         * modules/filemode, modules/lchown, modules/makepath,
88880         * modules/rmdir, modules/stat: Depend on new stat-macros module
88881         rather than listing lib/stat-macros.h manually.
88882         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
88883
88884 2005-03-22  Jim Meyering  <jim@meyering.net>
88885
88886         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
88887
88888 2005-03-22  Bruno Haible  <bruno@clisp.org>
88889
88890         * config/srclist.txt: Replace target directory 'config' with
88891         'build-aux'.
88892         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
88893         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
88894         ../build-aux/.
88895
88896 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
88897
88898         * modules/chdir-long (Depends-on): Add mempcpy.
88899
88900         * modules/acl, modules/backupfile, modules/c-strtod,
88901         modules/c-strtold, modules/canon-host, modules/canonicalize,
88902         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
88903         modules/exclude, modules/exitfail, modules/file-type,
88904         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
88905         modules/getdate, modules/getline, modules/getpagesize,
88906         modules/getpass, modules/getugroups, modules/group-member,
88907         modules/hard-locale, modules/hash, modules/human, modules/idcache,
88908         modules/inttostr, modules/long-options, modules/makepath,
88909         modules/md5, modules/memcasecmp, modules/memcoll,
88910         modules/modechange, modules/mountlist, modules/path-concat,
88911         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
88912         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
88913         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
88914         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
88915         modules/strftime, modules/strndup, modules/strverscmp,
88916         modules/timespec, modules/unlocked-io, modules/userspec,
88917         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
88918         modules/yesno:
88919         Remove lib_SOURCES line from Makefile.am section, as this is now
88920         done automatically by the corresponding Autoconf macro.
88921
88922 2005-03-21  Jim Meyering  <jim@meyering.net>
88923
88924         Changes imported from coreutils.
88925
88926         * lib/cycle-check.c: Don't include xalloc.h.
88927
88928         * lib/path-concat.c: Don't include assert.h.
88929         (path_concat): Remove assertion that would have triggered
88930         for ABASE starting with more than one slash.
88931         Reported by Andreas Schwab.
88932
88933         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
88934         properly when ABASE is an absolute file name.
88935         Correct the description of this function.
88936         Include <assert.h>.
88937         Add an assertion and a test driver.
88938         This fixes a bug introduced on 2004-07-02.
88939         Andreas Schwab reported the resulting failure of cp --parents:
88940         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
88941
88942 2005-03-21  Jim Meyering  <jim@meyering.net>
88943
88944         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
88945         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
88946
88947 2005-03-21  Jim Meyering  <jim@meyering.net>
88948         and  Paul Eggert  <eggert@cs.ucla.edu>
88949
88950         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
88951         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
88952         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
88953         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
88954         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
88955         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
88956         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
88957         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
88958         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
88959         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
88960         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
88961         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
88962         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
88963         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
88964         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
88965         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
88966         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
88967         for these modules.
88968
88969 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
88970
88971         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
88972         (which shouldn't happen), generate nothing instead of returning 0
88973         immediately, so that nstrftime (NULL, ...) doesn't return 0.
88974
88975 2005-03-16  Bruno Haible  <bruno@clisp.org>
88976
88977         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
88978         HAVE_LONGLONG_64BIT.
88979
88980 2005-03-16  Bruno Haible  <bruno@clisp.org>
88981
88982         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
88983         HAVE_LONGLONG_64BIT.
88984
88985 2005-03-16  Bruno Haible  <bruno@clisp.org>
88986
88987         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
88988         HAVE_LONGLONG_64BIT.
88989
88990 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
88991
88992         * lib/strftime.c (my_strftime): Prepend space to format so that we can
88993         reliably distinguish strftime failure from empty output on POSIX
88994         hosts.
88995
88996 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
88997
88998         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
88999         (iconv_string): Don't guess a size-zero buffer, as that might cause
89000         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
89001         result would be 'too large', where 'too large' is (heuristically)
89002         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
89003         overflow concerns.  This will prevent some unwanted malloc failures
89004         when the inputs are very large.
89005
89006 2005-03-15  Karl Berry  <karl@gnu.org>
89007
89008         * config/srclist.txt (config.rpath): from gettext.
89009         * config/config.rpath: update.
89010
89011 2005-03-15  Bruno Haible  <bruno@clisp.org>
89012
89013         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
89014         to 'negate'.
89015
89016         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
89017         variable.
89018
89019         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
89020         results.
89021
89022 2005-03-14  Simon Josefsson  <jas@extundo.com>
89023
89024         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
89025         <fx@gnu.org>.
89026
89027 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
89028
89029         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
89030         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
89031         intprops.h.
89032         * lib/strtol.c: Likewise.
89033
89034 2005-03-14  Jim Meyering  <jim@meyering.net>
89035
89036         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
89037         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
89038         to be nonzero so that we (and caller) can detect the difference
89039         between a valid zero-length expansion and an error return, even
89040         when the underlying strftime fails before writing anything into
89041         that location.
89042
89043 2005-03-14  Bruno Haible  <bruno@clisp.org>
89044
89045         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
89046         Update from GNU gettext 0.14.3.
89047
89048 2005-03-10  Jim Meyering  <jim@meyering.net>
89049
89050         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
89051
89052 2005-03-10  Jim Meyering  <jim@meyering.net>
89053
89054         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
89055         so that this module works on systems without fchdir.
89056
89057 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
89058
89059         Factor int-properties macros into a single file, except for
89060         glibc-related files.
89061         * lib/intprops.h: New file.
89062         * lib/getloadavg.c: Include it instead of limits.h.
89063         (INT_STRLEN_BOUND): Remove.
89064         * lib/human.c: Include intprops.h.
89065         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
89066         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
89067         302/1000.
89068         * lib/inttostr.h: Include intprops.h instead of limits.h.
89069         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
89070         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
89071         for consistency with intprops.h.
89072         (time_t_is_integer, twos_complement_arithmetic): Use them.
89073         * lib/sig2str.h: Include <signal.h>, intprops.h.
89074         (INT_STRLEN_BOUND): Remove.
89075         * lib/strftime.c (TYPE_SIGNED): Remove.
89076         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
89077         * lib/strtol.c: Adjust comments to match intprops.h.
89078         * lib/userspec.c: Include intprops.h.
89079         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
89080         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
89081         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
89082         instead of rolling our own expressions.
89083         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
89084
89085         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
89086         instead of int.
89087         (my_strftime): Do not mishandle years close to INT_MAX, by doing
89088         the right thing even if adding 1900 would overflow.  Similarly
89089         for tm_mon + 1 and tm_yday + 1.
89090         Make %Y always equivalent to %C%y, and similarly for %G and %g.
89091         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
89092         (DO_SIGNED_NUMBER): New macro.
89093         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
89094
89095 2005-03-07  Bruno Haible  <bruno@clisp.org>
89096
89097         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
89098
89099 2005-03-07  Bruno Haible  <bruno@clisp.org>
89100
89101         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
89102
89103 2005-03-04  Derek R. Price  <derek@ximbiot.com>
89104
89105         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
89106         (func_import): Only replace files via --import when they have actually
89107         changed.
89108
89109 2005-03-03  Derek R. Price  <derek@ximbiot.com>
89110
89111         * m4/mmap-anon.m4: New file.
89112         * m4/pagealign_alloc.m4: New file.
89113
89114 2005-03-03  Derek R. Price  <derek@ximbiot.com>
89115             Bruno Haible  <bruno@clisp.org>
89116
89117         * modules/pagealign_alloc: New file.
89118         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
89119
89120 2005-03-03  Derek R. Price  <derek@ximbiot.com>
89121             Bruno Haible  <bruno@clisp.org>
89122
89123         * lib/pagealign_alloc.h: New file.
89124         * lib/pagealign_alloc.c: New file.
89125
89126 2005-03-03  Bruno Haible  <bruno@clisp.org>
89127
89128         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
89129         Use an all-permissive copyright notice, recommended by RMS.
89130
89131 2005-03-02  Bruno Haible  <bruno@clisp.org>
89132
89133         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
89134         of AIX, the replacement has to be done only after <string.h> is
89135         included, therefore not in config.h. stpncpy.h does the replacement,
89136         and stpncpy.c uses it.
89137
89138 2005-03-02  Bruno Haible  <bruno@clisp.org>
89139
89140         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
89141         stpncpy.c uses it.
89142
89143 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
89144
89145         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
89146         The workaround isn't strictly needed for POSIX conformance, and
89147         it's too much of a pain to configure and maintain.  We'll ask
89148         people to fix their kernels instead.
89149         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
89150         (NANOSLEEP_BUG_WORKAROUND): Remove.
89151         (xnanosleep): Remove the workaround.
89152
89153 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
89154
89155         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
89156         Reported by Derek Price.
89157         (Include): Add "timespec.h".
89158
89159         * modules/xnanosleep (Depends-on): Remove gethrxtime.
89160
89161 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
89162
89163         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
89164         to detect nanosleep bug.
89165
89166 2005-03-01  Bruno Haible  <bruno@clisp.org>
89167
89168         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
89169
89170 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
89171
89172         * modules/gethrxtime: New file.
89173         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
89174         (Depends-on): Add gethrxtime.
89175         (configure.ac): Add gl_XNANOSLEEP.
89176         (Makefile.am): Remove lib_SOURCES line.
89177
89178 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
89179
89180         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
89181         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
89182
89183 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
89184
89185         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
89186         * lib/timespec.h (gettime): Return void, since it always
89187         succeeds now.  All uses changed.
89188         * lib/gettime.c (gettime): Likewise.
89189         [HAVE_NANOTIME]: Prefer nanotime.
89190         Assume gettimeofday succeeds, as POSIX requires.
89191         Assime time () succeeds, since other code already does.
89192         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
89193         (timespec_subtract): Remove.
89194         (NANOSLEEP_BUG_WORKAROUND): New constant.
89195         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
89196         things considerably.  Use it only on GNU/Linux hosts, since the
89197         workaround shouldn't be needed elsewhere.
89198
89199 2005-02-24  Bruno Haible  <bruno@clisp.org>
89200
89201         * modules/gettext (Files): Add m4/glibc2.m4.
89202
89203 2005-02-24  Bruno Haible  <bruno@clisp.org>
89204
89205         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
89206         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
89207         * m4/progtest.m4:
89208         Update from GNU gettext 0.14.2.
89209         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
89210
89211 2005-02-24  Bruno Haible  <bruno@clisp.org>
89212
89213         * lib/localcharset.c: Update from GNU gettext 0.14.2.
89214         * lib/config.charset: Update from GNU gettext 0.14.2.
89215
89216 2005-02-24  Bruno Haible  <bruno@clisp.org>
89217
89218         * lib/gettext.h: Update from GNU gettext 0.14.2.
89219
89220 2005-02-23  Simon Josefsson  <jas@extundo.com>
89221
89222         * m4/iconvme.m4: New file.
89223
89224 2005-02-23  Jim Meyering  <jim@meyering.net>
89225
89226         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
89227         change.
89228         Thanks to Bruno Haible for catching it.
89229
89230 2005-02-22  Simon Josefsson  <jas@extundo.com>
89231
89232         * modules/iconvme: New file.
89233
89234         * MODULES.html.sh: Add iconvme.
89235
89236 2005-02-22  Simon Josefsson  <jas@extundo.com>
89237
89238         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
89239
89240 2005-02-22  Simon Josefsson  <jas@extundo.com>
89241
89242         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
89243
89244 2005-02-22  Jim Meyering  <jim@meyering.net>
89245
89246         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
89247         s/ifndef/ifdef/.
89248
89249 2005-02-20  Neil Conway  <neilc@samurai.com>
89250
89251         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
89252         returned by OSX/Darwin if the specified buffer is not large
89253         enough for the hostname.
89254
89255 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89256
89257         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
89258         pass it to _help, otherwise the latter coredumps trying to
89259         dereference state.root_argp.
89260
89261 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
89262
89263         * modules/chdir-long (Depends-on): Add memrchr.
89264         * modules/memrchr (Files): Add lib/memrchr.h.
89265         (Include): "memrchr.h".
89266
89267 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
89268
89269         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
89270
89271 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
89272
89273         * lib/memrchr.h: New file.
89274         * lib/chdir-long.c: Include it.
89275         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
89276         Don't bother including stddef.h.
89277
89278 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
89279
89280         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
89281         inclusion.
89282         Include <sys/types.h>, for dev_t.
89283         (ME_DUMMY, ME_REMOTE): Move from here....
89284         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
89285         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
89286         Dmitry V. Levin.
89287         Include mountlist.h first, to test the interface.
89288
89289 2005-01-29  Bruno Haible  <bruno@clisp.org>
89290
89291         * lib/progname.c (program_name): Initialize.
89292         Needed when linking statically on MacOS X.
89293
89294 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
89295
89296         Sync from coreutils.
89297         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
89298         (Depends-on): Add c-strtod.
89299         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
89300
89301 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
89302
89303         Sync from coreutils.
89304         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
89305
89306         Remove files that are specific to coreutils.
89307         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
89308
89309 2005-01-28  Bruno Haible  <bruno@clisp.org>
89310
89311         * modules/javacomp: New file.
89312         * MODULES.html.sh (Java): Add javacomp.
89313
89314 2005-01-28  Bruno Haible  <bruno@clisp.org>
89315
89316         * m4/javacomp.m4: New file, from GNU gettext.
89317
89318 2005-01-28  Bruno Haible  <bruno@clisp.org>
89319
89320         * lib/javacomp.sh.in: New file, from GNU gettext.
89321         * lib/javacomp.h: New file, from GNU gettext.
89322         * lib/javacomp.c: New file, from GNU gettext.
89323
89324 2005-01-26  Simon Josefsson  <jas@extundo.com>
89325
89326         * lib/gai_strerror.c: Use GPL in header.
89327
89328 2005-01-26  Bruno Haible  <bruno@clisp.org>
89329
89330         * modules/javaexec: New file.
89331         * MODULES.html.sh (Java): Add javaexec.
89332
89333 2005-01-26  Bruno Haible  <bruno@clisp.org>
89334
89335         * m4/javaexec.m4: New file, from GNU gettext.
89336
89337 2005-01-26  Bruno Haible  <bruno@clisp.org>
89338
89339         * lib/javaexec.sh.in: New file, from GNU gettext.
89340         * lib/javaexec.h: New file, from GNU gettext.
89341         * lib/javaexec.c: New file, from GNU gettext.
89342
89343 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89344
89345         * modules/lchown (Depends-on): Remove lchown.h
89346
89347 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89348
89349         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
89350         must be defined if the header file was not found, in order
89351         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
89352
89353 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89354
89355         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
89356         initializers for struct pentry_state.
89357         (__argp_error): Check return value of __asprintf
89358         (__argp_failure): Translate error message
89359
89360         * lib/argp-parse.c: Removed braces around the expansion of N_()
89361
89362 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
89363
89364         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
89365         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
89366         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
89367         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
89368         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
89369         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
89370         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
89371         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
89372         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
89373         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
89374         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
89375         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
89376         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
89377         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
89378         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
89379         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
89380         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
89381         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
89382         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
89383         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
89384         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
89385         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
89386         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
89387         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
89388         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
89389         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
89390         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
89391         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
89392         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
89393         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
89394         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
89395         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
89396         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
89397         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
89398         xstrtol.m4, xstrtoumax.m4, yesno.m4:
89399         Use an all-permissive copyright notice, recommended by RMS.
89400
89401 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
89402
89403         * modules/chdir-long (Depends-on): Remove mempcpy.
89404
89405 2005-01-21  Jim Meyering  <jim@meyering.net>
89406
89407         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
89408         same value as for Solaris 9.
89409
89410         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
89411         component length.  This included changing the parameter to be
89412         of type `char *' rather than `char const *'.
89413         * lib/chdir-long.h (chdir_long): Update prototype.
89414
89415         * lib/openat.c (fdopendir, fstatat): New functions.
89416         * lib/openat.h: Include headers required for use of DIR and struct
89417         stat.
89418         [AT_SYMLINK_NOFOLLOW]: Define.
89419         (fdopendir, fstatat): Add prototypes.
89420
89421 2005-01-21  Bruno Haible  <bruno@clisp.org>
89422
89423         * modules/classpath: New file.
89424         * MODULES.html.sh (Java): Add classpath.
89425
89426 2005-01-21  Bruno Haible  <bruno@clisp.org>
89427
89428         * lib/classpath.h: New file, from GNU gettext.
89429         * lib/classpath.c: New file, from GNU gettext.
89430
89431 2005-01-20  Simon Josefsson  <jas@extundo.com>
89432
89433         * modules/version-etc-fsf: New file.
89434
89435 2005-01-20  Simon Josefsson  <jas@extundo.com>
89436
89437         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
89438         * lib/version-etc.c: Remove version_etc_copyright.
89439         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
89440         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
89441
89442 2005-01-20  Simon Josefsson  <jas@extundo.com>
89443
89444         * lib/base64.h (isbase64): Add.
89445
89446         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
89447         using a unsigned prototype, don't inline.
89448         (base64_decode): Use it.
89449
89450 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
89451
89452         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
89453         it.
89454
89455 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
89456
89457         * lib/save-cwd.c (save_cwd): Remove code to support the case
89458         where fchdir is missing or flaky.
89459
89460 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
89461
89462         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
89463
89464 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
89465
89466         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
89467         AC_LIBSOURCES now does this.
89468         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
89469         with new ullong_max module.
89470
89471 2005-01-19  Bruno Haible  <bruno@clisp.org>
89472
89473         * modules/sh-quote: New file.
89474         * MODULES.html.sh (Executing programs): Add sh-quote.
89475
89476 2005-01-19  Bruno Haible  <bruno@clisp.org>
89477
89478         * lib/sh-quote.h: New file, from GNU gettext.
89479         * lib/sh-quote.c: New file, from GNU gettext.
89480
89481 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
89482
89483         Merge from coreutils.
89484         * m4/ullong_max.m4: New file.
89485         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
89486         (gl_MACROS): Assume localeconv exists.
89487
89488 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
89489
89490         Merge changes from coreutils, as described below in several
89491         changelogs dated today.
89492
89493         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
89494         (O_DIRECTORY): Remove; not needed here, since "." must be
89495         a directory.  All uses removed.
89496         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
89497         universal on Suns, and we also need to test for IRIX.
89498         Revamp code to use 'if' rather than '#if'.
89499         Avoid unnecessary comparison of cwd->desc to 0.
89500
89501         * lib/utimens.c (futimens): Robustify the previous patch, by checking
89502         for known valid error numbers rather than observed invalid ones.
89503
89504 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
89505
89506         * modules/ullong_max: New file.
89507
89508         * modules/chdir-long, modules/openat: New files.
89509         * modules/save-cwd (Depends-on): Depend on chdir-long.
89510         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
89511
89512 2005-01-18  Jim Meyering  <jim@meyering.net>
89513
89514         Merge from coreutils.
89515         * m4/chdir-long.m4, m4/openat.m4: New files.
89516         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
89517         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
89518         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
89519         is sane and DOES follow symlinks.  Besides, testing 20 different
89520         systems found no broken chown implementations.
89521         Prompted by a change in rsync's copy of this macro.
89522         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
89523
89524         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
89525
89526         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
89527         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
89528         NULL-means-set-to-current-time semantics.
89529         Remove temporary file immediately, rather than waiting
89530         for configure's at-exit trap code to do it.
89531
89532 2005-01-18  Jim Meyering  <jim@meyering.net>
89533
89534         * lib/version-etc.c (version_etc_copyright): Update copyright date.
89535
89536         * lib/utimens.c (futimens): Account for the fact that futimes
89537         can also fail with errno == ENOSYS or errno == ENOENT.
89538         Patch from Dmitry V. Levin.
89539
89540         Change the name of the robust chdir function from chdir to chdir_long.
89541         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
89542         (restore_cwd): Use chdir_long, not chdir.
89543         * lib/chdir-long.c: Renamed from chdir.c.
89544         * lib/chdir-long.h: Renamed from chdir.h.
89545         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
89546         Hurd.
89547
89548 2005-01-18  Bruno Haible  <bruno@clisp.org>
89549
89550         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
89551         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
89552         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
89553         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
89554         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
89555         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
89556         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
89557         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
89558         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
89559         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
89560         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
89561         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
89562         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
89563         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
89564         Use an all-permissive copyright notice, recommended by RMS.
89565
89566 2005-01-18  Bob Proulx  <bob@proulx.com>
89567
89568         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
89569         simplify offsetof() macro construct to avoid compile failure with
89570         native HP-UX 11.0 ANSI C compiler.
89571
89572 2005-01-17  Bruno Haible  <bruno@clisp.org>
89573
89574         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
89575         redundant because stpncpy.m4 takes care of it.
89576
89577 2005-01-17  Bruno Haible  <bruno@clisp.org>
89578
89579         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
89580
89581 2005-01-17  Bruno Haible  <bruno@clisp.org>
89582
89583         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
89584         used.
89585
89586 2005-01-17  Bruno Haible  <bruno@clisp.org>
89587
89588         * lib/fwriteerror.h (fwriteerror): Change specification to include
89589         fclose.
89590         * lib/fwriteerror.c: Include <stdbool.h>.
89591         (fwriteerror): At the end, close the file stream. Record whether
89592         stdout was already closed.
89593
89594 2005-01-17  Bruno Haible  <bruno@clisp.org>
89595
89596         * lib/execute.c (environ): Declare if needed.
89597         * lib/pipe.c (environ): Likewise.
89598         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
89599
89600 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89601
89602         * modules/argp: Depend on vsnprintf
89603
89604 2005-01-10  Jim Meyering  <jim@meyering.net>
89605
89606         * modules/closeout (Depends-on): Add atexit.
89607
89608 2005-01-06  Bruno Haible  <bruno@clisp.org>
89609
89610         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
89611
89612 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
89613
89614         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
89615         definitions to be after all include files, to avoid collisions.
89616         Problem reported by Bob Proulx.
89617
89618 2005-01-04  Jim Meyering  <jim@meyering.net>
89619
89620         Changes imported from coreutils.
89621         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
89622         as the mkstemp template, use a temporary directory and an
89623         8.3-friendly template to avoid trouble on systems like DJGPP.
89624         Reported by Juan M. Guerrero via Stepan Kasal.
89625         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
89626         close. Remove the temporary directory right away, rather than waiting
89627         for configure's at-exit trap code to do it.
89628         Suggestion from Stepan Kasal.
89629
89630 2005-01-01  Simon Josefsson  <jas@extundo.com>
89631
89632         * gnulib-tool: Print #include directives when --import'ing.
89633
89634 2004-12-28  Simon Josefsson  <jas@extundo.com>
89635
89636         * tests/test-base64.c: Include required header files.  Remove
89637         unused variables.
89638
89639 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
89640
89641         * modules/error (Depends-on): Remove gettext.
89642
89643 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
89644
89645         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
89646         not needed.  This removes a dependency on the gettext module.
89647         [defined _LIBC]: Do not include <libintl.h>; not needed.
89648
89649 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
89650
89651         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
89652         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
89653
89654 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
89655
89656         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
89657         HAVE_DECL_STRTOLD.
89658
89659 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
89660
89661         * modules/getdate (Depends-on): Remove alloca-opt.
89662
89663 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
89664
89665         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
89666
89667 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
89668
89669         * lib/argp-parse.c: Include <stddef.h>.
89670         (alignof, alignto): New macros.
89671         (parser_init): Don't assume that void * is aligned sufficiently
89672         for struct option.
89673
89674         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
89675         need to extend the stack.
89676         (YYINITDEPTH): New macro, so that the initial stack isn't overly
89677         large.
89678
89679 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89680
89681         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
89682
89683 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
89684
89685         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
89686         (2004-10-24) change.  Apparently this was a false alarm.
89687
89688         * modules/getdate: Depend on alloca-opt, not alloca.
89689
89690 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
89691
89692         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
89693         Remove now-obsolete comment about AIX.
89694         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
89695         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
89696         (YYMAXDEPTH): New macro.
89697
89698 2004-12-18  Simon Josefsson  <jas@extundo.com>
89699
89700         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
89701
89702 2004-12-18  Bruno Haible  <bruno@clisp.org>
89703
89704         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
89705
89706 2004-12-18  Bruno Haible  <bruno@clisp.org>
89707
89708         * lib/fatal-signal.c (fatal_signals): Make non-const.
89709         (init_fatal_signals): New function.
89710         (uninstall_handlers, install_handlers): Ignore signals that were set to
89711         SIG_IGN.
89712         (at_fatal_signal): Call init_fatal_signals.
89713         (init_fatal_signal_set): Likewise. Ignore signals that were set to
89714         SIG_IGN.
89715         Reported by Paul Eggert.
89716
89717 2004-12-18  Bruno Haible  <bruno@clisp.org>
89718
89719         * doc/alloca.texi: New file.
89720         * doc/alloca-opt.texi: New file.
89721
89722 2004-12-17  Jim Meyering  <jim@meyering.net>
89723
89724         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
89725         Otherwise, install-sh could exit with improper exit status when
89726         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
89727
89728 2004-12-16  Simon Josefsson  <jas@extundo.com>
89729
89730         * tests/test-base64.c: Add license.
89731
89732 2004-12-15  Stepan Kasal  <address@hidden>
89733
89734         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
89735
89736 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
89737
89738         * modules/getcwd (Files): Add m4/d-ino.m4.
89739         Suggested by Mark D. Baushke.
89740
89741 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
89742
89743         * lib/getdate.y (textint): New member "negative".
89744         (time_zone_hhmm): New function.
89745         Expect 14 shift-reduce conflicts, not 13.
89746         (o_colon_minutes): New rule.
89747         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
89748         (yylex): Set the "negative" member of signed numbers.
89749
89750 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
89751
89752         * doc/getdate.texi (Time of day items, Time zone items):
89753         Describe new formats +00:00, UTC+00:00.
89754
89755 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
89756
89757         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
89758         spurious "-l"s.  Problem reported by Stepan Kasal.
89759
89760 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
89761
89762         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
89763         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
89764
89765 2004-12-04  Simon Josefsson  <jas@extundo.com>
89766
89767         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
89768         Vandoorselaere <yoann@prelude-ids.org>.
89769
89770 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
89771
89772         Changes imported from coreutils.
89773         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
89774         exist.
89775         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
89776
89777 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
89778
89779         Changes imported from coreutils.
89780         * lib/hard-locale.c: Assume <locale.h> exists.
89781         Include "strdup.h".
89782         (GLIBC_VERSION): New macro.
89783         (hard_locale): Assume setlocale exists.
89784         Rewrite to avoid #ifdef.
89785         Use strdup rather than malloc + strcpy.
89786         * lib/human.c: Assume <locale.h> exists.
89787         (human_readable): Assume localeconv exists.
89788
89789 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
89790
89791         * modules/hard-locale (Depends-on): Add strdup.
89792
89793 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
89794
89795         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
89796         convert T2, not T.  (Imported from libc.)
89797
89798 2004-11-30  Simon Josefsson  <jas@extundo.com>
89799
89800         * modules/restrict (License): Change to LGPL.
89801
89802 2004-11-30  Simon Josefsson  <jas@extundo.com>
89803
89804         * m4/restrict.m4: Add copyright and copying conditions.
89805
89806 2004-11-30  Simon Josefsson  <jas@extundo.com>
89807
89808         * m4/base64.m4: New file.
89809
89810 2004-11-30  Simon Josefsson  <jas@extundo.com>
89811
89812         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
89813         base64.
89814
89815         * tests/test-base64.c: New file.
89816
89817         * modules/base64: New file.
89818
89819 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
89820
89821         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
89822         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
89823
89824         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
89825
89826 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
89827
89828         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
89829         (__getcwd.c): Don't restore errno; glibc doesn't.
89830         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
89831         first, falling back to our code only if its results look suspicious.
89832         Ensure that the resulting buffer is only as large as necessary.
89833
89834         * lib/readutmp.c: Include readutmp.h first.
89835         Include <errno.h>, since readutmp.h no longer does that.
89836         * lib/readutmp.h: Don't include <errno.h>,
89837         <sys/param.h>, <time.h>; not needed to establish interface.
89838         (errno): Remove decl.
89839         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
89840         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
89841         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
89842
89843 2004-11-28  Simon Josefsson  <jas@extundo.com>
89844
89845         * lib/base64.h, base64.c: New file.
89846
89847 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
89848
89849         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
89850
89851 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
89852
89853         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
89854         (Depends-on): Remove pathmax, same.  Add mempcpy.
89855         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
89856         (Makefile.am): Append getcwd.h to lib_SOURCES.
89857         (Include): Add getcwd.h.
89858         (Maintainer): Change from Jim Meyering to "all, glibc",
89859         since getdate now uses intended-for-glibc code.
89860         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
89861         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
89862
89863 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
89864
89865         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
89866         HP's ANSI C compiler.
89867         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
89868         Declaring int functions causes warnings on some modern systems and
89869         shouldn't be needed to compile on ancient ones.
89870         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
89871         defined.
89872
89873         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
89874         with the following changes.
89875         (__set_errno): Parenthesize properly.
89876         Include <stdbool.h>.
89877         (MIN, MAX, MATCHING_INO): New macros.
89878         (__getcwd): Define with prototype, not K&R form.
89879         Use heuristics to allocate default buffer on stack if possible.
89880         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
89881         behavior, and to avoid the PATH_MAX limit when computing
89882         ../../../../...
89883         Use MATCHING_INO to compare inode number to file.
89884         Check for arithmetic overflow in size calculations.
89885         Fix bug in reallocation of dot array that caused getcwd to fail
89886         on directories nested deeper than 75.
89887         Be more careful about saving errno on error.
89888         Do not use realloc; use only free+malloc, as this is a bit
89889         more flexible and avoids a needless copy operation.
89890         Do not inspect st_dev and st_ino for symbolic links; POSIX
89891         doesn't specify the latter.
89892         Check for closedir errors.
89893         Avoid needless casts.
89894         Use "#ifdef weak_alias" around weak_alias, to be like other
89895         glibc code.
89896         The following changes to getcwd.c have effect only when used in
89897         gnulib; they have no effect inside glibc proper.
89898         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
89899         as alloca isn't used.
89900         (alloca, __alloca): Likewise.
89901         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
89902         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
89903         unconditionally, as gnulib assumes C89 or better.
89904         Do not include <sys/param.h>.
89905         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
89906         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
89907         better.
89908         (NULL) [!defined NULL]: Remove; we assume C89 or better.
89909         Include <dirent.h> in a way that is compatible with modern Autoconf.
89910         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
89911         New macros, if not already defined.
89912         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
89913         Use "_LIBC", not "defined _LIBC", for consistency.
89914         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
89915         a mempcpy module.
89916         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
89917         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
89918         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
89919         credit only to Jim Meyering and adjust the copyright dates.
89920         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
89921         <stdlib.h>, <unistd.h>, "pathmax.h".
89922         Instead, include "xgetcwd.h" (first) and "getcwd.h".
89923         (INITIAL_BUFFER_SIZE): Remove.
89924         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
89925
89926 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
89927
89928         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
89929         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
89930         Use the _ONCE methods, for efficiency.
89931         Check for fcntl.h.  In test program, include <errno.h>
89932         and <fcntl.h> if available.  Remove old K&R cruft from
89933         test program.  Check for common errors in GNU/Linux,
89934         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
89935         don't do AC_LIBOBJ, as that's getcwd.m4's job.
89936         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
89937         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
89938         name accordingly.
89939         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
89940         accommodate new getcwd.c.
89941         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
89942         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
89943         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
89944         that's all we need now.
89945
89946 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89947
89948         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
89949         argp-parse.c depends on getopt internals, that means we should
89950         always use our getopt, to be on the safe side.
89951         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
89952         order not to spoil the result of an eventual previous invocation
89953         of gl_GETOPT_SUBSTITUTE.
89954
89955 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89956
89957         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
89958         redefinition warnings. To avoid them, include the defines
89959         in `#if !defined __need_getopt ... #endif'. The only place
89960         where __getopt_argv_const is used is in definitions
89961         of getopt_long and getopt_long_only below, which are as well
89962         protected by `#ifndef __need_getopt'.
89963         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
89964         __need_getopt after including <stdio.h> and <unistd.h> These
89965         headers might have defined it.
89966
89967 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
89968
89969         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
89970
89971 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
89972
89973         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
89974         (futimens): New function, which uses futimes if available.
89975         (futimens, utimens): Support timespec==NULL, with same semantics
89976         as utime and utimens.
89977         * lib/utimens.h (futimens): New decl.
89978
89979 2004-11-23  Jim Meyering  <jim@meyering.net>
89980
89981         * lib/getopt_.h: Remove trailing blanks.
89982
89983 2004-11-23  Jim Meyering  <jim@meyering.net>
89984
89985         * lib/__fpending.c: Add comment.
89986
89987 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
89988
89989         * modules/canonicalize (Depends-on): Add xreadlink.
89990         Problem reported by James Youngman.
89991
89992 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
89993
89994         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
89995         New macros.
89996         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
89997         optopt): Use them instead of invoking ## directly; otherwise, the
89998         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
89999
90000 2004-11-19  Bruno Haible  <bruno@clisp.org>
90001
90002         * lib/strtok_r.c: Move comments from here...
90003         * lib/strtok_r.h: ... to here.
90004
90005 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
90006
90007         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
90008         implementations that mishandle size_t overflow.
90009
90010 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
90011
90012         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
90013         might fail.  Problem reported by Yoann Vandoorselaere.
90014         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
90015         implementations that mishandle size_t overflow.
90016
90017 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
90018
90019         * modules/canon-host (Depends-on): Add strdup.
90020
90021 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
90022
90023         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
90024
90025 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
90026
90027         * lib/canon-host.c: Include "strdup.h".
90028         (canon_host): Use getaddrinfo if available, so that IPv6 works.
90029         Use strdup instead of malloc/strcpy to duplicate strings.
90030
90031         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
90032         (human_space_before_unit): New constant.
90033         * lib/human.c (human_readable): Support it.
90034
90035         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
90036         (xgetcwd): Set errno correctly when failing.
90037         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
90038         the failure is actually due to a PATH_MAX problem.
90039
90040         Further getopt changes to make it more likely that glibc will
90041         buy the changes back.
90042         * lib/getopt.c (POSIXLY_CORRECT): New constant.
90043         (getopt): Use it, so to preserve glibc semantic
90044         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
90045         when compiling for libc.
90046         * lib/getopt_.h (__getopt_argv_const): Bring it back.
90047         (getopt_long, getopt_long_only): Use it.
90048
90049         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
90050         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
90051         (getopt): Argv is now char * const *, as per standard.
90052         (_getopt_internal_r, _getopt_internal): Argv is now char **,
90053         not char *__getopt_argv_const *.
90054         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
90055         _getopt_long_only_r): Likewise.
90056         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
90057         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
90058         _getopt_long_r, _getopt_long_only_r): Likewise.
90059         * lib/getopt_.h (__getopt_argv_const): Remove.
90060         (getopt): Argv is now char * const *, as per standard.
90061
90062         * lib/getdate.y (tORDINAL): New token.
90063         (day, relunit): Allow it for relative times.
90064         (relative_time_table): Use tORDINAL for ordinals.
90065
90066 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
90067
90068         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
90069         Document that "second" isn't allowed as an ordinal number.
90070
90071 2004-11-16  Jim Meyering  <jim@meyering.net>
90072
90073         * modules/closeout (Depends-on): Add fpending.
90074
90075 2004-11-15  Jim Meyering  <jim@meyering.net>
90076
90077         * lib/closeout.c: Include "__fpending.h" once again.
90078         Include <stdbool.h>.
90079         (close_stdout): Don't fail just because stdout was closed initially,
90080         since some programs don't write to stdout in the normal course of
90081         operation (other than --version and --help), and we don't want this
90082         function to make e.g. `touch file >&-' fail.
90083         But do fail if it was closed and someone has tried to write to it.
90084         E.g., `printf foo >&-' must fail.
90085
90086 2004-11-13  Jim Meyering  <jim@meyering.net>
90087
90088         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
90089
90090 2004-11-12  Simon Josefsson  <jas@extundo.com>
90091
90092         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
90093         small doc fix is still pending.
90094
90095 2004-11-11  Simon Josefsson  <jas@extundo.com>
90096
90097         * modules/strtok_r: New file.
90098
90099         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
90100         strtok_r.
90101
90102 2004-11-11  Simon Josefsson  <jas@extundo.com>
90103
90104         * m4/strtok_r.m4: New file.
90105
90106         * m4/getopt.m4: Replace opterr.
90107
90108 2004-11-11  Simon Josefsson  <jas@extundo.com>
90109
90110         * lib/strtok_r.h, strtok_r.c: New file.
90111
90112 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
90113
90114         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
90115         of replacing opterr, getopt, etc.  This should handle the
90116         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
90117
90118 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
90119
90120         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
90121         we can stop lying to compilers about the constness of argv when we
90122         are compiled outside glibc.
90123         (getopt, getopt_long, getopt_long_only): Use it.
90124         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
90125         _getopt_internal, getopt): Likewise.
90126         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
90127         _getopt_long_only_r): Likewise.
90128         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
90129         _getopt_long_r, _getopt_long_only_r): Likewise.
90130
90131         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
90132         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
90133         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
90134         the other external symbols.
90135         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
90136         declaration, since the above renaming now works around collisions.
90137
90138 2004-11-11  Jim Meyering  <jim@meyering.net>
90139
90140         * lib/linebreak.c: Remove trailing blanks.
90141         * lib/alloca_.h: Likewise.
90142         * lib/acosl.c: Likewise.
90143         * lib/euidaccess.c: Likewise.
90144         * lib/allocsa.h: Likewise.
90145
90146 2004-11-10  Simon Josefsson  <jas@extundo.com>
90147
90148         * m4/getaddrinfo.m4: New file.
90149
90150 2004-11-10  Simon Josefsson  <jas@extundo.com>
90151
90152         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
90153
90154 2004-11-10  Simon Josefsson  <jas@extundo.com>
90155
90156         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
90157         getaddrinfo.
90158
90159         * modules/getaddrinfo: New file.
90160
90161 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
90162
90163         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
90164
90165 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
90166
90167         * lib/mktime.c (SHR): New macro, which is a portable
90168         substitute for >> that should work even on Crays.
90169         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
90170         Problem reported by Mark D. Baushke in
90171         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
90172         * lib/getdate.y (SHR): Likewise.
90173         (tm_diff): Use it.
90174         * lib/strftime.c (SHR): Likewise.
90175         (tm_diff): Use it.
90176         * lib/quotearg.c (struct quoting_options): Use unsigned int for
90177         quote_these_too, so that right shifts are well defined.  All uses
90178         changed.
90179
90180 2004-11-10  Jim Meyering  <jim@meyering.net>
90181
90182         Ensure that no close failure goes unreported.
90183         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
90184         return early when it seems there's nothing to flush.
90185         Don't include __fpending.h.
90186
90187 2004-11-10  Jim Meyering  <jim@meyering.net>
90188
90189         * modules/closeout (Depends-on): Remove fpending.
90190
90191 2004-11-10  Jim Meyering  <jim@meyering.net>
90192
90193         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
90194
90195 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
90196
90197         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
90198         gl_FUNC_STRFTIME.
90199         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
90200         and AC_REQUIRE when possible, to avoid duplicate checks.
90201         Check for <wchar.h>.
90202
90203 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
90204
90205         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
90206
90207 2004-11-09  Bruno Haible  <bruno@clisp.org>
90208
90209         * m4/sockpfaf.m4: New file.
90210
90211 2004-11-05  Bruno Haible  <bruno@clisp.org>
90212
90213         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
90214         Reported by Mark D. Baushke <mdb@cvshome.org>.
90215
90216 2004-11-04  Bruno Haible  <bruno@clisp.org>
90217
90218         2004-09-11  Bruno Haible  <bruno@clisp.org>
90219                 * allocsa.valgrind: New file.
90220         2004-02-06  Bruno Haible  <bruno@clisp.org>
90221                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
90222                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
90223                 Reported by Christopher Seip <chris.seip@hp.com>.
90224
90225 2004-11-04  Bruno Haible  <bruno@clisp.org>
90226
90227         * modules/allocsa (Files): Add lib/allocsa.valgrind.
90228         (Makefile.am): Distribute it.
90229
90230 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
90231
90232         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
90233         with errno == ERANGE if the buffer is too small.
90234         Problem reported by Mark D. Baushke.
90235
90236 2004-11-03  Albert Chin  <china@thewrittenword.com>
90237             Paul Eggert  <eggert@cs.ucla.edu>
90238
90239         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
90240         equivalent, substitute $ac_type for equivalent type rather than
90241         blindly using uint32_t *always* which won't work if uint32_t is not
90242         available.  Define _UINT32_T to work around typedef of uint32_t if
90243         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
90244         2.5.1.
90245
90246 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
90247
90248         * m4/jm-macros.m4: Sync from coreutils.
90249         (gl_MACROS): Check for mbrlen, for pathchk.
90250         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
90251
90252 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
90253
90254         * lib/xreadlink.c (MAXSIZE): New macro.
90255         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
90256         size does not exceed MAXSIZE.  Avoid cast.
90257         As suggested by Mark D. Baushke in
90258         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
90259         if readlink fails with buffer size just under MAXSIZE, try again
90260         with MAXSIZE.
90261
90262 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
90263
90264         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
90265
90266 2004-11-02  Derek R. Price  <derek@ximbiot.com>
90267         and  Paul Eggert  <eggert@cs.ucla.edu>
90268
90269         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
90270         (get_date): Overparenthesize to avoid GCC warning.
90271
90272 2004-11-02  Bruno Haible  <bruno@clisp.org>
90273
90274         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
90275         returns void.
90276
90277 2004-11-02  Bruno Haible  <bruno@clisp.org>
90278
90279         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
90280         function returns void.
90281
90282 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
90283
90284         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
90285         fflush_unlocked, flockfile, funlockfile, funlockfile,
90286         fputs_unlocked, putc_unlocked.
90287
90288 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
90289
90290         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
90291         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
90292         already declared.
90293
90294 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
90295
90296         * modules/getdate (Files): Add doc/getdate.texi.
90297         (Depends-on): Add setenv, xalloc.
90298
90299 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
90300
90301         * lib/getdate.y: Add support for TZ="foo" within a date string.
90302         Fix some bugs near time_t boundaries.  Reject dates with
90303         out-of-range components, e.g., "Sept 31".
90304         Include <stdlib.h>, "setenv.h", "xalloc.h".
90305         (ISDIGIT_LOCALE): Remove; unused.
90306         Note that the TZ and time functions used here are not reentrant.
90307         (mktime_ok, get_tz): New functions.
90308         (TZBUFSIZE): New constant.
90309         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
90310         This requires that we sometimes generate our own TZ="XXX..." setting.
90311
90312 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
90313
90314         * doc/getdate.texi: New file, from coreutils with modifications for
90315         the new TZ parsing.
90316
90317 2004-10-27  Derek R. Price  <derek@ximbiot.com>
90318
90319         * lib/mktime.c (not_equal_tm): Remove redundant check.
90320
90321 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
90322
90323         * modules/regex (lib_SOURCES): Add regex.c.
90324         Reported by James Youngman in
90325         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
90326
90327 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
90328
90329         * lib/getdate.y: Use Bison 1.875 features, and some minor
90330         code cleanups.  This change does not affect semantics.
90331         Don't include <stdlib.h>; no longer needed.
90332         Don't include unlocked-io.h; only the "#if TEST" code uses
90333         stdio, and performance isn't crucial there.
90334         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
90335         Bison 1.875 features as described below.
90336         All uses of "PC." replaced by "pc->".
90337         (YYSTYPE): Add a forward declaration.
90338         (yylex, yyerror): Use full prototypes in forward decls.
90339         Use "%pure-parser" rather than obsolescent "%pure_parser".
90340         Use %parse-param and %lex-param instead of obsolescent
90341         YYPARSE_PARAM and YYLEX_PARAM.
90342         (meridian_table, month_and_day_table, time_units_table,
90343         relative_time_table, time_zone_table, military_table,
90344         lookup_zone, lookup_word, get_date):
90345         Use NULL instead of 0 where appropriate.
90346         (to_hour): Avoid abort (), to avoid a dependency on
90347         stdlib.h.
90348         (yyerror, yylex): Now accepts parser_control * arg.
90349         (main) [TEST]: Use '\0' rather than 0 for char.
90350
90351 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
90352
90353         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
90354
90355 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
90356
90357         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
90358         It's now the caller's responsibility to handle the case where
90359         !HAVE_GETPAGESIZE && !defined getpagesize.
90360
90361         * lib/mktime.c (leapyear): Arg is long int, not int.
90362
90363 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
90364
90365         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
90366
90367 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
90368
90369         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
90370         missing.  Problem reported by James Youngman.
90371
90372 2004-10-16  Simon Josefsson  <jas@extundo.com>
90373
90374         * gnulib-tool: Fix comments.  Fix parse problem.
90375         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
90376
90377 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
90378
90379         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
90380         implementation of getopt_long.  Problem reported by Alexander Taler in:
90381         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
90382
90383 2004-10-15  Bruno Haible  <bruno@clisp.org>
90384
90385         * gnulib-tool: Untabify. Initialize supplied_libname.
90386         (func_usage): More homogenous output.
90387         (func_modules_transitive_closure, func_modules_to_filelist,
90388         func_emit_lib_Makefile_am): New functions.
90389         (func_import): New function, extracted from big case statement. Use
90390         func_get_license, func_modules_transitive_closure,
90391         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
90392         opt_lgpl. Don't use test -a, as it's not portable.
90393         (func_create_testdir): Use func_modules_transitive_closure,
90394         func_modules_to_filelist, func_emit_lib_Makefile_am.
90395
90396 2004-10-15  Bruno Haible  <bruno@clisp.org>
90397
90398         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
90399
90400 2004-10-15  Bruno Haible  <bruno@clisp.org>
90401
90402         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
90403         the portions belonging to each module.
90404         Suggested by Derek Robert Price <derek@ximbiot.com>.
90405
90406 2004-10-12  Simon Josefsson  <jas@extundo.com>
90407
90408         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
90409         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
90410         to real functions.
90411
90412 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90413
90414         * modules/vsnprintf: New file.
90415
90416 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90417
90418         * m4/vsnprintf.m4: New file.
90419
90420 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90421
90422         * lib/vsnprintf.h: New file.
90423         * lib/vsnprintf.c: New file.
90424
90425 2004-10-11  Bruno Haible  <bruno@clisp.org>
90426
90427         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
90428         vsnprintf.
90429
90430 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
90431
90432         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
90433
90434 2004-10-07  Bruno Haible  <bruno@clisp.org>
90435
90436         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
90437         fits into the provided buffer.
90438
90439 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
90440
90441         * lib/diacrit.c, diacrit.h: Add GPL notice.
90442
90443         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
90444         notice.
90445         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
90446         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
90447         This avoids a potential constant-folding bug.
90448
90449 2004-10-05  Bruno Haible  <bruno@clisp.org>
90450
90451         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
90452         for the declaration of strsep.
90453
90454 2004-10-05  Bruno Haible  <bruno@clisp.org>
90455
90456         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
90457
90458 2004-10-04  Simon Josefsson  <jas@extundo.com>
90459
90460         * modules/memmem: New file.
90461         * tests/test-memmem.c: New file.
90462         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
90463
90464 2004-10-04  Simon Josefsson  <jas@extundo.com>
90465
90466         * m4/memmem.m4: New file.
90467
90468 2004-10-04  Simon Josefsson  <jas@extundo.com>
90469
90470         * lib/memmem.h: New file.
90471         * lib/memmem.c: New file, taken from glibc.
90472
90473 2004-10-04  Simon Josefsson  <jas@extundo.com>
90474
90475         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
90476         '#ifdef USE_UNLOCKED_IO'.
90477
90478 2004-10-04  Simon Josefsson  <jas@extundo.com>
90479
90480         * config/srclist.txt: Add memmem from glibc.
90481
90482 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
90483
90484         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
90485
90486         * modules/argmatch, modules/argp, modules/closeout, modules/error,
90487         modules/exclude, modules/getdate, modules/getline,
90488         modules/getndelim2, modules/getpass, modules/getpass-gnu,
90489         modules/getusershell, modules/linebuffer, modules/md5,
90490         modules/mountlist, modules/posixtm, modules/readtokens,
90491         modules/readutmp, modules/regex, modules/sha1,
90492         modules/version-etc, modules/yesno:
90493         Remove dependency on unlocked-io.
90494
90495 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
90496
90497         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
90498
90499         * m4/unlocked-io.m4: Add copyright notice.
90500         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
90501
90502 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
90503
90504         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
90505         * lib/xmalloc.c (xmemdup): Likewise.
90506         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
90507         XFREE): Remove these long-obsolescent macros.
90508         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
90509         * lib/xstrdup.c: Remove.
90510
90511         * lib/regex.c (re_comp): Cast gettext return value to char *,
90512         Problem reported by Martin Neitzel via Mark D. Baushke.
90513
90514 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
90515
90516         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
90517         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
90518         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
90519         regex.c, sha1.c, version-etc.c, yesno.c:
90520         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
90521         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
90522         the includer's responsibility.
90523
90524         Sync from coreutils.
90525
90526         * lib/modechange.c (mode_compile): Don't decrement a pointer that
90527         points to the start of a string, as the C Standard says the
90528         resulting behavior is undefined.
90529
90530         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
90531         simple -> simple_backups, numbered_existing ->
90532         numbered_existing_backups, numbered -> numbered_backups
90533         to avoid shadowing problems.  All uses changed.
90534         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
90535         * lib/backupfile.c (check_extension, numbered_backup):
90536         Rename locals to avoid shadowing 'basename'.
90537         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
90538         once.
90539
90540         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
90541         * lib/.cvsignore: Add getopt.h.
90542
90543 2004-10-04  Bruno Haible  <bruno@clisp.org>
90544
90545         * modules/README: New file.
90546         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
90547         not a module.
90548
90549 2004-10-02  Jim Meyering  <jim@meyering.net>
90550
90551         * lib/dirfd.h, getpagesize.h: Add copyright notice.
90552
90553 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90554
90555         * modules/strsep: New file.
90556
90557 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90558
90559         * m4/strsep.m4: New file.
90560
90561 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90562
90563         * lib/strsep.h: New file.
90564         * lib/strsep.c: New file.
90565
90566 2004-10-01  Simon Josefsson  <jas@extundo.com>
90567
90568         * lib/snprintf.c (snprintf): Handle size==0.
90569
90570 2004-10-01  Simon Josefsson  <jas@extundo.com>
90571             Bruno Haible  <bruno@clisp.org>
90572
90573         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
90574         (snprintf): Declare 'args'.
90575
90576 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
90577
90578         * lib/snprintf.c: Remove comments as to why each header is needed.
90579
90580 2004-10-01  Bruno Haible  <bruno@clisp.org>
90581
90582         * MODULES.html.sh: Add strsep.
90583
90584 2004-09-30  Simon Josefsson  <jas@extundo.com>
90585
90586         * modules/snprintf: New file.
90587
90588 2004-09-30  Simon Josefsson  <jas@extundo.com>
90589
90590         * m4/snprintf.m4: New file.
90591
90592 2004-09-30  Simon Josefsson  <jas@extundo.com>
90593
90594         * lib/snprintf.h, lib/snprintf.c: New files.
90595
90596 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
90597
90598         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
90599         (hol_entry_help): Never translate an empty string.
90600         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
90601         * lib/argp.h (OPTION_NO_TRANS): New option.
90602
90603 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
90604
90605         * modules/argp (Maintainer): Replace Simon Josefsson
90606         by Sergey Poznyakoff.
90607
90608 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
90609
90610         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
90611         changes merged back into glibc.
90612
90613 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
90614
90615         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
90616
90617 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
90618
90619         * lib/xvasprintf.c: Include xalloc.h.
90620         (xvasprintf): Use xalloc_die, not xmalloc_die.
90621
90622 2004-09-29  Bruno Haible  <bruno@clisp.org>
90623
90624         * modules/alloca-opt: New file, derived from modules/alloca.
90625         * modules/allocsa: Depend on alloca-opt instead of alloca.
90626         * modules/setenv: Likewise.
90627         * modules/vasnprintf: Likewise.
90628         * MODULES.html.sh: Add alloca-opt.
90629
90630 2004-09-28  Simon Josefsson  <jas@extundo.com>
90631
90632         * gnulib-tool: New parameter --lgpl, to asseert that modules are
90633         LGPL, and to replace license template from GPL to LGPL.
90634
90635 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
90636
90637         * modules/dummy: Change license to LGPL.
90638
90639 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
90640
90641         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
90642
90643 2004-09-24  Simon Josefsson  <jas@extundo.com>
90644
90645         * modules/minmax (License): Change from GPL to LGPL.
90646
90647 2004-09-23  Simon Josefsson  <jas@extundo.com>
90648
90649         * gnulib-tool (--import): Typo.
90650
90651 2004-09-23  Simon Josefsson  <jas@extundo.com>
90652
90653         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
90654
90655 2004-09-22  Bruno Haible  <bruno@clisp.org>
90656
90657         * modules/*: Add 'License' field.
90658         * gnulib-tool: Accept --extract-license option.
90659         (func_get_license): New function.
90660
90661 2004-09-21  Bruno Haible  <bruno@clisp.org>
90662
90663         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
90664         Reported by Simon Josefsson.
90665
90666 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
90667
90668         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
90669         gl_AC_TYPE_LONG_LONG.
90670
90671 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
90672
90673         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
90674
90675 2004-09-18  Simon Josefsson  <jas@extundo.com>
90676         and  Paul Eggert  <eggert@cs.ucla.edu>
90677
90678         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
90679         calls with autoreconf.  Define GL_LIB.
90680
90681 2004-09-14  Karl Berry  <karl@gnu.org>
90682
90683         * config/srclist.txt: unsync setenv.c, sigh.
90684
90685 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
90686
90687         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
90688         Problem reported by Bruno Haible in:
90689         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
90690
90691 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
90692
90693         * config/srclist.txt: Comment out argp-pvh.c.
90694
90695 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
90696
90697         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
90698         in case some system header has #define'd it.  Problem reported by
90699         Soeren D. Schulze in
90700         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
90701
90702 2004-09-09  Karl Berry  <karl@gnu.org>
90703
90704         * regex.[ch]: delete from the root.  These were supposed to be
90705                 synced with emacs cvs, but this has not happened for about
90706                 a year, and anyway nothing else uses emacs regex.[ch].
90707                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
90708                 lib/regex[.ch] is untouched.
90709
90710 2004-09-09  Bruno Haible  <bruno@clisp.org>
90711
90712         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
90713
90714 2004-09-09  Bruno Haible  <bruno@clisp.org>
90715
90716         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
90717         modifications.
90718         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
90719
90720 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
90721
90722         * modules/xvasprintf: New file.
90723         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
90724
90725 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
90726
90727         * lib/xvasprintf.h: New file.
90728         * lib/xvasprintf.c: New file.
90729         * lib/xasprintf.c: New file.
90730
90731 2004-09-08  Bruno Haible  <bruno@clisp.org>
90732
90733         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
90734
90735 2004-09-08  Bruno Haible  <bruno@clisp.org>
90736
90737         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
90738         length is > INT_MAX.
90739         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
90740         more.
90741
90742 2004-09-08  Bruno Haible  <bruno@clisp.org>
90743
90744         * lib/stdint_.h: New file, taken from GNU clisp.
90745
90746 2004-09-08  Bruno Haible  <bruno@clisp.org>
90747             Oskar Liljeblad  <oskar@osk.mine.nu>
90748
90749         * modules/stdint: New file.
90750         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
90751
90752 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
90753
90754         Import from coreutils.
90755         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
90756         strings on unbounded length.  alloca's performance benefits aren't
90757         that important here.
90758         (V_STRDUP): Remove.
90759         (parse_with_separator): New function, with most of the internals
90760         of the old parse_user_spec.  Allow user to omit both user and group,
90761         for compatibility with FreeBSD.
90762         Clone only the user name, not the entire spec.
90763         Do not set *uid, *gid unless entirely successful.
90764         Avoid memory leak in some failing cases.
90765         Fix regression for USER.GROUP reported by Dmitry V. Levin in
90766         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
90767         (parse_user_spec): Rewrite to use parse_with_separator.
90768
90769 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
90770
90771         * modules/userspec: Don't depend on alloca.
90772
90773 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
90774
90775         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
90776
90777 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
90778
90779         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
90780         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
90781         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
90782
90783 2004-08-16  Simon Josefsson  <jas@extundo.com>
90784
90785         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
90786         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
90787         Add --dry-run for --import.
90788         Let user provided command line parameters override configure.ac
90789         settings.
90790
90791 2004-08-12  Simon Josefsson  <jas@extundo.com>
90792
90793         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
90794         as discussed with Paul Eggert in threads rooted at
90795         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
90796         and
90797         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
90798         Before, the test was empty, and relied on ELIDE_CODE in source
90799         code.)
90800         (gl_PREREQ_GETOPT): New macro.
90801         (gl_GETOPT): Use them.
90802
90803 2004-08-12  Simon Josefsson  <jas@extundo.com>
90804
90805         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
90806         * lib/getopt_.h: Renamed from getopt.h.
90807
90808 2004-08-12  Simon Josefsson  <jas@extundo.com>
90809
90810         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
90811         Change default library name from libfoo to libgnu.
90812         Now, if you have a configure.ac that says:
90813                 gl_SOURCE_BASE(gl)
90814                 gl_M4_BASE(gl/m4)
90815                 gl_MODULES(error getopt etcetera)
90816                 gl_INIT
90817         you can import all you need by running:
90818                 ../gnulib/gnulib-tool --import
90819
90820         * modules/getopt (Files): Rename getopt.h to getopt_.h.
90821         (Makefile.am): Rewrite, use logic from argz.
90822         (Include): Use <getopt.h> instead of "getopt.h".
90823
90824 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
90825
90826         * modules/argp (Files): Add m4/unlocked-io.m4.
90827         (Depends-on): Add extensions.
90828
90829 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
90830
90831         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
90832         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
90833         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
90834         Check for program_invocation_name, program_invocation_short_name,
90835         flockfile, funlockfile, features.h, _getopt_long_only_r.
90836
90837 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
90838
90839         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
90840         its complicated substitute.
90841         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
90842         and program_invocation_name.
90843         (__argp_basename) [!_LIBC]: Remove; the only use was
90844         replaced by its body.
90845         (__argp_short_program_name): Change condition from
90846         !defined __argp_short_program_name to
90847         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
90848         to match argp-namefrob.h.
90849         (__argp_failure): Don't assume strerror_r returns char *.
90850         * lib/argp-parse.c (N_): Define unconditionally.
90851         (argp_default_options): Fill out initializers with 0 to avoid
90852         gcc warnings.
90853
90854 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
90855
90856         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
90857         getopt1.c.
90858
90859 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
90860
90861         Merge from coreutils.
90862
90863         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
90864
90865         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
90866         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
90867
90868 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
90869
90870         Merge from coreutils.
90871
90872         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
90873         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
90874         for Reliant Unix 5.43.
90875
90876         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
90877         (union fooround): Use uintmax_t, not long int.
90878         The rest is a merge from libc:
90879         [defined _LIBC]: Include <shlib-compat.h>.
90880         (_obstack) [defined _LIBC]: Remove after 2.3.4.
90881
90882         * lib/settime.c (settime): Recode to avoid warning with
90883         Sun Forte C 6U2.
90884
90885         * lib/strverscmp.c: Convert to UTF-8.
90886
90887 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
90888
90889         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
90890         m4/uintmax_t.m4.
90891
90892 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
90893
90894         * modules/xalloc-die: New file.
90895         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
90896
90897         * modules/md5 (Files): Add m4/uint32_t.m4.
90898         * modules/sha1: Renamed from modules/sha.
90899         (Files):
90900         Rename lib/sha.h to lib/sha1.h.
90901         Rename lib/sha.c to lib/sha1.c.
90902         Rename m4/sha.m4 to m4/sha1.m4.
90903         (lib_SOURCES): Likewise.
90904         (configure.ac): Rename gl_SHA to gl_SHA1.
90905         (Include): sha.h -> sha1.h.
90906
90907 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
90908
90909         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
90910         * m4/sha1.m4: Renamed from sha.m4.
90911         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
90912
90913 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
90914
90915         * lib/obstack.h (obstack_empty_p):
90916         Don't assume that chunk->contents is suitably aligned.
90917         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
90918         Likewise. Problem reported by Benno in
90919         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
90920
90921         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
90922         readable.  This could be improved further but it'd take some work.
90923
90924 2004-08-08  Simon Josefsson  <jas@extundo.com>
90925
90926         * modules/xgethostname (Depends-on): Remove exit and error (not
90927         used).
90928
90929         * modules/getpass-gnu: Add getpass.h.
90930         (Depends-on): Add stdbool.
90931         * modules/getpass: Add getpass.h.
90932
90933 2004-08-08  Simon Josefsson  <jas@extundo.com>
90934
90935         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
90936         Check getpass declaration.
90937
90938 2004-08-08  Simon Josefsson  <jas@extundo.com>
90939
90940         * lib/xgethostname.c: Don't include error.h (not used).
90941
90942         * lib/getpass.h: Add.
90943         * lib/getpass.c: Include getpass.h first.
90944
90945 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
90946
90947         * lib/xalloc-die.c: New file.
90948         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
90949         All uses removed.
90950         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
90951         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
90952         xalloc-die.c.
90953         (_, N_, xalloc_die): Move to xalloc-die.c.
90954         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
90955         so that we needn't mess with xalloc_msg_memory_exhausted.
90956
90957         * lib/sha1.h: Renamed from sha.h.
90958         (SHA1_H): Renamed from _SHA_H.
90959         (sha1_ctx): Renamed from sha_ctx.
90960         (sha1_init_ctx): Renamed from sha_init_ctx.
90961         (sha1_process_block): Renamed from sha_process_block.
90962         (sha1_process_bytes): Renamed from sha_process_bytes.
90963         (sha1_finish_ctx): Renamed from sha_finish_ctx.
90964         (sha1_read_ctx): Renamed from sha_read_ctx.
90965         (sha1_stream): Renamed from sha_stream.
90966         (sha1_buffer): Renamed from sha_buffer.
90967         * lib/sha1.c: Likewise; renamed from sha.c.
90968         Do not include <sys/types.h>.
90969         Include <stddef.h> rather than <stdlib.h>.
90970
90971 2004-08-08  Bruno Haible  <bruno@clisp.org>
90972
90973         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
90974         FILESYSTEM_PREFIX_LEN.
90975         * lib/progreloc.c: Likewise.
90976         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
90977
90978 2004-08-06  Simon Josefsson  <jas@extundo.com>
90979
90980         * modules/progname (Depends-on): Don't depend on stdbool.
90981
90982 2004-08-06  Simon Josefsson  <jas@extundo.com>
90983
90984         * modules/getsubopt: New file.
90985         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
90986         getsubopt.
90987
90988 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
90989
90990         More merge from coreutils.
90991
90992         * m4/utimens.m4, m4/utimecmp.m4: New files.
90993         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
90994         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
90995         prereq.m4, sha.m4: Import changes from coreutils.
90996
90997 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
90998
90999         More merge from coreutils.
91000         * modules/raise, modules/readtokens0, modules/utimens:
91001         * modules/utimecmp, module/xnanosleep: New files.
91002         * modules/strftime: Add lib/strftime.h.
91003         Change include from <time.h> to "strftime.h".
91004         * modules/yesno: Add lib/yesno.h.
91005         * modules/backupfile: Remove lib/addext.c.
91006         * modules/euidaccess: Add stat-macros.h.
91007         * modules/canonicalize, modules/euidaccess,
91008         modules/filemode, modules/lchown, modules/makepath,
91009         modules/rmdir, modules/stat: Likewise.
91010
91011 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
91012
91013         Merge from tar.
91014         * lib/argp-help.c (make_hol, hol_append): Don't assume that
91015         SIZE_MAX is a valid preprocessor constant.
91016         (__argp_basename): Change from "#ifndef _LIBC"
91017         to "#ifndef __argp_short_program_name", so that
91018         we don't compile these functions for tar.
91019
91020         More merges from coreutils.
91021         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
91022         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
91023         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
91024         * lib/addext.c: Remove; no longer needed.
91025         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
91026         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
91027         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
91028         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
91029         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
91030         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
91031         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
91032         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
91033         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
91034         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
91035         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
91036         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
91037         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
91038         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
91039         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
91040         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
91041         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
91042         Import changes from coreutils.
91043
91044 2004-08-05  Simon Josefsson  <jas@extundo.com>
91045
91046         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
91047
91048 2004-08-05  Simon Josefsson  <jas@extundo.com>
91049
91050         * m4/getsubopt.m4: New file.
91051
91052 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
91053
91054         Merge from coreutils.
91055
91056         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
91057         * m4/getcwd-path-max.m4: New files.
91058
91059         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
91060         FILESYSTEM_PREFIX_LEN ->
91061         FILE_SYSTEM_PREFIX_LEN.
91062         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
91063         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
91064         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
91065         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
91066
91067         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
91068         prerequisite modules now handle the DOS stuff.
91069         Don't check for unistd.h.
91070
91071 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
91072
91073         Merge from coreutils.
91074
91075         * lib/.gdb-history: Remove; this doesn't belong here.
91076
91077         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
91078         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
91079         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
91080         * lib/getcwd.c: New files.
91081
91082         * lib/dirname.h: Include <stdbool.h>.
91083         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
91084         for consistency with POSIX terminology.  All uses changed.
91085         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
91086         (strip_trailing_slashes): Use bool for booleans.
91087         * lib/stripslash.c (strip_trailing_slashes): Likewise.
91088
91089         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
91090         sometimes returns a positive errno value even when it succeeds.
91091         (print_errno_message) [!LIBC]: Fall back on strerror if
91092         __strerror_r fails.
91093
91094         * lib/path-concat.c (mempcpy): Don't define if a system header defines
91095         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
91096         (longest_relative_suffix): New function.
91097         (path_concat): Use it.  Assume first argument is not NULL.
91098         Port to DOS.  Omit redundant separators.
91099         Report an error instead of returning NULL.
91100         Use mempcpy instead of memcpy.
91101         (xpath_concat): Remove: not declared or used.
91102
91103         * lib/same.h: Include <stdbool.h>
91104         (same_name): Return bool, not int.
91105         * lib/same.c (same_name): Likewise.
91106         (errno): Don't declare; we assume C89 or better now.
91107
91108         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
91109         if not already defined.
91110
91111         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
91112         * lib/dup-safer.c (errno): Likewise.
91113
91114 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
91115
91116         Merge from coreutils.
91117         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
91118         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
91119         * modules/path-concat: Don't depend on strdup.
91120
91121 2004-08-03  Simon Josefsson  <jas@extundo.com>
91122
91123         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
91124         * lib/progname.h: Don't include stdbool.h.
91125
91126 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
91127
91128         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
91129         * MODULES.html.sh (func_all_modules): Remove fatal.
91130
91131 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
91132
91133         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
91134
91135 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
91136
91137         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
91138         working.
91139
91140 2004-08-02  Simon Josefsson  <jas@extundo.com>
91141
91142         * lib/getsubopt.h: New file, with comments from Bruno Haible.
91143         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
91144         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
91145
91146 2004-08-01  Simon Josefsson  <jas@extundo.com>
91147
91148         * lib/xgetdomainname.c: Include stdlib.h, for free().
91149
91150 2004-07-19  Bruno Haible  <bruno@clisp.org>
91151
91152         * MODULES.html.sh (func_all_modules): Add dummy.
91153
91154 2004-07-16  Simon Josefsson  <jas@extundo.com>
91155
91156         * modules/dummy: New file.
91157
91158 2004-07-16  Simon Josefsson  <jas@extundo.com>
91159
91160         * lib/dummy.c: New file.
91161
91162 2004-07-16  Bruno Haible  <bruno@clisp.org>
91163
91164         * lib/backupfile.h: Add extern "C" for C++.
91165         * lib/closeout.h: Likewise.
91166         * lib/copy-file.h: Likewise.
91167         * lib/findprog.h: Likewise.
91168         * lib/full-write.h: Likewise.
91169         * lib/pathname.h: Likewise.
91170         * lib/progname.h: Likewise.
91171         * lib/stpcpy.h: Likewise.
91172         * lib/stpncpy.h: Likewise.
91173         * lib/strcase.h: Likewise.
91174         * lib/strstr.h: Likewise.
91175         * lib/xalloc.h: Likewise.
91176
91177         * lib/mbswidth.h: Add extern "C" for C++.
91178         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
91179
91180 2004-07-13  Robert Millan  <robertmh@gnu.org>
91181
91182         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
91183
91184 2004-07-09  Simon Josefsson  <jas@extundo.com>
91185
91186         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
91187         failed without this.)
91188
91189 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
91190
91191         * modules/chown (Files): Add lib/fchown-stub.c, since
91192         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
91193
91194 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
91195
91196         * lib/fchown-stub.c: New file.
91197
91198 2004-06-24  Jim Meyering  <jim@meyering.net>
91199
91200         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
91201
91202 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
91203
91204         * modules/argz: Omit "#include".
91205
91206         * MODULES.html.sh (func_all_modules): Add calloc, to match
91207         2004-06-01 addition of calloc module.
91208
91209 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
91210
91211         * m4/argz.m4: New file, which is autoupdated from libtool.
91212
91213 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
91214
91215         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
91216         libtool.
91217
91218 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
91219
91220         * config/srclist-update: Don't insist on "USA." before the
91221         close-comment, as libtool omits the period and puts the */ on a
91222         separate line.
91223         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
91224         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
91225
91226 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
91227
91228         * modules/argz: New file.
91229         * MODULES.html.sh (func_all_modules): Add argz.
91230
91231 2004-06-12  Jim Meyering  <jim@meyering.net>
91232         and  Paul Eggert  <eggert@cs.ucla.edu>
91233
91234         * modules/hash (Files): Add lib/xalloc.h.
91235         * modules/pipe (Depends-on): Add wait-process.
91236         * modules/stat (Depends-on): Add xalloc.
91237         * modules/userspec (Files): Add lib/userspec.h.
91238         * modules/xstrto
91239
91240         Upgrade from gettext-0.13.
91241         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
91242         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
91243         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
91244
91245 2004-06-10  Jim Meyering  <jim@meyering.net>
91246
91247         * lib/calloc.c: New file.
91248
91249 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
91250
91251         * lib/getdate.y (yylex): Allow space between sign and number.
91252         Problem reported by Dan Jacobson.
91253
91254 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
91255
91256         Merge from coreutils CVS.
91257
91258         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
91259         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
91260         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
91261         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
91262         xstrtol.m4: Fix copyright date and/or serial number.
91263
91264         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
91265         See if we need an fchown replacement.
91266         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
91267         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
91268         and use the replacement function if we detect either defect.
91269
91270         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
91271         gl_UTIMECMP.
91272
91273 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
91274         and  Jim Meyering  <jim@meyering.net>
91275
91276         Merge from coreutils CVS.
91277
91278         * lib/stat-macros.h: New file, with contents from file-type.h
91279         and coreutils' system.h.
91280         * lib/file-type.c: Include "stat-macros.h".
91281         * lib/file-type.h (file_type): Move all macro definitions to new file,
91282         stat-macros.h.
91283
91284         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
91285         Wrap old code with this conditional.
91286         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
91287         function that does not dereference symlinks.
91288         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
91289
91290         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
91291         dependency problems.
91292         (xreadlink): Accept new arg SIZE, for efficiency.
91293         All decls and uses changed.
91294         * lib/xreadlink.h: Include <stddef.h>, for size_t.
91295
91296         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
91297         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
91298
91299         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
91300         sysexits.h.
91301
91302 2004-06-01  Jim Meyering  <jim@meyering.net>
91303
91304         * m4/calloc.m4: New file.
91305
91306 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
91307
91308         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
91309         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
91310         Also, fix a typo in a diagnostic.
91311
91312 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
91313
91314         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
91315         or AC_FUNC_REALLOC.
91316
91317 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
91318
91319         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
91320         macros to be defined.
91321         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
91322         the allocator returns NULL because the requested size is zero.
91323
91324 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
91325
91326         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
91327         var.  Add comment explaining why libc still defines it.  This
91328         merges the following patch from glibc:
91329         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
91330
91331 2004-05-20  Andreas Schwab  <schwab@suse.de>
91332
91333         * m4/free.m4: Replace free if it not known to work, not the other
91334         way round.
91335
91336 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
91337
91338         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
91339         present in glibc since revision 1.1 of this file.
91340         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
91341         obstack_alignment_mask, obstack_alloc, obstack_base,
91342         obstack_blank, obstack_blank_fast, obstack_chunk_size,
91343         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
91344         obstack_grow0, obstack_init, obstack_int_grow,
91345         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
91346         obstack_next_free, obstack_object_size, obstack_ptr_grow,
91347         obstack_ptr_grow_fast, obstack_room): Remove declarations of
91348         nonexistent functions.
91349
91350 2004-05-18  Karl Berry  <karl@gnu.org>
91351
91352         * config/srclist.txt: break link for vasnprintf.c.
91353
91354 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
91355
91356         Port obstack to the AS/400, where pointers are 16 bytes wide and
91357         you cannot cast an integer to a valid pointer.  This patch is
91358         currently waiting to be integrated into glibc; see
91359         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
91360
91361         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
91362         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
91363         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
91364         (struct obstack): temp member is now a union of a pointer and
91365         an integer, instead of an integer.  All integer uses changed.
91366         This does not affect the physical layout of struct obstack,
91367         except on hosts (like the AS/400) where the size or alignment of
91368         void * is greater than that of ptrdiff_t.
91369         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
91370         __STDC__)]: Store temporary in pointer member of union, not
91371         integer member.
91372         * lib/obstack.c: Include <stddef.h>, for offsetof.
91373         (struct fooalign): Remove; it doesn't need a name.
91374         (union fooround): Change double to long double, and add void *.
91375         (DEFAULT_ALIGNMENT): Use offsetof to compute.
91376         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
91377         not a macro.  Hence the values are always int; so remove all
91378         casts-to-int in uses.
91379
91380 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
91381
91382         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
91383         we can get this patch merged into glibc.
91384
91385 2004-05-17  Derek R. Price  <derek@ximbiot.com>
91386             Paul Eggert  <eggert@cs.ucla.edu>
91387
91388         * m4/argp: Depend on alloca.
91389
91390 2004-05-17  Derek R. Price  <derek@ximbiot.com>
91391             Paul Eggert  <eggert@cs.ucla.edu>
91392
91393         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
91394         freecoding.
91395
91396 2004-05-17  Bruno Haible  <bruno@clisp.org>
91397
91398         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
91399         precision that consists of a '.' followed by an empty digit string.
91400         Patch by Tor Lillqvist <tml@iki.fi>.
91401
91402 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
91403
91404         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
91405         for backward compatibility with older code.  We need our own
91406         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
91407         it under some other name, and our alloca.h will define it.
91408
91409 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
91410             Derek Price  <derek@ximbiot.com>
91411
91412         * lib/alloca.c: Include <alloca.h>, to get our interface.
91413         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
91414         include <alloca.h> first.  Use C89 prototype for alloca; this
91415         requires including <stddef.h> for size_t.  Use extern "C" if C++.
91416         Use #elif for simplicity, since we can assume C89 now.
91417         Don't try to source the system alloca.h since it will not be found
91418         and to prevent recursively including its replacement.
91419         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
91420         * lib/regex.c: Likewise.
91421
91422 2004-05-16  Derek Price  <derek@ximbiot.com>
91423             Paul Eggert  <eggert@cs.ucla.edu>
91424
91425         getline cleanup.  This changes the getndelim2 API: both order of
91426         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
91427         no delimiter).
91428
91429         * lib/getline.c: Don't include stddef.h or stdio.h, since our
91430         interface does that.
91431         (getline): Always use getdelim, so that we don't have two
91432         copies of this code.
91433         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
91434         if available.
91435         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
91436         (GETNDELIM2_MAXIMUM): New macro.
91437         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
91438         instead of the old practice of delim2==0.  All callers changed.
91439         Return -1 on overflow, instead of returning junk.
91440         Do not set *linesize unless allocation succeeds.
91441         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
91442         that we include sys/types.h.
91443         * lib/getnline.h: Likewise.
91444         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
91445         (getndelim2): Reorder arguments.
91446         * lib/getnline.c (getnline, getndelim):
91447         Don't discard the NMAX argument.
91448         (getnline): Invoke getndelim, to avoid code duplication.
91449         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
91450         of (size_t) -1 by callers of the getnline family.
91451
91452 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
91453
91454         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
91455         Check for gettimeofday.
91456         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
91457         Check for settimeofday, stime.
91458
91459 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
91460
91461         * lib/nanosleep.c (suspended): Change its type from int to
91462         sig_atomic_t volatile.
91463         (first_call): Make it private to rpl_nanosleep, and have it
91464         be zero initially as that's a bit faster.
91465         (my_usleep): Round up fractional times instead of truncating them,
91466         as this is the usual meaning for 'sleep'.
91467
91468         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
91469         doesn't work.
91470         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
91471         (ENOSYS): Define if not defined.
91472         (settime): Fall back on stime if it exists and settimeofday fails.
91473         But don't bother with fallbacks if a method fails with errno == EPERM.
91474
91475 2004-05-11  Jim Meyering  <jim@meyering.net>
91476
91477         Prior to this change, the save_cwd caller required read access to the
91478         current directory on most systems (ones with the fchdir function).
91479
91480         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
91481         fails, try write-only, and finally, resort to using xgetcwd.
91482
91483 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
91484
91485         * lib/obstack.c, obstack.h: Import changes from libc.
91486
91487 2004-04-28  Bruno Haible  <bruno@clisp.org>
91488
91489         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
91490         also implicitly appends .exe to executables.
91491         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
91492         accepts Windows pathnames.
91493         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
91494         Treat Cygwin like Windows, since it now accepts Windows pathnames.
91495         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
91496         Treat Cygwin like Windows, since it now accepts Windows pathnames.
91497         Reported by Derek Robert Price <derek@ximbiot.com>.
91498
91499 2004-04-21  Karl Berry  <karl@gnu.org>
91500
91501         * config/srclist.txt (localcharset.c): break sync.
91502
91503 2004-04-20  Paul Eggert  <eggert@twinsun.com>
91504
91505         * m4/host-os.m4: Add a copyright notice.
91506
91507 2004-04-20  Jim Meyering  <jim@meyering.net>
91508
91509         Change UTILS_ to gl_ in AC_DEFINE'd names.
91510         Change utils_- and jm_-prefixed variables, too.
91511         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
91512         UTILS_FUNC_MKDIR_TRAILING_SLASH.
91513         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
91514
91515         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
91516         Don't emit trailing blanks.
91517         Also rename jm_-prefixed variables to have gl_ prefix.
91518
91519         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
91520         Also rename jm_-prefixed variables to have gl_ prefix.
91521
91522         * m4/jm-macros.m4: Reflect the renamings.
91523         * m4/prereq.m4: Likewise.
91524
91525 2004-04-20  Jim Meyering  <jim@meyering.net>
91526
91527         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
91528         memory.
91529
91530 2004-04-20  Jim Meyering  <jim@meyering.net>
91531             Bruno Haible  <bruno@clisp.org>
91532
91533         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
91534         memory when realloc fails.
91535
91536 2004-04-19  Jim Meyering  <jim@meyering.net>
91537
91538         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
91539         now that readutmp.c may call `free (0)'.
91540
91541 2004-04-19  Bruno Haible  <bruno@clisp.org>
91542
91543         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
91544         * m4/inttypes_h.m4: Likewise.
91545         * m4/stdint_h.m4: Likewise.
91546         * m4/intmax_t.m4: Likewise.
91547         * m4/uintmax_t.m4: Likewise.
91548
91549 2004-04-18  Jim Meyering  <jim@meyering.net>
91550
91551         * m4/prereq.m4: Don't forbid jm_ prefix.
91552
91553         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
91554         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
91555         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
91556         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
91557         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
91558         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
91559         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
91560         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
91561         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
91562         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
91563         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
91564         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
91565         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
91566         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
91567         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
91568         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
91569         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
91570         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
91571         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
91572
91573 2004-04-18  Jim Meyering  <jim@meyering.net>
91574
91575         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
91576         failure, don't leak memory and do call END_UTMP_ENT.
91577
91578 2004-04-16  Jim Meyering  <jim@meyering.net>
91579
91580         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
91581         coreutils' stat program.
91582         (gl_PREREQ): Don't require jm_PREREQ_STAT.
91583
91584 2004-04-11  Paul Eggert  <eggert@twinsun.com>
91585
91586         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
91587         C89.
91588         (CHAR_BIT): Remove, since we assume C89.
91589         Include <stdint.h> if available, as per current Autoconf CVS advice.
91590
91591 2004-03-31  Jim Meyering  <jim@meyering.net>
91592
91593         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
91594         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
91595         * m4/xalloc.m4: Likewise.
91596
91597 2004-03-30  Paul Eggert  <eggert@twinsun.com>
91598
91599         Merge from coreutils.
91600
91601         * m4/inttostr.m4: New file.
91602         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
91603         Require AM_STDBOOL_H and gl_TIMESPEC instead.
91604         Require gl_CLOCK_TIME.
91605         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
91606
91607 2004-03-30  Paul Eggert  <eggert@twinsun.com>
91608
91609         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
91610         not bool, to be more consistent with Unix conventions.
91611         Suggested by Bruno Haible.
91612
91613         Merge from coreutils.
91614
91615         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
91616         * lib/umaxtostr.c: New files.
91617
91618         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
91619         the usual <time.h> dance.
91620         (get_date): Change signature to support fractional time stamps.
91621         All callers changed.
91622         * lib/getdate.y: Include "getdate.h" first, as we can now
91623         assume C89 and don't need to worry about 'const'.
91624         Similarly, include "unlocked-io.h" near start, not in middle.
91625         Include <limits.h>.
91626         (textint.value): Use long int rather than int.
91627         (textint.digits): Use size_t rather than int.
91628         (BILLION, LOG10_BILLION): New constants.
91629         (parser_control): New member rel_ns.  Members day_ordinal,
91630         time_zone, month, day, hour, minutes, rel_year, rel_month,
91631         rel_day, rel_hour, rel_minutes, rel_seconds
91632         are now long int, not int.  Member seconds is now struct timespec,
91633         not int.  New member timespec_seen.  Members dates_seen, days_seen,
91634         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
91635         not int.
91636         (%union.intval): Now long int, not int.
91637         New member timespec.
91638         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
91639         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
91640         (spec): Now is a timespec or an item list.
91641         (timespec, items): New nonterminals.
91642         (time, rel, relunit, number, get_date):
91643         Add support for fractional seconds.
91644         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
91645         (gmtime, localtime, mktime): Remove decls; not needed with C89.
91646         (to_hour): First arg is now long int, not int.
91647         (to_year): Returns long int, not int.
91648         Don't treat year -70 like 70.
91649         (tm_diff): Returns long int, not int.
91650         (lookup_word): Use bool instead of int when appropriate.
91651         (yylex): Use size_t for count, not int.
91652         Detect overflow when parsing large integer constants.
91653         Add support for fractions.
91654         (get_date): Make pointers 'const' if possible.
91655         Use more-portable code to detect integer overflow.
91656         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
91657         Don't use ctime; it's not reliable if the year has >4 digits.
91658
91659         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
91660         This is for compatibility with BSD.
91661
91662         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
91663         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
91664         From coreutils' system.h.
91665
91666         * lib/userspec.c: Don't include "posixver.h".
91667         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
91668         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
91669         compatible extension.  Simplify code by removing a boolean int
91670         that was always nonzero if a string was nonnull.
91671
91672 2004-03-30  Jim Meyering  <jim@meyering.net>
91673
91674         Merge from coreutils.
91675
91676         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
91677         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
91678         on some systems one must include <grp.h> before it.
91679         Reported by Christian Krackowizer.
91680
91681 2004-03-30  Jim Meyering  <jim@meyering.net>
91682
91683         Merge from coreutils.
91684
91685         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
91686
91687         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
91688         an empty input stream.
91689
91690         * lib/readtokens.c: Include <stdbool.h>.
91691         (readtoken): Use `size_t' rather than int/long.
91692         All callers adjusted.
91693         Use `bool' rather than `int' where appropriate.
91694         Use memset rather than an explicit loop.
91695         Use x2nrealloc rather than xrealloc.
91696         Allow the use of `\0' as a delimiter.
91697         (readtokens): Likewise.
91698         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
91699
91700 2004-03-30  Jim Meyering  <jim@meyering.net>
91701
91702         * m4/realloc.m4: Remove file, since now it does no more than
91703         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
91704         the `configure.ac' section of module/realloc.
91705         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
91706
91707 2004-03-30  Bruno Haible  <bruno@clisp.org>
91708
91709         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
91710         nonnull.
91711
91712 2004-03-29  Paul Eggert  <eggert@twinsun.com>
91713
91714         Merge changes to getloadavg.c from coreutils and Emacs.
91715
91716         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
91717         Define to an expression, not to the empty string.
91718         Include cloexec.h and xalloc.h.
91719         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
91720         Use set_cloexec_flag rather than rolling our own.
91721         * lib/cloexec.c, lib/cloexec.h: New files.
91722
91723 2004-03-29  Paul Eggert  <eggert@twinsun.com>
91724
91725         * m4/cloexec.m4: New file.
91726
91727 2004-03-18  Paul Eggert  <eggert@twinsun.com>
91728
91729         * lib/getopt.h: Sync with libc CVS.
91730
91731 2004-03-18  Paul Eggert  <eggert@twinsun.com>
91732             Bruno Haible  <bruno@clisp.org>
91733
91734         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
91735         mbswidth.
91736
91737 2004-03-18  Paul Eggert  <eggert@twinsun.com>
91738             Bruno Haible  <bruno@clisp.org>
91739
91740         * lib/mbswidth.h: Include <wchar.h> only if
91741         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
91742         <wchar.h>.
91743         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
91744
91745 2004-03-09  Paul Eggert  <eggert@twinsun.com>
91746
91747         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
91748         Sync with libc CVS.
91749         * lib/getopt_int.h: New file, also synced from libc.
91750
91751 2004-03-09  Paul Eggert  <eggert@twinsun.com>
91752
91753         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
91754         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
91755         Bring back getopt.c, getopt.h, getopt1.c.
91756
91757 2004-03-07  Paul Eggert  <eggert@twinsun.com>
91758
91759         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
91760         All uses changed.  Check for sa_sigaction member; this fixes
91761         a bug first reported by Jason Andrade in
91762         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
91763
91764 2004-03-07  Paul Eggert  <eggert@twinsun.com>
91765
91766         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
91767         '#if' expressions.  Unlike the code it replaces, it does not
91768         depend on (defined _SC_PAGESIZE).  However, it does depend on
91769         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
91770         first reported by Jason Andrade in
91771         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
91772
91773 2004-02-25  Simon Josefsson  <jas@extundo.com>
91774
91775         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
91776
91777 2004-02-25  Simon Josefsson  <jas@extundo.com>
91778
91779         * lib/strdup.h: New file.
91780         * lib/strdup.c: Include it.
91781         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
91782         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
91783
91784 2004-02-23  Karl Berry  <karl@gnu.org>
91785
91786         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
91787         (from fencepost.gnu.org:/gd/gnuorg).
91788
91789 2004-02-23  Karl Berry  <karl@gnu.org>
91790
91791         * config/srclistvars.sh (GNUORG) [karl]: redefine.
91792         * config/srclist.txt: add maintain/standards documents.
91793
91794 2004-02-18  Bruno Haible  <bruno@clisp.org>
91795
91796         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
91797         Reported by Derek Robert Price <derek@ximbiot.com>.
91798
91799 2004-02-16  Karl Berry  <karl@gnu.org>
91800
91801         * config/mkinstalldirs, install-sh: update from automake.
91802
91803 2004-02-06  Karl Berry  <karl@gnu.org>
91804
91805         * m4/po.m4: update from gettext 0.14.1.
91806
91807 2004-02-06  Karl Berry  <karl@gnu.org>
91808
91809         * lib/config.charset: update from gettext 0.14.1.
91810
91811 2004-02-05  Paul Eggert  <eggert@twinsun.com>
91812
91813         Add comments and code, prompted by suggestions from Bruno Haible
91814         for sh-quote.
91815         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
91816         describing the enum quoting_style values.
91817         * lib/quotearg.c (quotearg_alloc): New function.
91818         (quotearg_buffer_restyled): Treat lone { and } as special.
91819         Treat = as special.  Work around bug with older shells
91820         that "see" a '\' that is really the 2nd byte of a multibyte char.
91821         Quote empty string with shell_quoting_style.
91822
91823 2004-02-03  Bruno Haible  <bruno@clisp.org>
91824
91825         * m4/pipe.m4: New file, from GNU gettext.
91826
91827 2004-02-03  Bruno Haible  <bruno@clisp.org>
91828
91829         * lib/pipe.h: New file, from GNU gettext.
91830         * lib/pipe.c: New file, from GNU gettext.
91831
91832 2004-01-27  Bruno Haible  <bruno@clisp.org>
91833
91834         * m4/execute.m4: New file, from GNU gettext.
91835
91836 2004-01-27  Bruno Haible  <bruno@clisp.org>
91837
91838         * lib/execute.h: New file, from GNU gettext.
91839         * lib/execute.c: New file, from GNU gettext.
91840         * lib/w32spawn.h: New file, from GNU gettext.
91841
91842 2004-01-24  Paul Eggert  <eggert@twinsun.com>
91843
91844         Merge from diffutils.
91845
91846         * lib/file-type.c (file_type): Add typed memory objects.
91847         * lib/file-type.h (S_TYPEISTMO): New macro.
91848
91849         * lib/c-stack.h (c_stack_action): Remove argv argument.
91850         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
91851         (die): Don't calculate message unless segv_action returns.
91852         (get_stack_location, min_address_from_argv, max_address_from_argv,
91853         volatile stack_base, volatile_stack_size): Remove.
91854         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
91855         that every segmentation violation is a stack overflow.  (Ouch!)
91856         See Debian bug 136249 (still outstanding) for more info about why
91857         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
91858
91859 2004-01-24  Paul Eggert  <eggert@twinsun.com>
91860
91861         Exit-status fix from coreutils.
91862
91863         Use exit_failure consistently in place of EXIT_FAILURE,
91864         so that program exit statuses are consistent on failure.
91865
91866         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
91867         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
91868         * lib/argmatch.h: Comment fix to match the above.
91869         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
91870         Now a macro referring to exit_failure, instead of a separate
91871         variable.  Include "exitfail.h" to get it.
91872         * lib/xstrtol.h: Include "exitfail.h".
91873         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
91874
91875         * lib/long-options.c (parse_long_options): Use prototype
91876         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
91877         for clarity.
91878
91879 2004-01-21  Jim Meyering  <jim@meyering.net>
91880
91881         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
91882         so as not to conflict with a different-sized __mktime_internal
91883         function in GNU libc.
91884         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
91885         Problem building statically-linked `ls' reported by Michael Brunnbauer.
91886
91887 2004-01-20  Karl Berry  <karl@gnu.org>
91888
91889         * config/config.guess: update from config.
91890
91891         * config/srclistvars.sh: GNUWWWLICENSES for karl.
91892
91893 2004-01-20  Bruno Haible  <bruno@clisp.org>
91894
91895         Safer stack allocation.
91896         * lib/setenv.c: Include allocsa.h.
91897         (alloca): Remove fallback definition.
91898         (freea): Remove macro.
91899         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
91900         instead of freea.
91901
91902 2004-01-20  Bruno Haible  <bruno@clisp.org>
91903
91904         * m4/eealloc.m4: New file, from GNU gettext.
91905
91906 2004-01-20  Bruno Haible  <bruno@clisp.org>
91907
91908         * m4/allocsa.m4: New file, from GNU gettext.
91909
91910 2004-01-20  Bruno Haible  <bruno@clisp.org>
91911
91912         * lib/xallocsa.h: New file, from GNU gettext.
91913         * lib/xallocsa.c: New file, from GNU gettext.
91914
91915 2004-01-20  Bruno Haible  <bruno@clisp.org>
91916
91917         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
91918
91919 2004-01-20  Bruno Haible  <bruno@clisp.org>
91920
91921         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
91922         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
91923         specially.
91924
91925 2004-01-20  Bruno Haible  <bruno@clisp.org>
91926
91927         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
91928         patch.
91929
91930 2004-01-20  Bruno Haible  <bruno@clisp.org>
91931
91932         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
91933
91934 2004-01-20  Bruno Haible  <bruno@clisp.org>
91935
91936         * lib/eealloc.h: New file.
91937
91938 2004-01-20  Bruno Haible  <bruno@clisp.org>
91939
91940         * lib/binary-io.h: Avoid warnings on Cygwin.
91941
91942 2004-01-20  Bruno Haible  <bruno@clisp.org>
91943
91944         * lib/allocsa.h: New file, from GNU gettext.
91945         * lib/allocsa.c: New file, from GNU gettext.
91946
91947 2004-01-18  Karl Berry  <karl@gnu.org>
91948
91949         * doc/gpl.texi, doc/lgpl.texi: new files.
91950
91951 2004-01-18  Karl Berry  <karl@gnu.org>
91952
91953         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
91954         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
91955
91956 2004-01-15  Paul Eggert  <eggert@twinsun.com>
91957
91958         Merge from coreutils.
91959
91960         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
91961         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
91962         (gl_DEFAULT_POSIX2_VERSION): Move
91963         the documentation from 'configure' into 'config.hin',
91964         so that 'configure --help' isn't burdened by it and
91965         we don't have to worry about its formatting there.
91966         Reword the documentation so that it's more succinct
91967         and can be run together into a single paragraph.
91968         * m4/same.m4 (gl_SAME): Check for pathconf.
91969
91970 2004-01-15  Paul Eggert  <eggert@twinsun.com>
91971
91972         Merge from coreutils.
91973
91974         * lib/posixver.c: Include posixver.h.
91975
91976         * lib/same.c: Include <stdbool.h>, <limits.h>.
91977         (_POSIX_NAME_MAX): Define if not defined.
91978         (MIN): New macro.
91979         (same_name): If file names are silently truncated, report
91980         that the file names are the same if they are the same after
91981         the silent truncation.
91982
91983         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
91984         conversion function.
91985         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
91986         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
91987         longer needed.
91988
91989 2004-01-15  Jim Meyering  <jim@meyering.net>
91990
91991         Merge from coreutils.
91992
91993         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
91994         if no library is required.
91995         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
91996         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
91997         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
91998         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
91999         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
92000         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
92001         value, $ac_cv_search_crypt, if it's "none required".
92002         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
92003         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
92004         not gl_FUNC_GETLOADAVG.
92005         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
92006         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
92007
92008 2004-01-15  Jim Meyering  <jim@meyering.net>
92009
92010         Merge from coreutils.
92011
92012         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
92013         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
92014         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
92015
92016         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
92017         optional configure-time default.
92018
92019         * lib/version-etc.c (version_etc_copyright): Update copyright date.
92020
92021         * lib/xreadlink.c (xreadlink): Correct outdated comment.
92022
92023 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
92024
92025         Merge from coreutils.
92026
92027         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
92028         value, $ac_cv_search_nanosleep, if it's "none required".
92029
92030 2004-01-14  Paul Eggert  <eggert@twinsun.com>
92031
92032         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
92033         with like-named macro in fnmatch.c.
92034         (EXT): Use an internal constant instead.
92035
92036         Merge fnmatch patches from glibc.
92037         * lib/fnmatch.c (mbsinit): Remove define.
92038         Add libc_hidden_ver (__fnmatch, fnmatch).
92039         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
92040         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
92041
92042 2004-01-14  Karl Berry  <karl@gnu.org>
92043
92044         * config/install-sh: update from automake.
92045
92046 2004-01-13  Karl Berry  <karl@gnu.org>
92047
92048         * config/install-sh: update from automake.
92049
92050 2004-01-09  Karl Berry  <karl@gnu.org>
92051
92052         * config/install-sh: update from automake.
92053
92054 2004-01-05  Karl Berry  <karl@gnu.org>
92055
92056         * config/config.{sub,guess}: update from config.
92057
92058 2003-12-31  Karl Berry  <karl@gnu.org>
92059
92060         * config/depcomp: update from automake.
92061
92062 2003-12-14  Karl Berry  <karl@gnu.org>
92063
92064         * lib/config.charset: update from gettext-runtime.
92065
92066 2003-12-03  Paul Eggert  <eggert@twinsun.com>
92067
92068         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
92069         Bug reported by Alfred M. Szmidt.
92070
92071 2003-12-03  Bruno Haible  <bruno@clisp.org>
92072
92073         * m4/gettext.m4: Upgrade from gettext-0.13.
92074         * m4/po.m4: Upgrade from gettext-0.13.
92075         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
92076         * m4/intmax.m4: New file, from gettext-0.13.
92077         * m4/printf-posix.m4: New file, from gettext-0.13.
92078
92079 2003-11-29  Karl Berry  <karl@gnu.org>
92080
92081         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
92082
92083 2003-11-25  Paul Eggert  <eggert@twinsun.com>
92084             Bruno Haible  <bruno@clisp.org>
92085
92086         * lib/printf-parse.h: Don't include sys/types.h.
92087         (ARG_NONE): New macro.
92088         (char_directive): Change type of *arg_index fields to size_t.
92089         * lib/printf-parse.c: Don't include sys/types.h.
92090         (SSIZE_MAX): Remove macro.
92091         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
92092         Remove unnecessary overflow check.
92093         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
92094         fields.
92095
92096 2003-11-25  Bruno Haible  <bruno@clisp.org>
92097
92098         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
92099
92100 2003-11-25  Bruno Haible  <bruno@clisp.org>
92101
92102         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
92103         gt_TYPE_SSIZE_T.
92104
92105 2003-11-24  Paul Eggert  <eggert@twinsun.com>
92106
92107         * modules/alloca: Remove dependency on xalloc.
92108
92109 2003-11-24  Paul Eggert  <eggert@twinsun.com>
92110
92111         * lib/alloca.c: Remove dependency on xalloc module.
92112         (xalloc_die): Remove.
92113         (memory_full) [!defined emacs]: New macro.
92114         [!defined emacs]: Don't include xalloc.h.
92115         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
92116         address arithmetic overflows.  Change datatypes a bit to avoid
92117         unnecessary casts.
92118
92119 2003-11-22  Jim Meyering  <jim@meyering.net>
92120
92121         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
92122         s/size/size_t/.
92123
92124 2003-11-21  Karl Berry  <karl@gnu.org>
92125
92126         * config/config.{sub,guess}: update from config.
92127
92128 2003-11-18  Karl Berry  <karl@gnu.org>
92129
92130         * config/config.{sub,guess}: update from config.
92131
92132         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
92133
92134 2003-11-17  Paul Eggert  <eggert@twinsun.com>
92135
92136         * README: Mention that S+T cannot overflow if S is the size of
92137         an existing object and T is sufficiently small.
92138
92139 2003-11-17  Jim Meyering  <jim@meyering.net>
92140
92141         On systems without utime and without a utimes function capable of
92142         dealing with a NULL struct utimbuf* argument, this utime replacement
92143         could -- in unusual circumstances -- leak a file descriptor.
92144         * lib/utime.c: Include <unistd.h> and <errno.h>.
92145         (utime_null): Be sure to close `fd' and to preserve errno.
92146         Reported by Geoff Collyer via Arnold Robbins.
92147
92148 2003-11-17  Bruno Haible  <bruno@clisp.org>
92149
92150         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
92151         (Depends-on): Add xsize.
92152
92153 2003-11-17  Bruno Haible  <bruno@clisp.org>
92154
92155         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
92156
92157 2003-11-17  Bruno Haible  <bruno@clisp.org>
92158
92159         * lib/vasnprintf.c (alloca): Remove fallback definition.
92160         (freea): Remove definition.
92161         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
92162         Reported by Paul Eggert.
92163
92164 2003-11-16  Paul Eggert  <eggert@twinsun.com>
92165             Bruno Haible  <bruno@clisp.org>
92166
92167         Protect against address arithmetic overflow.
92168         * lib/printf-args.h: Include stddef.h.
92169         (arguments): Change type of field 'count' to size_t.
92170         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
92171         'unsigned int' where appropriate.
92172         * lib/printf-parse.h: Include sys/types.h.
92173         (char_directive): Change type of *arg_index fields to ssize_t.
92174         (char_directives): Change type of fields 'count', max_*_length to
92175         size_t.
92176         * lib/printf-parse.c: Include sys/types.h and xsize.h.
92177         (SSIZE_MAX): Define fallback value.
92178         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
92179         instead of 'int' where appropriate. Check a_allocated, d_allocated
92180         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
92181         * lib/vasnprintf.c: Include xsize.h.
92182         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
92183         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
92184         overflow. Avoid wraparound when converting a width or precision from
92185         decimal to binary.
92186
92187 2003-11-16  Bruno Haible  <bruno@clisp.org>
92188
92189         Update from GNU gettext.
92190         * lib/printf-parse.c: Generalize to it can be compiled for wide
92191         strings.
92192         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
92193         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
92194         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
92195         SNPRINTF): New macros.
92196         Don't include <alloca.h> if the file is used inside libintl.
92197         (local_wcslen): New function, for Solaris 2.5.1.
92198         (VASNPRINTF): Use it instead of wcslen.
92199
92200 2003-11-16  Bruno Haible  <bruno@clisp.org>
92201
92202         * lib/xsize.h (xmax): New function.
92203         (xsum, xsum3, xsum4): Declare as "pure" functions.
92204
92205 2003-11-12  Paul Eggert  <eggert@twinsun.com>
92206
92207         * modules/xalloc (Files): Undo latest change, since xalloc.h
92208         no longer needs SIZE_MAX or PTRDIFF_MAX.
92209
92210 2003-11-12  Paul Eggert  <eggert@twinsun.com>
92211
92212         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
92213         gl_PTRDIFF_MAX.
92214
92215 2003-11-12  Paul Eggert  <eggert@twinsun.com>
92216
92217         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
92218         "return", to pacify some unknown compiler.  Problem reported
92219         by Joerg Schilling.
92220
92221 2003-11-12  Paul Eggert  <eggert@twinsun.com>
92222
92223         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
92224         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
92225         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
92226         heuristic is just as accurate as far as we know, and it removes a
92227         dependency on size_max.m4 and ptrdiff_max.m4.
92228
92229 2003-11-11  Bruno Haible  <bruno@clisp.org>
92230
92231         * modules/xsize (Files): Add m4/size_max.m4.
92232         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
92233
92234 2003-11-11  Bruno Haible  <bruno@clisp.org>
92235
92236         * m4/size_max.m4: New file.
92237         * m4/ptrdiff_max.m4: New file.
92238         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
92239         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
92240         (gl_XALLOC): Invoke it.
92241
92242 2003-11-11  Bruno Haible  <bruno@clisp.org>
92243
92244         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
92245         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
92246         defined.
92247
92248 2003-11-10  Paul Eggert  <eggert@twinsun.com>
92249
92250         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
92251         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
92252         rejected some allocations of exactly SIZE_MAX - 2 bytes.
92253         From Bruno Haible.
92254         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
92255         not (size_t) -1, since it's defined here.
92256
92257 2003-11-09  Karl Berry  <karl@gnu.org>
92258
92259         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
92260
92261 2003-11-06  Paul Eggert  <eggert@twinsun.com>
92262
92263         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
92264         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
92265         Reject sizes of exactly SIZE_MAX bytes.
92266         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
92267         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
92268
92269 2003-11-05  Bruno Haible  <bruno@clisp.org>
92270
92271         * lib/xsize.h: Include limits.h, to avoid a possible collision with
92272         SIZE_MAX defined in <limits.h> on Solaris.
92273
92274 2003-11-04  Jim Meyering  <jim@meyering.net>
92275
92276         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
92277         variable names, rather than @VAR@.
92278         * modules/poll: Likewise.
92279
92280 2003-11-04  Bruno Haible  <bruno@clisp.org>
92281
92282         * modules/xsize: New file.
92283         * modules/linebreak: Depend on xsize.
92284         * MODULES.html.sh (func_all_modules): Add xsize.
92285
92286 2003-11-04  Bruno Haible  <bruno@clisp.org>
92287
92288         * m4/xsize.m4: New file.
92289
92290 2003-11-04  Bruno Haible  <bruno@clisp.org>
92291
92292         * lib/xsize.h: New file.
92293         * lib/linebreak.c: Include xsize.h.
92294         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
92295         argument for overflow.
92296         Suggested by Paul Eggert.
92297
92298 2003-11-03  Karl Berry  <karl@gnu.org>
92299
92300         * config/config.{guess,sub}: update from config.
92301
92302 2003-11-03  Jim Meyering  <jim@meyering.net>
92303
92304         * modules/userspec (lib_SOURCES): Add userspec.h.
92305         (Include): Add "userspec.h".
92306         Improve description.
92307
92308 2003-11-03  Jim Meyering  <jim@meyering.net>
92309
92310         * lib/userspec.c: Include "userspec.h".
92311         * lib/userspec.h: New file.
92312
92313 2003-11-03  Bruno Haible  <bruno@clisp.org>
92314
92315         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
92316
92317 2003-11-03  Bruno Haible  <bruno@clisp.org>
92318
92319         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
92320         available, to avoid (extremely rare) race condition.
92321         Suggested by Paul Eggert.
92322
92323 2003-11-02  Karl Berry  <karl@gnu.org>
92324
92325         * config/srclist.txt (vasprintf.c): sync broken, sigh.
92326
92327 2003-10-31  Paul Eggert  <eggert@twinsun.com>
92328
92329         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
92330         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
92331         (read_filesystem_list): Set and use me_type_malloced.
92332         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
92333         whatever the type happens to be), for brevity and consistency.
92334         Check for size calculation overflow on Alphas running OSF/1.
92335
92336 2003-10-31  Jim Meyering  <jim@meyering.net>
92337
92338         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
92339
92340         * lib/linebuffer.c: Include <string.h> for declaration of memset.
92341
92342 2003-10-30  Paul Eggert  <eggert@twinsun.com>
92343             Bruno Haible  <bruno@clisp.org>
92344
92345         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
92346         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
92347
92348 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
92349
92350         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
92351         netbsd*-gnu*.  Suggested by Robert Millan.
92352
92353 2003-10-29  Paul Eggert  <eggert@twinsun.com>
92354
92355         * modules/group-member: Depend on stdbool.
92356
92357 2003-10-29  Paul Eggert  <eggert@twinsun.com>
92358
92359         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
92360
92361 2003-10-29  Paul Eggert  <eggert@twinsun.com>
92362
92363         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
92364         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
92365         after the 'gnu' in these cases.  This fixes some bugs in the
92366         previous change, and is based on suggestions by Robert Millan.
92367
92368 2003-10-29  Paul Eggert  <eggert@twinsun.com>
92369
92370         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
92371         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
92372         no longer needed.
92373         * lib/quotearg.c (quotearg_n_options): Use it.
92374         * lib/group-member.c: Include <stdbool.h>.
92375         (free_group_info): Arg is now const *; don't free arg.
92376         (get_group_info): Now returns bool and accepts struct group_info *,
92377         rather than returning a malloc'ed struct group_info *.
92378         All uses changed.  Check for overflow in internal size calculation.
92379
92380         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
92381         rather than xmalloc/xrealloc.
92382         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
92383         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
92384         conformance bug: the old code used a pointer after freeing the
92385         storage that it addressed.
92386         * lib/hash.c (hash_initialize): Simplify the code by using
92387         xalloc_oversized rather than doing it by hand.
92388         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
92389         the buffer preserved.  Use free and xmalloc instead.
92390         * lib/quotearg.c (quotearg_n_options): Likewise.
92391         Use a simpler test for size overflow.  Don't use xalloc_oversized
92392         because unsigned int might be wider than size_t (!); this suggests
92393         that we should switch from unsigned int to size_t for slot numbers.
92394
92395 2003-10-28  Paul Eggert  <eggert@twinsun.com>
92396
92397         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
92398         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
92399         NetBSD kernels.  Requested by Richard Stallman.
92400
92401 2003-10-27  Paul Eggert  <eggert@twinsun.com>
92402
92403         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
92404         to allocate the returned structure.  Do not allocate a subarray,
92405         as x2nrealloc will do that.
92406         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
92407         instead of xnrealloc.
92408         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
92409
92410 2003-10-27  Bruno Haible  <bruno@clisp.org>
92411
92412         * lib/stdbool_.h: Better support for BeOS.
92413
92414 2003-10-26  Paul Eggert  <eggert@twinsun.com>
92415
92416         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
92417         now uses inline.
92418
92419 2003-10-26  Paul Eggert  <eggert@twinsun.com>
92420
92421         * lib/xalloc.h (xalloc_oversized): New static inline function, for
92422         callers that want to do their own size-overflow checking.  Include
92423         <stdbool.h>, since xalloc_oversized returns bool.
92424         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
92425         to use xalloc_oversized.
92426
92427         Add two functions x2realloc, x2nrealloc, for programs that grow
92428         arrays dynamically by doubling their sizes.
92429         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
92430         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
92431         New functions.
92432
92433         Port to C99 semantics for 'inline' of external functions.
92434         Bug reported by Bruno Haible.
92435         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
92436         with the old contents of xnmalloc.
92437         (xnmalloc, xmalloc): Use it.
92438         (xnrealloc_inline): New static inline function,
92439         with the old contents of xnrealloc.
92440         (xnrealloc, xrealloc): Use it.
92441
92442         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
92443         that.
92444
92445 2003-10-26  Karl Berry  <karl@gnu.org>
92446
92447         * config/srclist.txt (COPYING.DOC): no longer available from
92448         /gd/gnuorg; don't know where the ultimate source is.
92449
92450 2003-10-25  Paul Eggert  <eggert@twinsun.com>
92451
92452         Fix several address-calculation bugs in the hash modules,
92453         plus some minor code cleanup.
92454
92455         * lib/hash.h: Include <stdbool.h>, for bool.
92456         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
92457         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
92458         hash_get_n_entries, hash_get_max_bucket_length,
92459         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
92460         hash_rehash): Use size_t rather than unsigned.
92461         * lib/hash.c (struct hash_table, hash_get_n_buckets,
92462         hash_get_n_buckets_used, hash_get_n_entries,
92463         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
92464         hash_get_entries, hash_do_for_each, hash_string, is_prime,
92465         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
92466         Likewise.
92467         (SIZE_MAX): Define if not defined.
92468         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
92469         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
92470         hash_print):
92471         Use const * when possible.
92472         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
92473         (check_tuning): Fix bug: if tuning parameters were very close to
92474         0 or 1, rounding errors could have caused subscript violations.
92475         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
92476         (hash_initialize): Add 'fail:' label
92477         to free table and return NULL, and use it to simplify code.
92478         Use calloc rather than clearing the storage ourself.
92479         (hash_initialize, hash_rehash): Check for arithmetic overflow in
92480         buffer size calculations.
92481         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
92482         Include <stddef.h>, for size_t.
92483         * lib/hash-pjw.c (hash_pjw): Likewise.
92484         Switch to method described by Bruno Haible.
92485         Include <limits.h>, for CHAR_BIT.
92486         (SIZE_BITS): New macro.
92487
92488 2003-10-23  Paul Eggert  <eggert@twinsun.com>
92489
92490         * m4/getline.m4 (AM_FUNC_GETLINE):
92491         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
92492         hosts.  Problem reported by Derek Robert Price in
92493         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
92494         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
92495         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
92496
92497 2003-10-21  Paul Eggert  <eggert@twinsun.com>
92498
92499         * lib/getndelim2.c (getndelim2): When size calculation overflows,
92500         ceiling the allocation at NMAX bytes rather than silently
92501         discarding input bytes before NMAX is reached.  This makes
92502         a difference only if NMAX exceeds SIZE_MAX / 2.
92503
92504         * lib/obstack.c: Merge from glibc.
92505         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
92506         Add libc_hidden_def (_obstack_newchunk).
92507         (_obstack_free) [! defined _LIBC]: Remove.
92508         [defined _LIBC]: Make a strong alias from obstack_free, rather than
92509         a clone of the function body.
92510         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
92511         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
92512
92513         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
92514         glibc.
92515         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
92516         arg to memcpy.
92517
92518         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
92519         (obstack_ptr_grow_fast, obstack_int_grow_fast):
92520         Don't use lvalue casts, as GCC plans to remove support for them
92521         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
92522         was also present in the non-GCC version, indicating that this
92523         code had always been buggy and had never been widely used.
92524         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
92525         Use the fast variant of each macro, rather than copying the
92526         definiens of the fast variant; that way, we'll be more likely to
92527         catch future bugs in the fast variants.
92528
92529 2003-10-20  Bruno Haible  <bruno@clisp.org>
92530
92531         * modules/wait-process: New file.
92532         * MODULES.html.sh (func_all_modules): Add wait-process.
92533
92534 2003-10-20  Bruno Haible  <bruno@clisp.org>
92535
92536         * m4/wait-process.m4: New file.
92537
92538 2003-10-20  Bruno Haible  <bruno@clisp.org>
92539
92540         * lib/wait-process.h: New file, from GNU gettext.
92541         * lib/wait-process.c: New file, from GNU gettext.
92542
92543 2003-10-19  Jim Meyering  <jim@meyering.net>
92544
92545         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
92546         HPUX 10.20.
92547
92548 2003-10-18  Karl Berry  <karl@gnu.org>
92549
92550         * config/config.guess: update from config.
92551
92552 2003-10-16  Paul Eggert  <eggert@twinsun.com>
92553
92554         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
92555         (getgroups): First arg is int, not size_t.
92556         Don't let 'free' mangle errno.
92557
92558 2003-10-16  Paul Eggert  <eggert@twinsun.com>
92559
92560         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
92561
92562 2003-10-16  Karl Berry  <karl@gnu.org>
92563
92564         * config/config.{guess,sub}: update from config.
92565
92566 2003-10-16  Jim Meyering  <jim@meyering.net>
92567
92568         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
92569         memcpy.
92570
92571 2003-10-15  Paul Eggert  <eggert@twinsun.com>
92572
92573         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
92574         (SIZE_MAX): Remove.
92575         (new_exclude, add_exclude_file): Initial size no longer needs to
92576         be a power of 2.
92577         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
92578         our own address arithmetic overflow checking.
92579
92580         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
92581         (fnmatch): Do not alloca more than 2000 wide characters;
92582         instead, use malloc for large buffers.
92583         Check for address arithmetic overflow, and return -1
92584         with errno set to ENOMEM in that case.
92585         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
92586         (NEW_PATTERN): Do not alloca more than 8000 bytes;
92587         instead, return -1.  Check for address arithmetic overflow.
92588
92589 2003-10-14  Paul Eggert  <eggert@twinsun.com>
92590
92591         Handle invalid suffixes and overflow independently, so that
92592         callers can treat them independently as needed.  Fix some bugs in
92593         suffix handling, e.g., "100k@" was not diagnosed as an invalid
92594         suffix for a human-readable blocksize.  The major caller-visible
92595         change is the addition of a new
92596         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
92597         that both overflow and suffix chars were found.
92598
92599         * lib/human.c (humblock): Don't check separately for invalid suffix
92600         char; that is xstrtoumax's job (now that its bug is fixed).
92601         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
92602         INTMAX_MAX]: New macros.
92603         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
92604         TYPE_MAXIMUM): New macros.
92605         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
92606         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
92607         if overflow occurs, as it's what __strtol does and it's more useful
92608         in practice.
92609         (__xstrtol): If __strtol reports some error other than ERANGE,
92610         reflect it to the caller as LONGINT_INVALID.  If it reports
92611         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
92612         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
92613         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
92614         value.
92615         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
92616         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
92617         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
92618         [defined UINTMAX_MAX]: New macros.
92619
92620 2003-10-14  Bruno Haible  <bruno@clisp.org>
92621
92622         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
92623
92624 2003-10-14  Bruno Haible  <bruno@clisp.org>
92625
92626         * m4/sig_atomic_t: New file, from GNU gettext.
92627         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
92628
92629 2003-10-14  Bruno Haible  <bruno@clisp.org>
92630
92631         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
92632         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
92633         Also use volatile where needed.
92634
92635 2003-10-12  Paul Eggert  <eggert@twinsun.com>
92636
92637         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
92638         Change maintainer from Bruno Haible to 'all'.
92639
92640 2003-10-12  Paul Eggert  <eggert@twinsun.com>
92641
92642         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
92643
92644 2003-10-12  Paul Eggert  <eggert@twinsun.com>
92645
92646         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
92647         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
92648         and define in terms of the other primitives.
92649         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
92650         (SIZE_MAX): Define if not already defined.
92651         (array_size_overflow): New function.
92652         (xalloc_die): Abort instead of exiting if 'error' returns.
92653         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
92654         (xmalloc, xrealloc): Use them.
92655         (xcalloc): Check for address arithmetic overflow.
92656         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
92657         a bit faster than strcpy.
92658
92659 2003-10-10  Simon Josefsson  <jas@extundo.com>
92660
92661         * modules/argp (Depends-on): Add restrict and strcase.
92662
92663 2003-10-10  Simon Josefsson  <jas@extundo.com>
92664
92665         * m4/argp.m4: Add AC_C_INLINE.
92666
92667 2003-10-08  Paul Eggert  <eggert@twinsun.com>
92668
92669         Merge getpass from libc, plus a few fixes.
92670
92671         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
92672         Include <stdbool.h>.
92673         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
92674         __fsetlocking to empty.
92675         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
92676         do include <bits/libc-lock.h>.
92677         Do not include <fcntl.h>; not needed.
92678         [_LIBC]: Include <wchar.h>.
92679         (NOTCANCEL_MODE): New macro.
92680         (flockfile, funlockfile) [_LIBC]: New macros.
92681         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
92682         [!_LIBC]: New macros.
92683         (call_fclose): New function.
92684         (getpass): Use it.  Save tty stream separately; this simplifies the
92685         code and makes it more reliable if stdin happens to equal stdout.
92686         Invoke __fsetlocking on tty.
92687         Handle thread cancellation if needed.
92688         Namespace cleanup (use __tcgetattr, __getline).
92689         Use bool for Booleans.
92690         [USE_IN_LIBIO]: Handle wide streams.
92691         [!_LIBC]: Unconditionally do the fseek, since we don't know what
92692         stream might go where.
92693
92694         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
92695         doesn't have to include <stdio.h> before us.
92696         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
92697         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
92698         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
92699         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
92700         if not declared, so that we can use getpass.c code from libc without
92701         rewriting it.
92702         (flockfile, ftrylockfile, funlockfile): New macros.
92703
92704 2003-10-08  Paul Eggert  <eggert@twinsun.com>
92705
92706         * modules/getpass: Depend on stdbool.
92707
92708 2003-10-08  Paul Eggert  <eggert@twinsun.com>
92709
92710         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
92711
92712 2003-10-07  Karl Berry  <karl@gnu.org>
92713
92714         * config/config.{guess,sub}: update from config.
92715
92716 2003-10-06  Jim Meyering  <jim@meyering.net>
92717             Bruno Haible  <bruno@clisp.org>
92718
92719         This lets translators provide better translations for the
92720         "Written by ..." part of --version output.
92721         * lib/version-etc.h: Include stdarg.h.
92722         (version_etc_copyright): Declare as readonly.
92723         (version_etc): Make this function variadic with a NULL-terminated list
92724         of author name strings.
92725         (version_etc_va): New declaration.
92726         * lib/version-etc.c: Include stdarg.h, stdlib.h.
92727         (version_etc_copyright): Declare as readonly.
92728         (version_etc_va): New function. Provide a different translatable string
92729         for each possible number of authors < 10. Abbreviate when there are 10
92730         authors or more.
92731         (version_etc): Make this function variadic. Call version_etc_va.
92732         Suggestion from Gary V. Vaughan.
92733
92734         * lib/long-options.h (parse_long_options): Change prototype: the
92735         authors string is moved to the end and becomes variadic.
92736         * lib/long-options.c: Include stdarg.h.
92737         (parse_long_options): Make this function variadic, too.
92738         Call version_etc_va, not version_etc.
92739
92740 2003-10-06  Bruno Haible  <bruno@clisp.org>
92741
92742         * modules/version-etc-2: Remove file.
92743         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
92744
92745 2003-10-06  Bruno Haible  <bruno@clisp.org>
92746
92747         * modules/fatal-signal: New file.
92748         * MODULES.html.sh (func_all_modules): Add fatal-signal.
92749
92750 2003-10-06  Bruno Haible  <bruno@clisp.org>
92751
92752         * m4/fatal-signal.m4: New file.
92753         * m4/signalblocking.m4: New file, from GNU gettext.
92754
92755 2003-10-06  Bruno Haible  <bruno@clisp.org>
92756
92757         * lib/version-etc-2.h: Remove file.
92758         * lib/version-etc-2.c: Remove file.
92759
92760 2003-10-06  Bruno Haible  <bruno@clisp.org>
92761
92762         * lib/fatal-signal.h: New file, from GNU gettext.
92763         * lib/fatal-signal.c: New file, from GNU gettext.
92764
92765 2003-10-05  Paul Eggert  <eggert@twinsun.com>
92766
92767         * README: Rework advice for preventing empty .o files.
92768         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
92769         not <sys/types.h>.
92770
92771 2003-10-04  Karl Berry  <karl@gnu.org>
92772
92773         * lib/argp*: update from libc.
92774
92775 2003-10-04  Karl Berry  <karl@gnu.org>
92776
92777         * config/config.{guess,sub}: update from config.
92778
92779 2003-10-02  Bruno Haible  <bruno@clisp.org>
92780
92781         * modules/lchown (Include): Add lchown.h.
92782         * modules/time_r (Include): Use "..." syntax.
92783         * modules/xgetdomainname (Include): Add xgetdomainname.h.
92784
92785 2003-10-01  Simon Josefsson  <jas@extundo.com>
92786
92787         * MODULES.html.sh (func_all_modules): Move gethostname from section
92788         'based on' to section 'lacking' POSIX:2001.
92789
92790 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
92791
92792         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
92793         to output mode on the same stream.
92794
92795 2003-09-29  Paul Eggert  <eggert@twinsun.com>
92796
92797         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
92798         Fix arg typo in previous patch.
92799
92800 2003-09-28  Jim Meyering  <jim@meyering.net>
92801
92802         * lib/error.c: Correct cpp indentation.
92803
92804 2003-09-27  Paul Eggert  <eggert@twinsun.com>
92805
92806         * modules/free: New file.
92807
92808 2003-09-27  Paul Eggert  <eggert@twinsun.com>
92809
92810         * m4/free.m4: New file.
92811
92812 2003-09-27  Paul Eggert  <eggert@twinsun.com>
92813
92814         * lib/minmax.h (MIN, MAX)
92815         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
92816         Omit the special code that used __typeof__, since we worry that
92817         it could be more trouble than it's worth.  See:
92818         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
92819         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
92820
92821         * lib/free.c: New file.
92822
92823 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
92824
92825         Trivial fixes to Makefile.am parts of module listings.
92826         * modules/strstr: Append strstr.h to lib_SOURCES.
92827         * modules/strcase: Likewise, for strcase.h.
92828
92829 2003-09-27  Karl Berry  <karl@gnu.org>
92830
92831         * config/mkinstalldirs: update from automake.
92832
92833 2003-09-26  Paul Eggert  <eggert@twinsun.com>
92834
92835         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
92836         (error_tail): Do not loop, reallocating temporary buffer, since
92837         the output cannot contain more wide characters than the input
92838         contains bytes, the size must be big enough already.  This avoids
92839         one potential size overflow calculation.  Check for size overflow
92840         when calculating temporary buffer size.  Free temporary buffer
92841         when done, if it was allocated with malloc; this plugs a memory
92842         leak.  Remove casts from void * to pointers, that are no longer
92843         needed now that we're assuming C89 or better.
92844
92845         Merge error changes from glibc.
92846
92847         * lib/error.c, error.h: Update copyright notice header to match glibc.
92848         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
92849         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
92850         Disable cancellation while printing error.
92851         * lib/error.h: Prepend __ to parameter names.
92852
92853 2003-09-26  Jim Meyering  <jim@meyering.net>
92854
92855         * lib/error.c (error_tail): Move some declarations
92856         into inner scope where the local variables are used.
92857
92858 2003-09-26  Bruno Haible  <bruno@clisp.org>
92859
92860         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
92861         stpncpy().
92862         Don't define stpncpy through config.h; it's now done through stpncpy.h.
92863
92864 2003-09-26  Bruno Haible  <bruno@clisp.org>
92865
92866         * lib/stpncpy.h (gnu_stpncpy): New declaration.
92867         (stpncpy): Define as alias for gnu_stpncpy.
92868         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
92869
92870 2003-09-25  Simon Josefsson  <jas@extundo.com>
92871
92872         * lib/xgetdomainname.h: New file.
92873         * lib/xgetdomainname.c: New file.
92874
92875 2003-09-25  Simon Josefsson  <jas@extundo.com>
92876             Bruno Haible  <bruno@clisp.org>
92877
92878         * modules/getdomainname: New file.
92879         * modules/xgetdomainname: New file.
92880         * MODULES.html.sh (func_all_modules): Add getdomainname,
92881         xgetdomainname.
92882
92883 2003-09-25  Simon Josefsson  <jas@extundo.com>
92884             Bruno Haible  <bruno@clisp.org>
92885
92886         * m4/getdomainname.m4: New file.
92887
92888 2003-09-25  Simon Josefsson  <jas@extundo.com>
92889             Bruno Haible  <bruno@clisp.org>
92890
92891         * lib/getdomainname.h: New file.
92892         * lib/getdomainname.c: New file.
92893
92894 2003-09-25  Karl Berry  <karl@gnu.org>
92895
92896         * lib/argp-fmtstream.c, argp-help.c: update from libc.
92897
92898 2003-09-25  Karl Berry  <karl@gnu.org>
92899
92900         * config/install-sh: update from automake.
92901
92902 2003-09-25  Bruno Haible  <bruno@clisp.org>
92903
92904         * modules/version-etc-2: New file, from modules/version-etc with
92905         modifications.
92906         * MODULES.html.sh (func_all_modules): Add version-etc-2.
92907
92908 2003-09-25  Bruno Haible  <bruno@clisp.org>
92909
92910         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
92911         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
92912
92913 2003-09-24  Simon Josefsson  <jas@extundo.com>
92914
92915         * modules/xgethostname: Add xgethostname.h.
92916
92917 2003-09-24  Paul Eggert  <eggert@twinsun.com>
92918
92919         * lib/linebuffer.c (freebuffer): Don't free the argument, just
92920         the buffer associated with the argument.  Bug reported by
92921         Simon Josefsson.
92922
92923 2003-09-24  Paul Eggert  <eggert@twinsun.com>
92924
92925         * README: Document assumptions that 'int' is at least 32 bits
92926         wide, that integer arithmetic is 2's complement without overflow,
92927         that there are no holes in integer values, that adding sizes of
92928         two nonoverlapping objects can't overflow, and that all-bits-zero
92929         yields scalar zero.  Fix spelling and capitalization typos.
92930
92931 2003-09-19  Karl Berry  <karl@gnu.org>
92932
92933         * lib/argp.h: update from libc.
92934
92935 2003-09-17  Paul Eggert  <eggert@twinsun.com>
92936
92937         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
92938         to avoid spurious warnings like "AC_RUN_IFELSE was called before
92939         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
92940
92941 2003-09-17  Paul Eggert  <eggert@twinsun.com>
92942
92943         * gnulib-tool: Use "test -h", not "test -L", for portability
92944         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
92945         (tags_regexp): Remove, since \| doesn't conform to POSIX.
92946         (sed_extract_prog): Issue s commands one-by-one, rather than
92947         using \| in one s command.
92948
92949 2003-09-16  Paul Eggert  <eggert@twinsun.com>
92950
92951         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
92952         input error, instead of returning NULL the next time we are called
92953         (and therefore losing track of errno).
92954
92955 2003-09-16  Bruno Haible  <bruno@clisp.org>
92956
92957         * gnulib-tool (func_create_testdir): Warn about duplicated
92958         dependencies.
92959
92960 2003-09-15  Paul Eggert  <eggert@twinsun.com>
92961
92962         * modules/argmatch, modules/fatal, modules/obstack,
92963         modules/xalloc, modules/xgethostname: Sort dependencies by
92964         importance, not alphabetically.
92965
92966 2003-09-15  Paul Eggert  <eggert@twinsun.com>
92967
92968         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
92969         fails, so that the caller gets the proper errno.
92970
92971         * lib/readutmp.c (read_utmp): Likewise.
92972         Check for fstat error.  Close stream and free storage
92973         when failing.
92974
92975 2003-09-14  Karl Berry  <karl@gnu.org>
92976
92977         * config/srclist.txt (strdup.c): disable for c89 changes.
92978
92979 2003-09-14  Jim Meyering  <jim@meyering.net>
92980
92981         * lib/getloadavg.c: Correct cpp indentation.
92982         * lib/strdup.c: Likewise.
92983         * lib/vasnprintf.c: Likewise.
92984
92985 2003-09-14  Bruno Haible  <bruno@clisp.org>
92986
92987         * modules/fwriteerror: New file.
92988         * MODULES.html.sh (func_all_modules): Add fwriteerror.
92989
92990 2003-09-14  Bruno Haible  <bruno@clisp.org>
92991
92992         * lib/fwriteerror.h: New file.
92993         * lib/fwriteerror.c: New file.
92994
92995 2003-09-12  Paul Eggert  <eggert@twinsun.com>
92996
92997         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
92998         modules/xgethostname, modules/xalloc: Depend on exit.
92999
93000 2003-09-12  Paul Eggert  <eggert@twinsun.com>
93001
93002         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
93003
93004         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
93005         and AC_MINIX, too, so that their extensions are available.
93006
93007         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
93008         This macro has been superseded by gl_BACKUPFILE.
93009
93010         More patches to assume C89 or better.
93011
93012         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
93013
93014         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
93015         unconditionally.
93016         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
93017         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
93018         Include <string.h>, <stdlib.h> unconditionally.
93019         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
93020         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
93021         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
93022         headers or for string.h.
93023         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
93024         or strtoul.
93025
93026         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
93027         headers.
93028         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
93029         * m4/userspec.m4 (gl_USERSPEC): Likewise.
93030         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
93031         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
93032         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
93033         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
93034         memcpy, memset.
93035         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
93036         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
93037         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
93038         strtol.
93039         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
93040         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
93041         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
93042         strtoul.
93043
93044 2003-09-12  Paul Eggert  <eggert@twinsun.com>
93045
93046         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
93047         * lib/obstack.c [!defined _LIBC]: Likewise.
93048         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
93049         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
93050         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
93051
93052         More changes to assume C89 or better.
93053
93054         * lib/error.c (error_tail): Assume vprintf.
93055
93056         * lib/argmatch.c (getenv): Remove decl.
93057         * lib/progreloc.c (get_full_program_name): Define via prototype.
93058         * lib/setenv.c (clearenv): Likewise.
93059         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
93060         needed.
93061         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
93062         (malloc, memcpy): Remove decls.
93063         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
93064         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
93065         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
93066         (memcpy): Remove macro.
93067         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
93068         (__P): Remove.  All uses removed.
93069         (PTR): Remove.  All uses changed to void *.
93070         (CHAR_BIT, NULL): Remove.
93071         (spaces, zeros, memset_space, memset_zero)
93072         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
93073         Remove.
93074         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
93075         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
93076         Define with prototype.
93077         Remove now-unnecessary prototype decl.
93078         (extra_args_spec): Assume ANSI C.  All uses changed.
93079         (extra_args_spec_iso): Remove.
93080         (my_strftime, emacs_strftimeu): Define via prototype.
93081         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
93082         unconditionally.
93083         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
93084         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
93085         (strtoul, strtol): Remove decls.
93086         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
93087         LONG_MAX): Remove.
93088         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
93089         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
93090         (LOCALE_PARAM_PROTO): New macro.
93091         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
93092         (INTERNAL (strtol), strtol): Define with a prototype.
93093         (PARAMS): Remove.  All uses removed.
93094         * lib/tempname.c: Include <string.h> unconditionally.
93095         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
93096         * lib/xgethostname.c (main): Define with a prototype.
93097         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
93098         Include <stdlib.h> unconditionally.
93099         (calloc, malloc, realloc, free): Remove decls.
93100         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
93101         Include <stdlib.h> unconditionally.  Sort include file names.
93102         (strtod): Remove.
93103         (xstrtod): Define with a prototype.
93104         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
93105         (strtol, strtoul): Remove decls.
93106
93107 2003-09-11  Paul Eggert  <eggert@twinsun.com>
93108
93109         More patches to assume C89 or better.
93110         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
93111         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
93112         string.h, memchr, STDC_HEADERS.
93113
93114 2003-09-11  Paul Eggert  <eggert@twinsun.com>
93115
93116         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
93117         Include <stdlib.h>, <string.h> unconditionally.
93118         Remove now-unnecessary cast to char *.
93119         * lib/strnlen.c: Include <string.h> unconditionally.
93120         * lib/yesno.c (yesno): Define with a prototype.
93121
93122 2003-09-11  Bruno Haible  <bruno@clisp.org>
93123
93124         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
93125
93126 2003-09-10  Jim Meyering  <jim@meyering.net>
93127
93128         * lib/error.c: Correct indentation of cpp directives.
93129
93130 2003-09-10  Bruno Haible  <bruno@clisp.org>
93131
93132         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
93133         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
93134         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
93135         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
93136         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
93137         <stdlib.h> and <string.h> checks.
93138         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
93139         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
93140
93141 2003-09-10  Bruno Haible  <bruno@clisp.org>
93142
93143         * lib/strcspn.c: Include <string.h> unconditionally.
93144         * lib/strpbrk.c: Include <string.h> unconditionally.
93145         * lib/strstr.c: Include <string.h> unconditionally.
93146         * lib/unicodeio.c: Include <string.h> unconditionally.
93147         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
93148         * lib/unsetenv.c: Likewise.
93149         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
93150         * lib/yesno.c: Include <stdlib.h> unconditionally.
93151         (rpmatch): Add prototype.
93152
93153 2003-09-09  Paul Eggert  <eggert@twinsun.com>
93154
93155         More patches to assume C89 or better.
93156         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
93157         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
93158         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
93159         or for string.h.
93160         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
93161         stdlib.h.
93162         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
93163         C headers.
93164         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
93165         string.h.
93166         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
93167         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
93168         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
93169         or for string.h.
93170         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
93171         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
93172         C headers.
93173         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
93174         memcpy.
93175         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
93176         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
93177         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
93178         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
93179         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
93180         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
93181         string.h, free.
93182         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
93183         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
93184         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
93185         C headers, or for string.h.
93186         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
93187         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
93188         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
93189         headers, memory.h, stdlib.h, string.h, strings.h.
93190         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
93191         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
93192         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
93193         strchr.
93194         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
93195         headers, memory.h, string.h.
93196         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
93197         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
93198         free.
93199         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
93200         headers.
93201         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
93202         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
93203         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
93204         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
93205         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
93206
93207 2003-09-09  Paul Eggert  <eggert@twinsun.com>
93208
93209         More K&R removal.
93210
93211         * lib/acosl.c (main): Use a prototype.
93212         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
93213         tanl.c: Likewise.
93214
93215         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
93216
93217         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
93218         (getopt, etopt_long, getopt_long_only, _getopt_internal)
93219         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
93220         with a prototype.
93221         * lib/getopt.c (const): Remove macro.
93222         Include <string.h> unconditionally.
93223         (my_index): Remove; all uses changed to strchr.
93224         (strlen): Remove decl.
93225         (exchange): Remove forward decl; no longer needed.
93226         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
93227         Define with prototype.
93228         * lib/getopt1.c (const): Remove macro.
93229         (getopt_long, getopt_long_only, main): Define with prototype.
93230
93231         * lib/getugroups.c: Include <string.h> unconditionally.
93232
93233         * lib/getusershell.c: Include <stdlib.h> unconditionally.
93234         (getusershell, setusershell, endusershell, readname, main):
93235         Define with prototypes.
93236
93237         * lib/group-member.c: Include group-member.h first.
93238         Include <stdlib.h> unconditionally.
93239
93240         * lib/hard-locale.c: Include hard-locale.h first.
93241         Include <stdlib.h>, <string.h> unconditionally.
93242
93243         * lib/hash.c (free, malloc): Remove decls.
93244         Include <stdlib.h> unconditionally.
93245
93246         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
93247         (getenv): Do not declare.
93248
93249         * lib/idcache.c: Include <string.h> unconditionally.
93250
93251         * lib/long-options.c: Include long-options.h first, to test interface.
93252         Include <stdlib.h> unconditionally.
93253
93254         * lib/makepath.c: Include makepath.h first, to test interface.
93255         Include <stdlib.h> and <string.h> unconditionally.
93256
93257         * lib/linebuffer.c: Include <stdlib.h>.
93258         (free): Remove decl.
93259
93260         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
93261         stddef.h. rpl_malloc returns void *, not char *.
93262         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
93263         prototype.
93264
93265         * lib/md5.h: Include <limits.h> unconditionally.
93266         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
93267         (__P): Remove; all uses removed.
93268         * lib/md5.c: Include "md5.h" first.
93269         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
93270         md5_buffer, md5_process_bytes, md5_process_block):
93271         Define with prototypes.
93272         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
93273         * lib/sha.c: Include "sha.h" first.
93274         Include <stdlib.h>, <string.h> unconditionally.
93275
93276         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
93277         * lib/memcmp.c (__ptr_t): Likewise.
93278         * lib/memrchr.c (__ptr_t): Likewise.
93279         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
93280         Include <string.h> unconditionally.
93281         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
93282         * lib/memchr.c: Include <stdlib.h> unconditionally.
93283         * lib/memchr.c (LONG_MAX): Remove.
93284         * lib/memrchr.c (LONG_MAX): Likewise.
93285         * lib/memchr.c (__memchr): Define via a prototype.
93286         * lib/memrchr.c (__memrchr): Likewise.
93287         * lib/memcmp.c (__P): Remove, and remove all uses.
93288         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
93289         Remove forward decls; no longer needed.
93290         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
93291         Use types required by C89 in prototype.
93292
93293         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
93294         * lib/savedir.c: Likewise.
93295         * lib/mkdir.c (free): Remove decl.
93296         * lib/rmdir.c (rmdir): Define with a prototype.
93297         * lib/savedir.c: Include savedir.h first, to test interface.
93298
93299         * lib/mktime.c (STDC_HEADERS): Remove.
93300         Include <stdlib.h>, <string.h> unconditionally.
93301
93302         * lib/modechange.c: Include <stdlib.h> unconditionally.
93303         (malloc): Remove decl.
93304
93305         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
93306         (free): Remove decl.
93307
93308         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
93309         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
93310         (This type really should be intptr_t, but that's a C99ism.)
93311         (_obstack_memcpy): Remove: all uses changed to memcpy.
93312         Include <string.h> unconditionally.
93313         (struct obstack): Assume __STDC__ for types of members
93314         chunkfun, freefun, extra_arg.
93315         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
93316         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
93317         obstack_begin, obstack_specify_allocation,
93318         obstack_specify_allocation_with_arg, obstack_chunkfun,
93319         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
93320         Remove unprototyped decls and the macros that use them.
93321         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
93322         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
93323         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
93324         (defined __STDC__ && __STDC__)]:
93325         Remove nonprototyped code.
93326         Include <stdlib.h> unconditionally.
93327         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
93328         _obstack_allocated_p, _obstack_free, obstack_free,
93329         _obstack_memory_used, print_and_abort):
93330         Define using prototypes.
93331         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
93332         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
93333         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
93334         obstack_next_free, obstack_object_size, obstack_room) [0]:
93335         Remove unused, unprototyped code.
93336
93337         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
93338
93339         * lib/physmem.c (physmem_total, physmem_available, main): Define
93340         with prototypes.
93341
93342         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
93343         (main): Define with a prototype.
93344
93345         * lib/posixver.c (getenv): Remove decl.
93346
93347         * lib/putenv.c (malloc): Returns void *, not char *.
93348         Include <string.h> unconditionally.
93349         (strchr, memcpy, NULL): Do not define.
93350
93351         * lib/readtokens.c: Include readtokens.h first, to test interface.
93352         Include <stdlib.h>, <string.h> unconditionally.
93353         (init_tokenbuffer): Define with a prototype.
93354
93355         * lib/regex.c (PARAMS): Remove.  All uses removed.
93356         All uses of _RE_ARGS removed, too.
93357         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
93358         unconditionally.
93359         (bzero): Assume memset exists.
93360         (memcmp, memcpy, NULL): Remove.
93361         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
93362         char, or assignments to local vars of type signed char.
93363         (init_syntax_once, PREFIX(extract_number_and_incr),
93364         PREFIX(print_partial_compiled_pattern),
93365         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
93366         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
93367         PREFIX(regex_grow_registers), PREFIX(regex_compile),
93368         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
93369         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
93370         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
93371         wcs_compile_range, byte_compile_range, truncate_wchar,
93372         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
93373         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
93374         count_mbs_length, wcs_re_match_2_internal,
93375         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
93376         PREFIX(alt_match_null_string_p),
93377         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
93378         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
93379         regfree, PREFIX(extract_number)): Define with prototype.  Remove
93380         now-unnecessary declaration, if any.
93381         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
93382         regcomp, regexec):
93383         Remove now-unnecessary casts among pointer types.
93384         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
93385
93386         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
93387         (free): Remove decl.
93388
93389         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
93390
93391         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
93392         (free): Remove decl.
93393
93394         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
93395         * lib/xgetcwd.c: Likewise.
93396
93397         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
93398         (free): Remove decl.
93399
93400         * lib/strchrnul.c (strchrnul): Define with a prototype.
93401         Fix bug: c_in was not converted to char before searching.
93402
93403         The following changes are not K&R related:
93404
93405         * lib/group-member.h: Include <sys/types.h>, so that this file is
93406         self-contained.
93407         * lib/makepath.h: Likewise.
93408
93409         * lib/getusershell.c (readname, default_index, line_size, readname):
93410         Use size_t, not int, for sizes.
93411         (readname): If the size overflows, report an error instead of
93412         looping forever.
93413
93414 2003-09-09  Paul Eggert  <eggert@twinsun.com>
93415
93416         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
93417         libc.
93418
93419 2003-09-09  Paul Eggert  <eggert@twinsun.com>
93420
93421         * README: New section: portability guidelines.
93422
93423 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
93424
93425         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
93426         C89 spec.
93427
93428 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
93429
93430         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
93431
93432 2003-09-08  Paul Eggert  <eggert@twinsun.com>
93433
93434         Assume C89 or better; remove K&R cruft.
93435         A few of these changes were first proposed by Derek Robert Price
93436         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
93437
93438         * lib/addext.c: Include <string.h> unconditionally.
93439         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
93440         Don't declare getenv or malloc.
93441
93442         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
93443         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
93444         (NULL): Remove.
93445         (find_stack_direction, alloca): Use prototypes.
93446
93447         * lib/atexit.c (atexit): Define using a prototype.
93448
93449         * lib/basename.c, dirname.c, stripslash.c:
93450         Include <string.h> unconditionally.
93451
93452         * lib/bcopy.c: Include <stddef.h>.
93453         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
93454
93455         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
93456
93457         * lib/error.h (error, error_at_line, error_print_progname)
93458         [! (defined (__STDC__) && __STDC__)]: Remove decls.
93459         * lib/error.c: Include error.h first, to check interface.
93460         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
93461         (VA_START): Remove; all uses changeed to va_start.
93462         (exit, strerror): Remove decls.
93463         (error_print_progname): Prototype uncondionally.
93464         Don't include <errno.h>; no longer needed.
93465         (private_strerror): Remove.
93466         (error_tail): Always define.
93467         (error, error_at_line): Assume C89 or better; always use prototypes.
93468         * lib/fatal.c: Include "fatal.h" first, to test interface.
93469         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
93470         (VA_START): Remove; all uses changed to va_start.
93471         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
93472         this case.
93473         (exit): Remove decl.
93474         (fatal): Prototype unconditionally.  Assume va_start works.
93475         Abort at end, to pacify gcc.
93476
93477         * lib/euidaccess.c (main): Define with a prototype.
93478
93479         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
93480
93481         * lib/exitfail.c: Include <stdlib.h> unconditionally.
93482
93483         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
93484         prototypes.
93485         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
93486         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
93487         (getenv): Remove decl.
93488         (fnmatch): Define using a prototype.
93489         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
93490         (FCT): Define using a prototype.
93491
93492         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
93493
93494         * lib/gethostname.c: Include <stddef.h>.
93495         (gethostname): Define with prototype.  Length is size_t, not int.
93496
93497 2003-09-08  Paul Eggert  <eggert@twinsun.com>
93498
93499         Assume C89 or better; remove K&R cruft.
93500         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
93501         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
93502         string.h, getenv, malloc.
93503         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
93504         headers.
93505         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
93506         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
93507         do not check for strerror.
93508         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
93509         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
93510         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
93511         do not check for doprnt or vprintf.
93512         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
93513         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
93514
93515 2003-09-08  Paul Eggert  <eggert@twinsun.com>
93516
93517         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
93518         getversion.c should have been removed then, but was accidentally
93519         preserved.
93520
93521         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
93522         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
93523
93524 2003-09-08  Karl Berry  <karl@gnu.org>
93525
93526         * config/config.sub, config.guess, srclistvars.sh: update from savannah
93527                 config, forget about prep.
93528
93529         * config/depcomp, missing: update from automake.
93530
93531 2003-09-07  Paul Eggert  <eggert@twinsun.com>
93532
93533         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
93534         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
93535
93536 2003-09-07  Paul Eggert  <eggert@twinsun.com>
93537
93538         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
93539         copy_tm_result.  Bug reported by Simon Josefsson in
93540         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
93541
93542 2003-09-06  Paul Eggert  <eggert@twinsun.com>
93543
93544         * m4/time_r.m4: New file.
93545         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
93546         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
93547         is. Check for timegm declaration.
93548         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
93549         Do not check for gmtime_r.
93550         Replace mktime if __mktime_internal does not exist and if mktime
93551         hasn't been replaced already.
93552
93553 2003-09-06  Paul Eggert  <eggert@twinsun.com>
93554
93555         * lib/time_r.c, lib/time_r.h: New files.
93556
93557         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
93558         __localtime_r.
93559         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
93560         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
93561
93562         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
93563         __gmtime_r.
93564         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
93565         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
93566         Include <time_r.h>.
93567
93568         * lib/timegm.c: Switch to glibc implementation, with the following
93569         changes:
93570         [defined HAVE_CONFIG_H]: Include <config.h>.
93571         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
93572         (__mktime_internal) [!defined _LIBC]: New decl.
93573         (__gmtime_r) [!defined _LIBC]: New macro and function.
93574         (timegm): Use a prototype, since gnulib assumes C89.
93575         Do not bother declaring tmp to be const, as it's not really usefu.
93576         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
93577         (timegm): Declare only if HAVE_DECL_TIMEGM.
93578
93579 2003-09-06  Paul Eggert  <eggert@twinsun.com>
93580
93581         * MODULES.html.sh (func_all_modules): Add time_r.
93582         * modules/time_r: New file.
93583         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
93584         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
93585
93586 2003-09-03  Paul Eggert  <eggert@twinsun.com>
93587
93588         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
93589         Bug reported by Lute Kamstra in
93590         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
93591
93592         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
93593         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
93594         course with correspondingly smaller numbers for tomorrow and
93595         yesterday.  From Tadayoshi Funaba.  Originally installed into
93596         sh-utils on 1999-08-07, but the patch got lost (I guess during the
93597         coreutils merge?).
93598
93599 2003-08-31  Simon Josefsson  <jas@extundo.com>
93600
93601         * modules/timegm: New file.
93602         * MODULES.html.sh (func_all_modules): Add timegm.
93603
93604 2003-08-31  Simon Josefsson  <jas@extundo.com>
93605
93606         * m4/timegm.m4: New file.
93607
93608 2003-08-31  Simon Josefsson  <jas@extundo.com>
93609
93610         * lib/timegm.h: New file.
93611         * lib/timegm.c: New file.  Based on
93612         wget-1.8.2/src/http.c:mktime_from_utc.
93613
93614 2003-08-31  Karl Berry  <karl@gnu.org>
93615
93616         * lib/argp.h: update from libc.
93617
93618 2003-08-28  Bruno Haible  <bruno@clisp.org>
93619
93620         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
93621         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
93622         followed by '#define fnmatch fnmatch_posix' gives an error.
93623
93624 2003-08-28  Bruno Haible  <bruno@clisp.org>
93625
93626         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
93627         warning on QNX, which defines O_BINARY to 000000.
93628
93629 2003-08-27  Jim Meyering  <jim@meyering.net>
93630
93631         * m4/mkstemp.m4: Require that the system mkstemp be able to create
93632         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
93633         would fail after 32.  Reported by Danny Levinson.  Details here:
93634         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
93635
93636 2003-08-24  Bruno Haible  <bruno@clisp.org>
93637
93638         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
93639         MSVC7 <stdio.h> is included later.
93640
93641 2003-08-22  Simon Josefsson  <jas@extundo.com>
93642
93643         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
93644
93645 2003-08-20  Karl Berry  <karl@gnu.org>
93646
93647         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
93648
93649 2003-08-20  Bruno Haible  <bruno@clisp.org>
93650
93651         * modules/progname: New file.
93652         * MODULES.html.sh (func_all_modules): Add progname.
93653
93654 2003-08-20  Bruno Haible  <bruno@clisp.org>
93655
93656         * lib/progname.h: New file, from GNU gettext.
93657         * lib/progname.c: New file, from GNU gettext.
93658         * lib/progreloc.c: New file, from GNU gettext.
93659
93660 2003-08-19  Jim Meyering  <jim@meyering.net>
93661
93662         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
93663         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
93664
93665 2003-08-19  Bruno Haible  <bruno@clisp.org>
93666
93667         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
93668         more.
93669
93670 2003-08-19  Bruno Haible  <bruno@clisp.org>
93671
93672         * lib/xstrdup.c: Assume <string.h> exists.
93673
93674 2003-08-18  Paul Eggert  <eggert@twinsun.com>
93675
93676         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
93677         in makefile rules.
93678
93679 2003-08-18  Jim Meyering  <jim@meyering.net>
93680
93681         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
93682         * m4/lib-ld.m4: Likewise.
93683
93684 2003-08-18  Jim Meyering  <jim@meyering.net>
93685
93686         * lib/setenv.h: Indent nested cpp directive.
93687         * lib/vasnprintf.c: Remove trailing blanks.
93688
93689 2003-08-17  Simon Josefsson  <jas@extundo.com>
93690
93691         * modules/xstrndup: New file.
93692         * MODULES.html.sh (func_all_modules): Add xstrndup.
93693
93694 2003-08-17  Simon Josefsson  <jas@extundo.com>
93695
93696         * modules/argp: Fix autoconf macro name. Add more dependencies.
93697
93698 2003-08-17  Simon Josefsson  <jas@extundo.com>
93699
93700         * m4/xstrndup.m4: New file.
93701
93702 2003-08-17  Simon Josefsson  <jas@extundo.com>
93703
93704         * m4/argp.m4: New file.
93705
93706 2003-08-17  Simon Josefsson  <jas@extundo.com>
93707             Bruno Haible  <bruno@clisp.org>
93708
93709         * lib/xstrndup.h: New file.
93710         * lib/xstrndup.c: New file.
93711
93712 2003-08-17  Bruno Haible  <bruno@clisp.org>
93713
93714         * modules/strndup (Files, Include): Add lib/strndup.h.
93715
93716 2003-08-17  Bruno Haible  <bruno@clisp.org>
93717
93718         * modules/euidaccess (Files): Add lib/euidaccess.h.
93719
93720 2003-08-17  Bruno Haible  <bruno@clisp.org>
93721
93722         * lib/strndup.h: New file.
93723
93724 2003-08-17  Bruno Haible  <bruno@clisp.org>
93725
93726         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
93727         like AC_GNU_SOURCE.
93728         * modules/extensions (configure.ac): Comment out the invocation of
93729         gl_USE_SYSTEM_EXTENSIONS.
93730
93731 2003-08-16  Paul Eggert  <eggert@twinsun.com>
93732
93733         Merges from coreutils, etc.
93734         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
93735         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
93736         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
93737         fixing a typo.
93738         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
93739         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
93740
93741 2003-08-16  Paul Eggert  <eggert@twinsun.com>
93742
93743         Document merge from coreutils.
93744         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
93745         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
93746         * modules/utime: Add m4/utimes-null.m4.
93747
93748 2003-08-16  Paul Eggert  <eggert@twinsun.com>
93749
93750         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
93751         space, undoing this 2003-08-12 change:
93752         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
93753
93754 2003-08-16  Paul Eggert  <eggert@twinsun.com>
93755
93756         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
93757         strtoul.c from libc, undoing this 2003-08-12 change:
93758         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
93759
93760 2003-08-16  Jim Meyering  <jim@meyering.net>
93761
93762         Merges from coreutils.
93763         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
93764         prefix.  Adjust cache variables similarly.  Create 500 rather than
93765         just 300 files, to exercise bug on Darwin6.5, too.
93766         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
93767         $missing_dir.
93768         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
93769         AM_SYS_POSIX_TERMIOS.
93770         Reported by mkc@mathdogs.com.
93771         Also change use of $am_cv_sys_posix_termios
93772         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
93773         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
93774         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
93775         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
93776         in /proc/mounts until it finds one with matching device number.  This
93777         is unnecessary when the FILE argument *is* a mount point.  No stat call
93778         is necessary in that case.  So, disable the statvfs-testing code on
93779         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
93780         as RedHat bug# 84846.
93781         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
93782         to 1MB, so as not to render systems with no stack size limit (e.g.,
93783         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
93784         Include <unistd.h>.  On some systems,
93785         it is required for the definition of _SC_PAGESIZE.
93786
93787 2003-08-16  Jim Meyering  <jim@meyering.net>
93788
93789         Merge from coreutils.
93790         * lib/xstrtoimax.c: #else #if -> #elif.
93791         * lib/xstrtoumax.c: Likewise.
93792
93793 2003-08-16  Jim Meyering  <jim@meyering.net>
93794
93795         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
93796         * m4/utimes.m4: Removed.
93797         * m4/utimes-null.m4: Renamed from utimes.m4.
93798
93799         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
93800         to 1MB, so as not to render systems with no stack size limit (e.g.,
93801         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
93802         Include <unistd.h>.  On some systems,
93803         it is required for the definition of _SC_PAGESIZE.
93804
93805 2003-08-16  Jim Meyering  <jim@meyering.net>
93806         and Paul Eggert  <eggert@cs.ucla.edu>
93807
93808         Merges from coreutils, etc.
93809
93810         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
93811         using the latest version from cvs.  This avoids problems with #line
93812         directives using a vendor (Sun) compiler.
93813         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
93814         Don't set GETGROUPS_LIB here; now it's
93815         done via getgroups.m4's wrapper function.
93816         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
93817         rather than just in sh-util/configure.in, so that the
93818         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
93819         same.
93820         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
93821         AC_FUNC_GETLOADAVG where to find getloadavg.c.
93822         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
93823         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
93824         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
93825         Remove code that is now done by the newly-required macros.
93826         Append $(EXEEXT) to DF_PROG.
93827         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
93828         Do not invoke or require the following here,
93829         since prereq.m4 or some gnulib .m4 now does this for us:
93830         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
93831         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
93832         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
93833         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
93834         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
93835         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
93836         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
93837         AC_FUNC_OBSTACK.
93838         Do not replace the following functions, as this is now the job
93839         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
93840         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
93841         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
93842         atexit getpass, strdup, getpagesize.
93843         Replace 'raise'.
93844         Do not check for the following functions, as this is now the job
93845         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
93846         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
93847         setregid.
93848         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
93849         Check for sys/sysctl.h.
93850         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
93851         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
93852         of checking for ssize_t ourselves.
93853
93854         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
93855         Require every macro that gnulib/modules/* suggests for us.
93856         (jm_PREREQ_ADDEXT): New macro.
93857         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
93858         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
93859
93860         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
93861         (gl_PHYSMEM): Use it.
93862         Also check for `table' function.
93863         Check for new headers and functions.
93864         Add check for sys/sysmp.h.
93865         With suggestions from Kaveh Ghazi.
93866         Ignore headers that are present but cannot be compiled.  This
93867         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
93868         C 5.4.
93869
93870 2003-08-15  Paul Eggert  <eggert@twinsun.com>
93871
93872         Document merge from coreutils.
93873         * modules/userspec: Depend on posixver.
93874         * modules/strftime: Depend on tzset.
93875
93876 2003-08-15  Paul Eggert  <eggert@twinsun.com>
93877
93878         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
93879         rather than tab, after '#' in shell-script copyright notices.
93880         Suggested by Bruno Haible.
93881
93882 2003-08-15  Paul Eggert  <eggert@twinsun.com>
93883
93884         * config/srclist-update: Use three spaces, rather than tab, after '#'
93885         in shell-script copyright notices.  Suggested by Bruno Haible.
93886         Remove unnecessary parenthesization in regular expression.
93887
93888 2003-08-15  Jim Meyering  <jim@meyering.net>
93889
93890         Merge from coreutils.
93891         * lib/xgethostname.c: Include <stdlib.h>.
93892         (xghostname): Don't exit for anything other than memory-related
93893         failure; just return NULL.
93894         * lib/userspec.c: Include "posixver.h".
93895         (parse_user_spec): Accept `.' as a separator only
93896         in pre-POSIX-200112 mode.
93897         * lib/strtoimax.c: Use #elif rather than #else #if.
93898         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
93899         Remove function, now that we can rely on a working tzset function.
93900         [!_LIBC]: Ensure that the required autoconf test has been run.
93901         [!defined _NL_CURRENT && HAVE_STRFTIME]:
93902         Use underlying_strftime for %r.
93903         * lib/sha.c: Merge in some clean-up and optimization changes from
93904         glibc.
93905         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
93906         Ensure that it is a multiple of 64.
93907         Rearrange loop exit tests so as to avoid performing an
93908         additional fread after encountering an error or EOF.
93909         * lib/realloc.c: Update copyright date.
93910
93911 2003-08-15  Jim Meyering  <jim@meyering.net>
93912         and Paul Eggert  <eggert@twinsun.com>
93913
93914         Merge from coreutils.
93915         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
93916         member but strut utmpx does not.  Needed for AIX 4.3.3.
93917         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
93918
93919 2003-08-15  Jim Meyering  <jim@meyering.net>
93920         and Paul Eggert  <eggert@cs.ucla.edu>
93921
93922         Merges from coreutils, etc.
93923         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
93924         Require gl_FUNC_TZSET_CLOBBER.
93925         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
93926         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
93927         members.
93928
93929 2003-08-14  Paul Eggert  <eggert@twinsun.com>
93930
93931         Help the merge from coreutils.
93932         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
93933         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
93934         * m4/tzset.m4: Use it too.
93935
93936 2003-08-14  Paul Eggert  <eggert@twinsun.com>
93937
93938         * modules/tzset: New file.
93939
93940 2003-08-14  Jim Meyering  <jim@meyering.net>
93941
93942         Merges from coreutils.
93943         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
93944         variable names, rather than @FNMATCH_H@.
93945         * modules/alloca: Likewise for $(ALLOCA_H).
93946
93947         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
93948         the three copies of the literal target, `fnmatch.h'.
93949         * modules/alloca (alloca.h): Likewise.
93950
93951 2003-08-14  Jim Meyering  <jim@meyering.net>
93952
93953         Merge from coreutils.
93954         * m4/tzset.m4: New file.
93955         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
93956         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
93957         otherwise, AIX 5.1 systems would end up using the latter.
93958         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
93959         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
93960         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
93961         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
93962
93963 2003-08-14  Jim Meyering  <jim@meyering.net>
93964
93965         Merge from coreutils.
93966         * lib/obstack.h: Whitespace changes.
93967         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
93968         and xcalloc return values.
93969         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
93970         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
93971         hang on OSF/1 5.1 for DIR on both local and remote file systems.
93972         Reported by (and fix confirmed by) Nelson H. F. Beebe.
93973         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
93974         error from mntctl.
93975         Use mntctl's return value to drive the entry-processing loop, since
93976         we can't rely on the value of the vmt_length member in the last
93977         entry.  On some systems doing so could result in exhausting
93978         virtual memory.  Based in part on a patch from Mike Jetzer.
93979
93980 2003-08-14  Jim Meyering  <jim@meyering.net>
93981         and Paul Eggert  <eggert@twinsun.com>
93982
93983         Merges from coreutils, plus other fixes.
93984         * lib/physmem.c: Merge in portability changes from gcc/libiberty
93985         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
93986         for credits and details.  Thanks to Kaveh Ghazi for helping
93987         to keep these files in sync.
93988         (ARRAY_SIZE): Define it.
93989         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
93990         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
93991         (memcasecmp): Don't assume size_t fits in unsigned int.
93992         Remove casts and duplicate code.
93993         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
93994         (memcpy): Remove definition.
93995         Merge in some clean-up and optimization changes from glibc.
93996         [BLOCKSIZE]: Move definition to top of file.
93997         Ensure that it is a multiple of 64.
93998         Rearrange loop exit tests so as to avoid performing an
93999         additional fread after encountering an error or EOF.
94000         * lib/md5.h (md5_uintptr): Define.
94001         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
94002         return to the initial working directory.  Preserve errno
94003         for caller.
94004         * lib/idcache.c: Include "xalloc.h".
94005         (xmalloc, xrealloc): Remove decls.
94006         (getuser): Remove casts no longer required in C89.
94007         * lib/human.c: Include stdio.h, for sprintf.
94008         * lib/group-member.c: Include "xalloc.h".
94009         (xmalloc, xrealloc): Remove decls.
94010         (get_group_info): Remove casts no longer required in C89.
94011         * lib/getusershell.c (readname): Remove casts no longer required in
94012         C89.
94013         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
94014         * lib/getline.c: Whitespace fix, from coreutils.
94015
94016 2003-08-13  Paul Eggert  <eggert@twinsun.com>
94017
94018         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
94019         Check for isascii.
94020
94021         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
94022         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
94023         Undo previous (whitespace-only) change.
94024
94025 2003-08-13  Paul Eggert  <eggert@twinsun.com>
94026
94027         * lib/exclude.c: Include <ctype.h>
94028         (IN_CTYPE_DOMAIN): New macro.
94029         (is_space): New fn.
94030         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
94031         and empty lines.
94032
94033         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
94034         Undo previous (whitespace-only) change.
94035
94036 2003-08-13  Paul Eggert  <eggert@twinsun.com>
94037
94038         * config/srclist-update: Change update back to the old behavior,
94039         leaving whitespace alone.  Use one 'sed' command rather than a
94040         pipeline.
94041         (fixlicense): Now a variable, not a function.
94042         (remove_trailing_blanks): Remove.
94043         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
94044         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
94045         Undo previous (whitespace-only) change.
94046
94047 2003-08-12  Paul Eggert  <eggert@twinsun.com>
94048
94049         Merge from coreutils.
94050         * modules/euidaccess: Add lib_SOURCES, include for new
94051         file euidaccess.h
94052
94053 2003-08-12  Paul Eggert  <eggert@twinsun.com>
94054
94055         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
94056         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
94057         Normalize leading white space and remove trailing white space.
94058
94059         Merge from coreutils
94060         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
94061
94062         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
94063         0.12.1.  These files are now being upgraded automatically by
94064         ../config/srclist-update.
94065
94066 2003-08-12  Paul Eggert  <eggert@twinsun.com>
94067
94068         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
94069         Normalize leading white space and remove trailing white space.
94070         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
94071         notice, as per ../config/srclist-update.
94072
94073         Merge from coreutils.
94074         * lib/euidaccess.h: New file.
94075         * lib/euidaccess.c: Include it.
94076         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
94077         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
94078         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
94079
94080 2003-08-12  Paul Eggert  <eggert@twinsun.com>
94081
94082         * config/srclist-update: Add copyright notice.
94083         (remove_id_lines, remove_trailing_blanks): New constants.
94084         (fixfile): Use them to normalize spacing a bit in copied files.
94085         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
94086         Normalize leading white space and remove trailing white space.
94087
94088         * config/texinfo.tex: Sync with texinfo.
94089
94090         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
94091         strtoul.c from libc, to merge coreutils whitespace changes.
94092
94093         * config/srclist.txt: Get the following m4 files from gettext:
94094         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
94095         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
94096         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
94097         wint_t.m4.
94098
94099 2003-08-12  Karl Berry  <karl@gnu.org>
94100
94101         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
94102         been made.
94103
94104 2003-08-11  Paul Eggert  <eggert@twinsun.com>
94105
94106         * modules/gnu-source, m4/gnu-source.m4:
94107         Remove; we're assuming Autoconf 2.54 or later now.
94108         Suggested by Bruno Haible.
94109         * MODULES.html.sh (func_all_modules): Remove gnu-source.
94110
94111 2003-08-11  Bruno Haible  <bruno@clisp.org>
94112
94113         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
94114
94115 2003-08-11  Bruno Haible  <bruno@clisp.org>
94116
94117         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
94118         (vasnprintf): Use it instead of wcslen.
94119
94120 2003-08-11  Bruno Haible  <bruno@clisp.org>
94121
94122         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
94123         value to ensure that _Bool promotes to int. Use #define for _Bool when
94124         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
94125
94126 2003-08-10  Karl Berry  <karl@gnu.org>
94127
94128         * lib/regex.h: update from libc (whitespace fix).
94129
94130 2003-08-09  Paul Eggert  <eggert@twinsun.com>
94131
94132         Merge some files from coreutils.  These changes were
94133         originally made by Jim Meyering.
94134         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
94135         many older Unixes require this.
94136         * lib/alloca.c (alloca): Remove cast to argument of free;
94137         no longer needed in C89.
94138         * lib/alloca_.h, regex.h: Fix white space to match
94139         what GNU indent does.
94140
94141 2003-08-09  Paul Eggert  <eggert@twinsun.com>
94142
94143         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
94144         apparently Emacs's Unicode mode got confused before my 2003-08-05
94145         checkin.
94146
94147 2003-08-08  Paul Eggert  <eggert@twinsun.com>
94148
94149         * m4/extensions.m4: New file.
94150         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
94151         Require gl_USE_SYSTEM_EXTENSIONS.
94152         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
94153         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
94154
94155 2003-08-08  Paul Eggert  <eggert@twinsun.com>
94156
94157         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
94158         * modules/extensions, modules/gnu-source: New files.
94159         * modules/timespec, modules/unlocked-io: Depend on extensions.
94160
94161 2003-08-07  Paul Eggert  <eggert@twinsun.com>
94162
94163         * modules/restrict: New file.
94164         * MODULES.html.sh (func_all_modules): Add restrict.
94165         * modules/regex: Depend on restrict.
94166
94167 2003-08-07  Paul Eggert  <eggert@twinsun.com>
94168
94169         * m4/restrict.m4: New file.
94170         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
94171
94172 2003-08-07  Bruno Haible  <bruno@clisp.org>
94173
94174         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
94175         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
94176
94177 2003-08-07  Bruno Haible  <bruno@clisp.org>
94178
94179         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
94180         makes the module 'getndelim2' compatible with the module 'getline'.
94181
94182 2003-08-05  Paul Eggert  <eggert@twinsun.com>
94183
94184         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
94185         byte with "\201" to avoid glitches when editing that source file
94186         with multi-gnome-terminal.
94187
94188 2003-08-05  Paul Eggert  <eggert@twinsun.com>
94189
94190         * lib/bumpalloc.h: Remove.
94191
94192 2003-08-05  Paul Eggert  <eggert@twinsun.com>
94193
94194         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
94195         * modules/bumpalloc: Remove.
94196
94197 2003-08-04  Paul Eggert  <eggert@twinsun.com>
94198
94199         * lib/getloadavg.c: Change copyright notice and spacing to conform to
94200         GNU coding style.
94201
94202         Merge from coreutils.
94203         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
94204         1. From glibc.
94205         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
94206         from Karl Berry, implemented by Jim Meyering.
94207         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
94208         from Dmitry V. Levin.
94209         Remove anachronistic cast of xrealloc.
94210         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
94211         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
94212         type. Otherwise, it wouldn't compile with at least /bin/cc on
94213         ymp-cray-unicos9.0.2.X.
94214         Combine two mostly-identical uses of alloca into one.
94215         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
94216
94217 2003-08-04  Dave Love  <d.love@dl.ac.uk>
94218
94219         [From Emacs.]
94220
94221         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
94222         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
94223         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
94224         obsolete NLIST_NAME_UNION.
94225         [__GNU__]: Undef BSD and FSCALE.
94226         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
94227
94228 2003-08-03  Paul Eggert  <eggert@twinsun.com>
94229
94230         * lib/stdbool_.h (_Bool): Make it signed char, instead of
94231         an enum type, so that it's guaranteed to promote to int.  See:
94232         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
94233
94234 2003-08-03  Karl Berry  <karl@gnu.org>
94235
94236         * config/depcomp: update from automake.
94237
94238 2003-07-31  Paul Eggert  <eggert@twinsun.com>
94239
94240         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
94241         (strerror): Don't assume that a printable int fits in 14 bytes.
94242
94243 2003-07-31  Bruno Haible  <bruno@clisp.org>
94244
94245         * modules/getpass-gnu: New file.
94246         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
94247
94248 2003-07-31  Bruno Haible  <bruno@clisp.org>
94249
94250         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
94251
94252 2003-07-24  Karl Berry  <karl@gnu.org>
94253
94254         * config/missing: update from automake.
94255
94256 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
94257             Bruno Haible  <bruno@clisp.org>
94258
94259         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
94260         * lib/getline.c (getline, getdelim): Likewise.
94261         Remove _GNU_SOURCE define; now it's defined in config.h through
94262         m4/getline.m4.
94263
94264 2003-07-23  Karl Berry  <karl@gnu.org>
94265
94266         * config/config.sub: update from prep.
94267
94268 2003-07-22  Paul Eggert  <eggert@twinsun.com>
94269
94270         * modules/xalloc (Depends-on): Add exitfail.
94271         * modules/xmemcoll: Likewise.
94272
94273 2003-07-22  Paul Eggert  <eggert@twinsun.com>
94274
94275         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
94276         over-parenthesization in macros.
94277
94278         Sync with coreutils.
94279
94280         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
94281         required by C99.
94282
94283         Use `exit_failure' for xalloc and xmemcoll instead of their own
94284         private exit-failure variables.
94285         * lib/xalloc.h (xalloc_exit_failure): Remove.
94286         * lib/xmalloc.c: Likewise.  Include exitfail.h.
94287         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
94288         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
94289         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
94290         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
94291
94292 2003-07-20  Jim Meyering  <jim@meyering.net>
94293
94294         * modules/closeout (Depends-on): Add exitfail.
94295         Suggestion from Bruno Haible.
94296
94297 2003-07-19  Karl Berry  <karl@gnu.org>
94298
94299         * config/config.sub: update from prep.
94300
94301 2003-07-18  Paul Eggert  <eggert@twinsun.com>
94302
94303         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
94304         Remove.
94305         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
94306         to test that it can stand by itself.  Include "exitfail.h".
94307         Clients should set exit_failure instead.
94308         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
94309
94310 2003-07-18  Bruno Haible  <bruno@clisp.org>
94311
94312         * modules/getndelim2: New file.
94313         * modules/getline: Share files with module getndelim2.
94314         * modules/getnline: Depend on getndelim2 instead of sharing files with
94315         it. Add getnline.c to lib_SOURCES.
94316         * MODULES.html.sh (func_all_modules): Add getndelim2.
94317
94318 2003-07-18  Bruno Haible  <bruno@clisp.org>
94319
94320         * m4/getndelim2.m4: New file.
94321         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
94322         invoke gl_PREREQ_GETNDELIM2.
94323         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
94324         gl_PREREQ_GETNDELIM2.
94325         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
94326         gl_GETNDELIM2.
94327
94328 2003-07-18  Bruno Haible  <bruno@clisp.org>
94329
94330         * lib/getndelim2.h: New file.
94331         * lib/getndelim2.c: Make into a module of its own. Include config.h,
94332         getndelim2.h.
94333         (getndelim2): Make non-static. Change return type to ssize_t.
94334         * lib/getline.h: Change argument names.
94335         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
94336         * lib/getnline.c: Include getndelim2.h.
94337
94338 2003-07-18  Andreas Schwab  <schwab@suse.de>
94339
94340         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
94341
94342 2003-07-17  Karl Berry  <karl@gnu.org>
94343
94344         * config/config.sub: update from prep.
94345
94346 2003-07-17  Bruno Haible  <bruno@clisp.org>
94347
94348         * modules/getnline: New file.
94349         * modules/getline: Add lib/getndelim2.c to source file list.
94350         * MODULES.html.sh (func_all_modules): Add getnline.
94351
94352 2003-07-17  Bruno Haible  <bruno@clisp.org>
94353
94354         * m4/getnline.m4: New file.
94355
94356 2003-07-17  Bruno Haible  <bruno@clisp.org>
94357
94358         * m4/Makefile.am.in: Remove file.
94359         * m4/Makefile.am: Remove file.
94360         * m4/Makefile.in: Remove file.
94361
94362 2003-07-17  Bruno Haible  <bruno@clisp.org>
94363
94364         * lib/getnline.h: New file.
94365         * lib/getnline.c: New file.
94366         * lib/getndelim2.c: New file, extracted from getline.c.
94367         (getndelim2): Renamed from getdelim2, with added nmax argument.
94368         * lib/getline.c: Include getndelim2.c.
94369         (getdelim2): Moved out to getndelim2.c.
94370         (getline, getdelim): Update.
94371
94372 2003-07-17  Bruno Haible  <bruno@clisp.org>
94373
94374         * lib/Makefile.am: Remove file.
94375         * lib/Makefile.in: Remove file.
94376
94377 2003-07-17  Bruno Haible  <bruno@clisp.org>
94378
94379         * configure.in: Remove file.
94380         * Makefile.in: Remove file.
94381
94382 2003-07-17  Bruno Haible  <bruno@clisp.org>
94383
94384         * MODULES.html.sh: Put the </BODY> right before </HTML>.
94385
94386 2003-07-16  Karl Berry  <karl@gnu.org>
94387
94388         * config/srclist-update: was running fixlicense twice, which caused
94389                 texinfo.tex to be nullified for some reason.  Simplify,
94390                 $gplsrc is no longer needed as far as I can see?
94391
94392 2003-07-16  Jim Meyering  <jim@meyering.net>
94393
94394         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
94395
94396 2003-07-15  Paul Eggert  <eggert@twinsun.com>
94397
94398         * config/srclist.txt: Get the following files from gettext-runtime/intl
94399         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
94400         ref-del.sin.  From Bruno Haible.
94401         * config/srclist-update (fixfile): Change grep pattern again, since the
94402         previous fix didn't work (there was another trailing $).  Use
94403         '[$]' to escape the $s.
94404
94405 2003-07-15  Karl Berry  <karl@gnu.org>
94406
94407         * lib/vasnprintf.c: update from gettext.
94408
94409 2003-07-15  Karl Berry  <karl@gnu.org>
94410
94411         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
94412         gets expanded when surrounded by '$'.
94413
94414 2003-07-15  Jim Meyering  <jim@meyering.net>
94415
94416         * modules/save-cwd: Don't depend on error.  From Derek Price.
94417
94418 2003-07-15  Jim Meyering  <jim@meyering.net>
94419
94420         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
94421
94422 2003-07-14  Simon Josefsson  <jas@extundo.com>
94423
94424         * modules/mempcpy: New file.
94425         * MODULES.html.sh (func_all_modules): Add mempcpy.
94426
94427 2003-07-14  Simon Josefsson  <jas@extundo.com>
94428
94429         * m4/mempcpy.m4: New file.
94430
94431 2003-07-14  Simon Josefsson  <jas@extundo.com>
94432
94433         * lib/mempcpy.h: New file.
94434         * lib/mempcpy.c: New file.
94435
94436 2003-07-14  Paul Eggert  <eggert@twinsun.com>
94437
94438         * modules/getdate, modules/posixtm: Depend on mktime.
94439
94440 2003-07-14  Paul Eggert  <eggert@twinsun.com>
94441
94442         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
94443         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
94444         unicodeio.c, unicodeio.h, unlocked-io.h:
94445         Switch from LGPL to GPL.
94446
94447 2003-07-14  Paul Eggert  <eggert@twinsun.com>
94448
94449         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
94450         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
94451         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
94452         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
94453         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
94454         updated automatically by ../config/srclist-update.  This changes
94455         their license from LPGL to GPL.
94456
94457 2003-07-14  Paul Eggert  <eggert@twinsun.com>
94458
94459         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
94460         assumed to refer to the root of the most recent stable gettext version.
94461         * config/srclistvars.sh: Add defaults for eggert.
94462         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
94463         Match "This program" as well as "The program".  This is needed
94464         for gettext.
94465
94466 2003-07-14  Jim Meyering  <jim@meyering.net>
94467
94468         Don't emit diagnostics.  Let callers do that.
94469         * lib/save-cwd.c: Don't include "error.h".
94470         (save_cwd): Don't call error.  Ensure that errno is valid
94471         when returning nonzero.
94472
94473         * lib/save-cwd.h (restore_cwd): Update prototype.
94474         * lib/save-cwd.c (restore_cwd): Remove two parameters.
94475         Simplify.  Don't call error upon failure.  Let callers do that.
94476         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
94477         when auditing is enabled.  But don't bother updating the #if.
94478
94479 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
94480
94481         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
94482         it breaks C++ compilation.
94483         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
94484
94485 2003-07-10  Simon Josefsson  <jas@extundo.com>
94486
94487         * modules/strchrnul (Makefile.am): Add strchrnul.h.
94488
94489 2003-07-10  Jim Meyering  <jim@meyering.net>
94490
94491         * m4/clock_time.m4: Remove trailing blank.
94492         * m4/intmax_t.m4: Likewise.
94493
94494 2003-07-10  Jim Meyering  <jim@meyering.net>
94495
94496         * lib/vasnprintf.c: Remove trailing blanks.
94497         Make cpp indentation consistent.
94498
94499 2003-07-09  Paul Eggert  <eggert@twinsun.com>
94500
94501         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
94502         posixver.c, strftime.c, strnlen.c, strverscmp.c:
94503         Switch from LGPL to GPL.
94504
94505 2003-07-09  Paul Eggert  <eggert@twinsun.com>
94506
94507         * config/srclist.txt: Sort sublists.  Add
94508         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
94509         that differ from gnulib for one reason or another; we'd like this list
94510         to be smaller but for now let's document what we have.
94511
94512 2003-07-08  Paul Eggert  <eggert@twinsun.com>
94513
94514         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
94515         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
94516         and sweeter "eval x=$x".
94517         * config/srclist.txt: Get lib/argp* from glibc.
94518
94519 2003-07-07  Paul Eggert  <eggert@twinsun.com>
94520
94521         * lib/mktime.c: Fix some boundary cases and remove need for floating
94522         point.
94523
94524         Issue a compile-time diagnostic if time_t is floating point, or if
94525         two's complement arithmetic is not in effect, or if arithmetic
94526         right shift does not propagate the sign.  These assumptions were
94527         all in the original code but they weren't checked.
94528
94529         (TIME_T_MIDPOINT, verify): New macros.
94530         (__isleap): Remove; it has integer overflow problems.
94531         (leapyear): New function, without those problems.
94532         (ydhms_tm_diff): Remove; splitting into two parts.
94533         (ydhms_diff): New function, containing the arithmetic part of
94534         the old ydhms_tm_diff function.  Issue a compile-time
94535         diagnostic if we are not using C99 integer division.
94536         Avoid casts when possible.
94537         (guess_time_tm): New function, containing the checking part of
94538         the old ydhms_tm_diff function.  Return the new value, rather than
94539         the difference between it and the old.  Accept a new argument T
94540         so that *T specifies the old value.  Check for overflow in the result.
94541
94542         (__mktime_internal): Use a time_t offset, not a long int offset.
94543         This undoes the 2003-06-04 change, which is no longer needed now
94544         that we have better overflow checking.
94545         (localtime_offset): Likewise.
94546
94547         (__mktime_internal): Avoid harmful overflow on hosts where time_t
94548         and long are 64-bit but int is only 32-bit.
94549         (ydhms_diff): Use long int to store year1 and yday1.
94550         Issue a compile-time diagnostic if long int is not wide enough.
94551
94552         (__mktime_internal): Use long int to store adjusted year and yday.
94553         Use plain C rather than preprocessor commands, if that doesn't
94554         affect efficiency.
94555         Check for overflow (and try to repair) after each probe
94556         rather than checking only at the very end.  This avoids some bugs
94557         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
94558         does not equal GMT offset at maximum time).
94559         Use integer to check for overflow rather than floating point; this
94560         is more portable to non-IEEE hosts, and is a tad faster.
94561         When we detect that we are oscillating between two values,
94562         don't check whether tm_isdst has the requested value, since
94563         we already know the answer.  When tm_isdst has the wrong value,
94564         use a different heuristic to find the right one, based on the
94565         extreme values actually observed in practice in tz2003a,
94566         rather than the (overly optimistic) "previous 3 calendar quarters".
94567
94568         (not_equal_tm, print_tm, check_result): Use "const T" rather than
94569         "T const" to accommodate glibc style.
94570         (check_result): Use less-confusing report format.  "long" -> "long int.
94571         (main): Likewise.
94572         Don't loop if the iteration overflows time_t.
94573         Allow a negative step in the iteration.
94574
94575 2003-07-06  Karl Berry  <karl@gnu.org>
94576
94577         * config/depcomp: update from automake.
94578         * config/config.sub: update from prep.
94579
94580 2003-07-03  Karl Berry  <karl@gnu.org>
94581
94582         * config/config.guess: update from prep.
94583
94584 2003-07-01  Paul Eggert  <eggert@twinsun.com>
94585
94586         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
94587         xreadlink.c now includes it unconditionally.
94588
94589 2003-07-01  Paul Eggert  <eggert@twinsun.com>
94590
94591         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
94592         having it depend on HAVE_SYS_TYPES_H.
94593
94594 2003-07-01  Bruno Haible  <bruno@clisp.org>
94595
94596         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
94597         <sys/types.h> should be sufficient.
94598         Reported by Paul Eggert.
94599
94600 2003-06-26  Karl Berry  <karl@gnu.org>
94601
94602         * config/depcomp: update from automake.
94603
94604 2003-06-26  Bruno Haible  <bruno@clisp.org>
94605
94606         * modules/human: Depend on module stdbool.
94607
94608 2003-06-25  Bruno Haible  <bruno@clisp.org>
94609
94610         * modules/readlink: New file.
94611         * modules/xreadlink: Depend on it.
94612         * MODULES.html.sh (func_all_modules): Add readlink.
94613
94614 2003-06-25  Bruno Haible  <bruno@clisp.org>
94615
94616         * m4/readlink.m4: New file.
94617
94618 2003-06-25  Bruno Haible  <bruno@clisp.org>
94619
94620         * lib/readlink.c: New file.
94621
94622 2003-06-22  Karl Berry  <karl@gnu.org>
94623
94624         * config/srclist.txt: update mkinstalldirs from automake.
94625         * config/mkinstalldirs: update.
94626
94627 2003-06-22  Bruno Haible  <bruno@clisp.org>
94628
94629         Portability to mingw32.
94630         * m4/ssize_t.m4: New file, from GNU gettext.
94631         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
94632         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
94633
94634 2003-06-22  Bruno Haible  <bruno@clisp.org>
94635
94636         * modules/safe-read: Add m4/ssize_t.m4.
94637         * modules/xreadlink: Add m4/ssize_t.m4.
94638
94639 2003-06-20  Bruno Haible  <bruno@clisp.org>
94640
94641         Assume C89, so PARAMS isn't needed.
94642         * lib/unicodeio.h (PARAMS): Remove.
94643         * lib/unicodeio.c: Don't use PARAMS.
94644
94645 2003-06-18  Karl Berry  <karl@gnu.org>
94646
94647         * config/config.{guess,sub}: update from prep.
94648
94649 2003-06-18  Jim Meyering  <jim@meyering.net>
94650
94651         Merge changes from coreutils.
94652         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
94653         Remove explicit declarations of xmalloc and realloc.
94654         Include xalloc.h.
94655         (read_utmp): Remove anachronistic cast of xmalloc.
94656
94657 2003-06-17  Paul Eggert  <eggert@twinsun.com>
94658
94659         Assume C89, so PARAMS isn't needed.
94660         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
94661         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
94662         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
94663         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
94664         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
94665         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
94666         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
94667         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
94668         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
94669         lib/xstrtod.h, lib/xstrtol.h: Likewise.
94670         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
94671         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
94672         no longer needed. Anyway, config.h should always be included before any
94673         other file.
94674
94675 2003-06-11  Simon Josefsson  <jas@extundo.com>
94676
94677         * modules/sysexits: New file.
94678         * MODULES.html.sh (func_all_modules): Add sysexits.
94679
94680 2003-06-11  Simon Josefsson  <jas@extundo.com>
94681
94682         * lib/sysexit_.h: New file.
94683
94684 2003-06-11  Derek Price  <derek@ximbiot.com>
94685
94686         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
94687         necessary.
94688
94689 2003-06-11  Bruno Haible  <bruno@clisp.org>
94690
94691         * m4/sysexits.m4: New file.
94692
94693 2003-06-10  Simon Josefsson  <jas@extundo.com>
94694
94695         * lib/argp.h: New file, from glibc.
94696         * lib/argp-ba.c: New file, from glibc.
94697         * lib/argp-eexst.c: New file, from glibc.
94698         * lib/argp-fmtstream.c: New file, from glibc.
94699         * lib/argp-fmtstream.h: New file, from glibc.
94700         * lib/argp-fs-xinl.c: New file, from glibc.
94701         * lib/argp-help.c: New file, from glibc.
94702         * lib/argp-namefrob.h: New file, from glibc.
94703         * lib/argp-parse.c: New file, from glibc.
94704         * lib/argp-pv.c: New file, from glibc.
94705         * lib/argp-pvh.c: New file, from glibc.
94706         * lib/argp-xinl.c: New file, from glibc.
94707
94708 2003-06-10  Simon Josefsson  <jas@extundo.com>
94709
94710         * modules/strchrnul: New file.
94711
94712 2003-06-10  Simon Josefsson  <jas@extundo.com>
94713
94714         * modules/argp: New file.
94715
94716 2003-06-10  Simon Josefsson  <jas@extundo.com>
94717
94718         * m4/strchrnul.m4: New file.
94719
94720 2003-06-10  Simon Josefsson  <jas@extundo.com>
94721
94722         * lib/strchrnul.h: New file.
94723         * lib/strchrnul.c: New file.
94724
94725 2003-06-10  Bruno Haible  <bruno@clisp.org>
94726
94727         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
94728
94729 2003-06-07  Karl Berry  <karl@gnu.org>
94730
94731         * config/config.{guess,sub}: update from prep.
94732
94733 2003-06-07  Jim Meyering  <jim@meyering.net>
94734
94735         * modules/strtod: Use $(...) notation, not @...@ for
94736         AC_REPLACE'd variables.
94737         * modules/localcharset: Likewise.
94738
94739 2003-06-07  Jim Meyering  <jim@meyering.net>
94740
94741         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
94742         in place of my name in the copyright comment.
94743         Remove definition and uses of __P.
94744
94745         From coreutils.
94746         * lib/stat.c: Don't declare xmalloc explicitly.
94747         Instead, include "xalloc.h".
94748         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
94749         xrealloc, and xcalloc return values.
94750         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
94751         Improve comment.
94752         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
94753
94754 2003-06-07  Bruno Haible  <bruno@clisp.org>
94755
94756         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
94757         avoid AC_CONFIG_LINKS.
94758         * modules/fnmatch (Makefile.am): Use explicit creation rule for
94759         fnmatch.h, to avoid AC_CONFIG_LINKS.
94760         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
94761
94762 2003-06-07  Bruno Haible  <bruno@clisp.org>
94763
94764         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
94765         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
94766         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
94767         directory.
94768         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
94769         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
94770         directory.
94771
94772 2003-06-06  Jim Meyering  <jim@meyering.net>
94773
94774         Merge from coreutils.
94775         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
94776         Consolidate declarations and initializations of *_base* locals.
94777
94778         Merge from coreutils.
94779         This avoids a core dump on systems without GNU putenv,
94780         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
94781         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
94782         (unsetenv): New static function, from GNU libc.
94783         (rpl_putenv): Use it.
94784
94785         * lib/modechange.c: Remove trailing blanks.
94786
94787         Merge from coreutils.
94788         * lib/fsusage.c: Remove declaration of statfs.
94789         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
94790
94791         * lib/posixtm.c: Include <stdbool.h> unconditionally.
94792
94793 2003-06-06  Jim Meyering  <jim@meyering.net>
94794
94795         * lib/stdbool_.h: Renamed from stdbool.h.in.
94796
94797 2003-06-06  Jim Meyering  <jim@meyering.net>
94798             Bruno Haible  <bruno@clisp.org>
94799
94800         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
94801         Adjust Makefile.am snippet not to redirect directly to target.
94802         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
94803
94804 2003-06-05  Paul Eggert  <eggert@twinsun.com>
94805
94806         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
94807         mismatch, look in future quarters as well as past.  This fixes a
94808         bug when processing fall-backwards gaps immediately after a long
94809         period of daylight-saving time.
94810
94811         * lib/mktime.c: Assume freestanding C89 or better.
94812         (HAVE_LIMITS_H): Remove.  Assume it's 1.
94813         (__P): Remove; not used.
94814         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
94815         (mktime, not_equal_tm, print_tm, check_result,
94816         main): Use prototypes.  Use const * where appropriate.
94817         (main): Fix typo in testing code that uncovered by above changes.
94818         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
94819
94820 2003-06-04  Paul Eggert  <eggert@twinsun.com>
94821
94822         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
94823         locale.h, localeconv.  This merges changes from coreutils.
94824
94825         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
94826         It can be removed after the next Autoconf is released.
94827         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
94828         needed.
94829
94830 2003-06-04  Paul Eggert  <eggert@twinsun.com>
94831
94832         * lib/mktime.c: Fix Debian bug 177940
94833         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
94834         (localtime_offset): Now long int, not time_t, because we want it
94835         to be guaranteed to be signed.  All uses changed.
94836         (__mktime_internal): If overflow would occur when adding offset,
94837         don't add it.
94838
94839         Merge 'human' changes from coreutils.  Rewrite to support
94840         locale-specific notations like thousands separators.
94841         * lib/human.c: Simplify authorship notice.
94842         Include human.h immediately after config.h.
94843         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
94844         <limits.h>: Do not include, since human.h does.
94845         (SIZE_MAX, UINTMAX_MAX): New macros.
94846         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
94847         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
94848         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
94849         (power_letter): Renamed from suffixes.
94850         (generate_suffix_backwards): Remove.
94851         (adjust_value): Now takes int style (because of human.h changes)
94852         and long double value (for greater precision on some platforms).
94853         (group_number): New function.
94854         (human_readable): Use it.  Use integer options, not enum.
94855         Put the options before the sizes in the arg list.
94856         Support all the new options.
94857         The old human_readable function has been removed;
94858         use inttostr.h instead.
94859         (human_readable, default_block_size, humblock):
94860         Use uintmax_t, not int, for block sizes.
94861         (human_readable_inexact, block_size_types): Remove.
94862         (block_size_opts): New constant.
94863         (human_options): Renamed from human_block_size, with new signature
94864         that allows block sizes up to UINTMAX_MAX.  All callers changed.
94865         * lib/human.h: Add copyright and authorship notice.
94866         Include <limits.h> and <stdbool.h> unconditionally.
94867         (PARAMS): Remove.  All uses removed.
94868         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
94869         (enum human_inexact_style): Remove tag; now a nameless enum.
94870         (human_floor, human_ceiling, human_round_to_even): Now have
94871         values 2, 0, 1 rather than -1, 1, 0.
94872         (human_group_digits, human_suppress_point_zero, human_autoscale,
94873         human_base_1024, human_SI, human_B): New constants.
94874         (human_readable_inexact, human_block_size): Remove.
94875         (human_readable): Size args are now uintmax_t, not int.
94876         (human_options): New decl.
94877
94878         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
94879         unnecessary now that we assume C89 or better.  This change
94880         imported from coreutils.
94881
94882         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
94883         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
94884         in the 2003-05-30 sync from glibc.
94885
94886         .h files should stand alone, but we shouldn't include <sys/types.h>
94887         if we can get away with just <stddef.h>.
94888
94889         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
94890         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
94891         rather than <sys/types.h>, as we merely need size_t.
94892         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
94893         to get size_t.
94894         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
94895         Include <stdio.h>, to get FILE.
94896         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
94897         memcasecmp.h has included <stddef.h> and all we need is size_t.
94898         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
94899         our interface, instead of including <sys/types.h>
94900
94901 2003-06-04  Paul Eggert  <eggert@twinsun.com>
94902
94903         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
94904         now, as glibc mktime is buggy on non-glibc systems.
94905
94906 2003-06-03  Karl Berry  <karl@gnu.org>
94907
94908         * config/config.sub: update from prep.
94909
94910 2003-06-02  Paul Eggert  <eggert@twinsun.com>
94911
94912         [from coreutils]
94913         Fix some minor time-related bugs with POSIX time arguments.
94914         Some valid time stamps were being rejected (notably -1, and
94915         time stamps before 1900 on 64-bit hosts).  And some invalid
94916         time stamps were being accepted, e.g. September 31.
94917
94918         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
94919         that we can return (time_t) -1 successfully.
94920         * lib/posixtm.c: Likewise.
94921         [HAVE_STDBOOL_H]: Include <stdbool.h>.
94922         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
94923         (t): Remove static var.
94924         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
94925         of static var.  All uses changed.
94926         (year): Do not reject years before 1900; they can occur with
94927         64-bit time_t.
94928         (posix_time_parse): Do not check for out-of-range components;
94929         that is now the caller's responsibility, since our checks were
94930         only approximations.
94931         (posixtime): Use mktime to check for out-of-range components,
94932         since it knows them exactly.
94933         If mktime returns (time_t) -1, check whether an error actually occurred
94934         by invoking localtime on -1.
94935         (main) [TEST_POSIXTIME]: Check for input data errors, and report
94936         posixtime failures better.
94937         Improve the test data (in comments only).
94938
94939 2003-06-02  Karl Berry  <karl@gnu.org>
94940
94941         * config/mkinstalldirs (version): new variable.
94942         (--version): new option.
94943         (usage): improve message.
94944
94945 2003-05-30  Karl Berry  <karl@gnu.org>
94946
94947         * lib/mktime.c: update from libc.
94948
94949 2003-05-30  Bruno Haible  <bruno@clisp.org>
94950
94951         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
94952         * config/config.rpath: Upgrade to gettext-0.12.1.
94953
94954 2003-05-30  Bruno Haible  <bruno@clisp.org>
94955
94956         * m4/gettext.m4: Upgrade to gettext-0.12.1.
94957         * m4/nls.m4: New file, from gettext-0.12.1.
94958         * m4/po.m4: New file, from gettext-0.12.1.
94959         * m4/progtest.m4: Upgrade to gettext-0.12.1.
94960
94961 2003-05-30  Bruno Haible  <bruno@clisp.org>
94962
94963         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
94964         * lib/localcharset.h: Likewise.
94965         * lib/localcharset.c: Likewise.
94966
94967 2003-05-29  Karl Berry  <karl@gnu.org>
94968
94969         * config/config.rpath: update from gettext.
94970
94971 2003-05-28  Paul Eggert  <eggert@twinsun.com>
94972
94973         Assume the headers required for C89 freestanding compilers.
94974         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
94975         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
94976         * m4/human.m4 (gl_HUMAN): Likewise.
94977         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
94978         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
94979         * m4/userspec.m4 (gl_USERSPEC): Likewise.
94980         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
94981         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
94982         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
94983
94984 2003-05-28  Paul Eggert  <eggert@twinsun.com>
94985
94986         Assume the headers required for C89 freestanding compilers.
94987         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
94988         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
94989         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
94990         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
94991         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
94992         define, since <limits.h> is guaranteed to do that.
94993         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
94994         * lib/exclude.c: Include <stdbool.h> unconditionally.
94995         * lib/tempname.c: Include <stddef.h> unconditionally.
94996         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
94997         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
94998         <stddef.h> does that.
94999         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
95000         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
95001         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
95002         needed.
95003         * lib/xstrtol.c: Likewise.
95004         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
95005         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
95006
95007         * lib/addext.c (addext): Use assignment rather than cast, to avoid
95008         warnings on some platforms.
95009
95010         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
95011         arbitrarily.
95012
95013 2003-05-26  Jim Meyering  <jim@meyering.net>
95014
95015         Merge in a change from coreutils:
95016         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
95017         that is guaranteed to be `no'.  Use `no_such_member' to indicate
95018         that condition, rather than `-1' which is slightly misleading.
95019         Change the name of the cache variable to have the gl_ prefix.
95020         Prompted by a patch from Richard Dawe for DJGPP.
95021
95022 2003-05-24  Karl Berry  <karl@gnu.org>
95023
95024         * config/config.guess: update from prep.
95025
95026 2003-05-22  Karl Berry  <karl@gnu.org>
95027
95028         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
95029
95030 2003-05-20  Karl Berry  <karl@gnu.org>
95031
95032         * config/config.guess: update from prep.
95033
95034 2003-05-18  Karl Berry  <karl@gnu.org>
95035
95036         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
95037         might actually be set by the user.
95038
95039         * config/depcomp, install-sh, mdate-sh: update from automake.
95040
95041 2003-05-17  Bruno Haible  <bruno@clisp.org>
95042
95043         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
95044         invalid expansion for AC_EGREP_CPP.
95045         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
95046         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
95047         Suggested by Akim Demaille <akim@epita.fr> in
95048         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
95049
95050 2003-05-12  Jim Meyering  <jim@meyering.net>
95051
95052         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
95053         the space-padded-by-default conversion specifiers, %e, %k, %l.
95054
95055 2003-05-12  Bruno Haible  <bruno@clisp.org>
95056
95057         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
95058         the string is longer than 4 KB.
95059
95060 2003-05-11  Karl Berry  <karl@gnu.org>
95061
95062         * config/config.{guess,sub}: update from prep.
95063
95064 2003-05-09  Bruno Haible  <bruno@clisp.org>
95065
95066         * modules/error: Add m4/strerror_r.m4 to file list.
95067
95068 2003-05-03  Bruno Haible  <bruno@clisp.org>
95069
95070         Upgrade to Unicode-4.0.
95071         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
95072         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
95073         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
95074         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
95075         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
95076         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
95077         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
95078         Change width of U+E0100..U+E01EF from 1 to 0.
95079
95080 2003-04-25  Jim Meyering  <jim@meyering.net>
95081
95082         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
95083         of type size_t, not int.
95084
95085 2003-04-25  Bruno Haible  <bruno@clisp.org>
95086
95087         * lib/copy-file.c: Include <stddef.h>, for size_t.
95088
95089 2003-04-21  Paul Eggert  <eggert@twinsun.com>
95090
95091         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
95092         code which expansion is under static control.  Patch imported from
95093         Akim Demaille's patch to Bison; see
95094         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
95095
95096 2003-04-14  Bruno Haible  <bruno@clisp.org>
95097
95098         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
95099
95100 2003-04-11  Jim Meyering  <jim@meyering.net>
95101
95102         Merge changes from Coreutils.
95103
95104         2003-03-22  Jim Meyering  <jim@meyering.net>
95105
95106         * lib/strftime.c (widen): Cast alloca return value to proper type.
95107
95108         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
95109
95110         From GNU libc.
95111         * lib/strftime.c (my_strftime): Handle very large width
95112         specifications for numeric values correctly.  Improve checks for
95113         overflow.
95114
95115         2003-01-19  Jim Meyering  <jim@meyering.net>
95116
95117         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
95118         definitions.
95119         (nl_get_alt_digit) [! defined my_strftime]: Define.
95120         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
95121         _nl_get_alt_digit and _nl_get_walt_digit.
95122
95123         * lib/strftime.c (my_strftime): Merge in locale-related changes from
95124         libc. These changes have no effect outside of _LIBC.
95125
95126 2003-04-10  Bruno Haible  <bruno@clisp.org>
95127
95128         * modules/findprog: New file.
95129         * MODULES.html.sh (func_all_modules): Add it.
95130
95131 2003-04-10  Bruno Haible  <bruno@clisp.org>
95132
95133         * m4/findprog.m4: New file.
95134         * m4/eaccess.m4: New file.
95135
95136 2003-04-10  Bruno Haible  <bruno@clisp.org>
95137
95138         * lib/findprog.h: New file, from GNU gettext.
95139         * lib/findprog.c: New file, from GNU gettext.
95140
95141 2003-04-05  Jim Meyering  <jim@meyering.net>
95142
95143         Merge changes from Coreutils.
95144
95145         * lib/exclude.h (PARAMS): Remove definition and uses.
95146         * lib/exclude.c: Remove uses of `PARAMS'.
95147
95148         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
95149         Add test-cases for DOS filenames. Declare program_name.
95150         (main): Set up program_name.  Patch by Rich Dawe.
95151
95152         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
95153         error from mntctl.
95154         Use mntctl's return value to drive the entry-processing loop, since
95155         we can't rely on the value of the vmt_length member in the last
95156         entry.  On some systems doing so could result in exhausting
95157         virtual memory.  Based in part on a patch from Mike Jetzer.
95158
95159 2003-04-04  Bruno Haible  <bruno@clisp.org>
95160
95161         * modules/linebreak: New file.
95162         * MODULES.html.sh (func_all_modules): Add it.
95163
95164 2003-04-04  Bruno Haible  <bruno@clisp.org>
95165
95166         * m4/linebreak.m4: New file.
95167
95168 2003-04-04  Bruno Haible  <bruno@clisp.org>
95169
95170         * lib/linebreak.h: New file, from GNU gettext.
95171         * lib/linebreak.c: New file, from GNU gettext with slight
95172         modifications.
95173         * lib/lbrkprop.h: New file, from GNU gettext.
95174
95175 2003-04-03  Bruno Haible  <bruno@clisp.org>
95176
95177         * modules/utf8-ucs4: New file.
95178         * modules/utf16-ucs4: New file.
95179         * modules/ucs4-utf8: New file.
95180         * modules/ucs4-utf16: New file.
95181         * MODULES.html.sh (func_all_modules): Add them.
95182
95183 2003-04-03  Bruno Haible  <bruno@clisp.org>
95184
95185         * m4/utf-ucs4.m4: New file.
95186         * m4/ucs4-utf.m4: New file.
95187
95188 2003-04-03  Bruno Haible  <bruno@clisp.org>
95189
95190         * lib/utf8-ucs4.h: New file, from GNU gettext.
95191         * lib/utf16-ucs4.h: New file, from GNU gettext.
95192         * lib/ucs4-utf8.h: New file, from GNU gettext.
95193         * lib/ucs4-utf16.h: New file, from GNU gettext.
95194
95195 2003-04-02  Bruno Haible  <bruno@clisp.org>
95196
95197         * modules/binary-io: New file.
95198         * MODULES.html.sh (func_all_modules): Add it.
95199
95200 2003-04-02  Bruno Haible  <bruno@clisp.org>
95201
95202         * lib/binary-io.h: New file, from GNU gettext.
95203
95204 2003-04-01  Bruno Haible  <bruno@clisp.org>
95205
95206         * modules/pathname: New file.
95207         * MODULES.html.sh (func_all_modules): Add it.
95208
95209 2003-04-01  Bruno Haible  <bruno@clisp.org>
95210
95211         * lib/pathname.h: New file, from GNU gettext.
95212         * lib/concatpath.c: New file, from GNU gettext.
95213
95214 2003-03-30  Bruno Haible  <bruno@clisp.org>
95215
95216         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
95217
95218 2003-03-30  Bruno Haible  <bruno@clisp.org>
95219
95220         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
95221         function chown() doesn't exist.
95222
95223 2003-03-28  Bruno Haible  <bruno@clisp.org>
95224
95225         * modules/copy-file: New file.
95226         * MODULES.html.sh (func_all_modules): Add it.
95227
95228 2003-03-28  Bruno Haible  <bruno@clisp.org>
95229
95230         * m4/copy-file.m4: New file.
95231
95232 2003-03-28  Bruno Haible  <bruno@clisp.org>
95233
95234         * lib/copy-file.h: New file, from GNU gettext.
95235         * lib/copy-file.c: New file, from GNU gettext.
95236
95237 2003-03-18  Jim Meyering  <jim@meyering.net>
95238
95239         * lib/quote.c (quote_n): Fix typo in comment.
95240
95241 2003-03-18  Bruno Haible  <bruno@clisp.org>
95242
95243         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
95244         checking.
95245         * m4/onceonly_2_57.m4: Likewise.
95246
95247 2003-03-17  Bruno Haible  <bruno@clisp.org>
95248
95249         * m4/onceonly.m4: Require autoconf 2.54 or newer.
95250         (m4_quote): Remove macro.
95251         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
95252
95253 2003-03-14  Jim Meyering  <jim@meyering.net>
95254
95255         Merge changes from Coreutils.
95256         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
95257         to be const, in order to avoid warnings.
95258         (obstack_room): Likewise.
95259         (obstack_empty_p): Likewise.
95260
95261 2003-03-14  Bruno Haible  <bruno@clisp.org>
95262
95263         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
95264         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
95265
95266 2003-03-13  Paul Eggert  <eggert@twinsun.com>
95267
95268         Merge changes from Bison.
95269         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
95270         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
95271         when compiling Bison 1.875's `bitset bset = obstack_alloc
95272         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
95273         * lib/hash.c: Include <stdbool.h> unconditionally.
95274
95275 2003-03-13  Paul Eggert  <eggert@twinsun.com>
95276
95277         * m4/onceonly.m4 (m4_quote): New macro.
95278         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
95279         Quote AC_FOREACH variable-expansions properly.
95280
95281 2003-03-13  Paul Eggert  <eggert@twinsun.com>
95282
95283         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
95284
95285 2003-03-09  Paul Eggert  <eggert@twinsun.com>
95286
95287         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
95288         Reported by Bruce Becker; see:
95289         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
95290
95291 2003-03-03  Paul Eggert  <eggert@twinsun.com>
95292             Bruno Haible  <bruno@clisp.org>
95293
95294         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
95295         Reported by John Hughes, see
95296         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
95297
95298 2003-02-20  Bruno Haible  <bruno@clisp.org>
95299
95300         * MODULES.html.sh (func_all_modules): Add poll.
95301
95302 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
95303
95304         * modules/poll: New file.
95305
95306 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
95307
95308         * lib/poll_.h: New file.
95309         * lib/poll.c: New file.
95310
95311 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
95312
95313         * m4/poll.m4: New file.
95314
95315 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
95316
95317         * modules/mathl: New file.
95318
95319 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
95320
95321         * lib/mathl.h: New file.
95322         * lib/acosl.c: New file.
95323         * lib/asinl.c: New file.
95324         * lib/atanl.c: New file.
95325         * lib/ceill.c: New file.
95326         * lib/cosl.c: New file.
95327         * lib/expl.c: New file.
95328         * lib/floorl.c: New file.
95329         * lib/frexpl.c: New file.
95330         * lib/ldexpl.c: New file.
95331         * lib/logl.c: New file.
95332         * lib/sincosl.c: New file.
95333         * lib/sinl.c: New file.
95334         * lib/sqrtl.c: New file.
95335         * lib/tanl.c: New file.
95336         * lib/trigl.c: New file.
95337         * lib/trigl.h: New file.
95338
95339 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
95340
95341         * m4/mathl.m4: New file.
95342
95343 2003-02-18  Bruno Haible  <bruno@clisp.org>
95344
95345         * MODULES.html.sh (func_all_modules): Add mathl.
95346
95347 2003-02-17  Bruno Haible  <bruno@clisp.org>
95348
95349         * modules/mkdtemp: New module.
95350         * MODULES.html.sh (func_all_modules): Add it.
95351
95352 2003-02-17  Bruno Haible  <bruno@clisp.org>
95353
95354         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
95355
95356 2003-02-17  Bruno Haible  <bruno@clisp.org>
95357
95358         * lib/mkdtemp.h: New file, from GNU gettext.
95359         * lib/mkdtemp.c: New file, from GNU gettext.
95360
95361 2003-02-02  Jim Meyering  <jim@meyering.net>
95362
95363         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
95364         e.g. glibc-2.2.93.
95365
95366 2003-01-31  Bruno Haible  <bruno@clisp.org>
95367
95368         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
95369         'rpl_rename'.
95370         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
95371         'rpl_strnlen'.
95372         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
95373         'rpl_strtod'.
95374         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
95375         'rpl_utime'.
95376
95377 2003-01-31  Bruno Haible  <bruno@clisp.org>
95378
95379         * lib/rename.c: #undef rename before defining rpl_rename.
95380         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
95381
95382 2003-01-30  Bruno Haible  <bruno@clisp.org>
95383
95384         * modules/vasnprintf, modules/vasprintf: New modules.
95385         * MODULES.html.sh (func_all_modules): Add them.
95386
95387 2003-01-30  Bruno Haible  <bruno@clisp.org>
95388
95389         * m4/signed.m4: New file, from GNU gettext.
95390         * m4/longdouble.m4: New file, from GNU gettext.
95391         * m4/wchar_t.m4: New file, from GNU gettext.
95392         * m4/wint_t.m4: New file, from GNU gettext.
95393         * m4/vasnprintf.m4: New file.
95394         * m4/vasprintf.m4: New file.
95395
95396 2003-01-30  Bruno Haible  <bruno@clisp.org>
95397
95398         * lib/printf-args.h: New file, from GNU gettext.
95399         * lib/printf-args.c: New file, from GNU gettext.
95400         * lib/printf-parse.h: New file, from GNU gettext.
95401         * lib/printf-parse.c: New file, from GNU gettext.
95402         * lib/vasnprintf.h: New file, from GNU gettext.
95403         * lib/vasnprintf.c: New file, from GNU gettext.
95404         * lib/asnprintf.c: New file, from GNU gettext.
95405         * lib/vasprintf.h: New file, from GNU gettext with modifications.
95406         * lib/vasprintf.c: New file, from GNU gettext.
95407         * lib/asprintf.c: New file, from GNU gettext.
95408
95409 2003-01-29  Bruno Haible  <bruno@clisp.org>
95410
95411         * modules/stpncpy: New module.
95412         * MODULES.html.sh (func_all_modules): Add it.
95413
95414 2003-01-29  Bruno Haible  <bruno@clisp.org>
95415
95416         * m4/stpncpy.m4: New file.
95417
95418 2003-01-29  Bruno Haible  <bruno@clisp.org>
95419
95420         * lib/stpncpy.h: New file, from GNU gettext with modifications.
95421         * lib/stpncpy.c: New file, from GNU gettext with modifications.
95422
95423 2003-01-28  Bruno Haible  <bruno@clisp.org>
95424
95425         * modules/c-ctype: New module.
95426         * MODULES.html.sh (func_all_modules): Add it.
95427
95428 2003-01-28  Bruno Haible  <bruno@clisp.org>
95429
95430         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
95431         Paul Eggert.
95432         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
95433         Paul Eggert.
95434
95435 2003-01-27  Bruno Haible  <bruno@clisp.org>
95436
95437         * modules/xsetenv: New module.
95438         * MODULES.html.sh (func_all_modules): Add it.
95439
95440 2003-01-27  Bruno Haible  <bruno@clisp.org>
95441
95442         * lib/xsetenv.h: New file, from GNU gettext.
95443         * lib/xsetenv.c: New file, from GNU gettext.
95444
95445 2003-01-23  Jim Meyering  <jim@meyering.net>
95446
95447         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
95448         from working on systems without dirfd (at least Irix and OSF1/Tru64).
95449
95450 2003-01-23  Bruno Haible  <bruno@clisp.org>
95451
95452         * modules/minmax: New module.
95453         * MODULES.html.sh (func_all_modules): Add it.
95454
95455 2003-01-23  Bruno Haible  <bruno@clisp.org>
95456
95457         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
95458         Eggert.
95459
95460 2003-01-22  Bruno Haible  <bruno@clisp.org>
95461
95462         * modules/exit: New module.
95463         * MODULES.html.sh (func_all_modules): Add it.
95464
95465 2003-01-22  Bruno Haible  <bruno@clisp.org>
95466
95467         * lib/exit.h: New file, from GNU gettext.
95468
95469 2003-01-19  Bruno Haible  <bruno@clisp.org>
95470
95471         * gnulib-tool: Recognize option --extract-maintainer.
95472         (func_get_maintainer): New function.
95473         * modules/*: Add Maintainer entry.
95474
95475 2003-01-16  Jim Meyering  <jim@meyering.net>
95476
95477         * m4/regex.m4: The `regex' struct is both input and output.
95478         Initialize it before each use.  Patch by Tim Waugh.
95479
95480 2003-01-16  Bruno Haible  <bruno@clisp.org>
95481
95482         * MODULES.html.sh: Add a table of contents. Add the module name as
95483         leftmost column. Add hyperlinks.
95484
95485 2003-01-15  Bruno Haible  <bruno@clisp.org>
95486
95487         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
95488
95489 2003-01-15  Bruno Haible  <bruno@clisp.org>
95490
95491         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
95492         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
95493         suffix.
95494
95495 2003-01-15  Bruno Haible  <bruno@clisp.org>
95496
95497         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
95498
95499 2003-01-15  Bruno Haible  <bruno@clisp.org>
95500
95501         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
95502         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
95503
95504 2003-01-14  Jim Meyering  <jim@meyering.net>
95505
95506         * lib/same.c (same_name): Tweak a comment.
95507
95508 2003-01-14  Bruno Haible  <bruno@clisp.org>
95509
95510         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
95511         when a string comparison is sufficient.
95512
95513 2003-01-14  Bruno Haible  <bruno@clisp.org>
95514
95515         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
95516         'unsigned int'.
95517
95518 2003-01-14  Bruno Haible  <bruno@clisp.org>
95519
95520         * lib/hash-pjw.c: Add comment about low quality of this function.
95521
95522 2003-01-13  Bruno Haible  <bruno@clisp.org>
95523
95524         * modules/stpcpy: Distribute lib/stpcpy.h.
95525         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
95526
95527 2003-01-13  Bruno Haible  <bruno@clisp.org>
95528
95529         * modules/*: Add a description.
95530         * modules/strpbrk: Fix Makefile.am snippet.
95531         * modules/strtoimax: Fix dependencies.
95532         * modules/strtoumax: Likewise.
95533
95534 2003-01-13  Bruno Haible  <bruno@clisp.org>
95535
95536         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
95537         * modules/alloca (Makefile.am): All object files depend on alloca.h.
95538         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
95539
95540 2003-01-13  Bruno Haible  <bruno@clisp.org>
95541
95542         * gnulib-tool (func_create_testdir): Store config/* files in the main
95543         directory.
95544         * config.rpath: Move to ...
95545         * config/config.rpath: ... here.
95546         * modules/gettext: Contains config/config.rpath, not config.rpath.
95547         * modules/iconv: Likewise.
95548
95549 2003-01-12  Paul Eggert  <eggert@twinsun.com>
95550
95551         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
95552         to avoid collisions with libcurses and libreadline.
95553
95554         * m4/getstr.m4: Remove.
95555         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
95556
95557 2003-01-12  Paul Eggert  <eggert@twinsun.com>
95558
95559         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
95560         to avoid collisions with libcurses and libreadline.
95561
95562         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
95563         * lib/getstr.h, getstr.c: Remove.
95564         * lib/getline.c: Include "getline.h", to check interface.
95565         Move body of old getstr.c here: this defines MIN_CHUNK and
95566         declares getdelim2, which is renamed from getstr.
95567         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
95568
95569         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
95570         All uses changed.
95571         * lib/linebuffer.h: Likewise.
95572         (readline): Remove backward-compatibility macro.
95573
95574 2003-01-12  Paul Eggert  <eggert@twinsun.com>
95575
95576         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
95577         to avoid collisions with libcurses and libreadline.
95578         * getstr: Remove.
95579         * MODULES.html.sh: Remove getstr.
95580         * modules/getline: Depend on unlocked-io, not getstr.
95581
95582 2003-01-12  Jim Meyering  <jim@meyering.net>
95583
95584         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
95585
95586 2003-01-10  Bruno Haible  <bruno@clisp.org>
95587
95588         * modules/alloca: Change Makefile.am requirements. Simplify Include
95589         requirements. Add lib/alloca_.h to file list.
95590
95591 2003-01-10  Bruno Haible  <bruno@clisp.org>
95592
95593         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
95594
95595 2003-01-10  Bruno Haible  <bruno@clisp.org>
95596
95597         * lib/alloca_.h: New file.
95598         * lib/getdate.y: Unconditionally include alloca.h.
95599         * lib/makepath.c: Likewise.
95600         * lib/setenv.c: Likewise.
95601         * lib/userspec.c: Likewise.
95602
95603 2003-01-09  Karl Berry  <karl@gnu.org>
95604
95605         * MODULES.html.sh: include `dirname $0` in PATH, to find
95606         gnulib-tool.
95607
95608 2003-01-09  Bruno Haible  <bruno@clisp.org>
95609
95610         * modules/stdbool: Change configure.ac, Makefile.am requirements.
95611         Simplify Include requirements. Add lib/stdbool.h.in to file list.
95612
95613 2003-01-09  Bruno Haible  <bruno@clisp.org>
95614
95615         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
95616
95617 2003-01-09  Bruno Haible  <bruno@clisp.org>
95618
95619         * lib/stdbool.h.in: New file.
95620
95621 2003-01-09  Bruno Haible  <bruno@clisp.org>
95622
95623         * gnulib-tool (func_all_modules): Ignore files ending in ~.
95624         * MODULES.html.sh: Likewise.
95625
95626 2003-01-08  Jim Meyering  <jim@meyering.net>
95627
95628         * lib/full-write.c: Undefine and define-away `const' after inclusion
95629         of errno.h, not before.  Suggestion from Bruno Haible.
95630
95631 2003-01-08  Bruno Haible  <bruno@clisp.org>
95632
95633         * modules/full-read: Depend on full-write.
95634
95635 2003-01-08  Bruno Haible  <bruno@clisp.org>
95636
95637         * lib/safe-read.c: Include specification header first, to ensure its
95638         selfcontainedness.
95639         * lib/full-write.c: Likewise.
95640
95641 2003-01-07  Jim Meyering  <jim@meyering.net>
95642
95643         * lib/full-write.c: Rework so that it may serve to define full_read,
95644         too.
95645         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
95646
95647 2003-01-07  Bruno Haible  <bruno@clisp.org>
95648
95649         * lib/strtoimax.c: Include <stdint.h> as an alternative to
95650         <inttypes.h>.
95651         * lib/xstrtol.h: Likewise.
95652         * lib/xstrtoimax.c: Likewise.
95653         * lib/xstrtoumax.c: Likewise.
95654         * lib/human.h: Likewise.
95655
95656         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
95657         on systems that have <inttypes.h> but not <stdint.h>.
95658
95659 2003-01-07  Bruno Haible  <bruno@clisp.org>
95660
95661         * MODULES.html.sh: Add copyright notice.
95662         (missed_files): Omit CVS directory entries.
95663         (func_module): Make it work with sed-3.02.
95664         * MODULES.txt: Remove file.
95665
95666 2003-01-06  Jim Meyering  <jim@meyering.net>
95667
95668         * lib/version-etc.c: Update year in translatable copyright string.
95669
95670 2003-01-03  Karl Berry  <karl@gnu.org>
95671
95672         * config/config.{guess,sub}: update from prep.
95673
95674 2003-01-02  Karl Berry  <karl@gnu.org>
95675
95676         * doc/COPYING.DOC: belatedly updated to 1.2.
95677
95678 2003-01-01  Karl Berry  <karl@gnu.org>
95679
95680         * gnulib-tool (func_verify_module): report module name $module in
95681         error message, not $1.
95682         * gnulib-tool (create-testdir): don't complain if destdir couldn't
95683         be created, only if it doesn't exist.
95684         * gnulib-tool (last_checkin_date): don't expand the $Date here.
95685
95686 2002-12-31  Paul Eggert  <eggert@twinsun.com>
95687
95688         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
95689
95690 2002-12-31  Paul Eggert  <eggert@twinsun.com>
95691
95692         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
95693         memcmp if strcoll doesn't work.
95694
95695 2002-12-31  Bruno Haible  <bruno@clisp.org>
95696
95697         * lib/utime.c (utime_null): No need to call ftruncate if the file was
95698         nonempty.
95699
95700 2002-12-31  Bruno Haible  <bruno@clisp.org>
95701
95702         * lib/memcoll.c (STRCOLL): New macro.
95703         (memcoll): Use it.
95704
95705 2002-12-31  Bruno Haible  <bruno@clisp.org>
95706
95707         * lib/localcharset.h: New file.
95708         * lib/localcharset.c: Include it.
95709         * lib/unicodeio.c: Likewise.
95710
95711 2002-12-31  Bruno Haible  <bruno@clisp.org>
95712
95713         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
95714         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
95715
95716 2002-12-31  Bruno Haible  <bruno@clisp.org>
95717
95718         * lib/getline.h: Include <stddef.h>, for size_t.
95719
95720         * lib/unicodeio.h: Include <stddef.h>, for size_t.
95721         * lib/unicodeio.c: Don't include <stddef.h>.
95722
95723 2002-12-31  Bruno Haible  <bruno@clisp.org>
95724
95725         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
95726         HAVE_TM_ZONE.
95727
95728 2002-12-24  Karl Berry  <karl@gnu.org>
95729
95730         * config/config.guess: update from prep.
95731
95732 2002-12-24  Bruno Haible  <bruno@clisp.org>
95733
95734         General infrasructure.
95735         * m4/README: Rewritten.
95736         * m4/onceonly.m4: New file.
95737         * m4/onceonly_2_57.m4: New file.
95738
95739         Module atexit.
95740         * m4/atexit.m4: New file.
95741
95742         Module strtod.
95743         * m4/strtod.m4: New file.
95744
95745         Module strtol.
95746         * m4/strtol.m4: New file.
95747
95748         Module strtoul.
95749         * m4/strtoul.m4: New file.
95750
95751         Module memchr.
95752         * m4/memchr.m4: New file.
95753
95754         Module memcmp.
95755         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
95756         (jm_FUNC_MEMCMP): Invoke it.
95757
95758         Module memcpy.
95759         * m4/memcpy.m4: New file.
95760
95761         Module memmove.
95762         * m4/memmove.m4: New file.
95763
95764         Module memset.
95765         * m4/memset.m4: New file.
95766
95767         Module strcspn.
95768         * m4/strcspn.m4: New file.
95769
95770         Module strpbrk.
95771         * m4/strpbrk.m4: New file.
95772
95773         Module strstr.
95774         * m4/strstr.m4: New file.
95775
95776         Module strerror.
95777         * m4/strerror.m4: New file.
95778
95779         Module mktime.
95780         * m4/mktime.m4: Renamed from jm-mktime.m4.
95781         (gl_PREREQ_MKTIME): New macro.
95782         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
95783
95784         Module malloc.
95785         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
95786         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
95787         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
95788
95789         Module realloc.
95790         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
95791         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
95792         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
95793
95794         Module strftime.
95795         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
95796         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
95797         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
95798         gl_TM_GMTOFF.
95799         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
95800
95801         Module xalloc.
95802         * m4/xalloc.m4: New file.
95803
95804         Module alloca.
95805         * m4/alloca.m4: New file.
95806
95807         Module putenv.
95808         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
95809         (jm_FUNC_PUTENV): Invoke it.
95810
95811         Module setenv.
95812         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
95813         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
95814         when invoked twice.
95815         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
95816         gt_FUNC_SETENV.
95817
95818         Module memrchr.
95819         * m4/memrchr.m4: New file.
95820
95821         Module stpcpy.
95822         * m4/stpcpy.m4: New file.
95823
95824         Module strcase.
95825         * m4/strcase.m4: New file.
95826
95827         Module strdup.
95828         * m4/strdup.m4: New file.
95829
95830         Module strnlen.
95831         * m4/strnlen.m4: New file.
95832
95833         Module strndup.
95834         * m4/strndup.m4: New file.
95835
95836         Module xstrtod.
95837         * m4/xstrtod.m4: New file.
95838
95839         Module xstrtol.
95840         * m4/xstrtol.m4: New file.
95841
95842         Module getdate.
95843         * m4/getdate.m4: New file.
95844
95845         Module unlocked-io.
95846         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
95847         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
95848         * m4/jm-glibc-io.m4n: Remove file.
95849
95850         Module long-options.
95851         * m4/long-options.m4: New file.
95852
95853         Module md5.
95854         * m4/md5.m4: New file.
95855
95856         Module sha.
95857         * m4/sha.m4: New file.
95858
95859         Module getstr.
95860         * m4/getstr.m4: New file.
95861
95862         Module getline.
95863         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
95864         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
95865         <sys/types.h>, for size_t. Use the function name gnu_getline, not
95866         simply getline. Infoke gl_PREREQ_GETLINE.
95867
95868         Module obstack.
95869         * m4/obstack.m4: New file.
95870
95871         Module hash.
95872         * m4/hash.m4: New file.
95873
95874         Module readtokens.
95875         * m4/readtokens.m4: New file.
95876
95877         Module strverscmp.
95878         * m4/strverscmp.m4: New file.
95879
95880         Module stdbool.
95881         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
95882         OSF/1.
95883
95884         Module strtoll.
95885         * m4/strtoll.m4: New file.
95886
95887         Module strtoull.
95888         * m4/strtoull.m4: New file.
95889
95890         Module strtoimax.
95891         * m4/strtoimax.m4: New file.
95892
95893         Module strtoumax.
95894         * m4/strtoumax.m4: New file.
95895
95896         Module xstrtoimax.
95897         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
95898         jm_AC_PREREQ_XSTRTOIMAX.
95899         Moved the strtol prerequisites to strtol.m4.
95900         Moved the strtoll prerequisites to strtoll.m4.
95901         Moved the strtoimax prerequisites to strtoimax.m4.
95902
95903         Module xstrtoumax.
95904         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
95905         jm_AC_PREREQ_XSTRTOUMAX.
95906         Moved the strtoul prerequisites to strtoul.m4.
95907         Moved the strtoull prerequisites to strtoull.m4.
95908         Moved the strtoumax prerequisites to strtoumax.m4.
95909
95910         Module chown.
95911         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
95912         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
95913
95914         Module dup2.
95915         * m4/dup2.m4: New file.
95916
95917         Module ftruncate.
95918         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
95919         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
95920
95921         Module getgroups.
95922         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
95923         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
95924
95925         Module gettimeofday.
95926         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
95927         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
95928         gl_PREREQ_GETTIMEOFDAY.
95929
95930         Module mkdir.
95931         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
95932         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
95933
95934         Module mkstemp.
95935         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
95936         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
95937         jm_AC_TYPE_UINTMAX_T.
95938         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
95939
95940         Module stat.
95941         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
95942         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
95943
95944         Module lstat.
95945         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
95946         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
95947
95948         Module timespec.
95949         * m4/timespec.m4 (gl_TIMESPEC): New macro.
95950         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
95951         * m4/st_mtim.m4: Indentation.
95952
95953         Module nanosleep.
95954         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
95955         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
95956         gl_PREREQ_NANOSLEEP.
95957
95958         Module regex.
95959         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
95960         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
95961         (gl_REGEX): New macro.
95962
95963         Module rename.
95964         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
95965         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
95966
95967         Module rmdir.
95968         * m4/rmdir.m4: New file.
95969
95970         Module utime.
95971         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
95972         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
95973         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
95974
95975         Module dirname.
95976         * m4/dirname.m4: New file.
95977
95978         Module getopt.
95979         * m4/getopt.m4: New file.
95980
95981         Module unistd-safer.
95982         * m4/unistd-safer.m4: New file.
95983
95984         Module fnmatch.
95985         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
95986         declaration.
95987         (gl_PREREQ_FNMATCH_EXTRA): New macro.
95988         (gl_FUNC_FNMATCH_POSIX): New macro.
95989         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
95990         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
95991         simply fnmatch.
95992
95993         Module exclude.
95994         * m4/exclude.m4: New file.
95995
95996         Module human.
95997         * m4/human.m4: New file.
95998
95999         Module acl.
96000         * m4/acl.m4: Nop.
96001
96002         Module backupfile.
96003         * m4/backupfile.m4: New file.
96004         * m4/d-ino.m4: Indentation.
96005
96006         Module fsusage.
96007         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
96008         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
96009         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
96010
96011         Module dirfd.
96012         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
96013         requirements.
96014
96015         Module euidaccess.
96016         * m4/euidaccess.m4: New file.
96017
96018         Module file-type.
96019         * m4/file-type.m4: New file.
96020
96021         Module fileblocks.
96022         * m4/fileblocks.m4: New file.
96023
96024         Module filemode.
96025         * m4/filemode.m4: New file.
96026
96027         Module isdir.
96028         * m4/isdir.m4: New file.
96029
96030         Module lchown.
96031         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
96032         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
96033
96034         Module makepath.
96035         * m4/makepath.m4: New file.
96036
96037         Module modechange.
96038         * m4/modechange.m4: New file.
96039
96040         Module mountlist.
96041         * m4/mountlist.m4: New file.
96042         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
96043         Indentation.
96044
96045         Module path-concat.
96046         * m4/path-concat.m4: New file.
96047
96048         Module pathmax.
96049         * m4/pathmax.m4: New file.
96050
96051         Module same.
96052         * m4/same.m4: New file.
96053
96054         Module save-cwd.
96055         * m4/save-cwd.m4: New file.
96056
96057         Module savedir.
96058         * m4/savedir.m4: New file.
96059
96060         Module xgetcwd.
96061         * m4/xgetcwd.m4: New file.
96062         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
96063
96064         Module xreadlink.
96065         * m4/xreadlink.m4: New file.
96066
96067         Module safe-read.
96068         * m4/safe-read.m4: New file.
96069
96070         Module safe-write.
96071         * m4/safe-write.m4: New file.
96072
96073         Module closeout.
96074         * m4/closeout.m4: New file.
96075
96076         Module stdio-safer.
96077         * m4/stdio-safer.m4: New file.
96078
96079         Module getpass.
96080         * m4/getpass.m4: New file.
96081
96082         Module getugroups.
96083         * m4/getugroups.m4: New file.
96084
96085         Module group-member.
96086         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
96087         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
96088
96089         Module idcache.
96090         * m4/idcache.m4: New file.
96091
96092         Module userspec.
96093         * m4/userspec.m4: New file.
96094
96095         Module gettime.
96096         * m4/clock_time.m4: New file.
96097         * m4/gettime.m4: New file.
96098
96099         Module settime.
96100         * m4/settime.m4: New file.
96101
96102         Module posixtm.
96103         * m4/posixtm.m4: New file.
96104
96105         Module gethostname.
96106         * m4/gethostname.m4: New file.
96107
96108         Module canon-host.
96109         * m4/canon-host.m4: New file.
96110
96111         Module gettext.
96112         * m4/codeset.m4: New file, from gettext-0.11.5.
96113         * m4/gettext.m4: New file, from gettext-0.11.5.
96114         * m4/glibc21.m4: New file, from gettext-0.11.5.
96115         * m4/iconv.m4: New file, from gettext-0.11.5.
96116         * m4/intdiv0.m4: New file, from gettext-0.11.5.
96117         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
96118         * m4/inttypes.m4: New file, from gettext-0.11.5.
96119         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
96120         * m4/isc-posix.m4: New file, from gettext-0.11.5.
96121         * m4/lcmessage.m4: New file, from gettext-0.11.5.
96122         * m4/lib-ld.m4: New file, from gettext-0.11.5.
96123         * m4/lib-link.m4: New file, from gettext-0.11.5.
96124         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
96125         * m4/progtest.m4: New file, from gettext-0.11.5.
96126         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
96127         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
96128         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
96129
96130         Module localcharset.
96131         * m4/localcharset.m4: New file.
96132
96133         Module hard-locale.
96134         * m4/hard-locale.m4: New file.
96135
96136         Module mbswidth.
96137         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
96138         onceonly macros.
96139         * m4/mbrtowc.m4: Add comment.
96140
96141         Module memcasecmp.
96142         * m4/memcasecmp.m4: New file.
96143
96144         Module memcoll.
96145         * m4/memcoll.m4: New file.
96146
96147         Module unicodeio.
96148         * m4/unicodeio.m4: New file.
96149
96150         Module rpmatch.
96151         * m4/rpmatch.m4: New file.
96152
96153         Module yesno.
96154         * m4/yesno.m4: New file.
96155
96156         Module exitfail.
96157         * m4/exitfail.m4: New file.
96158
96159         Module c-stack.
96160         * m4/c-stack.m4 (gl_C_STACK): New macro.
96161         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
96162
96163         Module error.
96164         * m4/error.m4 (gl_ERROR): New macro.
96165         (jm_PREREQ_ERROR): Use onceonly macros.
96166
96167         Module fatal.
96168         * m4/fatal.m4: New file.
96169
96170         Module getloadavg.
96171         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
96172         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
96173
96174         Module getpagesize.
96175         * m4/getpagesize.m4: New file.
96176
96177         Module getusershell.
96178         * m4/getusershell.m4: New file.
96179
96180         Module physmem.
96181         * m4/physmem.m4: New file.
96182
96183         Module posixver.
96184         * m4/posixver.m4: New file.
96185
96186         Module quotearg.
96187         * m4/quotearg.m4: New file.
96188
96189         Module quote.
96190         * m4/quote.m4: New file.
96191
96192         Module readutmp.
96193         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
96194
96195         Module sig2str.
96196         * m4/sig2str.m4: New file.
96197
96198         Other.
96199         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
96200         ulonglong.m4.
96201         * m4/intmax_t.m4: New file.
96202         * m4/d-type.m4: Indentation.
96203         * m4/jm-macros.m4: Update.
96204         * m4/prereq.m4 (jm_PREREQ): Update.
96205         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
96206         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
96207         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
96208         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
96209         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
96210         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
96211         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
96212         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
96213         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
96214         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
96215         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
96216         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
96217         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
96218         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
96219         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
96220         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
96221         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
96222         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
96223         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
96224
96225 2002-12-24  Bruno Haible  <bruno@clisp.org>
96226
96227         * MODULES.txt: Update according to m4/ changes.
96228
96229         Module gettext.
96230         * config.rpath: New file, from gettext-0.11.5.
96231
96232         * modules/*: New module descriptions.
96233         * gnulib-tool: New file.
96234         * MODULES.html.sh: New file.
96235
96236 2002-12-21  Karl Berry  <karl@gnu.org>
96237
96238         * doc/fdl.texi: update to version 1.2.
96239
96240 2002-12-19  Karl Berry  <karl@gnu.org>
96241
96242         * config/config.guess: update from prep.
96243
96244 2002-12-18  Bruno Haible  <bruno@clisp.org>
96245
96246         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
96247         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
96248
96249 2002-12-17  Bruno Haible  <bruno@clisp.org>
96250
96251         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
96252         stdlib.h, string.h.
96253
96254 2002-12-17  Bruno Haible  <bruno@clisp.org>
96255
96256         * lib/canon-host.c (strdup): Remove unused declaration.
96257
96258         * lib/fsusage.c: Include full_read.h.
96259         (get_fs_usage): Use full_read instead of safe_read.
96260
96261         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
96262
96263 2002-12-12  Karl Berry  <karl@gnu.org>
96264
96265         * config/config.guess: update from prep.
96266
96267 2002-12-11  Bruno Haible  <bruno@clisp.org>
96268
96269         * m4/setenv.m4: New file, from gettext-0.11.5.
96270
96271 2002-12-11  Bruno Haible  <bruno@clisp.org>
96272
96273         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
96274         not unsetenv().
96275         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
96276         modifications:
96277
96278         2002-12-11  Bruno Haible  <bruno@clisp.org>
96279
96280                 * setenv.c (alloca): Fall back to malloc.
96281                 (freea): New macro.
96282                 (setenv): Use freea() to free memory allocated with alloca().
96283
96284         2002-11-13  Bruno Haible  <bruno@clisp.org>
96285
96286                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
96287                 function declarations.
96288                 * unsetenv.c (unsetenv): Likewise.
96289
96290         2002-03-04  Bruno Haible  <bruno@clisp.org>
96291
96292                 Portability to AIX 4.3.3.
96293                 * unsetenv.c: New file, extracted from setenv.c.
96294                 * setenv.c: Move the unsetenv() function to unsetenv.c.
96295
96296         2001-12-20  Bruno Haible  <bruno@clisp.org>
96297
96298                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
96299                 use malloc instead. For SunOS 4.
96300
96301         2001-12-11  Bruno Haible  <bruno@clisp.org>
96302
96303                 * setenv.c: Declare alloca.
96304                 (compar_fn_t): New typedef.
96305                 (KNOWN_VALUE, STORE_VALUE): Use it.
96306
96307         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
96308         setenv.h.
96309
96310 2002-12-10  Paul Eggert  <eggert@twinsun.com>
96311
96312         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
96313         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
96314         Choose values that are less likely to collide with system fnmatch
96315         options.
96316         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
96317         defined (e.g., a pure POSIX system).
96318         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
96319         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
96320
96321 2002-12-06  Paul Eggert  <eggert@twinsun.com>
96322
96323         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
96324         a pain in practice to deal with generated m4 files.  This change
96325         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
96326
96327         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
96328         and jm-glibc-io.m4, as they are no longer a special case.
96329         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
96330         kludge and the auto-generation stuff.  Check only whether the
96331         functions are declared, not whether they exist, since older hosts
96332         that don't declare the functions can't use the optimization anyway.
96333
96334 2002-12-06  Jim Meyering  <jim@meyering.net>
96335
96336         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
96337
96338         Merge in changes from libc's misc/error.c, in preparation
96339         for the merge of gnulib's changes back into libc.
96340
96341         * lib/error.c (_): Define only if not already defined.
96342         Move definition to follow all #include directives.
96343         Include unlocked-io.h only if !_LIBC.
96344         [_LIBC]: Include <libio/libioP.h>.
96345         [USE_IN_LIBIO]: Include <libio/iolibio.h>
96346         (fflush): Tweak definition to use INTUSE.
96347         (putc): Define.
96348
96349 2002-12-05  Paul Eggert  <eggert@twinsun.com>
96350
96351         * lib/alloca.c [defined emacs]: Include "lisp.h".
96352         (xalloc_die) [defined emacs]: New macro.
96353         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
96354         [! defined emacs]: Include <xalloc.h>.
96355         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
96356         (pointer): Typedef to POINTER_TYPE *.
96357         (malloc): Remove decl; we now always use xmalloc.
96358         (alloca): Use old-style definition, since Emacs needs this.
96359         Check for arithmetic overflow when computing combined size.
96360
96361 2002-12-04  Paul Eggert  <eggert@twinsun.com>
96362
96363         Do not generate unlocked-io.h automatically, since it's easier to
96364         maintain it by hand.
96365
96366         * lib/unlocked-io.h: New file, from GNU diffutils,
96367         but with proper copyright notice and attribution.
96368         * lib/gen-uio: Remove.
96369         * lib/Makefile.am: Add copyright notice.
96370         (libfetish_a_SOURCES): Add unlocked-io.h.
96371         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
96372         (DISTCLEANFILES, io_functions): Remove macros.
96373         (EXTRA_DIST): Remove gen_uio.
96374         (unlocked-io.h): Remove rule.
96375
96376 2002-12-04  Jim Meyering  <jim@meyering.net>
96377
96378         Reflect the fact that stat.c and lstat.c are no longer generated.
96379         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
96380         (DISTCLEANFILES): Likewise.
96381         (EXTRA_DIST): Likewise.
96382         (all_local): Don't depend on stat.c or lstat.c.
96383         (stat.c, lstat.c): Remove rules.
96384         (EXTRA_DIST): Remove xstat.in.
96385
96386         * lib/xstat.in: Remove file.  Contents moved into stat.c.
96387         * lib/stat.c: New file.  Contents mostly from xstat.in.
96388         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
96389         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
96390
96391         * lib/safe-read.c: Rework so that it may serve to define safe_write,
96392         too.
96393         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
96394
96395 2002-12-03  Jim Meyering  <jim@meyering.net>
96396
96397         * lib/safe-read.c, safe-write.c: Change variable names and comments,
96398         but not semantics, to minimize the differences between these two files.
96399         (safe_read): Change comment to mention SAFE_READ_ERROR.
96400
96401         * lib/safe-read.c (IS_EINTR): Define.
96402         (safe_read): Use IS_EINTR in place of in-function cpp directives.
96403
96404 2002-12-02  Jim Meyering  <jim@meyering.net>
96405
96406         * lib/safe-read.c (EINTR): Define.
96407         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
96408         (INT_MAX): Provide fallback.
96409         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
96410
96411         * lib/safe-read.h (SAFE_READ_ERROR): Define.
96412
96413 2002-12-02  Bruno Haible  <bruno@clisp.org>
96414
96415         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
96416         Define, taken from safe-read.c.
96417         (INT_MAX): Provide fallback.
96418         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
96419         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
96420
96421         * lib/safe-read.c (EINTR): Remove definition.
96422         (safe_read): Don't use EINTR if it is absent.
96423
96424 2002-12-01  Jim Meyering  <jim@meyering.net>
96425
96426         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
96427         zero.
96428         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
96429
96430 2002-11-27  Paul Eggert  <eggert@twinsun.com>
96431
96432         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
96433         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
96434         with `if (! (value < limit)) abort ();', for readability.
96435
96436 2002-11-26  Karl Berry  <karl@gnu.org>
96437
96438         * lib/strdup.c: copy from libc again, with jim's ok.
96439         * lib/.cppi-disable: re-add strdup.c
96440
96441 2002-11-25  Karl Berry  <karl@gnu.org>
96442
96443         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
96444         instead of "strtol.c".
96445
96446 2002-11-25  Karl Berry  <karl@gnu.org>
96447
96448         * config/install-sh: update from automake for variable quoting, $0 in
96449         error msgs, etc.
96450
96451         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
96452         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
96453         entry.
96454
96455 2002-11-25  Jim Meyering  <jim@meyering.net>
96456
96457         * lib/mktime.c: Sync from libc, now that it has the latest fix.
96458
96459 2002-11-24  Karl Berry  <karl@gnu.org>
96460
96461         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
96462         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
96463
96464 2002-11-24  Jim Meyering  <jim@meyering.net>
96465
96466         Update from coreutils:
96467
96468         * lib/mktime.c: Merge in changes from libc.
96469
96470         Avoid a link-time failure on some Linux systems.
96471         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
96472         (otherwise).
96473         (__mon_yday): Declare with the STATIC attribute.
96474         (__mktime_internal): Likewise.
96475         Based on a report from Greg Schafer.
96476
96477 2002-11-23  Jim Meyering  <jim@meyering.net>
96478
96479         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
96480         Use `unsigned', not `int', as type of index.
96481
96482         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
96483
96484         * lib/fsusage.c: Remove unneeded parentheses around operands of
96485         `defined'.
96486
96487 2002-11-22  Paul Eggert  <eggert@twinsun.com>
96488
96489         * lib/quotearg.h: Allow multiple inclusion by surrounding with
96490         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
96491         so that we can be included first.
96492         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
96493         * lib/quotearg.c: Include quotearg.h immediately after config.h.
96494         No need to include stddef.h or sys/types.h any more.
96495         Surround local include files with "", not "<>".
96496         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
96497         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
96498         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
96499         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
96500         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
96501         (ISPRINT): Remove; no longer needed now that we assume C89.
96502
96503         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
96504         Preserve errno.
96505
96506         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
96507         quotearg_char): Use SIZE_MAX rather than
96508         (size_t) -1 when we are talking about "infinity".
96509
96510         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
96511
96512 2002-11-22  Paul Eggert  <eggert@twinsun.com>
96513
96514         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
96515         hint that one should use `if (! x) abort ();' rather than `assert
96516         (x);', and anyway it's one less thing to worry about configuring.
96517         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
96518         hash_rehash, hash_insert): Use abort rather than assert.
96519
96520 2002-11-22  Bruno Haible  <bruno@clisp.org>
96521
96522         * lib/safe-read.h: Assume C89. Add comments.
96523         (safe_read): Change return type to size_t.
96524         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
96525         byte counts > SSIZE_MAX correctly.
96526         * lib/safe-write.h: New file.
96527         * lib/safe-write.c: New file.
96528         * lib/full-read.h: New file.
96529         * lib/full-read.c: New file.
96530         * lib/full-write.h: Assume C89. Add comments.
96531         * lib/full-write.c: Include safe-write.h.
96532         (full_write): Rewritten to use safe_write.
96533         Suggested by Jim Meyering and Paul Eggert.
96534
96535 2002-11-21  Jim Meyering  <jim@meyering.net>
96536
96537         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
96538
96539         Merge in changes from the coreutils.
96540
96541         2002-09-25  Paul Eggert  <eggert@twinsun.com>
96542         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
96543         <stdint.h>.
96544         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
96545         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
96546         int.  Work more efficiently if X is the same width as uintmax_t.
96547         Do not compare X to -1, to avoid bogus compiler warning.
96548         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
96549         Don't assume that f_frsize and f_bsize are the same type.
96550
96551         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
96552         warning on FreeBSD.
96553
96554         * lib/makepath.c (make_path): Restore umask *before* creating the final
96555         component.
96556         (make_path): Minor reformatting.
96557
96558         * lib/xmalloc.c: Adjust to work with new autoconf macros,
96559         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
96560         HAVE_MALLOC/HAVE_REALLOC.
96561
96562         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
96563         dummy ones.  At least on GNU/Linux systems, `auto' means something
96564         else.
96565         From Michael Stone.
96566
96567 2002-11-21  Bruno Haible  <bruno@clisp.org>
96568
96569         Remove case insensitive option matching.
96570         * lib/argmatch.h (argcasematch): Remove declaration.
96571         (ARGCASEMATCH): Remove macro.
96572         (__xargmatch_internal): Remove case_sensitive argument.
96573         (XARGMATCH): Update.
96574         (XARGCASEMATCH): Remove macro.
96575         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
96576         case_sensitive argument.
96577         (argcasematch): Remove function.
96578         (__xargmatch_internal): Remove case_sensitive argument.
96579         (main): Use XARGMATCH instead of XARGCASEMATCH.
96580
96581         * lib/xmalloc.c: Change compile-time error message. Add comment about
96582         required autoconf version.
96583
96584 2002-11-20  Paul Eggert  <eggert@twinsun.com>
96585
96586         Merge argmatch cleanups from Bison.  Assume C89.
96587
96588         * lib/argmatch.c: Include config.h here, not in argmatch.h.
96589         Include stdlib.h, for EXIT_FAILURE.
96590         Always include <string.h>, since we assume C89.
96591         (EXIT_FAILURE): Remove pre-C89 bug workaround.
96592         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
96593         Include <stddef.h> instead, since it's all we need for size_t.
96594         (PARAMS): Remove.  All uses removed.
96595         (ARRAY_CARDINALITY): Do not bother to #undef.
96596         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
96597         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
96598         Remove unnecessary parentheses.
96599         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
96600         Insert necessary parentheses.
96601         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
96602         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
96603
96604 2002-11-19  Bruno Haible  <bruno@clisp.org>
96605
96606         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
96607         * lib/mbswidth.h: Include <stddef.h>, for size_t.
96608
96609         * lib/mbswidth.h (PARAMS): Remove macro.
96610         (mbswidth, mbsnwidth): Use ANSI C function declarations.
96611         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
96612
96613         * lib/gcd.h (PARAMS): Remove macro.
96614         (gcd): Use ANSI C function declarations.
96615         * lib/gcd.c (gcd): Likewise.
96616
96617 2002-11-15  Bruno Haible  <bruno@clisp.org>
96618
96619         * lib/strcspn.c: Include <stddef.h>.
96620         (strcspn): Use ANSI C function declaration. Change return type to
96621         size_t. Use NULL.
96622         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
96623         (strpbrk): Use NULL.
96624         * lib/strpbrk.h (PARAMS): Remove macro.
96625         (strpbrk): Use ANSI C function declaration.
96626         * lib/strstr.c: Don't include <sys/types.h>.
96627         * lib/strstr.h (PARAMS): Remove macro.
96628         (strstr): Use ANSI C function declarations.
96629
96630 2002-11-14  Karl Berry  <karl@gnu.org>
96631
96632         * config/mkinstalldirs: `do' on separate line, instead of
96633         `for var; do'.
96634
96635 2002-11-06  Bruno Haible  <bruno@clisp.org>
96636
96637         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
96638         * lib/gcd.c (gcd): Likewise.
96639
96640 2002-11-05  Bruno Haible  <bruno@clisp.org>
96641
96642         * lib/gcd.h: New file, from gettext-0.11.5.
96643         * lib/gcd.c: New file, from gettext-0.11.5.
96644
96645 2002-11-05  Bruno Haible  <bruno@clisp.org>
96646
96647         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
96648         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
96649         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
96650         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
96651
96652         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
96653         <libintl.h>.
96654         * lib/makepath.c: Include gettext.h instead of <locale.h> and
96655         <libintl.h>.
96656
96657         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
96658         * lib/human.c: Include gettext.h instead of <libintl.h>.
96659         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
96660         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
96661         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
96662         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
96663         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
96664         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
96665         (textdomain): Remove definition.
96666         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
96667
96668         * lib/long-options.c: Remove include of <libintl.h> and definition of
96669         _.
96670         * lib/same.c: Remove include of <libintl.h> and definition of _.
96671
96672 2002-11-04  Owen Taylor  <otaylor@redhat.com>
96673
96674         * lib/config.charset: A few additions for Solaris.
96675
96676 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
96677
96678         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
96679         * lib/localcharset.c (locale_charset): Declare as extern "C".
96680
96681 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
96682
96683         * lib/config.charset: msdos in uk_UA uses CP1125.
96684
96685 2002-11-04  Bruno Haible  <bruno@clisp.org>
96686
96687         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
96688         * lib/strcase.h: New file, from GNU gettext-0.11.5.
96689         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
96690         * lib/strstr.h: New file, from GNU gettext-0.11.5.
96691         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
96692
96693 2002-11-04  Bruno Haible  <bruno@clisp.org>
96694
96695         * lib/localcharset.c (locale_charset): Don't return an empty string.
96696
96697 2002-11-04  Bruno Haible  <bruno@clisp.org>
96698
96699         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
96700         aliases.
96701
96702 2002-11-04  Bruno Haible  <bruno@clisp.org>
96703
96704         * lib/config.charset: Update for newest glibc. Add canonical names
96705         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
96706
96707 2002-11-04  Bruno Haible  <bruno@clisp.org>
96708
96709         * lib/config.charset: Add support for NetBSD.
96710
96711 2002-11-04  Bruno Haible  <bruno@clisp.org>
96712
96713         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
96714
96715 2002-11-01  Bruno Haible  <bruno@clisp.org>
96716
96717         * configure.in: Add AC_CONFIG_AUX_DIR call.
96718         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
96719         test/Makefile.
96720         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
96721
96722 2002-09-28  Karl Berry  <karl@gnu.org>
96723
96724         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
96725         installed automake until the next release, since changes have been
96726         made.
96727
96728 2002-09-25  Karl Berry  <karl@gnu.org>
96729
96730         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
96731         * lib/getopt*: copy from libc/posix.
96732         * lib/gettext.h: copy from gettext.
96733         * lib/.cppi-disable: add strdup.c, gettext.h.
96734
96735 2002-09-25  Karl Berry  <karl@gnu.org>
96736
96737         * config/srclist.txt: enable gettext.h check.
96738         * config/config.{guess,sub}: update from prep.
96739         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
96740                 from automake 1.6.3.
96741         See srclist*.
96742
96743 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
96744
96745         * regex.c (PATFETCH): Remove the translating fetch.
96746         (PATFETCH_RAW): Rename to PATFETCH.
96747         (set_image_of_range): New fun.
96748         (SET_RANGE_TABLE_WORK_AREA): Use it.
96749         (regex_compile): Don't translate the pattern chars so eagerly.
96750         Only do it when inserting an `exactn' bytecode or when handling
96751         a char-range.
96752         (mutually_exclusive_p): Avoid empty statement.
96753
96754 2002-07-06  Jim Meyering  <meyering@lucent.com>
96755
96756         * m4/README: Don't mention Makefile.am.in.
96757         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
96758
96759 2002-07-01  Jim Meyering  <meyering@lucent.com>
96760
96761         * lib/c-stack.c: Include sys/time.h.
96762         From Volker Borchert.
96763
96764 2002-06-26  Paul Eggert  <eggert@twinsun.com>
96765
96766         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
96767
96768 2002-06-26  Paul Eggert  <eggert@twinsun.com>
96769
96770         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
96771         New macro.  Use it uniformly instead of
96772         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
96773         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
96774         reported by Vin Shelton.
96775
96776 2002-06-22  Paul Eggert  <eggert@twinsun.com>
96777
96778         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
96779         Do not assume SA_SIGINFO behavior.
96780         Bug reported by Jim Meyering on NetBSD 1.5.2.
96781
96782 2002-06-22  Jim Meyering  <meyering@lucent.com>
96783
96784         * m4/c-stack.m4: New file, from diffutils-2.8.2.
96785         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
96786
96787         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
96788         now that configure.ac uses AC_GNU_SOURCE.
96789         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
96790         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
96791
96792         Update to latest tools.  Suggestions from Paul Eggert.
96793         * m4/stdbool.m4: New file, from diffutils-2.8.2.
96794         * m4/gnu-source.m4: Update from diffutils-2.8.2.
96795         * m4/fnmatch.m4: Likewise.
96796         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
96797         to AC_HEADER_STDBOOL
96798
96799 2002-06-22  Jim Meyering  <meyering@lucent.com>
96800
96801         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
96802         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
96803
96804 2002-06-22  Jim Meyering  <meyering@lucent.com>
96805
96806         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
96807
96808         * lib/exitfail.c, exitfail.h: Likewise.
96809         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
96810
96811         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
96812         of fnmatch.h.
96813         (EXTRA_DIST): Add fnmatch_loop.c.
96814         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
96815
96816         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
96817         * lib/fnmatch.c: Update from diffutils-2.8.2.
96818         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
96819         * lib/fnmatch.h: Remove file.
96820
96821 2002-06-21  Jim Meyering  <meyering@lucent.com>
96822
96823         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
96824         * m4/mbrtowc.m4: Likewise.
96825
96826         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
96827         * m4/mbswidth.m4: Reflect name change:
96828         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
96829         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
96830
96831         * m4/lib-link.m4: Update from gettext-0.11.2.
96832         * m4/gettext.m4: Likewise.
96833
96834         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
96835         From Alfred M. Szmidt.
96836
96837 2002-06-18  Paul Eggert  <eggert@twinsun.com>
96838
96839         * lib/file-type.h: Report an error if neither S_ISREG nor
96840         S_IFREG is defined, instead of using a test specific to glibc
96841         2.2.  This should be safe, since POSIX requires S_ISREG and
96842         Unix Version 7 had S_IFREG.  We don't need to check for
96843         <sys/types.h> since we don't use any symbols that it defines.
96844
96845 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
96846
96847         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
96848         $@-t, so that each temporary file name is unique and valid in the first
96849         8 characters, for operation under DOS.
96850
96851 2002-06-15  Paul Eggert  <eggert@twinsun.com>
96852
96853         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
96854
96855 2002-06-15  Jim Meyering  <meyering@lucent.com>
96856
96857         Work even with DJGPP 2.03, which lacks support for symlinks.
96858         From Richard Dawe.
96859         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
96860         is defined.
96861         * lib/lchown.c (S_ISLNK): Likewise.
96862
96863 2002-06-15  Jim Meyering  <meyering@lucent.com>
96864
96865         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
96866         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
96867         have been included before this file.
96868
96869 2002-06-14  Jim Meyering  <meyering@lucent.com>
96870
96871         * lib/file-type.h: Use the version from diffutils-2.8.2.
96872         * lib/file-type.c: Likewise.
96873
96874 2002-06-07  Jim Meyering  <meyering@lucent.com>
96875
96876         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
96877         They're needed at least for NetBSD 1.5.2.
96878         ($statxfs_includes): Include those same headers.
96879         ($statxfs_includes): Include sys/vfs.h if available.
96880         ($statxfs_includes): Likewise for sys/statvfs.h.
96881         Check for the following members in both structs statfs and statvfs:
96882         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
96883
96884 2002-06-01  Jim Meyering  <meyering@lucent.com>
96885
96886         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
96887         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
96888
96889 2002-05-28  Jim Meyering  <meyering@lucent.com>
96890
96891         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
96892         Reported by Volker Borchert.
96893
96894 2002-05-27  Jim Meyering  <meyering@lucent.com>
96895
96896         Fix a problem seen only on nonconforming systems whereby ls.c's
96897         use of localtime, and then of gettimeofday would cause trouble:
96898         the localtime call used to initialize rpl_gettimeofday's save
96899         mechanism would clobber ls's current local time information so
96900         that in any long listing the first file would always be listed
96901         with date 1970-01-01.  Analysis by Volker Borchert.
96902
96903         * lib/gettimeofday.c (localtime): Undefine.
96904         (rpl_localtime): New function.
96905
96906 2002-05-27  Jim Meyering  <meyering@lucent.com>
96907
96908         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
96909         localtime.
96910
96911         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
96912         use the replacement function; it wouldn't resolve at link time.
96913         Reported by Volker Borchert.
96914
96915 2002-05-22  Jim Meyering  <meyering@lucent.com>
96916
96917         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
96918         file-type.h.
96919         * lib/file-type.h: New file.
96920         * lib/file-type.c (file_type): New file/function.  Extracted from
96921         diffutils.
96922
96923 2002-04-30  Jim Meyering  <meyering@lucent.com>
96924
96925         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
96926
96927 2002-04-29  Paul Eggert  <eggert@twinsun.com>
96928
96929         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
96930
96931 2002-04-29  Paul Eggert  <eggert@twinsun.com>
96932
96933         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
96934         Do not check for alloca.h (no longer used) or stdbool.h (was never
96935         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
96936
96937 2002-04-29  Paul Eggert  <eggert@twinsun.com>
96938
96939         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
96940
96941 2002-04-29  Jim Meyering  <meyering@lucent.com>
96942
96943         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
96944         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
96945         Use AC_FUNC_STRNLEN here instead.
96946
96947         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
96948         With autoconf-2.53a, it's part of AC_PROG_CC.
96949
96950 2002-04-28  Paul Eggert  <eggert@twinsun.com>
96951
96952         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
96953         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
96954
96955 2002-04-28  Paul Eggert  <eggert@twinsun.com>
96956
96957         * lib/sig2str.h, lib/sig2str.c: New files.
96958         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
96959
96960 2002-04-28  Paul Eggert  <eggert@twinsun.com>
96961
96962         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
96963         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
96964         of 127, since 64 is the largest conceivable number for ancient
96965         nonstandard hosts.
96966         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
96967
96968 2002-04-28  Jim Meyering  <meyering@lucent.com>
96969
96970         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
96971
96972 2002-04-24  Jim Meyering  <meyering@lucent.com>
96973
96974         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
96975         (jm_PREREQ): Use it.
96976
96977         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
96978         mach/mach.h fcntl.h.
96979         Check for this function: setlocale.
96980
96981 2002-04-24  Jim Meyering  <meyering@lucent.com>
96982
96983         * lib/gettext.h: New file, from Gettext.
96984         * lib/Makefile.am (INCLUDES): Remove -I../intl.
96985         (libfetish_a_SOURCES): Add gettext.h.
96986
96987 2002-04-16  Jim Meyering  <meyering@lucent.com>
96988
96989         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
96990         ut_pid, ut_id, ut_exit.
96991
96992 2002-04-16  Jim Meyering  <meyering@lucent.com>
96993
96994         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
96995         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
96996         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
96997
96998 2002-04-12  Jim Meyering  <meyering@lucent.com>
96999
97000         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
97001         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
97002         existence of the getmntinfo function.  Needed for Darwin 5.3.
97003
97004         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
97005         This is necessary at least on Darwin 5.3.
97006
97007         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
97008         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
97009         strnlen.o in the library, and that makes some versions of ranlib
97010         object.
97011
97012 2002-04-12  Jim Meyering  <meyering@lucent.com>
97013
97014         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
97015
97016 2002-04-09  Jim Meyering  <meyering@lucent.com>
97017
97018         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
97019         to be more precise.  Rather than saying we're checking whether the
97020         function `works', say what we're testing.
97021         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
97022         Reported by Bruno Haible.
97023
97024 2002-03-10  Jim Meyering  <meyering@lucent.com>
97025
97026         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
97027         Suggestion from Santiago Vila.
97028
97029 2002-03-08  Jim Meyering  <meyering@lucent.com>
97030
97031         * lib/rename.c: Mention that this wrapper is needed also on
97032         mips-dec-ultrix4.4 systems.
97033
97034 2002-03-02  Jim Meyering  <meyering@lucent.com>
97035
97036         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
97037         not HAVE_CLOCK_SETTIME.
97038
97039 2002-02-27  Paul Eggert  <eggert@twinsun.com>
97040
97041         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
97042         Check for clock_settime.
97043
97044 2002-02-27  Paul Eggert  <eggert@twinsun.com>
97045
97046         * lib/nanosleep.h: Rename to....
97047         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
97048
97049         * lib/gettime.c: New file.
97050         * lib/settime.c: New file.
97051         * lib/stime.c: Remove.
97052
97053         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
97054         timespec.h.  Remove nanosleep.h.
97055
97056 2002-02-25  Paul Eggert  <eggert@twinsun.com>
97057
97058         * m4/acl.m4: New file.
97059         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
97060         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
97061
97062 2002-02-25  Paul Eggert  <eggert@twinsun.com>
97063
97064         * lib/acl.c, lib/acl.h: New files.
97065         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
97066
97067 2002-02-24  Jim Meyering  <meyering@lucent.com>
97068
97069         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
97070         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
97071         cause trouble.  Reported by Nelson Beebe.
97072
97073 2002-02-23  Paul Eggert  <eggert@twinsun.com>
97074
97075         * lib/path-concat.c (xpath_concat): Reorder code to pacify
97076         compilers that don't know that xalloc_die never returns.
97077
97078 2002-02-20  Jim Meyering  <meyering@lucent.com>
97079
97080         * lib/getdate.c: Regenerate using bison-1.33.
97081
97082 2002-02-17  Jim Meyering  <meyering@lucent.com>
97083
97084         * config/config.guess (main): Don't use `head -1'; it's no longer
97085         portable. Use `sed 1q' instead.
97086
97087 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
97088
97089         * m4/codeset.m4: Upgrade to gettext-0.11.
97090         * m4/gettext.m4: Upgrade to gettext-0.11.
97091         * m4/glibc21.m4: Upgrade to gettext-0.11.
97092         * m4/iconv.m4: Upgrade to gettext-0.11.
97093         * m4/isc-posix.m4: Upgrade to gettext-0.11.
97094         * m4/lcmessage.m4: Upgrade to gettext-0.11.
97095         * m4/lib-ld.m4: New file, from gettext-0.11.
97096         * m4/lib-link.m4: New file, from gettext-0.11.
97097         * m4/lib-prefix.m4: New file, from gettext-0.11.
97098         * m4/progtest.m4: Upgrade to gettext-0.11.
97099
97100 2002-02-15  Paul Eggert  <eggert@twinsun.com>
97101
97102         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
97103         (jm_PREREQ): Use it.
97104
97105 2002-02-15  Paul Eggert  <eggert@twinsun.com>
97106
97107         * lib/posixver.c, lib/posixver.h: New files.
97108         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
97109
97110 2002-02-02  Paul Eggert  <eggert@twinsun.com>
97111             Bruno Haible  <bruno@clisp.org>
97112
97113         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
97114         (fwrite_success_callback): New declaration.
97115         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
97116         print_unicode_char. Call failure callback instead of error.
97117         (fwrite_success_callback): New function.
97118         (exit_failure_callback): New function.
97119         (fallback_failure_callback): New function.
97120         (print_unicode_char): Call unicode_to_mb.
97121
97122 2002-01-26  Jim Meyering  <meyering@lucent.com>
97123
97124         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
97125         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
97126
97127 2002-01-26  Jim Meyering  <meyering@lucent.com>
97128
97129         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
97130
97131 2002-01-22  Paul Eggert  <eggert@twinsun.com>
97132
97133         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
97134
97135 2002-01-22  Jim Meyering  <meyering@lucent.com>
97136
97137         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
97138         Otherwise, some versions of automake would omit the rule that makes
97139         Makefile from Makefile.in.
97140
97141 2002-01-21  Paul Eggert  <eggert@twinsun.com>
97142
97143         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
97144         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
97145         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
97146         (memcoll): Set errno to zero if there is no error.
97147
97148         * lib/quotearg.c (quotearg_buffer_restyled):
97149         Fix bug with quoting buffers containing NUL when backslashing escapes.
97150         This bug was exposed by the other changes in this patch.
97151         (quotearg_n_options): New arg ARGSIZE.
97152         All callers changed.
97153         (quoting_options_from_style): New function.
97154         (quotearg_n_style): Use it.
97155         (quotearg_n_style_mem): New function.
97156
97157         * lib/quotearg.h (quotearg_n_style_mem): New function.
97158
97159 2002-01-19  Jim Meyering  <meyering@lucent.com>
97160
97161         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
97162         Remove useless quotes: DF_PROG="df".
97163         * m4/strnlen.m4: New file.
97164
97165 2002-01-16  Paul Eggert  <eggert@twinsun.com>
97166
97167         * lib/backupfile.c (ISDIGIT): Comment fix.
97168         * lib/getdate.y (ISDIGIT): Likewise.
97169         * lib/posixtm.c (ISDIGIT, year): Likewise.
97170         * lib/strverscmp.c (ISDIGIT): Likewise.
97171         * lib/userspec.c (ISDIGIT): Likewise.
97172
97173 2002-01-16  Jim Meyering  <meyering@lucent.com>
97174
97175         * lib/getdate.y: Add three semicolons, each just before a closing
97176         brace. Bison (as of version 1.31) no longer papers over that mistake.
97177
97178 2002-01-05  Jim Meyering  <meyering@lucent.com>
97179
97180         * lib/version-etc.c (version_etc_copyright): Update copyright year.
97181
97182 2001-12-19  Paul Eggert  <eggert@twinsun.com>
97183
97184         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
97185         not silently exit merely because the output buffer happens to
97186         have nothing pending.
97187
97188 2001-12-18  Paul Eggert  <eggert@twinsun.com>
97189
97190         See the big note in ../ChangeLog.
97191         * lib/human.c (suffixes): Prefer K to k for 1024.
97192         (generate_suffix_backwards): New function.
97193         (human_readable_inexact): Use it.
97194         * lib/xstrtol.c (__xstrtol): If there is no number but there
97195         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
97196         Accept 'K' as well as 'k'.
97197
97198 2001-12-15  Jim Meyering  <meyering@lucent.com>
97199
97200         * lib/regex.h (__restrict_arr): Update from libc.
97201
97202         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
97203         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
97204         (STREQ): Define.
97205
97206 2001-12-14  Jim Meyering  <meyering@lucent.com>
97207
97208         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
97209         Suggestion from Bruno Haible.
97210
97211 2001-12-10  Jim Meyering  <meyering@lucent.com>
97212
97213         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
97214         xrealloc, Instead, include "xalloc.h".
97215         (initbuffer): Don't cast xmalloc return value to char*.
97216         (readline): Reword comment.
97217         Don't cast xrealloc return value to char*
97218         Return NULL, not 0.
97219
97220 2001-12-09  Jim Meyering  <meyering@lucent.com>
97221
97222         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
97223         about `signed and unsigned type in conditional expression'.
97224         * lib/posixtm.c (posix_time_parse): Likewise.
97225
97226         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
97227
97228         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
97229         to avoid a pedantic warning.
97230
97231         * lib/getstr.c: Don't include assert.h.
97232         (getstr): Remove warning-evoking assertions.
97233         Return -1 if offset parameter is out of bounds.
97234         Change the type of a local from int to size_t.
97235
97236         * lib/strftime.c (my_strftime_localtime_r): Include this function
97237         definition in the `#if ! HAVE_TM_GMTOFF' block.
97238
97239         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
97240         Include xalloc.h instead.
97241
97242 2001-12-02  Jim Meyering  <meyering@lucent.com>
97243
97244         * lib/tempname.c: Don't declare getenv, thus reverting the change of
97245         2001-11-18.  It's no longer necessary, now that stdlib.h is always
97246         included.
97247
97248         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
97249         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
97250
97251 2001-11-30  Akim Demaille  <akim@epita.fr>
97252
97253         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
97254         before being defined.
97255
97256 2001-11-27  Paul Eggert  <eggert@twinsun.com>
97257
97258         * lib/quotearg.h (quotearg_n, quotearg_n_style):
97259         First arg is int, not unsigned.
97260         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
97261         (SIZE_MAX, UINT_MAX): New macros.
97262         (quotearg_n_options): Abort if N is negative.
97263         Avoid overflow check on hosts where size_t is 64 bits and int
97264         is 32 bits, as overflow is impossible there.
97265         Fix off-by-one typo that caused unnecessary reallocation.
97266
97267 2001-11-27  Jim Meyering  <meyering@lucent.com>
97268
97269         * lib/tempname.c: Merge with version from libc.
97270         * lib/regex.c: Likewise.
97271
97272         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
97273         systems for which STDC_HEADERS is 0, it was not included, resulting in
97274         a warning about an integer-to-pointer conversion problem with getenv.
97275         Reported by Volker Borchert.
97276
97277 2001-11-26  Jim Meyering  <meyering@lucent.com>
97278
97279         * lib/gtod.h: Remove file.
97280         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
97281         * lib/gettimeofday.c: Don't include gtod.h.
97282         (GTOD_init): Remove function.
97283         (rpl_gettimeofday): Do its job here instead, rather than aborting.
97284         Suggestion from Volker Borchert.
97285
97286 2001-11-23  Jim Meyering  <meyering@lucent.com>
97287
97288         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
97289         it.
97290         * lib/hash.c (struct hash_table): Define it here instead.
97291
97292 2001-11-22  Jim Meyering  <meyering@lucent.com>
97293
97294         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
97295
97296 2001-11-20  Jim Meyering  <meyering@lucent.com>
97297
97298         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
97299         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
97300
97301 2001-11-19  Jim Meyering  <meyering@lucent.com>
97302
97303         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
97304         directory.  Use "conftestXXXXXX" as the template.
97305         Suggestion from Paul Eggert.
97306
97307         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
97308         immediately, so the test doesn't mistakenly hit the max-open-files
97309         limit.
97310
97311 2001-11-18  Paul Eggert  <eggert@twinsun.com>
97312
97313         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
97314         (TEMPORARIES): New macro.
97315         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
97316         removes an artificial limitation (e.g. HP-UX 10.20, where
97317         TMP_MAX is 17576).
97318
97319 2001-11-18  Jim Meyering  <meyering@lucent.com>
97320
97321         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
97322
97323 2001-11-18  Jim Meyering  <meyering@lucent.com>
97324
97325         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
97326         on SunOS 4.
97327
97328         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
97329         files will be created before anything else.
97330
97331 2001-11-17  Paul Eggert  <eggert@twinsun.com>
97332
97333         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
97334         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
97335
97336 2001-11-17  Jim Meyering  <meyering@lucent.com>
97337
97338         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
97339         Prompted by a report from Bob Proulx.
97340
97341         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
97342         Instead, require UTILS_FUNC_MKSTEMP.
97343
97344 2001-11-17  Jim Meyering  <meyering@lucent.com>
97345
97346         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
97347         Now, that's done as part of AC_FUNC_STRTOD.
97348
97349 2001-11-17  Jim Meyering  <meyering@lucent.com>
97350
97351         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
97352         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
97353         rather than group writable.  Patch by Juan F. Codagnone.
97354
97355         * lib/readtokens.c: Remove explicit declarations of xmalloc and
97356         xrealloc, Instead, include "xalloc.h".
97357
97358         * lib/mountlist.c: Include unlocked-io.h after all system headers.
97359         Remove explicit declarations of xmalloc, xrealloc,
97360         and xstrdup.  Instead, include "xalloc.h".
97361
97362         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
97363         unlocked-io.h.
97364         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
97365         Likewise.
97366         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
97367
97368         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
97369         Reported by Padraig Brady.
97370
97371         * lib/mkstemp.c: #undef mkstemp.
97372         Include config.h.
97373         (rpl_mkstemp): Rename from mkstemp.
97374         Protoize.
97375
97376 2001-11-16  Jim Meyering  <meyering@lucent.com>
97377
97378         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
97379         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
97380         determine the amount of total physical memory, use pstat_getstatic.
97381         HPUX-11 doesn't define _SC_PHYS_PAGES.
97382         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
97383         If sysconf couldn't be used to determine the amount of available
97384         physical memory, use both pstat_getstatic and pstat_getdynamic.
97385         Based on a patch from Bob Proulx.
97386
97387 2001-11-10  Jim Meyering  <meyering@lucent.com>
97388
97389         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
97390         (jm_PREREQ): Use it.
97391
97392 2001-11-09  Jim Meyering  <meyering@lucent.com>
97393
97394         * m4/jm-macros.m4: Require autoconf-2.52f.
97395         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
97396         Use these AC_-prefixed names, not the AM_-prefixed ones.
97397
97398         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
97399
97400 2001-11-05  Jim Meyering  <meyering@lucent.com>
97401
97402         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
97403
97404 2001-11-04  Jim Meyering  <meyering@lucent.com>
97405
97406         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
97407         $DEFS.
97408
97409 2001-11-03  Jim Meyering  <meyering@lucent.com>
97410
97411         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
97412         of AC_DEFUN.
97413
97414         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
97415         know the name of the variable in the macro definition.
97416
97417 2001-11-03  Jim Meyering  <meyering@lucent.com>
97418
97419         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
97420         in argmatch_to_argument call.
97421
97422         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
97423         argument.
97424
97425         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
97426         e.g., a fault due to an attempt to free a NULL pointer.
97427
97428 2001-11-01  Jim Meyering  <meyering@lucent.com>
97429
97430         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
97431         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
97432
97433 2001-11-01  Jim Meyering  <meyering@lucent.com>
97434
97435         * lib/dirfd.c, lib/dirfd.h: New files.
97436         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
97437
97438         * lib/hash.c (hash_print) [TESTING]: Clean up.
97439
97440 2001-10-22  Paul Eggert  <eggert@twinsun.com>
97441
97442         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
97443         to avoid a warning if -Wall.
97444
97445 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
97446
97447         * README: New file
97448         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
97449         (per RMS's instructions, this is now the canonical source)
97450         * lgpl/, gpl/: New directories.
97451
97452 2001-10-21  Paul Eggert  <eggert@twinsun.com>
97453
97454         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
97455
97456 2001-10-21  Jim Meyering  <meyering@lucent.com>
97457
97458         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
97459         this code would end up calling gettext even in packages built
97460         with --disable-nls.
97461         * lib/getopt.c (_): Likewise.
97462         * lib/regex.c (_): Likewise.
97463
97464 2001-10-20  Paul Eggert  <eggert@twinsun.com>
97465
97466         * m4/error.m4 (jm_PREREQ_ERROR):
97467         Do not invoke AC_CHECK_FUNCS with strerror_r, as
97468         AC_FUNC_STRERROR_R does that.
97469         Check for strerror declaration.
97470
97471         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
97472         are supposed to have them these days.
97473         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
97474         Merge changes from latest Autoconf CVS.
97475         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
97476         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
97477         POSIX decided to standardize on the int flavor of strerror_r.
97478
97479 2001-10-20  Paul Eggert  <eggert@twinsun.com>
97480
97481         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
97482         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
97483         Use strerror_r that is only a macro, even if it is not a function.
97484         (strerror): Check for HAVE_DECL_STRERROR before declaring.
97485         (private_strerror): Use prototypes, not old-style function definition.
97486         (print_errno_message): New function.
97487         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
97488         char*-flavored one.
97489         (error_tail, error, error_at_line): Use it.
97490
97491 2001-10-11  Jim Meyering  <meyering@lucent.com>
97492
97493         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
97494         and quote_n (1, ... to avoid clobbering a buffer.
97495
97496 2001-10-05  Jim Meyering  <meyering@lucent.com>
97497
97498         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
97499         hash-pjw.h.
97500         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
97501         * lib/hash-pjw.h: New file.
97502
97503 2001-09-30  Jim Meyering  <meyering@lucent.com>
97504
97505         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
97506         `struct fsstat' has the `f_fstypename' member.
97507         Use that to define FS_TYPE, which is now used to make
97508         the getfsstat link test tighter.
97509
97510 2001-09-30  Jim Meyering  <meyering@lucent.com>
97511
97512         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
97513         Include <sys/ucred.h>, for Apple Darwin.
97514         Include sys/mount.h and sys/fs_types.h only if available.
97515         (FS_TYPE): Define.
97516         (read_filesystem_list): Use FS_TYPE.
97517
97518 2001-09-29  Paul Eggert  <eggert@twinsun.com>
97519
97520         * lib/exclude.c (excluded_filename): 0 -> false, since it's
97521         a boolean context.
97522
97523 2001-09-29  Jim Meyering  <meyering@lucent.com>
97524
97525         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
97526         [one-argument getmntent function]): Include stdio.h before mntent.h.
97527         SunOS 4.1.x needs it for the declaration of `FILE'.
97528         Patch by Volker Borchert.
97529
97530         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
97531         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
97532         sys/fs_types.h, and make the link-test for getfsstat guard #include
97533         directives with appropriate #if HAVE_*_H tests so that we can
97534         detect getfsstat on Apple Darwin1.3.7 systems.
97535         Reported by Nelson Beebe.
97536         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
97537
97538 2001-09-28  Paul Eggert  <eggert@twinsun.com>
97539
97540         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
97541         #defines strtoimax.  Also treat the other strto* functions
97542         like strtoimax.
97543
97544         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
97545         Check for strtoul and strtoumax,
97546         as those declarations are made even in the signed case.
97547         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
97548         Likewise, for strtol and strtoimax.
97549
97550 2001-09-28  Paul Eggert  <eggert@twinsun.com>
97551
97552         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
97553         #defines strtoimax.  Also treat the other strto* functions
97554         like strtoimax.
97555
97556         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
97557         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
97558         (strtoimax, strtoumax): Do not declare if already defined as a macro.
97559
97560 2001-09-26  Jim Meyering  <meyering@lucent.com>
97561
97562         Most macros in unlocked-io.h had the wrong number of arguments.
97563         * lib/gen-uio: New script.
97564         (USE_UNLOCKED_IO): Define to 1 if not already defined.
97565         * lib/unlocked-io.hin: Remove file.
97566         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
97567         rather than trying to embed it here.
97568         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
97569         Reported by Padraig Brady.
97570
97571 2001-09-25  Volker Borchert  <bt@teknon.de>
97572
97573         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
97574         `result'.
97575
97576 2001-09-24  Jim Meyering  <meyering@lucent.com>
97577
97578         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
97579
97580 2001-09-23  Jim Meyering  <meyering@lucent.com>
97581
97582         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
97583         instead of the mere test for existence of mntent.h.  The latter
97584         would get a false-positive on AIX 3.4 systems.
97585         In the outer getmntent if-block, don't die if neither of the getmntent
97586         tests succeeds.  Instead, just fall through and continue with the
97587         remaining tests.
97588
97589 2001-09-23  Jim Meyering  <meyering@lucent.com>
97590
97591         * lib/mountlist.c: Remove useless parentheses in #if directives.
97592         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
97593         the deprecated MOUNTED symbol is no longer defined in mntent.h.
97594
97595 2001-09-22  Jim Meyering  <meyering@lucent.com>
97596
97597         * m4/gettext.m4: New file.  From gettext.
97598         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
97599         * m4/progtest.m4: Likewise
97600         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
97601         * m4/glibc21.m4: Likewise.
97602
97603         * m4/libintl.m4: Remove.  No longer used.
97604
97605 2001-09-22  Jim Meyering  <meyering@lucent.com>
97606
97607         * lib/localcharset.c: Update from latest gettext.
97608         * lib/config.charset: Likewise.
97609
97610 2001-09-20  Jim Meyering  <meyering@lucent.com>
97611
97612         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
97613         strtoimax.
97614         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
97615         strtoumax.
97616
97617 2001-09-20  Jim Meyering  <meyering@lucent.com>
97618
97619         * lib/xstrtol.c (strtoimax): Guard declaration with
97620         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
97621         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
97622         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
97623         (strtoumax): Likewise, for completeness (it wasn't necessary).
97624
97625 2001-09-17  Paul Eggert  <eggert@twinsun.com>
97626
97627         * lib/strtoimax.c (HAVE_LONG_LONG):
97628         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
97629         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
97630         to work around bug in IBM C compiler.
97631
97632 2001-09-17  Jim Meyering  <meyering@lucent.com>
97633
97634         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
97635         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
97636         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
97637         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
97638         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
97639         whenever the right hand side need not be expanded by the shell.
97640
97641 2001-09-16  Paul Eggert  <eggert@twinsun.com>
97642
97643         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
97644         library.  It's not correct, as some older glibcs are buggy.
97645         fnmatch wasn't fixed until glibc 2.2.
97646
97647         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
97648         special shell magic here.
97649
97650 2001-09-16  Jim Meyering  <meyering@lucent.com>
97651
97652         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
97653         * m4/jm-macros.m4: Require it.
97654
97655 2001-09-16  Jim Meyering  <meyering@lucent.com>
97656
97657         * lib/mkdir.c: New file.
97658
97659 2001-09-15  Jim Meyering  <meyering@lucent.com>
97660
97661         * m4/jm-macros.m4: Check for help2man.
97662
97663 2001-09-11  Jim Meyering  <meyering@lucent.com>
97664
97665         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
97666         The body, by Paul Eggert, was moved here from configure.in.
97667         * m4/jm-macros.m4: Require UTILS_HOST_OS.
97668
97669 2001-09-04  Paul Eggert  <eggert@twinsun.com>
97670
97671         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
97672         (jm_PREREQ): Use it.
97673
97674 2001-09-04  Paul Eggert  <eggert@twinsun.com>
97675
97676         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
97677         Use ssize_t, not int, to store result of readlink.
97678         Check for ssize_t overflow as well as size_t overflow,
97679         as POSIX says the result of readlink is implementation-defined
97680         when ssize_t overflows.
97681         Remove unnecessary cast to char*.
97682         Use free+malloc instead of realloc, as the storage doesn't need
97683         to be preserved and it's clearer and can be more efficient that way.
97684         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
97685         * lib/xreadlink.h (xreadlink): Update prototype.
97686
97687 2001-09-04  Paul Eggert  <eggert@twinsun.com>
97688
97689         * lib/xgetcwd.c: Revert some of the previous change; intead,
97690         fix the HAVE_GETCWD_NULL code to behave more like the
97691         !HAVE_GETCWD_NULL code used to.
97692
97693         Include "xalloc.h".
97694         (xgetcwd): Do not return NULL when memory is exhausted; instead,
97695         invoke xalloc_die.
97696
97697 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97698
97699         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
97700         sys/param.h, as pathmax.h includes them.
97701
97702 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97703
97704         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
97705         (jm_PREREQ_XGETCWD): New macro.
97706
97707         * m4/getcwd.m4: New file.
97708
97709 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97710
97711         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
97712         like the HAVE_GETCWD_NULL code.
97713         Include pathmax.h if not HAVE_GETCWD.
97714         Do not include xalloc.h.
97715         (INITIAL_BUFFER_SIZE): New symbol.
97716         Do not use xmalloc / xrealloc, since the caller is responsible for
97717         handling errors.  Preserve errno around `free' during failure.
97718         Do not overrun buffer when using getwd.
97719
97720 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97721
97722         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
97723         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
97724         getcwd (NULL, 0).
97725
97726 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97727
97728         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
97729         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
97730         spotted by Jim Meyering.
97731
97732 2001-09-03  Jim Meyering  <meyering@lucent.com>
97733
97734         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
97735         failure.
97736
97737 2001-09-02  Jim Meyering  <meyering@lucent.com>
97738
97739         * lib/error.c: Update from GNU libc.
97740
97741 2001-09-01  Jim Meyering  <meyering@lucent.com>
97742
97743         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
97744         Used by df.
97745
97746 2001-09-01  Jim Meyering  <meyering@lucent.com>
97747
97748         * lib/xreadlink.c: New file.
97749         * lib/xreadlink.h: New file.
97750         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
97751         xreadlink.h.
97752
97753         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
97754         doesn't conflict with sparc Solaris 7's definition in
97755         /usr/include/sys/int_types.h.
97756
97757         * lib/exclude.c: Use `""', not `<>' to #include non-system header
97758         files.
97759         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
97760         and strncasecmp as r-values.  Unixware didn't have declarations.
97761
97762 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97763
97764         * lib/xstrtol.h: Add copyright notice.
97765         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
97766         LONGINT_INVALID_SUFFIX_CHAR.
97767
97768 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97769
97770         * lib/xstrtol.c (strtoimax): New decl.
97771
97772 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97773
97774         * lib/xgetcwd.c: Don't include pathmax.h.
97775         Include stdlib.h and unistd.h if available.
97776         Include xalloc.h.
97777         (xmalloc, xstrdup, free): Remove decls.
97778         (xgetcwd): Don't assume sizes fit in unsigned.
97779         Check for overflow when computing sizes.
97780         Simplify reallocation code.
97781
97782 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97783
97784         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
97785         a directory's st_size can have an arbitrary value, so the old
97786         usage could waste an arbitrary amount of memory.  All uses
97787         changed.
97788         * lib/savedir.h: Update prototype.
97789
97790 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97791
97792         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
97793
97794         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
97795         old strtoimax.c.
97796
97797         Also, make the following further changes to make this file's
97798         configuration more similar to that of strtol.c:
97799         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
97800         (strtoumax, uintmax_t, strtoull, strtol): Remove.
97801         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
97802         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
97803         changed to signed values.
97804
97805         And make the following changes as well:
97806         Fix copyright notice, as 1999 was missing.
97807         (verify): New macro.
97808         (strtoimax): Check sizes at compile-time, not run-time.
97809         Prefer strtol to strtoll if both work.
97810         (main): Remove; it was not that useful and was a pain to maintain.
97811
97812         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
97813
97814 2001-08-31  Jim Meyering  <meyering@lucent.com>
97815
97816         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
97817         Use an initial, malloc'd, buffer of length 128 rather than
97818         a statically allocated one of length 1024.
97819
97820 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97821
97822         Simplify code, partly by assuming autoconf 2.52 semantics.
97823
97824         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
97825
97826         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
97827         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
97828         All uses removed.
97829         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
97830         Move AC_REQUIRE to next-to-top level, to avoid confusion.
97831         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
97832         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
97833         jm_AC_HEADER_INTTYPES_H.
97834         * m4/jm-macros.m4 (jm_MACROS): Likewise.
97835
97836         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
97837
97838         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
97839         Quote first arg of AC_DEFUN.
97840         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
97841         since they are needed to parse the include file even if we need
97842         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
97843         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
97844         but with opposite signedness.
97845
97846 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97847
97848         Merge 'exclude' changes from tar 1.13.22.
97849         This fixes one or two unlikely storage allocation overflow bugs,
97850         but doesn't change user-visible behavior otherwise.
97851
97852 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97853
97854         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
97855         (jm_PREREQ_EXCLUDE): New macro.
97856
97857 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97858
97859         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
97860         tm to be declared.
97861
97862 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97863
97864         * lib/hash.c: Remove '2001' from copyright notice.
97865
97866 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97867
97868         * lib/full-write.h: New file.
97869         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
97870         * lib/full-write.c: Correct credits, as cccp.c no longer
97871         exists and anyway it was so heavily changed from the old cccp
97872         code as to be unrecognizable.  Include full-write.h.
97873         (full_write): Return size_t, with short writes meaning failure.
97874         All callers changed.  This fixes a bug with large buffers
97875         on 64-bit hosts.
97876         * lib/utime.c: Include full-write.h.
97877
97878 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97879
97880         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
97881         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
97882         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
97883         Include if available.
97884         (<xalloc.h>): Include
97885         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
97886         (verify): New macro.  Use it to verify that EXCLUDE macros do not
97887         collide with FNM macros.
97888         (struct patopts): New struct.
97889         (struct exclude): Use it, as exclude patterns now come with options.
97890         (new_exclude): Support above changes.
97891         (new_exclude, add_exclude_file):
97892         Initial size must now be a power of two to simplify overflow checking.
97893         (free_exclude, fnmatch_no_wildcards): New function.
97894         (excluded_filename): No longer requires options arg, as the options
97895         are determined by add_exclude.  Now returns bool, not int.
97896         (excluded_filename, add_exclude):
97897         Add support for the fancy new exclusion options.
97898         (add_exclude, add_exclude_file): Now takes int options arg.
97899         Check for arithmetic overflow when computing sizes.
97900         (add_exclude_file): xrealloc might modify errno, so don't
97901         realloc until after errno might be used.
97902
97903         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
97904         New macros.
97905         (free_exclude): New decl.
97906         (add_exclude, add_exclude_file): Now takes int options arg.
97907         (excluded_filename): No longer requires options arg, as the options
97908         are determined by add_exclude.  Now returns bool, not int.
97909
97910 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97911
97912         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
97913
97914 2001-08-27  Jim Meyering  <meyering@lucent.com>
97915
97916         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
97917
97918         * lib/version-etc.c (N_): Remove definition.
97919         Revert most of last change.
97920         Instead, simply don't mark the `Copyright...' string for translation.
97921         Based on advice from Paul Eggert.
97922
97923         * lib/strtoxmax.c: Tweak comment.
97924
97925 2001-08-26  Jim Meyering  <meyering@lucent.com>
97926
97927         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
97928
97929         * m4/xstrtoimax.m4: New file.
97930         * m4/xstrtoumax.m4: Add comments explaining why we
97931         AC_REPLACE_FUNCS(strtol).
97932
97933 2001-08-26  Jim Meyering  <meyering@lucent.com>
97934
97935         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
97936         of copyright with `%s' so translators don't get an untranslated
97937         message in 2002.
97938         (COPYRIGHT_YEAR): Define.
97939         (version_etc): Use fprintf rather than fputs.
97940         Suggestion from Ulrich Drepper.
97941
97942         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
97943
97944         * lib/strtoll.c: New file, from GNU libc.
97945         * lib/xstrtoimax.c: New file.
97946
97947         * lib/xstrtol.h: Add xstrtoimax.
97948         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
97949         * lib/strtoimax.c: New file.  Likewise, but first define
97950         STRTOUXMAX_SIGNED.
97951
97952         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
97953         ...
97954         * lib/strtoxmax.c: ... then renamed to this.
97955
97956 2001-08-18  Paul Eggert  <eggert@twinsun.com>
97957
97958         * m4/inttypes.m4: Add AC_PREREQ(2.13).
97959         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
97960         (jm_AC_TYPE_INTMAX_T): New macro.
97961         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
97962
97963         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
97964
97965         * m4/longlong.m4: Renamed from ulonglong.m4.
97966         * m4/inttypes.m4: Renamed from inttypes_h.m4.
97967         * m4/uintmax_t.m4: Removed.
97968
97969 2001-08-13  Paul Eggert  <eggert@twinsun.com>
97970
97971         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
97972         Port to Solaris 8, where 'sed' requires a space after the 'r'
97973         command, and where sh dislikes "$/".  Clean up the spacing a bit.
97974         Redirect output to $tmp just once.
97975
97976 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
97977
97978         * lib/addext.c (<errno.h>): Include.
97979         (errno): Declare if not defined.
97980         (addext): Work correctly when pathconf returns -1 and leaves
97981         errno alone because there is no limit.  Also, work even if
97982         pathconf returns a value greater than SIZE_MAX.
97983
97984 2001-08-12  Jim Meyering  <meyering@lucent.com>
97985
97986         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
97987         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
97988         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
97989         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
97990         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
97991         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
97992         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
97993         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
97994         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
97995         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
97996         utime.m4, utimes.m4, xstrtoumax.m4:
97997         Quote the first argument in each use of AC_DEFUN.
97998
97999 2001-08-12  Jim Meyering  <meyering@lucent.com>
98000
98001         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
98002         Simply `return getcwd (NULL, 0);'.
98003         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
98004         Use 1300 as initial value for length, not PATH_MAX.
98005
98006         * lib/pathmax.h: Clean up cpp syntax.
98007
98008 2001-08-12  Jim Meyering  <meyering@lucent.com>
98009
98010         * lib/gettimeofday.c: New file.
98011         * lib/gtod.h: New file.
98012         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
98013
98014 2001-08-05  Jim Meyering  <meyering@lucent.com>
98015
98016         * m4/jm-macros.m4: Require autoconf-2.52.
98017
98018 2001-08-04  Jim Meyering  <meyering@lucent.com>
98019
98020         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
98021         stmt, to get in sync with glibc.
98022
98023 2001-08-03  Paul Eggert  <eggert@twinsun.com>
98024
98025         The following changes are from gettext 0.10.39 as maintained by
98026         Bruno Haible.
98027
98028         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
98029         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
98030         with inverted sense.  All uses changed.
98031
98032         * lib/mbswidth.c: Don't include <limits.h>.
98033         Include <stdlib.h> and <string.h> unconditionally.
98034         (iswcntrl, mbsinit, ISCNTRL): New macros.
98035         (mbsnwidth): Use K&R style function declarations.
98036         Don't bother checking for MB_LEN_MAX == 1, since the compiler
98037         can optimize it when MB_CUR_MAX == 1.
98038         The width of control characters is zero, not 1.
98039
98040 2001-08-03  Paul Eggert  <eggert@twinsun.com>
98041
98042         The following changes are from gettext 0.10.39 as maintained by
98043         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
98044
98045         * m4/codeset.m4: Upgrade to serial AM1.
98046         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
98047         all uses changed.  Quote first arg of AC_DEFUN.
98048         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
98049
98050         * m4/iconv.m4: Upgrade to serial AM2.
98051         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
98052         Add --with-libconv-prefix.
98053         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
98054         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
98055         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
98056         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
98057         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
98058
98059         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
98060         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
98061         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
98062         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
98063         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
98064         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
98065         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
98066         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
98067         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
98068
98069         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
98070         string.h any more.
98071
98072         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
98073         not the default value.
98074
98075         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
98076         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
98077         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
98078         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
98079         Also check for iswcntrl, used for wcwidth fallback.
98080         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
98081         to Autoconf 2.13.
98082
98083 2001-08-03  Jim Meyering  <meyering@lucent.com>
98084
98085         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
98086         as it was in the original.  Reported by Paul Eggert.
98087
98088 2001-07-16  Jim Meyering  <meyering@lucent.com>
98089
98090         * m4/gettimeofday.m4: New file.
98091         Prompted by a report from Bernhard Baehr.
98092
98093 2001-07-15  Jim Meyering  <meyering@lucent.com>
98094
98095         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
98096         stuff. Now it's in ../Makefile.cfg.
98097
98098 2001-07-15  Jim Meyering  <meyering@lucent.com>
98099
98100         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
98101         (BUILT_SOURCES): Add unlocked-io.h.
98102         (io_functions): Define.
98103         (unlocked-io.h): New rule.
98104         (DISTCLEANFILES): Add unlocked-io.h.
98105         (all-local): Depend on unlocked-io.h, to ensure it is created.
98106
98107         * lib/unlocked-io.hin: New file
98108
98109         * lib/regex.c: Update from glibc.
98110
98111 2001-07-05  Jim Meyering  <meyering@lucent.com>
98112
98113         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
98114         recommendation.
98115         (libfetish_a_SOURCES): Put all .h files here instead.
98116         Remove a thus-exposed (better checks in automake) duplicate and
98117         two unnecessary .h files.
98118
98119 2001-07-04  Jim Meyering  <meyering@lucent.com>
98120
98121         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
98122         that generates jm-glibc-io.m4 so that it doesn't trigger any make
98123         distcheck failure.
98124
98125 2001-07-02  Jim Meyering  <meyering@lucent.com>
98126
98127         The following changes were prompted by suggestions from Bruno Haible.
98128
98129         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
98130         is now generated.
98131         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
98132         definition of EXTRA_DIST.
98133         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
98134         ensure that the generated file is created/updated whenever the list
98135         of $(unlocked_functions) is changed.
98136         (jm-glibc-io.m4): New rule.
98137         (unlocked-io.h): New rule -- currently unused.
98138
98139 2001-06-24  Jim Meyering  <meyering@lucent.com>
98140
98141         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
98142         unmatched right bracket, rather than kludging it with an extra,
98143         falsely-matching quote in a comment.  Patch by Akim Demaille.
98144
98145 2001-06-11  Jim Meyering  <meyering@lucent.com>
98146
98147         * lib/regex.c: Update from GNU libc.
98148
98149 2001-05-27  Jim Meyering  <meyering@lucent.com>
98150
98151         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
98152         Check for ut_type in struct utmp.
98153
98154 2001-05-27  Jim Meyering  <meyering@lucent.com>
98155
98156         * lib/readutmp.h (UT_TYPE): Define.
98157
98158 2001-05-24  Jim Meyering  <meyering@lucent.com>
98159
98160         * lib/argmatch.c: Include "quote.h".
98161         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
98162         quote function.  Reported by Göran Uddeborg.
98163
98164 2001-05-22  Jim Meyering  <meyering@lucent.com>
98165
98166         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
98167         now that we use the package-supplied version unconditionally.
98168         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
98169
98170 2001-05-21  Jim Meyering  <meyering@lucent.com>
98171
98172         * m4/regex.m4: Change a couple backticks to single quotes to avoid
98173         shell syntax errors.
98174
98175 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
98176
98177         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
98178
98179 2001-05-20  Paul Eggert  <eggert@twinsun.com>
98180
98181         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
98182         Don't bother to check library strftime, since
98183         we'll be using our own my_strftime function anyway.
98184         Define my_strftime instead of strftime.
98185
98186 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
98187
98188         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
98189         which is not yet declared.
98190
98191 2001-05-15  Jim Meyering  <meyering@lucent.com>
98192
98193         * m4/regex.m4: Use proper quoting so brackets appear in the test
98194         program.
98195         Reported by, and with help from, Bruno Haible.
98196
98197 2001-05-13  Jim Meyering  <meyering@lucent.com>
98198
98199         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
98200         undefined.
98201
98202 2001-05-11  Paul Eggert  <eggert@twinsun.com>
98203
98204         dirname code cleanup.  base_name now behaves more compatibly
98205         with POSIX basename when given file names that have trailing
98206         slashes, and similarly for dir_name.  Add new primitives
98207         base_len and dir_len.  Put the directory-name-related decls
98208         into dirname.h.
98209
98210         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
98211         * lib/backupfile.c (base_name): Likewise.
98212         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
98213         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
98214         * lib/makepath.c (strip_trailing_slashes): Likewise.
98215         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
98216         ISSLASH): Likewise.
98217         * lib/rename.c (strip_trailing_slashes): Likewise.
98218         * lib/same.c (base_name): Likewise.
98219         * lib/stripslash.c (ISSLASH): Likewise.
98220
98221         * lib/addext.c: Include <dirname.h> after size_t is defined.
98222         * lib/backupfile.c: Likewise.
98223
98224         * lib/addext.c (addext): Use base_len to trim redundant
98225         trailing slashes instead of doing it ourselves.
98226         But do not trim the last slash if it is not redundant.
98227
98228         * lib/backupfile.c (find_backup_file_name,
98229         max_backup_version): Use base_len instead of rolling it ourselves.
98230         Handle the case of "" and (on DOS) "C:" correctly.
98231
98232         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
98233         needed. Include <string.h>, <dirname.h>.
98234         (base_name): Allow file names ending in slashes, other than names
98235         that are all slashes.  In this case, return the basename followed
98236         by the slashes.  This is more general, and can be used in places
98237         where the original base_name purposely had an assertion failure.
98238         (base_len): New function.
98239
98240         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
98241         Do not include <assert.h>; no longer needed.
98242         Include xalloc.h.
98243         (memrchr): Remove decl.
98244         (dir_name_r): Remove.
98245         (dir_len): Renamed from dirlen.  All callers changed.
98246         Rewrite in terms of base_name, for simplicity and consistency.
98247         (dir_name): Never return NULL.  All callers changed.
98248         Do not include <stdlib.h> in test program; no longer needed.
98249         return 0; is fine for test program.
98250
98251         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
98252         New macros.
98253         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
98254
98255         * lib/path-concat.c (path_concat): Use base_len to compute
98256         base length, not strlen; this means we cannot rely on memcpy
98257         to null-terminate.
98258
98259         * lib/same.c (STREQ): Remove.
98260         (same_name): Handle the case where the basename ends in trailing '/'.
98261
98262         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
98263         a slash was stripped.  Do not strip the last slash after a
98264         file system prefix.
98265
98266 2001-05-11  Paul Eggert  <eggert@twinsun.com>
98267
98268         * lib/Makefile.am (libfetish_a_SOURCES):
98269         Add strftime.c, since we now compile it on all hosts.
98270
98271         * lib/strftime.c (my_strftime):
98272         Define to nstrftime if emacs, but only if my_strftime is not defined.
98273         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
98274         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
98275         Add one more extra argument: a nanoseconds value.
98276         All uses changed.
98277         (ns): New macro.
98278         (my_strftime function): Add %N format.
98279         (emacs_strftimeu): Renamed from emacs_strftime,
98280         with extra ut argument.
98281
98282 2001-05-09  Paul Eggert  <eggert@twinsun.com>
98283
98284         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
98285
98286 2001-04-21  Jim Meyering  <meyering@lucent.com>
98287
98288         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
98289         doesn't interfere.
98290
98291 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
98292
98293         * m4/ftruncate.m4: Check for chsize.
98294         Link with ftruncate.o unconditionally if ftruncate is missing.
98295         This was required when cross-compiling to i586-mingw32msvc.
98296
98297 2001-04-08  Jim Meyering  <meyering@lucent.com>
98298
98299         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
98300         recomputed; that's necessary when the offset spans a DST transition.
98301         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
98302
98303 2001-04-02  Jim Meyering  <meyering@lucent.com>
98304
98305         * lib/regex.h, regex.c: Update from GNU libc.
98306
98307 2001-03-24  Jim Meyering  <meyering@lucent.com>
98308
98309         * m4/jm-macros.m4: Require autoconf-2.49d.
98310
98311 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
98312
98313         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
98314
98315 2001-03-19  Paul Eggert  <eggert@twinsun.com>
98316
98317         * lib/version-etc.c (version_etc_copyright): Update to 2001.
98318
98319 2001-03-17  Jim Meyering  <meyering@lucent.com>
98320
98321         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
98322         now that the version in autoconf is equivalent.
98323         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
98324
98325         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
98326         Suggestion from Akim Demaille.
98327
98328         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
98329         (jm_PREREQ_TEMPNAME): New function.
98330
98331 2001-03-16  Paul Eggert  <eggert@twinsun.com>
98332
98333         * lib/tempname.c (uint64_t): Define to uintmax_t if
98334         not defined, and if UINT64_MAX is not defined.
98335         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
98336         Reported by John David Anglin.
98337
98338 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
98339
98340         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
98341         resolve alias if codeset is empty.
98342         * lib/config.charset (BeOS): Use wildcard syntax.
98343
98344 2001-03-13  Jim Meyering  <meyering@lucent.com>
98345
98346         * lib/path-concat.c (path_concat)
98347         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
98348         concatenating e.g., `C:' and `foo'.
98349         From Bruno Haible.
98350
98351 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
98352
98353         * lib/localcharset.c (locale_charset): Don't use
98354         setlocale(LC_CTYPE,NULL). Don't return NULL.
98355         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
98356
98357 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
98358
98359         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
98360         support for DOS/DJGPP.
98361
98362 2001-03-01  Paul Eggert  <eggert@twinsun.com>
98363
98364         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
98365         lacks mkstemp.  Compile our own tempname.c if we compile our own
98366         mkstemp.c, as mkstemp relies on tempname.
98367
98368 2001-03-01  Jim Meyering  <meyering@lucent.com>
98369
98370         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
98371         AH_VERBATIM really does output its argument verbatim.
98372
98373 2001-02-28  Paul Eggert  <eggert@twinsun.com>
98374
98375         * lib/Makefile.am (libfetish_a_SOURCES):
98376         Add dup-safer.c, fopen-safer.c.
98377         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
98378
98379         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
98380         * lib/unistd-safer.h: New files.
98381
98382 2001-02-25  Paul Eggert  <eggert@twinsun.com>
98383
98384         The mkstemp replacement is taken from glibc 2.2.2, with some
98385         portability fixes for use outside glibc, as follows:
98386
98387         * lib/tempname.c (struct_stat64): New macro.
98388         (direxists, __gen_tempname): Use it.
98389         This avoids a portability problem with Solaris 8.
98390
98391         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
98392         (<stddef.h>, <stdint.h>, <string.h>):
98393         Include only if STDC_HEADERS || _LIBC.
98394         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
98395         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
98396         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
98397         (__set_errno): Define this macro if <errno.h> doesn't.
98398         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
98399         Define these macros if <stdio.h> doesn't.
98400         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
98401         Define these macros if <sys/stat.h>
98402         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
98403         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
98404         __xstat64): Define if not _LIBC.
98405         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
98406         (__gen_tempname): Invoke gettimeofday only if
98407         HAVE_GETTIMEOFDAY || _LIBC;
98408         otherwise, fall back on plain "time".
98409         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
98410
98411         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
98412
98413         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
98414
98415 2001-02-18  Paul Eggert  <eggert@twinsun.com>
98416
98417         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
98418
98419 2001-02-17  Paul Eggert  <eggert@twinsun.com>
98420
98421         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
98422         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
98423         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
98424         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
98425
98426 2001-02-17  Paul Eggert  <eggert@twinsun.com>
98427
98428         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
98429         Remove workaround macros for hosts that have mbrtowc but not
98430         mbstate_t, as we now insist on proper declarations for both
98431         before using mbrtowc.
98432
98433 2001-02-17  Jim Meyering  <meyering@lucent.com>
98434
98435         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
98436         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
98437         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
98438         UnixWare 7.1.1.
98439
98440         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
98441         rather than AC_CACHE_VAL.
98442
98443 2001-02-17  Jim Meyering  <meyering@lucent.com>
98444
98445         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
98446         around included file name.
98447
98448         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
98449
98450         * lib/strftime.c: Update from GNU libc (the only changes were to
98451         comments).
98452
98453 2001-02-17  Jim Meyering  <meyering@lucent.com>
98454
98455         * lib/regex.c: Update from libc.
98456
98457 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
98458
98459         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
98460         clash.
98461
98462 2001-02-16  Paul Eggert  <eggert@twinsun.com>
98463
98464         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
98465         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
98466         Reported by Mark Hounschell via Paul Eggert.
98467
98468 2001-02-07  Jim Meyering  <meyering@lucent.com>
98469
98470         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
98471
98472 2001-02-05  Jim Meyering  <meyering@lucent.com>
98473
98474         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
98475         it includes the patch required for `large file' support with at least
98476         HP-UX's 10.20 /bin/cc.
98477
98478 2001-02-03  Jim Meyering  <meyering@lucent.com>
98479
98480         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
98481         AS_IF, now that it works once again (mysteriously).
98482         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
98483
98484 2001-01-30  Jim Meyering  <meyering@lucent.com>
98485
98486         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
98487         * m4/chown.m4: Rename conftestchown to conftest.chown.
98488         * m4/rename.m4: s/conftestdir/conftest.d1/ and
98489         s/conftestdir2/conftest.d2/.
98490         * m4/utimes.m4: s/conftestdata/conftest.data/
98491         Inspired by Pavel Roskin's change in autoconf.
98492
98493 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
98494
98495         * lib/config.charset: Update for FreeBSD 4.2.
98496
98497 2001-01-27  Jim Meyering  <meyering@lucent.com>
98498
98499         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
98500         a use of AS_IF.
98501         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
98502
98503 2001-01-26  Jim Meyering  <meyering@lucent.com>
98504
98505         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
98506         quotearg.c includes it.
98507
98508 2001-01-26  Jim Meyering  <meyering@lucent.com>
98509
98510         * lib/quotearg.c: Include stddef.h.
98511         * lib/quote.c: Include stddef.h.
98512         Reported by Axel Kittenberger.
98513
98514         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
98515         line in double quotes so that it evokes a better diagnostic.
98516         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
98517         Reported by Axel Kittenberger.
98518
98519 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
98520
98521         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
98522         as if it was a `charset'.
98523
98524 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
98525
98526         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
98527         has const.
98528
98529 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
98530
98531         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
98532         to avoid a warning.  Add back 'const' to inptr.
98533
98534 2001-01-20  Jim Meyering  <meyering@lucent.com>
98535
98536         Be sure that headers are checked before used in code compiled
98537         for the type checks.
98538         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
98539         In place of that, invoke jm_CHECK_ALL_TYPES.
98540         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
98541         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
98542         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
98543         The check for ssize_t was mistakenly run before the test for unistd.h.
98544
98545         The configure-time check for stdbool.h was missing.
98546         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
98547         (jm_PREREQ_HASH): New function.
98548
98549 2001-01-17  Jim Meyering  <meyering@lucent.com>
98550
98551         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
98552         for autoconf-2.49c.
98553         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
98554
98555 2001-01-16  Jim Meyering  <meyering@lucent.com>
98556
98557         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
98558         From Bruno Haible.
98559
98560 2001-01-14  Jim Meyering  <meyering@lucent.com>
98561
98562         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
98563         foo and bar.  Create conftestdir/ in the script, not in the C code.
98564         Remove directories in the script, not in the C code.
98565         Remove conftestdir{,2} before trying to create the directory.
98566         Make the entire configure script fail if the mkdir fails.
98567
98568 2001-01-14  Jim Meyering  <meyering@lucent.com>
98569
98570         * lib/rename.c: New file.  From Volker Borchert.
98571         Include stdlib.h, string.h or strings.h, and xalloc.h.
98572         Use strip_trailing_slashes rather than open-coding it.
98573
98574 2001-01-03  Paul Eggert  <eggert@twinsun.com>
98575
98576         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
98577
98578 2001-01-03  Jim Meyering  <meyering@lucent.com>
98579
98580         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
98581         of local `inptr' to avoid warning with some system declarations of
98582         iconv.
98583
98584 2001-01-02  Volker Borchert  <bt@teknon.de>
98585
98586         * m4/rename.m4: New file.
98587         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
98588
98589 2001-01-01  Jim Meyering  <meyering@lucent.com>
98590
98591         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
98592         even on systems with utmpx.h.  It's necessary for the declaration of
98593         utmp's ut_user member.  Reported by Andreas Jaeger.
98594
98595         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
98596         available. They are required for the declarations of getgrgid and
98597         getpwuid resp.
98598         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
98599         Reported by Andreas Jaeger.
98600
98601 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
98602
98603         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
98604         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
98605         so `make install' also works in VPATH builds.
98606
98607 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
98608
98609         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
98610         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
98611         can be used in subdirectories.
98612
98613 2000-12-29  Paul Eggert  <eggert@twinsun.com>
98614
98615         * lib/modechange.c: Do not assume that mode_t uses the
98616         traditional octal encoding.  E.g. "chmod 1 FOO" should set
98617         the other-execute bit of FOO even if S_IXOTH != 1.
98618
98619         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
98620         WOTH, XOTH, ALLM): New macros.
98621         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
98622          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
98623         Use them.
98624         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
98625         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
98626         (mode_compile):
98627         No need to use uintmax_t; unsigned long is long enough.
98628         Don't bother to get suffix since we don't use it.
98629
98630 2000-12-26  Jim Meyering  <meyering@lucent.com>
98631
98632         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
98633         better with autoheader.
98634
98635 2000-12-24  Jim Meyering  <meyering@lucent.com>
98636
98637         * lib/hash.c (is_prime): Return explicit boolean values.
98638         (hash_get_first): Return NULL to appease Irix5.6's 89.
98639         Reported by Nelson Beebe.
98640
98641 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
98642
98643         * lib/localcharset.c (locale_charset): Add support for Win32.
98644
98645 2000-12-18  Paul Eggert  <eggert@twinsun.com>
98646
98647         * lib/physmem.h, lib/physmem.c: New files.
98648
98649         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
98650         (noinst_HEADERS): Add physmem.h.
98651
98652         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
98653         't' for compatibility with Solaris 8 sort.
98654
98655 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
98656
98657         * lib/config.charset: Add support for BeOS.
98658
98659 2000-12-17  Jim Meyering  <meyering@lucent.com>
98660
98661         * m4/dos.m4 (jm_AC_DOS): New file and macro.
98662         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
98663
98664 2000-12-16  Jim Meyering  <meyering@lucent.com>
98665
98666         This bug had a serious impact on chown: `chown N:M FILE' (for integer
98667         N and M) would have treated it like `chown N:N FILE'.
98668
98669         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
98670
98671 2000-12-16  Jim Meyering  <meyering@lucent.com>
98672
98673         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
98674         SHELLS_FILE to a file name that's useful on djgpp systems.
98675         Include stdlib.h.
98676         (ADDITIONAL_DEFAULT_SHELLS): Define.
98677         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
98678         Based mostly on a patch from Prashant TR.
98679
98680 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
98681
98682         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
98683         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
98684         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
98685
98686 2000-12-08  Andreas Schwab  <schwab@suse.de>
98687
98688         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
98689         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
98690
98691 2000-12-07  Jim Meyering  <meyering@lucent.com>
98692
98693         * lib/stripslash.c (ISSLASH): Define.
98694         (strip_trailing_slashes): Use ISSLASH rather than comparing against
98695         `/'.
98696         From Prashant TR.
98697
98698         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
98699         (dir_name_r): Declare this function as static.
98700         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
98701         manifest itself on a name containing a mix of slashes and
98702         backslashes.
98703         Make this function work with names starting with a DOS-style
98704         drive letter and colon prefix.
98705         (dir_name): Append `.' if necessary.
98706         Based mostly on patches from Prashant TR and Eli Zaretskii.
98707
98708         * lib/dirname.h (dir_name_r): Remove prototype.
98709
98710 2000-12-06  Paul Eggert  <eggert@twinsun.com>
98711
98712         * m4/off_t-format.m4: Remove this file.
98713         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
98714
98715 2000-12-06  Jim Meyering  <meyering@lucent.com>
98716
98717         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
98718         replacement strtoull, we may well need the replacement strtoul, too.
98719         Check for declarations of strtoul and strtoull.
98720         Check for strtol.  Mainly as a cue to cause automake to include
98721         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
98722         Check for limits.h -- strtol.c needs it.
98723
98724 2000-12-05  Jim Meyering  <meyering@lucent.com>
98725
98726         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
98727
98728 2000-12-04  Jim Meyering  <meyering@lucent.com>
98729
98730         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
98731         Also include memory.h, stdlib.h, unistd.h if appropriate.
98732         Reported by Andreas Jaeger (conflicting declaration of malloc).
98733
98734 2000-12-02  Jim Meyering  <meyering@lucent.com>
98735
98736         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
98737         * m4/jm-macros.m4 (jm_MACROS): require it.
98738
98739 2000-12-02  Jim Meyering  <meyering@lucent.com>
98740
98741         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
98742
98743 2000-12-01  Paul Eggert  <eggert@twinsun.com>
98744
98745         * lib/memrchr.c: Include <config.h> before any system include file.
98746
98747 2000-11-30  Jim Meyering  <meyering@lucent.com>
98748
98749         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
98750
98751 2000-11-30  Jim Meyering  <meyering@lucent.com>
98752
98753         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
98754
98755 2000-11-29  Paul Eggert  <eggert@twinsun.com>
98756
98757         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
98758
98759 2000-11-26  Jim Meyering  <meyering@lucent.com>
98760
98761         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
98762
98763 2000-11-22  Paul Eggert  <eggert@twinsun.com>
98764
98765         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
98766         size of (size_t) -1; it's not portable.
98767
98768 2000-11-17  Jim Meyering  <meyering@lucent.com>
98769
98770         * lib/strstr.c: Update from GNU libc.
98771
98772 2000-11-17  Akim Demaille  <akim@epita.fr>
98773
98774         * lib/obstack.h: Formatting changes.
98775         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
98776         prevent type checking.
98777         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
98778         cast the value to (void *): assigning a `foo *' to a `void *'
98779         variable is valid.
98780         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
98781
98782 2000-11-16  Jim Meyering  <meyering@lucent.com>
98783
98784         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
98785
98786 2000-11-11  Jim Meyering  <meyering@lucent.com>
98787
98788         * lib/error.c: Add a couple #includes, merging from GNU libc version.
98789
98790 2000-11-10  Jim Meyering  <meyering@lucent.com>
98791
98792         * lib/obstack.h: Update from GNU libc.
98793         * lib/obstack.c: Likewise.
98794
98795 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
98796
98797         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
98798
98799 2000-11-06  Paul Eggert  <eggert@twinsun.com>
98800
98801         * lib/getusershell.c (setusershell): Use rewind rather than
98802         fseek/fseeko, to avoid configuration hassles with fseeko.
98803         Don't bother opening SHELLS_FILE if shellstream is NULL;
98804         it's not necessary.
98805
98806 2000-11-05  Jim Meyering  <meyering@lucent.com>
98807
98808         * lib/makepath.h (make_dir): Declare.
98809         * lib/makepath.c (make_dir): Remove `static' attribute.
98810         Tweak a comment.
98811
98812 2000-11-04  Jim Meyering  <meyering@lucent.com>
98813
98814         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
98815
98816 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
98817
98818         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
98819         last one in a bucket, advance to the next bucket.
98820
98821 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
98822
98823         * lib/fnmatch.c: Do not comment out all the code if we are using
98824         the GNU C library, because in some cases we are replacing buggy
98825         code in the GNU C library itself.
98826
98827 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
98828
98829         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
98830         (regex_compile): Catch bogus \(\1\).
98831
98832 2000-10-30  Paul Eggert  <eggert@twinsun.com>
98833
98834         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
98835         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
98836         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
98837
98838 2000-10-30  Paul Eggert  <eggert@twinsun.com>
98839
98840         * lib/error.h, getline.h, modechange.h:
98841         Remove "2000" from Copyright line, as the file hasn't been
98842         changed this year other than in the copyright notice.
98843
98844         * lib/xalloc.h: Add "2000" to Copyright line, as this file
98845         was changed this year.
98846
98847 2000-10-29  Jim Meyering  <meyering@lucent.com>
98848
98849         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
98850         renaming.
98851         * m4/ls-mntd-fs.m4: Likewise
98852
98853 2000-10-29  Jim Meyering  <meyering@lucent.com>
98854
98855         * lib/xstat.in: Fix grammar in comment.
98856
98857 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
98858
98859         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
98860         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
98861         doesn't define __restrict_arr.
98862
98863 2000-10-28  Jim Meyering  <meyering@lucent.com>
98864
98865         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
98866         (jm_PREREQ_MEMCHR): New function.
98867
98868 2000-10-28  Jim Meyering  <meyering@lucent.com>
98869
98870         * lib/memchr.c: Update from libc.
98871         Adjust for portability:
98872         [HAVE_STDLIB_H]: Include stdlib.h.
98873         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
98874         Undef __memchr, too.
98875         [!weak_alias]: Define __memchr to memchr.
98876
98877         * lib/regex.c: Update from libc.
98878         * lib/regex.h: Likewise.
98879         * lib/getopt1.c: Likewise.
98880         * lib/memcmp.c: Likewise.
98881
98882         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
98883         Avoid using fseek, when possible -- it's broken by design.
98884         Patch by Ulrich Drepper.
98885
98886 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
98887
98888         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
98889         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
98890         Giving in to popular pressure to shut up the compiler with casts.
98891
98892 2000-10-26  Jim Meyering  <meyering@lucent.com>
98893
98894         * lib/strftime.c: Update from libc.
98895
98896 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
98897
98898         * regex.c: More `unsigned char' -> `re_char' changes.
98899         Also change several `int' into `re_wchar_t'.
98900         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
98901         (PUSH_FAILURE_POINTER): Don't cast any more.
98902         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
98903         We want GCC to complain, since this piece of code makes
98904         re_match non-reentrant, which *should* be fixed.
98905         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
98906         (EXTEND_BUFFER): Use RETALLOC.
98907         (SET_LIST_BIT): Don't cast.
98908         (re_wchar_t): New type.
98909         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
98910         that those two functions will always properly return.
98911         (IMMEDIATE_QUIT_CHECK): Cast to void.
98912         (analyse_first): Use recursion rather than an explicit stack.
98913         (re_compile_fastmap): Can't fail anymore.
98914         (re_search_2): Don't check re_compile_fastmap for failure.
98915         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
98916         Now also sets the new value (passed in a new argument).
98917         (re_match_2_internal): Use it.
98918         Also, use a new var `reg' of type size_t when looping through regs
98919         rather than reuse the inappropriate `mcnt'.
98920
98921 2000-10-25  Jim Meyering  <meyering@lucent.com>
98922
98923         * lib/obstack.c: Update from libc.
98924
98925 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
98926
98927         * regex.c (regex_compile): Change the way of handling a range from
98928         a char less than 256 to a char not less than 256.
98929
98930 2000-10-24  Andrew Innes  <andrewi@gnu.org>
98931
98932         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
98933         NT-Emacs only.
98934         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
98935         so that re_search functions only quit when callers expect them to.
98936
98937 2000-10-23  Jim Meyering  <meyering@lucent.com>
98938
98939         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
98940         wrong.  That set_locale call must not have any side effects.
98941         From Paul Eggert.
98942
98943 2000-10-22  Jim Meyering  <meyering@lucent.com>
98944
98945         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
98946         [CYCLIC]: Remove now-unused definition.
98947
98948         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
98949         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
98950         Suggestion from Ulrich Drepper.
98951
98952 2000-10-21  Jim Meyering  <meyering@lucent.com>
98953
98954         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
98955         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
98956         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
98957
98958 2000-10-21  Jim Meyering  <meyering@lucent.com>
98959
98960         * lib/dirname.c (memrchr): Declare if necessary.
98961         (dir_name): Remove the restriction that there be no
98962         trailing slashes.  Now, this code skips past them, effectively
98963         ignoring them.
98964         [TEST_DIRNAME] (main): New unit tests.
98965
98966         * lib/memrchr.c: New file from GNU libc.
98967         Undef __memrchr, too.
98968         [!weak_alias]: Define __memrchr to memrchr.
98969         Guard weak_alias use with `#ifdef weak_alias'.
98970
98971 2000-10-21  Jim Meyering  <meyering@lucent.com>
98972
98973         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
98974         (dir_name): Use dir_name_r.
98975         * lib/dirname.h (dir_name_r): Declare it.
98976
98977 2000-10-17  Jim Meyering  <meyering@lucent.com>
98978
98979         * lib/quote.h (PARAMS): Define and use.
98980         Reported by Akim Demaille.
98981
98982         * lib/getopt.c: Update from libc.
98983
98984 2000-10-16  Jim Meyering  <meyering@lucent.com>
98985
98986         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
98987         setlocale.
98988         From Jan Fedak.
98989
98990 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
98991
98992         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
98993
98994 2000-09-25  Jim Meyering  <meyering@lucent.com>
98995
98996         * lib/md5.h (rol): Define (from GnuPG).
98997
98998         * lib/sha.c: Give credit (GnuPG) where due.
98999         (M): Use rol rather than open-coding it.
99000         Add a FIXME comment.
99001
99002 2000-09-21  Jim Meyering  <meyering@lucent.com>
99003
99004         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
99005         Reported by Michael Stone.
99006
99007 2000-09-20  Jim Meyering  <meyering@lucent.com>
99008
99009         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
99010         (noinst_HEADERS): Add sha.h.
99011         Based on code from Scott G. Miller and from GnuPG.
99012
99013 2000-09-18  Jim Meyering  <meyering@lucent.com>
99014
99015         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
99016         LIBS. Otherwise, everyone ends up linking with -lelf for some
99017         configurations.
99018         Reported by Mike Stone.
99019
99020 2000-09-15  Jim Meyering  <meyering@lucent.com>
99021
99022         * lib/regex.c: Update from libc.
99023
99024 2000-09-10  Jim Meyering  <meyering@lucent.com>
99025
99026         * lib/getopt.c (_getopt_internal): Update from glibc.
99027
99028 2000-09-09  Jim Meyering  <meyering@lucent.com>
99029
99030         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
99031         think it should be used as a general replacement for isascii.
99032         * lib/fnmatch.c: Likewise.
99033         * lib/mbswidth.c: Likewise
99034         * lib/regex.c: Likewise.
99035
99036         Don't use atoi.
99037         * lib/userspec.c: Include sys/param.h and limits.h.
99038         Include xstrtol.h.
99039         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
99040         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
99041         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
99042         UID, GID.  Check range.
99043
99044 2000-09-06  Jim Meyering  <meyering@lucent.com>
99045
99046         * lib/getopt.c (_getopt_internal): Update from glibc.
99047
99048 2000-08-30  Jim Meyering  <meyering@lucent.com>
99049
99050         * lib/strftime.c: Merge in changes from GNU libc.
99051
99052 2000-08-26  Jim Meyering  <meyering@lucent.com>
99053
99054         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
99055         * m4/fpending.m4: New file.
99056
99057 2000-08-26  Jim Meyering  <meyering@lucent.com>
99058
99059         * lib/closeout.c: Include "__fpending.h".
99060         (close_stdout_status): Return right away if there's nothing to flush.
99061
99062         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
99063         * lib/__fpending.c: New file.
99064         * lib/__fpending.h: New file.
99065
99066 2000-08-20  Jim Meyering  <meyering@lucent.com>
99067
99068         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
99069         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
99070         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
99071
99072 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
99073
99074         Improve fileutils installation on systems where running
99075         programs (like install) can't be unlinked.
99076         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
99077         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
99078
99079 2000-08-07  Paul Eggert  <eggert@twinsun.com>
99080
99081         Standardize on "memory exhausted" instead of "Memory exhausted"
99082         or "virtual memory exhausted".
99083         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
99084         "virtual memory exhausted".
99085         * lib/same.c (same_name): Invoke xalloc_die instead of printing
99086         our own message.
99087         * lib/userspec.c (parse_user_spec): Likewise.
99088         * lib/bumpalloc.h: comment fix
99089         * lib/same.c, userspec.c: Include xalloc.h.
99090
99091         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
99092         not char *const and pointing to a constant array.
99093         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
99094         (xrealloc): Comment fix.
99095
99096         * lib/userspec.c (parse_user_spec):
99097         Don't translate a message until just before returning,
99098         to avoid unnecessary translation.
99099
99100 2000-08-07  Jim Meyering  <meyering@lucent.com>
99101
99102         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
99103         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
99104         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
99105         getgroups.c, gethostname.c, getopt.h, group-member.c,
99106         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
99107         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
99108         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
99109         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
99110         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
99111         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
99112         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
99113         yesno.c: Back out Copyright date changes for each file with no change
99114         this year.  This eases coordination with other programs using the same
99115         source code modules.  From Paul Eggert.
99116
99117 2000-08-06  Paul Eggert  <eggert@twinsun.com>
99118
99119         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
99120         not char, for compatibility with glibc 2.1.3 strftime.c.
99121
99122 2000-08-03  Greg McGary  <greg@mcgary.org>
99123
99124         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
99125         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
99126         (EXTEND_BUFFER): Use them.
99127
99128 2000-08-01  Jim Meyering  <meyering@lucent.com>
99129
99130         * lib/dirname.c (ISSLASH): Define.
99131         (BACKSLASH_IS_PATH_SEPARATOR): Define.
99132         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
99133         both `\' and `/' may be use as path separators.
99134         Based on a patch from Prashant TR.
99135
99136 2000-07-31  Paul Eggert  <eggert@twinsun.com>
99137
99138         * lib/quotearg.c (quotearg_n_options): Don't make the initial
99139         slot vector a constant, since it might get modified.
99140
99141 2000-07-31  Jim Meyering  <meyering@lucent.com>
99142
99143         * lib/xmalloc.c: Use `virtual memory exhausted', not
99144         `Memory exhausted'.
99145         * lib/obstack.c (print_and_abort): Likewise.
99146
99147 2000-07-30  Paul Eggert  <eggert@twinsun.com>
99148
99149         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
99150         buffer, so that the caller can always quote one small
99151         component of a "memory exhausted" message in slot 0.
99152         From a suggestion by Jim Meyering.
99153
99154 2000-07-30  Jim Meyering  <meyering@lucent.com>
99155
99156         * lib/makepath.c (make_path): Quote the other instance, too.
99157
99158         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
99159         (STATIC_BUF_SIZE): Define.
99160         (quotearg_n_options): Use only statically allocated storage when
99161         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
99162         than STATIC_BUF_SIZE.
99163
99164 2000-07-29  Jim Meyering  <meyering@lucent.com>
99165
99166         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
99167         * lib/dirname.c (dir_name): Likewise.
99168
99169         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
99170         `/'.
99171
99172         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
99173         (dir_name): Assert that there are no trailing slashes.
99174
99175 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
99176
99177         * lib/mbswidth.h (mbswidth): Add a flags argument.
99178         (mbswidth): New declaration.
99179         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
99180         * lib/mbswidth.c (mbswidth): Add a flags argument.
99181         (mbsnwidth): New function.
99182
99183 2000-07-24  Jim Meyering  <meyering@lucent.com>
99184
99185         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
99186
99187 2000-07-23  Paul Eggert  <eggert@twinsun.com>
99188
99189         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
99190
99191 2000-07-23  Paul Eggert  <eggert@twinsun.com>
99192
99193         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
99194         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
99195         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
99196         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
99197         invoke multibyte primitives.
99198
99199 2000-07-23  Paul Eggert  <eggert@twinsun.com>
99200
99201         * lib/quotearg.c:
99202         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
99203         so that mbstate_t is always defined.
99204
99205         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
99206         be 1 in at least one GCC installation, and this configuration
99207         error is likely to be common.  Ignoring MB_LEN_MAX hurts
99208         performance on hosts that have mbrtowc but have only unibyte
99209         locales, but I assume these hosts are rare.
99210
99211 2000-07-23  Paul Eggert  <eggert@twinsun.com>
99212
99213         * lib/mbswidth.c (_XOPEN_SOURCE):
99214         Don't define; this causes problems on Solaris 7.
99215         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
99216
99217 2000-07-23  Jim Meyering  <meyering@lucent.com>
99218
99219         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
99220         too: getgrgid, getpwuid, getuid.
99221
99222 2000-07-23  Jim Meyering  <meyering@lucent.com>
99223
99224         * lib/basename.c (base_name): Add an assertion.
99225
99226 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
99227
99228         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
99229         shadow its mbsinit function.
99230
99231 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
99232
99233         * lib/mbswidth.h: New file.
99234         * lib/mbswidth.c: New file.
99235         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
99236         (noinst_HEADERS): Add mbswidth.h.
99237
99238 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
99239
99240         * lib/config.charset: Add support for FreeBSD. Improve support for
99241         HP-UX and IRIX 6.
99242
99243 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
99244
99245         * m4/mbswidth.m4: New file.
99246         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
99247
99248 2000-07-15  Jim Meyering  <meyering@lucent.com>
99249
99250         * lib/makepath.c: Include quote.h.
99251         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
99252         corresponding argument in a `quote (...)' call.
99253         Give better diagnostics.
99254
99255         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
99256         (noinst_HEADERS): Add quote.h.
99257
99258         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
99259         from tar's src/misc.c.
99260         * lib/quote.h: New file.  Prototypes for same.
99261
99262 2000-07-14  Paul Eggert  <eggert@twinsun.com>
99263
99264         From a suggestion by Bruno Haible.
99265         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
99266         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
99267         to decide whether to define the BeOS workaround macro;
99268         this adjusts to the change to AC_MBSTATE_T.
99269
99270 2000-07-14  Jim Meyering  <meyering@lucent.com>
99271
99272         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
99273         jm_AC_TYPE_UINTMAX_T.
99274
99275 2000-07-13  Paul Eggert  <eggert@twinsun.com>
99276
99277         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
99278
99279         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
99280         quotearg_buffer_restyled): Add support for
99281         clocale_quoting_style.  Undo previous change to
99282         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
99283         and "{RIGHT QUOTATION MARK}" msgids.
99284
99285 2000-07-10  Paul Eggert  <eggert@twinsun.com>
99286
99287         From a suggestion by Bruno Haible.
99288         * m4/mbstate_t.m4 (AC_MBSTATE_T):
99289         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
99290         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
99291         and mbstate_t, to a single-part test that simply defines mbstate_t.
99292         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
99293         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
99294
99295 2000-07-10  Jim Meyering  <meyering@lucent.com>
99296
99297         * m4/strerror_r.m4: Mirror the correction made in autoconf.
99298
99299         * m4/gnu-source.m4: Output to confdefs.h directly.
99300         Suggestion from Akim Demaille.
99301
99302 2000-07-09  Paul Eggert  <eggert@twinsun.com>
99303
99304         The old behavior of quoting `like this' doesn't look good with
99305         newer, ISO-style fonts.  See:
99306         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
99307
99308         Instead, quote "like this" by default.  Let the translator
99309         tailor the locale-specific quoting behavior by providing
99310         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
99311
99312         * lib/quotearg.c (N_): New macro.
99313         (gettext_default): New function.
99314         (quotearg_buffer_restyled): Use
99315         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
99316         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
99317
99318 2000-07-09  Jim Meyering  <meyering@lucent.com>
99319
99320         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
99321         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
99322
99323         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
99324         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
99325
99326 2000-07-09  Jim Meyering  <meyering@lucent.com>
99327
99328         * lib/Most files: Update copyright dates to include 2000.
99329
99330 2000-07-08  Jim Meyering  <meyering@lucent.com>
99331
99332         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
99333         if not defined.
99334         (xgethostname): Remove now-unnecessary #ifdef.
99335         Move declaration of `err' into loop where it's used.
99336
99337 2000-07-05  Paul Eggert  <eggert@twinsun.com>
99338         and Bruno Haible  <haible@clisp.cons.org>
99339
99340         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
99341         only if the test for an object-type mbstate_t fails.  This
99342         prevents us from mistakenly reporting that mbstate_t is a
99343         system object type after we "#define mbstate_t int" to work
99344         around its lack.
99345
99346 2000-07-05  Paul Eggert  <eggert@twinsun.com>
99347         and Bruno Haible  <haible@clisp.cons.org>
99348
99349         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
99350
99351 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
99352
99353         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
99354         to strerror_r.
99355         Include <ctype.h> for use of isalpha.
99356
99357 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
99358
99359         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
99360         by allocating a larger buffer. Test the gethostname return value for
99361         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
99362         returns an error and ENAMETOOLONG isn't defined.
99363
99364 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
99365
99366         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
99367         dimension.
99368
99369 2000-07-04  Jim Meyering  <meyering@lucent.com>
99370
99371         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
99372         of the deprecated AC_CHECKING.
99373
99374 2000-07-04  Jim Meyering  <meyering@lucent.com>
99375
99376         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
99377         Reported by Bruno Haible.
99378
99379 2000-07-04  Jim Meyering  <meyering@lucent.com>
99380
99381         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
99382         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
99383         lacks mbrtowc.
99384
99385 2000-07-03  Paul Eggert  <eggert@twinsun.com>
99386
99387         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
99388         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
99389
99390 2000-07-03  Paul Eggert  <eggert@twinsun.com>
99391         and Bruno Haible  <haible@clisp.cons.org>
99392
99393         * lib/quotearg.c (mbrtowc):
99394         Assign to *pwc, and return 1 only if result is nonzero.
99395         (iswprint): Use ISPRINT when substituting our own mbrtowc.
99396
99397 2000-07-03  Jim Meyering  <meyering@lucent.com>
99398
99399         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
99400
99401 2000-07-03  Jim Meyering  <meyering@lucent.com>
99402
99403         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
99404         This is necessary to get a definition of e.g., UTMP_FILE on
99405         HP-UX 10.20.
99406         From Bob Proulx.
99407
99408 2000-07-02  Jim Meyering  <meyering@lucent.com>
99409
99410         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
99411
99412         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
99413         AC_LIBOBJ(function_name).
99414         * m4/chown.m4: Likewise.
99415         * m4/fnmatch.m4: Likewise.
99416         * m4/ftruncate.m4: Likewise.
99417         * m4/getgroups.m4: Likewise.
99418         * m4/getline.m4: Likewise.
99419         * m4/group-member.m4: Likewise.
99420         * m4/jm-macros.m4: Likewise.
99421         * m4/lstat.m4: Likewise.
99422         * m4/malloc.m4: Likewise.
99423         * m4/memcmp.m4: Likewise.
99424         * m4/nanosleep.m4: Likewise.
99425         * m4/putenv.m4: Likewise.
99426         * m4/realloc.m4: Likewise.
99427         * m4/regex.m4: Likewise.
99428         * m4/stat.m4: Likewise.
99429         * m4/strftime.m4: Likewise.
99430
99431 2000-07-02  Jim Meyering  <meyering@lucent.com>
99432
99433         * lib/quotearg.c (mbstate_t): Don't define here.
99434
99435 2000-07-02  Jim Meyering  <meyering@lucent.com>
99436
99437         * lib/nanosleep.c (SIGCONT): Define if not already defined.
99438
99439 2000-07-01  Jim Meyering  <meyering@lucent.com>
99440
99441         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
99442
99443 2000-07-01  Jim Meyering  <meyering@lucent.com>
99444
99445         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
99446         problem.
99447
99448 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
99449
99450         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
99451         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
99452
99453 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
99454
99455         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
99456         per change in ../m4/ls-mntd-fs.m4.
99457         (read_filesystem_list): Ignore symbolic links.
99458
99459 2000-06-29  Jim Meyering  <meyering@lucent.com>
99460
99461         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
99462         for declaration of strcmp.
99463
99464         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
99465
99466         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
99467         Avoid warning by casting result to `char *' to remove `const'.
99468
99469 2000-06-28  Jim Meyering  <meyering@lucent.com>
99470
99471         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
99472         included by quotearg.c, for which we perform this test.  From
99473         Bruno Haible.
99474
99475 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
99476
99477         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
99478         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
99479         <utmpx.h> exists, put readutmp.o into LIBOBJS.
99480
99481 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
99482
99483         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
99484
99485 2000-06-26  Paul Eggert  <eggert@twinsun.com>
99486
99487         savedir now sets errno on failure and invokes xmalloc to get memory.
99488         Fix a couple of other minor bugs while we're at it.
99489
99490         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
99491         (NAMLEN): Remove macro.
99492         (malloc, realloc): Remove decls.
99493         (stpcpy): Likewise.
99494         ("xalloc.h"): Include.
99495         (NAME_SIZE_DEFAULT): New macro.
99496         (savedir): Use xmalloc / xrealloc to allocate memory.
99497         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
99498         Skip "" directory entries.
99499         Use strlen to calculate directory entry length, since the old method
99500         is rarely used these days and isn't worth supporting.
99501         Don't use a pointer after freeing it.
99502         Check for integer overflow when calculating allocation size.
99503         Use memcpy to copy entries, instead of stpcpy.
99504         Set errno properly when returning NULL.
99505         Check for readdir error.
99506
99507 2000-06-26  Jim Meyering  <meyering@lucent.com>
99508
99509         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
99510
99511 2000-06-25  Jim Meyering  <meyering@lucent.com>
99512
99513         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
99514         Linux header bug when _XOPEN_SOURCE is defined to 500.
99515
99516 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
99517
99518         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
99519         deficiency.
99520
99521 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
99522
99523         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
99524         Include xalloc.h.
99525         Don't include <stdlib.h>.  Don't declare malloc, realloc.
99526
99527 2000-06-24  Jim Meyering  <meyering@lucent.com>
99528
99529         * m4/strerror_r.m4: Revive this file -- to try out an experimental
99530         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
99531         for which strerror does return char*, but which lacks a conveniently
99532         accessible declaration of the function.  If the compile-test says
99533         strerror_r doesn't work, then resort to a `run'-test that works on
99534         BeOS and segfaults on DEC Unix.
99535
99536 2000-06-24  Jim Meyering  <meyering@lucent.com>
99537
99538         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
99539
99540 2000-06-23  Paul Eggert  <eggert@twinsun.com>
99541
99542         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
99543         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
99544
99545 2000-06-23  Paul Eggert  <eggert@twinsun.com>
99546
99547         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
99548         (mbrtowc, mbstate_t): Define substitutes if
99549         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
99550         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
99551         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
99552
99553 2000-06-23  Jim Meyering  <meyering@lucent.com>
99554
99555         * m4/afs.m4: Add missing AC_MSG_RESULT.
99556         Reported by Bruno Haible.
99557
99558         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
99559         Suggestion from Bruno Haible.
99560
99561 2000-06-23  Jim Meyering  <meyering@lucent.com>
99562
99563         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
99564
99565 2000-06-21  Jim Meyering  <meyering@lucent.com>
99566
99567         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
99568
99569 2000-06-21  Jim Meyering  <meyering@lucent.com>
99570
99571         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
99572         (noinst_HEADERS): Add getstr.h.
99573
99574         * lib/getline.c (getstr): Move into a separate file.
99575         * lib/getstr.c (getstr): New file, extracted from getline.c, with
99576         the following changes: new parameter, delim2; both delim[12]
99577         parameters have type `int', not `char'.  The latter would lose
99578         with 8-bit delimiters.
99579         * lib/getstr.h: New file.
99580
99581 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
99582
99583         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
99584         than 1024, return a memory chunk of least possible size, instead
99585         of size PATH_MAX + 2. In the loop, increment the size proportionally.
99586         Use free/xmalloc instead of xrealloc to avoid copying for very long
99587         paths.
99588
99589 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
99590
99591         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
99592         the empty string.
99593
99594 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
99595
99596         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
99597         address, not strdup.  Include <stdlib.h> and don't declare free().
99598
99599 2000-06-19  Jim Meyering  <meyering@lucent.com>
99600
99601         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
99602
99603 2000-06-18  Jim Meyering  <meyering@lucent.com>
99604
99605         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
99606
99607         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
99608         `checking whether...' message to be consistent with that of the
99609         lstat test.
99610
99611 2000-06-18  Jim Meyering  <meyering@lucent.com>
99612
99613         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
99614         Besides, these days every porting target provides a mkdir function.
99615
99616         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
99617         needed. (this snippet comes from src/system.h).
99618
99619 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
99620
99621         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
99622
99623 2000-06-15  Paul Eggert  <eggert@twinsun.com>
99624
99625         * lib/human.c (adjust_value): New function.
99626         (human_readable_inexact): Apply rounding style even when
99627         printing approximate values.
99628
99629 2000-06-14  Paul Eggert  <eggert@twinsun.com>
99630
99631         * lib/human.c (human_readable_inexact): Allow an input block
99632         size that is not a multiple of the output block size, and vice versa.
99633         Reported by Piergiorgio Sartor.
99634
99635 2000-06-14  Paul Eggert  <eggert@twinsun.com>
99636
99637         * lib/getdate.y (get_date): Apply relative times after time
99638         zone indicator, not before.  Reported by Todd A. Jacobs.
99639
99640 2000-06-13  Jim Meyering  <meyering@lucent.com>
99641
99642         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
99643
99644         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
99645
99646 2000-06-12  Paul Eggert  <eggert@twinsun.com>
99647
99648         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
99649
99650 2000-06-12  Jim Meyering  <meyering@lucent.com>
99651
99652         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
99653         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
99654         optional argument.
99655         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
99656         the optional argument, `lib'.
99657
99658 2000-06-08  Jim Meyering  <meyering@lucent.com>
99659
99660         * m4/largefile.m4: Remove file (now that it's part of autoconf).
99661
99662 2000-06-04  Paul Eggert  <eggert@twinsun.com>
99663
99664         Rewrite largefile configuration so that we don't need to run
99665         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
99666         AC_CANONICAL_HOST in configure.in -- jmm]
99667
99668         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
99669         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
99670         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
99671         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
99672         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
99673         All uses changed.
99674         Instead of inspecting the output of getconf, try to compile the
99675         test program without and with the macro definition.
99676         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
99677         for getconf.  Instead, check for the needed flags by compiling
99678         test programs.
99679
99680 2000-06-04  Paul Eggert  <eggert@twinsun.com>
99681
99682         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
99683
99684 2000-06-04  Jim Meyering  <meyering@lucent.com>
99685
99686         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
99687         SunOS 4.1.4 for which gid_t is an unsigned type.
99688
99689 2000-06-03  Jim Meyering  <meyering@lucent.com>
99690
99691         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
99692         now that autoconf requires that.
99693
99694         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
99695         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
99696         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
99697
99698 2000-06-03  Jim Meyering  <meyering@lucent.com>
99699
99700         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
99701
99702 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
99703
99704         * m4/glibc21.m4: New file.
99705         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
99706
99707 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
99708
99709         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
99710         newer, don't install charset.alias.
99711         * lib/config.charset: Change the Linux/glibc rules so they become empty
99712         on glibc-2.1 or newer.
99713
99714 2000-06-02  Jim Meyering  <meyering@lucent.com>
99715
99716         * lib/mountlist.c: Back out last change.  Instead, do this...
99717         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
99718         me_dummy member using the same `ignore'-testing code.
99719         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
99720         fs_type strings.
99721         From Mark D. Roth.
99722
99723 2000-05-29  Jim Meyering  <meyering@lucent.com>
99724
99725         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
99726         mounts with the `ignore' attribute.  Based on a patch from
99727         Mark D. Roth.
99728
99729 2000-05-28  Jim Meyering  <meyering@lucent.com>
99730
99731         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
99732         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
99733         * m4/stat.m4: Likewise.
99734         * m4/lstat.m4: Likewise.
99735         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
99736
99737         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
99738         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
99739
99740 2000-05-26  Jim Meyering  <meyering@lucent.com>
99741
99742         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
99743
99744 2000-05-24  Jim Meyering  <meyering@lucent.com>
99745
99746         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
99747         autoconf requires that.
99748         * m4/lib-check.m4: Likewise.
99749         * m4/jm-macros.m4: Likewise.
99750         * m4/strftime.m4: Likewise.
99751
99752         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
99753         AC_CHECK_DECLS, now that autoconf requires that.
99754
99755 2000-05-22  Jim Meyering  <meyering@lucent.com>
99756
99757         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
99758         * m4/lstat.m4: Likewise.
99759
99760 2000-05-22  Jim Meyering  <meyering@lucent.com>
99761
99762         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
99763
99764 2000-05-20  Jim Meyering  <meyering@lucent.com>
99765
99766         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
99767         (jm_PREREQ): Use it.
99768
99769 2000-05-18  Jim Meyering  <meyering@lucent.com>
99770
99771         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
99772         back, too, since it may have been modified by allocate_entry.
99773         (hash_delete): Rewrite to use neither the assignment operator
99774         nor the comma operator in an if-expression.
99775
99776 2000-05-15  Paul Eggert  <eggert@twinsun.com>
99777
99778         * lib/closeout.c:
99779         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
99780         Remove; no longer needed.
99781         "quotearg.h": Add include.
99782         (file_name): Do not bother to explicitly initialize to NULL; it's less
99783         efficient on some hosts.
99784         (close_stdout_status): Remove test as to whether stdout was already
99785         closed; it breaks for the case "echo x | sort >&-".
99786         Quote file name colons.
99787         Do not assume that _("write error") lacks format strings.
99788
99789 2000-05-15  Jim Meyering  <meyering@lucent.com>
99790
99791         * lib/version-etc.c (version_etc_copyright): Update the copyright
99792         string used in all --version output.
99793
99794 2000-05-14  Jim Meyering  <meyering@lucent.com>
99795
99796         * lib/closeout.c (close_stdout_set_file_name): New function.
99797         (close_stdout_status): Use new file-scoped global.
99798         Return right away if fstat says the stdout file descriptor is invalid.
99799         * lib/closeout.h (close_stdout_set_file_name): Declare.
99800
99801 2000-05-10  Jim Meyering  <meyering@lucent.com>
99802
99803         * lib/closeout.c [default_exit_status]: New file-scoped variable.
99804         (close_stdout_set_status): New function.
99805         * lib/closeout.h (close_stdout_set_status): Declare.
99806
99807 2000-05-09  Jim Meyering  <meyering@lucent.com>
99808
99809         * m4/gettext.m4: Rename this...
99810         * m4/libintl.m4: ...to this.
99811
99812 2000-05-08  Jim Meyering  <meyering@lucent.com>
99813
99814         * lib/long-options.c: Don't include closeout.h.
99815         (parse_long_options): Don't call close_stdout for --version.
99816
99817 2000-05-06  Paul Eggert  <eggert@twinsun.com>
99818
99819         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
99820         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
99821         2.1.3 bug.  This avoids a clash when files like regex.c define
99822         _GNU_SOURCE.
99823
99824 2000-05-06  Jim Meyering  <meyering@lucent.com>
99825
99826         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
99827         (AC_REPLACE_FUNCS): Add strnlen.
99828
99829         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
99830         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
99831
99832         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
99833         AC_SEARCH_LIBS call for nanosleep.
99834         (LIB_NANOSLEEP): Set and AC_SUBST.
99835
99836 2000-05-06  Jim Meyering  <meyering@lucent.com>
99837
99838         * lib/strnlen.c: Undefine __strnlen and strnlen.
99839         [!weak_alias]: Define __strnlen to strnlen.
99840
99841         * lib/atexit.c: New file, from libiberty.
99842
99843 2000-05-06  Jim Meyering  <meyering@lucent.com>
99844
99845         * lib/closeout.c (close_stdout_status): Also check for errors on the
99846         stderr stream.
99847
99848 2000-05-05  Jim Meyering  <meyering@lucent.com>
99849
99850         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
99851         AC_SEARCH_LIBS call for clock_gettime.
99852         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
99853
99854         * m4/search-libs.m4: Update from autoconf.
99855
99856         su doesn't work on Solaris 2.6.
99857         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
99858         <shadow.h>.  Reported by Dragos Harabor.
99859
99860 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
99861
99862         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
99863         memcpy instead of xmalloc, xrealloc, path_concat.
99864         (locale_charset): Treat empty environment variables as absent.
99865         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
99866
99867 2000-05-04  Jim Meyering  <meyering@lucent.com>
99868
99869         * lib/getopt.c: Update from glibc.
99870         * lib/obstack.c: Likewise.
99871         * lib/obstack.h: Likewise.
99872         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
99873         file
99874
99875         * lib/regex.h: Likewise.
99876         * lib/strndup.c: Likewise.
99877         * lib/strnlen.c: New file, from glibc.
99878
99879 2000-05-03  Jim Meyering  <meyering@lucent.com>
99880
99881         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
99882
99883 2000-05-02  Paul Eggert  <eggert@twinsun.com>
99884
99885         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
99886         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
99887         compile-time test, rather than inspecting host and OS, to
99888         decide whether to define _LARGEFILE_SOURCE.
99889
99890 2000-05-01  Jim Meyering  <meyering@lucent.com>
99891
99892         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
99893
99894         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
99895         Based on a patch from Bruno Haible.
99896
99897 2000-05-01  Jim Meyering  <meyering@lucent.com>
99898
99899         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
99900
99901 2000-04-29  Jim Meyering  <meyering@lucent.com>
99902
99903         * lib/path-concat.c: Declare strdup only if it's not defined.
99904         * lib/canon-host.c: Likewise.
99905
99906 2000-04-28  Jim Meyering  <meyering@lucent.com>
99907
99908         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
99909         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
99910         is included first, then limits.h is included by locale.h by libintl.h.
99911         From John David Anglin.
99912
99913 2000-04-25  Jim Meyering  <meyering@lucent.com>
99914
99915         * lib/makepath.c (S_IRWXUGO): Define.
99916         (make_path): Always perform explicit chmod if MODE specifies any
99917         of the `special' permission bits.  Prompted by a bug report against
99918         install from Mate Wierdl and Joost van Baal.
99919
99920 2000-04-18  Jim Meyering  <meyering@lucent.com>
99921
99922         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
99923         (jm_PREREQ): Use it.
99924
99925 2000-04-18  Jim Meyering  <meyering@lucent.com>
99926
99927         * lib/README: New file.
99928
99929         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
99930         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
99931
99932 2000-04-17  Jim Meyering  <meyering@lucent.com>
99933
99934         Get it right :-)
99935         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
99936         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
99937         Suggestion from Akim Demaille.
99938
99939 2000-04-17  Jim Meyering  <meyering@lucent.com>
99940
99941         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
99942         the definition of it to rpl_strftime also defined-away the system's
99943         declaration.
99944
99945 2000-04-15  Jim Meyering  <meyering@lucent.com>
99946
99947         Use `C' to denote so-called `contiguous' files, the same way
99948         that tar does.
99949         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
99950         (ftypelet): Use S_ISCTG.
99951         From Michael Deutschmann.
99952
99953 2000-04-14  Jim Meyering  <meyering@lucent.com>
99954
99955         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
99956         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
99957         clobbered.
99958
99959 2000-04-14  Jim Meyering  <meyering@lucent.com>
99960
99961         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
99962
99963 2000-04-13  Jim Meyering  <meyering@lucent.com>
99964
99965         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
99966         AH_VERBATIM to insert required #ifndef into config.h.in.
99967         Suggestion from Akim Demaille.
99968
99969 2000-04-12  Jim Meyering  <meyering@lucent.com>
99970
99971         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
99972         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
99973         Christian Krackowizer.
99974
99975         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
99976         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
99977         (AC_SYS_LARGEFILE): Require.
99978         (AM_C_PROTOTYPES): Require.
99979
99980 2000-04-08  Jim Meyering  <meyering@lucent.com>
99981
99982         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
99983         names don't conflict.  Reported by Eli Zaretskii.
99984
99985 2000-04-07  Jim Meyering  <meyering@lucent.com>
99986
99987         * lib/putenv.c: Move inclusion of errno.h so it follows that of
99988         sys/types.h, to work around system header problems on AIX 3.2.5.
99989         From Bruno Haible.
99990
99991 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
99992
99993         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
99994         bug.  Deal with the different error behavior of Irix iconv.
99995
99996 2000-04-05  Paul Eggert  <eggert@twinsun.com>
99997
99998         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
99999         IRIX if the installer said otherwise.
100000
100001 2000-04-05  Jim Meyering  <meyering@lucent.com>
100002
100003         Portability tweaks required for ultrix4.3.
100004         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
100005         (jm_CHECK_DECLS): Add getutent to the list of functions.
100006         (_jm_DECL_HEADERS): Add utmpx.h.
100007         From John David Anglin.
100008
100009         * m4/strftime.m4: Back out the 2000-04-02 change.
100010         Instead of that change, simply undefine putenv in the test program.
100011
100012 2000-04-05  Jim Meyering  <meyering@lucent.com>
100013
100014         Portability tweaks required for ultrix4.3.
100015         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
100016         getutent.
100017         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
100018         * lib/canon-host.c: Declare strdup.
100019         * lib/path-concat.c: Likewise.
100020         From John David Anglin.
100021
100022 2000-04-04  Jim Meyering  <meyering@lucent.com>
100023
100024         Be more DOS 8.3-friendly.
100025         * lib/ref-add.sin: Renamed from ref-add.sed.in.
100026         * lib/ref-del.sin: Renamed from ref-del.sed.in.
100027         * lib/Makefile.am: Reflect renaming.
100028         Reported by Eli Zaretskii.
100029
100030         Use a temporary file name that won't clash with `charset.alias'
100031         in the DOS 8.3 name space.
100032         * lib/Makefile.am (charset_tmp): Define.
100033         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
100034         (uninstall-local): Likewise.
100035         Reported by Eli Zaretskii.
100036
100037 2000-04-03  Jim Meyering  <meyering@lucent.com>
100038
100039         * m4/gettext.m4: Fix typo in comment.
100040
100041         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
100042         textutils/configure.in).  Suggestion from Paul Eggert.
100043         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
100044
100045 2000-04-02  Paul Eggert  <eggert@twinsun.com>
100046
100047         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
100048         variable in the shell rather than using putenv, which isn't
100049         portable.  This avoids the configure-time inter-test dependency
100050         on the potentially-renamed putenv function.
100051
100052 2000-03-30  Paul Eggert  <eggert@twinsun.com>
100053
100054         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
100055         before checking struct stat.st_blksize, so that
100056         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
100057
100058 2000-03-29  Paul Eggert  <eggert@twinsun.com>
100059
100060         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
100061         since strftime.c uses HAVE_STRFTIME to decide whether to use
100062         the underlying strftime.
100063
100064 2000-03-29  Paul Eggert  <eggert@twinsun.com>
100065
100066         * lib/time/strftime.c (my_strftime): Make sure we call the system
100067         strftime, not ourselves, when invoking the underlying strftime.
100068
100069 2000-03-24  Jim Meyering  <meyering@lucent.com>
100070
100071         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
100072         (charset_alias): Define.
100073         (install-exec-local): Factor out common code.
100074         (uninstall-local): Split lines longer than 80.
100075         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
100076         (SUFFIXES): Define.
100077         (.sed.in.sed): New rule.  Don't redirect directly to $@.
100078         (CLEANFILES): Add ref-add.sed and ref-del.sed.
100079
100080 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
100081
100082         * lib/config.charset: Output a line containing "Packages using this
100083         file".
100084         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
100085         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
100086         ref-del.sed): New rules.
100087
100088 2000-03-17  Jim Meyering  <meyering@lucent.com>
100089
100090         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
100091         Otherwise, include <strings.h>
100092
100093 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
100094
100095         * lib/unicodeio.c (utf8_wctomb): New function.
100096         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
100097         format instead of in UCS-4 with platform dependent endianness.
100098
100099 2000-03-10  Jim Meyering  <meyering@lucent.com>
100100
100101         * m4/lib-check.m4: Look for getspnam in -lgen, too.
100102         From Marco Franzen.
100103
100104 2000-03-07  Paul Eggert  <eggert@twinsun.com>
100105
100106         * lib/savedir.c (savedir): Work even if directory size is
100107         negative; this can happen with some screwy NFS configurations.
100108
100109 2000-03-06  Jim Meyering  <meyering@lucent.com>
100110
100111         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
100112         if it's NULL (because we ran out of memory).  From Bruno Haible.
100113
100114 2000-03-05  Jim Meyering  <meyering@lucent.com>
100115
100116         * lib/localcharset.c ("path-concat.h"): Include.
100117         (get_charset_aliases): Use path_concat instead of ANSI string
100118         concatenation.
100119
100120         * lib/unicodeio.h (PARAMS): Define.
100121         Use it to guard prototype.
100122
100123 2000-03-04  Jim Meyering  <meyering@lucent.com>
100124
100125         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
100126         for lib/localcharset.c.
100127
100128 2000-03-04  Jim Meyering  <meyering@lucent.com>
100129
100130         * lib/Makefile.am (install-exec-local): Create $(libdir) before
100131         installing into it.
100132         (uninstall-local): Uncomment this rule so `make distcheck' works
100133         once again.
100134
100135         * lib/unicodeio.c (<errno.h>): Include it.
100136         (errno): Declare if not defined.
100137
100138         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
100139
100140         * lib/config.charset: New version, incorporating remarks from a linux
100141         i18n mailing list.  From Bruno Haible.
100142
100143 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
100144
100145         * m4/codeset.m4: New file.
100146         * m4/iconv.m4: New file.
100147         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
100148
100149 2000-03-03  Jim Meyering  <meyering@lucent.com>
100150
100151         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
100152
100153 2000-03-02  Jim Meyering  <meyering@lucent.com>
100154
100155         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
100156         the messages come out on separate lines.
100157
100158         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
100159         rather than jm_CHECK_DECLARATIONS.
100160         * m4/decl.m4: Remove now-unused file.
100161
100162         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
100163         geteuid.
100164
100165 2000-03-02  Jim Meyering  <meyering@lucent.com>
100166
100167         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
100168
100169 2000-03-01  Jim Meyering  <meyering@lucent.com>
100170
100171         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
100172         * lib/unicodeio.c: Likewise.
100173
100174 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
100175
100176         * lib/config.charset: New file.
100177         * lib/localcharset.c: New file.
100178         * lib/unicodeio.h, lib/unicodeio.c: New files.
100179         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
100180         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
100181         (noinst_HEADERS): Add unicodeio.h.
100182         (all-local, install-exec-local, charset.alias): New targets.
100183
100184 2000-02-28  Paul Eggert  <eggert@twinsun.com>
100185
100186         * lib/quotearg.c (ALERT_CHAR): New macro.
100187         (quotearg_buffer_restyled): Use it.
100188
100189 2000-02-27  Jim Meyering  <meyering@lucent.com>
100190
100191         * m4/check-decl.m4: Add getenv to the list.
100192
100193 2000-02-27  Jim Meyering  <meyering@lucent.com>
100194
100195         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
100196         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
100197
100198         * lib/backupfile.c: Guard inclusion of stdlib.h with
100199         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
100200         Declare malloc if needed.
100201
100202         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
100203         `#ifndef HAVE_DECL..'
100204         now that autoconf always defines the HAVE_DECL_ symbols.
100205         * lib/human.c: Likewise.
100206         * lib/same.c: Likewise.
100207         * lib/strtoumax.c: Likewise.
100208
100209         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
100210         declaration check was not run.
100211         * lib/hash.c: Likewise.
100212         * lib/human.c: Likewise.
100213         * lib/same.c: Likewise.
100214         * lib/strtoumax.c: Likewise.
100215
100216         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
100217         `.', then first look up the entire `.'-containing string as a login
100218         name.
100219
100220 2000-02-23  Jim Meyering  <meyering@lucent.com>
100221
100222         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
100223         in place of my hack.
100224
100225 2000-02-18  Paul Eggert  <eggert@twinsun.com>
100226
100227         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
100228         (textint): New typedef.
100229         (parser_control): Member year changed from int to textint.
100230         All uses changed.
100231         (YYSTYPE): Removed; replaced by %union with int and textint members.
100232         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
100233         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
100234         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
100235         (tSNUMBER, tUNUMBER): Now of type <textintval>.
100236         (date, number, to_year): Use width of number in digits, not its value,
100237         to determine whether it's a 2-digit year, or a 2-digit time.
100238         (yylex): Store number of digits of numeric tokens.
100239         Reported by John Kendall.
100240
100241         (parser_control): Changed from struct parser_control to typedef (for
100242         consistency).  All uses changed.
100243
100244         (tID): Removed; not used.
100245         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
100246
100247 2000-02-14  Paul Eggert  <eggert@twinsun.com>
100248
100249         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
100250         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
100251
100252 2000-02-12  Jim Meyering  <meyering@lucent.com>
100253
100254         * lib/userspec.c (ISDIGIT): Define it.
100255         (isdigit): Remove definition.
100256         (is_number): Use ISDIGIT, not isdigit.
100257         <libintl.h>: Include.
100258         (_ and N_): Define.
100259         (parse_user_spec): Mark translatable strings.
100260
100261 2000-02-10  Jim Meyering  <meyering@lucent.com>
100262
100263         With these changes, nanosleep.[ch] are finally enough like the other
100264         lib/* replacement files to compile on a few more losing systems.
100265
100266         * lib/nanosleep.h: Don't include config.h.
100267         Remove prototype from declaration of nanosleep.
100268         (PARAMS): Remove now-unneeded definition.
100269         * lib/nanosleep.c: #undef nanosleep.
100270         (rpl_nanosleep): Rename from nanosleep.
100271
100272 2000-02-10  Jim Meyering  <meyering@lucent.com>
100273
100274         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
100275         gnu_nanosleep to rpl_nanosleep.
100276
100277 2000-02-09  Jim Meyering  <meyering@lucent.com>
100278
100279         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
100280         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
100281
100282 2000-02-08  Akim Demaille  <akim@epita.fr>
100283
100284         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
100285         `[' and `]' and remove uses of `changequote'.
100286         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
100287         (AC_SYS_LARGEFILE): Likewise.
100288         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
100289         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
100290         of changequote.
100291         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
100292         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
100293         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
100294         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
100295
100296 2000-02-05  Jim Meyering  <meyering@lucent.com>
100297
100298         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
100299         Remove explicit use of AC_HEADER_TIME.  It is required by
100300         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
100301         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
100302         in autoconf whereby the expansion of the latter ended up preceding
100303         the expansion of its prerequisite, AC_HEADER_TIME.
100304         Reported by Volker Borchert.
100305
100306 2000-02-03  Jim Meyering  <meyering@lucent.com>
100307
100308         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
100309
100310 2000-02-03  Jim Meyering  <meyering@lucent.com>
100311
100312         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
100313         rather than with `#if HAVE_UTMPNAME'.
100314
100315 2000-02-02  Jim Meyering  <meyering@lucent.com>
100316
100317         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
100318         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
100319         Reported by Eli Zaretskii.
100320
100321 2000-02-01  Jim Meyering  <meyering@lucent.com>
100322
100323         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
100324
100325 2000-01-31  Jim Meyering  <meyering@lucent.com>
100326
100327         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
100328         functions.  Add the time.h and sys/time.h headers along with the
100329         AC_REQUIRE'ment of AC_HEADER_TIME.
100330
100331 2000-01-31  Jim Meyering  <meyering@lucent.com>
100332
100333         * lib/nanosleep.h (nanosleep): Guard declaration with
100334         `#if ! HAVE_DECL_NANOSLEEP'.
100335         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
100336         the declaration in that vendor's sys/timers.h.
100337         Reported by Christian Krackowizer.
100338
100339         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
100340         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
100341         (ISPRINT): Likewise.
100342         Reported by Tom Tromey.
100343
100344 2000-01-30  Jim Meyering  <meyering@lucent.com>
100345
100346         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
100347
100348         * m4/prereq.m4 (utmp_includes): Define.
100349         Check for ut_user and ut_name members in both struct utmpx
100350         and struct utmp.
100351
100352 2000-01-30  Jim Meyering  <meyering@lucent.com>
100353
100354         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
100355         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
100356         header files where only utmpx.ut_user is declared.
100357
100358         * lib/readutmp.h (UT_USER): Define.
100359
100360 2000-01-29  Jim Meyering  <meyering@lucent.com>
100361
100362         * m4/lib-check.m4: New file containing library-related checks from
100363         fileutils and sh-utils (textutils had none).
100364
100365 2000-01-28  Jim Meyering  <meyering@lucent.com>
100366
100367         * m4/perl.m4: Change format of warning message to look more like that
100368         from the missing script.  Suggestion from François Pinard.
100369
100370 2000-01-25  Jim Meyering  <meyering@lucent.com>
100371
100372         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
100373         well as time.h in the compile check.
100374         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
100375         Fix typo in cross-compiling case: s/yes/no/.
100376
100377 2000-01-23  Jim Meyering  <meyering@lucent.com>
100378
100379         * m4/jm-macros.m4: Move df-related tests here from
100380         fileutils/configure.in
100381
100382         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
100383         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
100384
100385         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
100386         s/space/ac_fsusage_space/.
100387         (jm_FILE_SYSTEM_USAGE): Take two parameters.
100388
100389         * m4/ftruncate.m4: New file (derived from part of
100390         fileutils/configure.in).
100391         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
100392         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
100393
100394         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
100395         AC_SUBST these here, rather than just in sh-util/configure.in, so
100396         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
100397         all the same.
100398         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
100399         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
100400         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
100401         (AC_SUBST(POW_LIBM)): Likewise.
100402         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
100403
100404 2000-01-23  Jim Meyering  <meyering@lucent.com>
100405
100406         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
100407         obstack.c.
100408
100409 2000-01-22  Jim Meyering  <meyering@lucent.com>
100410
100411         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
100412
100413         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
100414
100415         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
100416         configure.in
100417         (AC_CHECK_HEADERS): Likewise for sh-utils.
100418         (AC_CHECK_HEADERS): Likewise for textutils.
100419         Merge the three lists of headers.
100420
100421         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
100422         from fileutils' configure.in.
100423
100424         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
100425         code. Moved tests into their own function (_jm_DECL_HEADERS) in
100426         check-decl.m4.
100427
100428         * m4/check-decl.m4: Use #if rather than #ifdef.
100429         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
100430         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
100431         (_jm_DECL_HEADERS): Define new function.
100432         (jm_CHECK_DECLARATIONS): Require it.
100433
100434 2000-01-22  Jim Meyering  <meyering@lucent.com>
100435
100436         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
100437         [! HAVE_DECL_STRTOULL]: Declare strtoull.
100438         Required for some AIX systems.  Reported by Christian Krackowizer.
100439         [TESTING] (main): New function.
100440
100441         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
100442         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
100443         letters.
100444
100445         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
100446         iswprint.
100447
100448         * lib/strverscmp.c (ISDIGIT): Define.
100449         (strverscmp): Use ISDIGIT, not isdigit.
100450
100451 2000-01-19  Jim Meyering  <meyering@lucent.com>
100452
100453         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
100454         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
100455         defines `struct timespec' in <sys/time.h>
100456
100457         * m4/c-bs-a.m4: Remove uses of changequote altogether.
100458         Thanks to Akim for explaining.
100459
100460 2000-01-17  Paul Eggert  <eggert@twinsun.com>
100461
100462         * lib/nanosleep.c (nanosleep):
100463         Don't use SA_INTERRUPT to decide whether to call sigaction, as
100464         POSIX.1 doesn't require SA_INTERRUPT and some systems
100465         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
100466         it's been part of POSIX.1 since day 1 (in 1988).
100467
100468 2000-01-17  Jim Meyering  <meyering@lucent.com>
100469
100470         * lib/interlock: Remove unused file.  Reported by François Pinard.
100471
100472 2000-01-16  Paul Eggert  <eggert@twinsun.com>
100473
100474         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
100475         alert, backslash, formfeed, and vertical tab unnecessarily in
100476         shell quoting style.
100477
100478 2000-01-16  Jim Meyering  <meyering@lucent.com>
100479
100480         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
100481         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
100482         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
100483         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
100484
100485 2000-01-16  Jim Meyering  <meyering@lucent.com>
100486
100487         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
100488         because the latter didn't work.
100489
100490 2000-01-15  Jim Meyering  <meyering@lucent.com>
100491
100492         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
100493         (AC_REPLACE_FUNCS): Add memcpy and memset.
100494         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
100495         Add strpbrk.
100496         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
100497
100498 2000-01-12  Jim Meyering  <meyering@lucent.com>
100499
100500         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
100501         (jm_PREREQ): Use it.
100502         (jm_PREREQ_READUTMP): New macro.
100503         (jm_PREREQ): Use it.
100504
100505 2000-01-11  Paul Eggert  <eggert@twinsun.com>
100506
100507         Quote multibyte characters correctly.
100508         * m4/c-bs-a.m4: New file.
100509         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
100510         (jm_PREREQ): Use it.
100511
100512 2000-01-11  Paul Eggert  <eggert@twinsun.com>
100513
100514         * m4/uintmax_t.m4: Port to autoconf 2.13.
100515
100516 2000-01-08  Jim Meyering  <meyering@ascend.com>
100517
100518         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
100519         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
100520
100521 2000-01-04  Jim Meyering  <meyering@ascend.com>
100522
100523         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
100524         jm_STRUCT_DIRENT_D_TYPE.
100525         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
100526         jm_STRUCT_DIRENT_D_INO.
100527         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
100528         jm_STRUCT_UTIMBUF.
100529         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
100530         renamings.
100531         * m4/utime.m4: Likewise.
100532
100533         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
100534         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
100535
100536 2000-01-03  Paul Eggert  <eggert@twinsun.com>
100537
100538         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
100539         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
100540
100541 2000-01-02  Jim Meyering  <meyering@ascend.com>
100542
100543         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
100544         remember if this is necessary.
100545
100546 1999-12-26  Jim Meyering  <meyering@ascend.com>
100547
100548         * m4/jm-macros.m4: Use it here.
100549         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
100550
100551 1999-12-23  Jim Meyering  <meyering@ascend.com>
100552
100553         * m4/jm-macros.m4: Check for clock_gettime (moved from
100554         fileutils/configure.in)
100555         Check for gettimeofday.
100556
100557 1999-12-20  Jim Meyering  <meyering@ascend.com>
100558
100559         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
100560         autoconf-2.14a-1999-12-20.
100561
100562 1999-12-19  Jim Meyering  <meyering@ascend.com>
100563
100564         * m4/lstat-slash.m4: New file.
100565         * m4/jm-macros.m4: Use the new macro:
100566         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
100567
100568 1999-12-07  Jim Meyering  <meyering@ascend.com>
100569
100570         * m4/perl.m4: Require that File::Compare be available, too.
100571         Too many systems seem to lack it.
100572
100573         * m4/strftime.m4: Add checks for most of the cpp macros tested in
100574         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
100575
100576 1999-11-18  Paul Eggert  <eggert@twinsun.com>
100577
100578         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
100579         problem with the QNX 4.25 shell, which doesn't propagate exit
100580         status of failed commands inside shell assignments.
100581
100582 1999-11-17  Jim Meyering  <meyering@ascend.com>
100583
100584         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
100585
100586 1999-11-07  Jim Meyering  <meyering@ascend.com>
100587
100588         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
100589
100590 1999-11-06  Jim Meyering  <meyering@ascend.com>
100591
100592         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
100593         * m4/jm-macros.m4 (jm_MACROS): Use it here.
100594
100595 1999-11-05  Jim Meyering  <meyering@ascend.com>
100596
100597         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
100598         configure.in of textutils, fileutils, and sh-utils into this one
100599         (shared between those packages) file.
100600         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
100601         AC_STRUCT_ST_BLKSIZE.
100602
100603 1999-11-03  Jim Meyering  <meyering@ascend.com>
100604
100605         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
100606         of AC_CHECK_TYPE checks includes unistd.h.
100607         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
100608         Suggestion from Akim Demaille.
100609
100610 1999-10-30  Jim Meyering  <meyering@ascend.com>
100611
100612         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
100613         m4-quoted string.
100614         * m4/ls-mntd-fs.m4: Likewise.
100615         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
100616         * m4/jm-winsz1.m4: Likewise.
100617
100618         * m4/const.m4: Remove file, since the fix made it into the experimental
100619         version of autoconf.
100620         * m4/mktime.m4: Likewise.
100621
100622         * m4/check-type.m4: Remove file, now that the latest version of
100623         AC_CHECK_TYPE takes a third arg to specify additional #includes.
100624
100625         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
100626         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
100627         AC_CHECK_TYPE.
100628
100629 1999-10-04  Jim Meyering  <meyering@ascend.com>
100630
100631         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
100632
100633 1999-09-22  Paul Eggert  <eggert@twinsun.com>
100634
100635         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
100636         2.95.1 bug with HP-UX 10.20.
100637
100638 1999-09-17  Jim Meyering  <meyering@ascend.com>
100639
100640         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
100641         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
100642         due to missing strdup (against sh-utils-2.0).
100643
100644 1999-08-29  Jim Meyering  <meyering@ascend.com>
100645
100646         * m4/jm-macros.m4: Require jm_BISON.
100647         * m4/bison.m4: New file.
100648
100649 1999-08-17  Paul Eggert  <eggert@twinsun.com>
100650
100651         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
100652         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
100653
100654 1999-08-05  Jim Meyering  <meyering@ascend.com>
100655
100656         * m4/getline.m4: Rename test file from conftestdata to conftest.data
100657         to avoid conflicts with `conftest' on 8+3 filesystems.
100658         Suggestion from Eli Zaretskii.
100659
100660 1999-08-04  Jim Meyering  <meyering@ascend.com>
100661
100662         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
100663         fileutils and sh-utils (textutils's getline test was inadequate).
100664         (AM_FUNC_GETLINE): Run this test.
100665         (AC_CHECK_FUNCS): Check for getdelim.
100666         Reported by Bob Proulx.
100667
100668 1999-08-02  Jim Meyering  <meyering@ascend.com>
100669
100670         * m4/jm-macros.m4: Add a comment.
100671
100672 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100673
100674         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
100675         <inttypes.h> defines strtoumax as a macro (and not as a
100676         function).
100677
100678 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100679
100680         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
100681         that we can shift, multiply and divide unsigned long long
100682         values; Ultrix cc can't do it.
100683
100684 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100685
100686         * m4/mktime.m4: New file, which is a preview of what should appear
100687         in the next public autoconf release.
100688
100689 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100690
100691         * m4/lfs.m4: Remove this file.
100692         * m4/largefile.m4: New file.  It contains the old contents of
100693         lfs.m4, except that all names with prefix AC_LFS have been
100694         changed to use the prefix AC_SYS_LARGEFILE instead, to be
100695         compatible with future autoconf versions.  Also, some minor m4
100696         quoting problems have been fixed.
100697
100698 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100699
100700         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
100701         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
100702         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
100703         and simplify the shell code.
100704
100705 1999-08-01  Jim Meyering  <meyering@ascend.com>
100706
100707         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
100708         m4.
100709
100710 1999-07-20  Jim Meyering  <meyering@ascend.com>
100711
100712         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
100713
100714 1999-07-15  Jim Meyering  <meyering@ascend.com>
100715
100716         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
100717
100718 1999-05-22  Jim Meyering  <meyering@ascend.com>
100719
100720         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
100721
100722 1999-05-20  Jim Meyering  <meyering@ascend.com>
100723
100724         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
100725         Add a colon after each `then' in case $4 is empty.
100726
100727 1999-05-16  Jim Meyering  <meyering@ascend.com>
100728
100729         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
100730
100731 1999-05-10  Jim Meyering  <meyering@ascend.com>
100732
100733         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
100734
100735         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
100736         AC_FUNC_MKTIME.
100737
100738 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
100739
100740         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
100741
100742 1999-05-04  Paul Eggert  <eggert@twinsun.com>
100743
100744         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
100745         not CPPFLAGS, so that linking works correctly in IRIX.
100746
100747 1999-04-30  Paul Eggert  <eggert@twinsun.com>
100748
100749         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
100750
100751 1999-04-20  Paul Eggert  <eggert@twinsun.com>
100752
100753         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
100754         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
100755         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
100756         jm_AC_TYPE_UNSIGNED_LONG_LONG.
100757         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
100758
100759         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
100760
100761 1999-04-20  Jim Meyering  <meyering@ascend.com>
100762
100763         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
100764         AC_REPLACE xstroull if necessary.  From Paul Eggert.
100765         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
100766
100767 1999-04-18  Jim Meyering  <meyering@ascend.com>
100768
100769         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
100770         * m4/jm-macros.m4: Use it.
100771
100772 1999-04-06  Jim Meyering  <meyering@ascend.com>
100773
100774         * m4/strftime.m4: Remove test for %f.
100775
100776 1999-03-29  Jim Meyering  <meyering@ascend.com>
100777
100778         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
100779         superset of the AC_TYPE_* checks in the textutils, fileutils,
100780         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
100781         AC_TYPE_PID_T.
100782
100783 1999-03-28  Jim Meyering  <meyering@ascend.com>
100784
100785         * m4/jm-macros.m4: Define GNU_PACKAGE here.
100786         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
100787         replaced e.g., in the *.sh files of the sh-utils.
100788
100789 1999-03-20  Jim Meyering  <meyering@ascend.com>
100790
100791         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
100792         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
100793         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
100794
100795 1999-03-19  Jim Meyering  <meyering@ascend.com>
100796
100797         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
100798
100799 1999-03-12  Jim Meyering  <meyering@ascend.com>
100800
100801         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
100802
100803 1999-03-07  Jim Meyering  <meyering@ascend.com>
100804
100805         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
100806         declared.
100807
100808 1999-02-17  Jim Meyering  <meyering@ascend.com>
100809
100810         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
100811         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
100812
100813 1999-02-07  Jim Meyering  <meyering@ascend.com>
100814
100815         * m4/group-member.m4: New file -- extracted from sh-utils'
100816         configure.in.
100817
100818         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
100819         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
100820
100821 1999-02-06  Jim Meyering  <meyering@ascend.com>
100822
100823         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
100824         * m4/fnmatch.m4: Likewise.
100825         * m4/getgroups.m4: Likewise.
100826         * m4/lstat.m4: Likewise.
100827         * m4/malloc.m4: Likewise.
100828         * m4/putenv.m4: Likewise.
100829         * m4/realloc.m4: Likewise.
100830         * m4/regex.m4: Likewise.
100831         * m4/stat.m4: Likewise.
100832         * m4/strftime.m4: Likewise.
100833         Suggestion from Alain Magloire.
100834
100835         * m4/chown.m4: Use `.$ac_objext', not `.o'.
100836         * m4/fnmatch.m4: Likewise.
100837         * m4/getgroups.m4: Likewise.
100838         * m4/getline.m4: Likewise.
100839         * m4/lstat.m4: Likewise.
100840         * m4/malloc.m4: Likewise.
100841         * m4/memcmp.m4: Likewise.
100842         * m4/putenv.m4: Likewise.
100843         * m4/realloc.m4: Likewise.
100844         * m4/regex.m4: Likewise.
100845         * m4/stat.m4: Likewise.
100846         * m4/strftime.m4: Likewise.
100847         Suggestion from Alain Magloire.
100848
100849         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
100850         an argument.
100851
100852         * m4/regex.m4: Add a run-time Test for proper operation of
100853         re_compile_pattern.
100854
100855 1999-01-31  Jim Meyering  <meyering@ascend.com>
100856
100857         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
100858
100859 1999-01-30  Jim Meyering  <meyering@ascend.com>
100860
100861         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
100862
100863         * m4/jm-mktime.m4: Make this a wrapper around the official
100864         AM_FUNC_MKTIME rather than my private copy, now that the official one
100865         is up to date.
100866         * m4/mktime.m4: Remove file.
100867
100868         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
100869         * m4/uptime.m4: Likewise.
100870         * m4/uintmax_t.m4: Likewise.
100871
100872 1999-01-28  Jim Meyering  <meyering@ascend.com>
100873
100874         * m4/jm-macros.m4: Use jm_AFS.
100875         * m4/afs.m4: New file (from fileutils' configure.in).
100876
100877         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
100878         * m4/chown.m4: Likewise.
100879         * m4/d-ino.m4: Likewise.
100880         * m4/d-type.m4: Likewise.
100881         * m4/fnmatch.m4: Likewise.
100882         * m4/getgroups.m4: Likewise.
100883         * m4/gettext.m4: Likewise.
100884         * m4/jm-mktime.m4: Likewise.
100885         * m4/jm-winsz2.m4: Likewise.
100886         * m4/lcmessage.m4: Likewise.
100887         * m4/ls-mntd-fs.m4: Likewise.
100888         * m4/malloc.m4: Likewise.
100889         * m4/memcmp.m4: Likewise.
100890         * m4/putenv.m4: Likewise.
100891         * m4/realloc.m4: Likewise.
100892         * m4/st_mtim.m4: Likewise.
100893         * m4/strftime.m4: Likewise.
100894
100895 1999-01-16  Jim Meyering  <meyering@ascend.com>
100896
100897         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
100898         (ARGMATCH_DIE_DECL): Define.
100899
100900 1999-01-12  Jim Meyering  <meyering@ascend.com>
100901
100902         * m4/Makefile.am.in: Rewrite to avoid using fmt.
100903         Reported by Lars Hecking.
100904
100905 1999-01-10  Jim Meyering  <meyering@ascend.com>
100906
100907         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
100908         gross kludge.
100909         * m4/inttypes_h.m4: Likewise.
100910         * m4/lstat.m4: Likewise.
100911         * m4/malloc.m4: Likewise.
100912         * m4/readdir.m4: Likewise.
100913         * m4/realloc.m4: Likewise.
100914         * m4/st_dm_mode.m4: Likewise.
100915         * m4/stat.m4: Likewise.
100916         * m4/utimbuf.m4: Likewise.
100917         * m4/utimes.m4: Likewise.
100918
100919         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
100920         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
100921         comments in config.h.in are meaningful.
100922
100923         * m4/jm-macros.m4: Require autoconf-2.13 here.
100924
100925         * m4/regex.m4: By default, don't use the included regex.c on systems
100926         with glibc 2.  Suggestion from Uli Drepper.
100927
100928 1999-01-02  Jim Meyering  <meyering@ascend.com>
100929
100930         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
100931
100932 1998-12-18  Jim Meyering  <meyering@ascend.com>
100933
100934         * m4/Makefile.am.in (Makefile.am): Simplify rule.
100935         Based on a suggestion from Lars Hecking.
100936
100937 1998-11-16  Paul Eggert  <eggert@twinsun.com>
100938
100939         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
100940
100941 1998-11-16  Jim Meyering  <meyering@ascend.com>
100942
100943         * m4/lfs.m4: Double-quote the `uname...` expression.
100944
100945 1998-11-14  Jim Meyering  <meyering@ascend.com>
100946
100947         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
100948         * m4/stat.m4: Likewise.
100949
100950 1998-11-03  Jim Meyering  <meyering@ascend.com>
100951
100952         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
100953         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
100954
100955 1998-10-18  Jim Meyering  <meyering@ascend.com>
100956
100957         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
100958
100959 1998-10-17  Jim Meyering  <meyering@ascend.com>
100960
100961         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
100962         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
100963         calls for those previously hard-coded headers.  Instead, take a new
100964         parameter.
100965         (jm_CHECK_DECLARATIONS): Reflect interface change.
100966         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
100967         (jm_CHECK_DECL_LOCALTIME_R): New macro.
100968
100969         * m4/mktime.m4: Test for spring-forward gap before long-running test.
100970
100971 1998-10-14  Jim Meyering  <meyering@ascend.com>
100972
100973         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
100974         instead of "TZ=America/Vancouver".  From Paul Eggert.
100975
100976 1998-10-11  Jim Meyering  <meyering@ascend.com>
100977
100978         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
100979         This adds a test for a recently added compatibility fix for mktime.c.
100980         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
100981
100982 1998-09-27  Jim Meyering  <meyering@ascend.com>
100983
100984         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
100985
100986         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
100987         ../configure.in, including a change from Gordon Matzigkeit to allow
100988         cross-compiling for the Hurd.
100989
100990         * m4/glibc.m4: New file/macro to test for the GNU C Library
100991         versions 1 and 2.  From Gordon Matzigkeit.
100992         Indent.
100993
100994 1998-09-21  Jim Meyering  <meyering@ascend.com>
100995
100996         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
100997
100998 1998-08-18  Paul Eggert  <eggert@twinsun.com>
100999
101000         Port nanosecond-resolution times to UnixWare 2.1.2 and
101001         pedantic Solaris 2.6.
101002
101003         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
101004         AC_STRUCT_ST_MTIM.
101005         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
101006         Generate name of ns member, instead of just 1 or undef.
101007         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
101008
101009 1998-08-15  Jim Meyering  <meyering@ascend.com>
101010
101011         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
101012         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
101013         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
101014         instead of jm_TYPE_SSIZE_T.
101015
101016 1998-08-12  Jim Meyering  <meyering@ascend.com>
101017
101018         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
101019
101020 1998-08-02  Jim Meyering  <meyering@ascend.com>
101021
101022         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
101023         in acconfig.h manually.
101024
101025 1998-07-31  Paul Eggert  <eggert@twinsun.com>
101026
101027         * m4/st_mtim.m4: New file.
101028
101029 1998-07-28  Jim Meyering  <meyering@ascend.com>
101030
101031         * m4/utimes.m4: Undef stat.
101032
101033 1998-07-25  Jim Meyering  <meyering@ascend.com>
101034
101035         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
101036         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
101037
101038 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
101039
101040         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
101041         uid and gid actually remain unchanged.
101042
101043 1998-07-07  Jim Meyering  <meyering@ascend.com>
101044
101045         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
101046
101047 1998-07-04  Jim Meyering  <meyering@ascend.com>
101048
101049         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
101050         to prove that this macro can be used in packages without regex.c.
101051
101052 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
101053
101054         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
101055         is to be used.
101056
101057 1998-07-03  Jim Meyering  <meyering@ascend.com>
101058
101059         * m4/gettext.m4: Add -lintl if it's found to be necessary.
101060
101061         * m4/gettext.m4: New file -- from gettext-0.10.35.
101062         * m4/lcmessage.m4: Likewise.
101063         * m4/progtest.m4: Likewise.
101064
101065         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
101066         * m4/jm-macros.m4: Require the new macro.
101067
101068 1998-06-29  Jim Meyering  <meyering@ascend.com>
101069
101070         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
101071         for the definition of NGROUPS (used in a system header included
101072         by sys/mount.h).
101073
101074 1998-06-28  Jim Meyering  <meyering@ascend.com>
101075
101076         * m4/ls-mntd-fs.m4: New file.
101077         * m4/fstypename.m4: New file.
101078
101079         * m4/jm-macros.m4: Require the new macro.
101080         * m4/jm-glibc-io.m4: New file.
101081
101082 1998-05-19  Jim Meyering  <meyering@ascend.com>
101083
101084         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
101085         * m4/lchown.m4: New file.
101086
101087         * m4/Makefile.am.in: New file.
101088         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
101089
101090 1998-05-14  Jim Meyering  <meyering@ascend.com>
101091
101092         * m4/Makefile.am (EXTRA_DIST): Add them.
101093         * m4/jm-macros.m4: New file.
101094         * m4/utimbuf.m4: New file.
101095
101096 1998-05-12  Jim Meyering  <meyering@ascend.com>
101097
101098         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
101099
101100 1998-05-11  Jim Meyering  <meyering@ascend.com>
101101
101102         * m4/isc-posix.m4: New file.
101103
101104 1998-05-10  Jim Meyering  <meyering@ascend.com>
101105
101106         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
101107
101108 1998-05-09  Jim Meyering  <meyering@ascend.com>
101109
101110         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
101111         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
101112         with automake.
101113
101114         * m4/ssize_t.m4: New file.
101115         * m4/mktime.m4: Remove file -- the new automake has this now.
101116
101117 1998-04-26  Jim Meyering  <meyering@ascend.com>
101118
101119         * m4/assert.m4: New file.
101120         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
101121
101122 1998-04-05  Jim Meyering  <meyering@ascend.com>
101123
101124         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
101125         (jm_PREREQ): Use it here.
101126
101127 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
101128
101129         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
101130         in acconfig.h.
101131
101132 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
101133
101134         * m4/prereq.m4: New file.
101135         * m4/error.m4: New file.
101136         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
101137
101138 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
101139
101140         * m4/getline.m4: Don't set am_cv_func_working_getline before the
101141         cache-check for the same variable -- that defeated the purpose of
101142         the test; the test program was never run.  This was a problem only
101143         on systems with losing getline functions -- HP-UX 10.20 is one.
101144         Reported by Bjorn Helgaas.
101145
101146 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
101147
101148         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
101149
101150 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
101151
101152         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
101153
101154         * m4/const.m4: New file.  Use an initializer in this declaration
101155         typedef int charset[2]; const charset x;
101156         Reported by Bob Glickstein.
101157
101158 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
101159
101160         * m4/chown.m4: Fix reversed types on -1 args to chown.
101161         From Kaveh Ghazi.
101162
101163 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
101164
101165         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
101166         Add lseek and memchr.
101167
101168         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
101169         T.E.Dickey <dickey@clark.net> said that some older preprocessors
101170         have a 20-character limit on names.
101171
101172 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
101173
101174         * m4/inttypes_h.m4: New file.
101175         * m4/uintmax_t.m4: New file.
101176         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
101177
101178
101179         -----
101180
101181         Local Variables:
101182         coding: utf-8
101183         End:
101184
101185         Copyright (C) 1997-2014 Free Software Foundation, Inc.
101186
101187         Copying and distribution of this file, with or without
101188         modification, are permitted provided the copyright notice
101189         and this notice are preserved.